32-bit PA-RISC with HP-UX: remove deprecated ports
[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-hpux*)
4149 host_makefile_frag="config/mh-pa"
4150 ;;
4151 hppa*-*)
4152 host_makefile_frag="config/mh-pa"
4153 ;;
4154 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4155 host_makefile_frag="config/mh-darwin"
4156 ;;
4157 powerpc-*-aix*)
4158 host_makefile_frag="config/mh-ppc-aix"
4159 ;;
4160 rs6000-*-aix*)
4161 host_makefile_frag="config/mh-ppc-aix"
4162 ;;
4163 esac
4164 fi
4165
4166 if test "${build}" != "${host}" ; then
4167 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4168 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4169 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4170 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4171 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4172 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4173 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4174 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4175 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4176 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4177 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4178 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4179 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4180 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4181 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4182 else
4183 AR_FOR_BUILD="\$(AR)"
4184 AS_FOR_BUILD="\$(AS)"
4185 CC_FOR_BUILD="\$(CC)"
4186 CXX_FOR_BUILD="\$(CXX)"
4187 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4188 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4189 GOC_FOR_BUILD="\$(GOC)"
4190 GDC_FOR_BUILD="\$(GDC)"
4191 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4192 LD_FOR_BUILD="\$(LD)"
4193 NM_FOR_BUILD="\$(NM)"
4194 RANLIB_FOR_BUILD="\$(RANLIB)"
4195 WINDRES_FOR_BUILD="\$(WINDRES)"
4196 WINDMC_FOR_BUILD="\$(WINDMC)"
4197 fi
4198
4199 ac_ext=c
4200 ac_cpp='$CPP $CPPFLAGS'
4201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204 if test -n "$ac_tool_prefix"; then
4205 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4206 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if ${ac_cv_prog_CC+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 if test -n "$CC"; then
4213 ac_cv_prog_CC="$CC" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226 done
4227 done
4228 IFS=$as_save_IFS
4229
4230 fi
4231 fi
4232 CC=$ac_cv_prog_CC
4233 if test -n "$CC"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4235 $as_echo "$CC" >&6; }
4236 else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4239 fi
4240
4241
4242 fi
4243 if test -z "$ac_cv_prog_CC"; then
4244 ac_ct_CC=$CC
4245 # Extract the first word of "gcc", so it can be a program name with args.
4246 set dummy gcc; ac_word=$2
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 $as_echo_n "checking for $ac_word... " >&6; }
4249 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 if test -n "$ac_ct_CC"; then
4253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4254 else
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4257 do
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4262 ac_cv_prog_ac_ct_CC="gcc"
4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 break 2
4265 fi
4266 done
4267 done
4268 IFS=$as_save_IFS
4269
4270 fi
4271 fi
4272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4273 if test -n "$ac_ct_CC"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4275 $as_echo "$ac_ct_CC" >&6; }
4276 else
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 $as_echo "no" >&6; }
4279 fi
4280
4281 if test "x$ac_ct_CC" = x; then
4282 CC=""
4283 else
4284 case $cross_compiling:$ac_tool_warned in
4285 yes:)
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4288 ac_tool_warned=yes ;;
4289 esac
4290 CC=$ac_ct_CC
4291 fi
4292 else
4293 CC="$ac_cv_prog_CC"
4294 fi
4295
4296 if test -z "$CC"; then
4297 if test -n "$ac_tool_prefix"; then
4298 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4299 set dummy ${ac_tool_prefix}cc; ac_word=$2
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301 $as_echo_n "checking for $ac_word... " >&6; }
4302 if ${ac_cv_prog_CC+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 if test -n "$CC"; then
4306 ac_cv_prog_CC="$CC" # Let the user override the test.
4307 else
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH
4310 do
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4315 ac_cv_prog_CC="${ac_tool_prefix}cc"
4316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4317 break 2
4318 fi
4319 done
4320 done
4321 IFS=$as_save_IFS
4322
4323 fi
4324 fi
4325 CC=$ac_cv_prog_CC
4326 if test -n "$CC"; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4328 $as_echo "$CC" >&6; }
4329 else
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331 $as_echo "no" >&6; }
4332 fi
4333
4334
4335 fi
4336 fi
4337 if test -z "$CC"; then
4338 # Extract the first word of "cc", so it can be a program name with args.
4339 set dummy cc; ac_word=$2
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341 $as_echo_n "checking for $ac_word... " >&6; }
4342 if ${ac_cv_prog_CC+:} false; then :
4343 $as_echo_n "(cached) " >&6
4344 else
4345 if test -n "$CC"; then
4346 ac_cv_prog_CC="$CC" # Let the user override the test.
4347 else
4348 ac_prog_rejected=no
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4356 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4357 ac_prog_rejected=yes
4358 continue
4359 fi
4360 ac_cv_prog_CC="cc"
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4363 fi
4364 done
4365 done
4366 IFS=$as_save_IFS
4367
4368 if test $ac_prog_rejected = yes; then
4369 # We found a bogon in the path, so make sure we never use it.
4370 set dummy $ac_cv_prog_CC
4371 shift
4372 if test $# != 0; then
4373 # We chose a different compiler from the bogus one.
4374 # However, it has the same basename, so the bogon will be chosen
4375 # first if we set CC to just the basename; use the full file name.
4376 shift
4377 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4378 fi
4379 fi
4380 fi
4381 fi
4382 CC=$ac_cv_prog_CC
4383 if test -n "$CC"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4385 $as_echo "$CC" >&6; }
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4389 fi
4390
4391
4392 fi
4393 if test -z "$CC"; then
4394 if test -n "$ac_tool_prefix"; then
4395 for ac_prog in cl.exe
4396 do
4397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400 $as_echo_n "checking for $ac_word... " >&6; }
4401 if ${ac_cv_prog_CC+:} false; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 if test -n "$CC"; then
4405 ac_cv_prog_CC="$CC" # Let the user override the test.
4406 else
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4409 do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4417 fi
4418 done
4419 done
4420 IFS=$as_save_IFS
4421
4422 fi
4423 fi
4424 CC=$ac_cv_prog_CC
4425 if test -n "$CC"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4427 $as_echo "$CC" >&6; }
4428 else
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4431 fi
4432
4433
4434 test -n "$CC" && break
4435 done
4436 fi
4437 if test -z "$CC"; then
4438 ac_ct_CC=$CC
4439 for ac_prog in cl.exe
4440 do
4441 # Extract the first word of "$ac_prog", so it can be a program name with args.
4442 set dummy $ac_prog; ac_word=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 if test -n "$ac_ct_CC"; then
4449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_prog_ac_ct_CC="$ac_prog"
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4461 fi
4462 done
4463 done
4464 IFS=$as_save_IFS
4465
4466 fi
4467 fi
4468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4469 if test -n "$ac_ct_CC"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4471 $as_echo "$ac_ct_CC" >&6; }
4472 else
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4475 fi
4476
4477
4478 test -n "$ac_ct_CC" && break
4479 done
4480
4481 if test "x$ac_ct_CC" = x; then
4482 CC=""
4483 else
4484 case $cross_compiling:$ac_tool_warned in
4485 yes:)
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4488 ac_tool_warned=yes ;;
4489 esac
4490 CC=$ac_ct_CC
4491 fi
4492 fi
4493
4494 fi
4495
4496
4497 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4499 as_fn_error $? "no acceptable C compiler found in \$PATH
4500 See \`config.log' for more details" "$LINENO" 5; }
4501
4502 # Provide some information about the compiler.
4503 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4504 set X $ac_compile
4505 ac_compiler=$2
4506 for ac_option in --version -v -V -qversion; do
4507 { { ac_try="$ac_compiler $ac_option >&5"
4508 case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511 esac
4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513 $as_echo "$ac_try_echo"; } >&5
4514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4515 ac_status=$?
4516 if test -s conftest.err; then
4517 sed '10a\
4518 ... rest of stderr output deleted ...
4519 10q' conftest.err >conftest.er1
4520 cat conftest.er1 >&5
4521 fi
4522 rm -f conftest.er1 conftest.err
4523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524 test $ac_status = 0; }
4525 done
4526
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4529
4530 int
4531 main ()
4532 {
4533
4534 ;
4535 return 0;
4536 }
4537 _ACEOF
4538 ac_clean_files_save=$ac_clean_files
4539 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4540 # Try to create an executable without -o first, disregard a.out.
4541 # It will help us diagnose broken compilers, and finding out an intuition
4542 # of exeext.
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4544 $as_echo_n "checking whether the C compiler works... " >&6; }
4545 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4546
4547 # The possible output files:
4548 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4549
4550 ac_rmfiles=
4551 for ac_file in $ac_files
4552 do
4553 case $ac_file in
4554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4555 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4556 esac
4557 done
4558 rm -f $ac_rmfiles
4559
4560 if { { ac_try="$ac_link_default"
4561 case "(($ac_try" in
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4564 esac
4565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4566 $as_echo "$ac_try_echo"; } >&5
4567 (eval "$ac_link_default") 2>&5
4568 ac_status=$?
4569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4570 test $ac_status = 0; }; then :
4571 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4572 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4573 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4574 # so that the user can short-circuit this test for compilers unknown to
4575 # Autoconf.
4576 for ac_file in $ac_files ''
4577 do
4578 test -f "$ac_file" || continue
4579 case $ac_file in
4580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4581 ;;
4582 [ab].out )
4583 # We found the default executable, but exeext='' is most
4584 # certainly right.
4585 break;;
4586 *.* )
4587 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4588 then :; else
4589 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4590 fi
4591 # We set ac_cv_exeext here because the later test for it is not
4592 # safe: cross compilers may not add the suffix if given an `-o'
4593 # argument, so we may need to know it at that point already.
4594 # Even if this section looks crufty: it has the advantage of
4595 # actually working.
4596 break;;
4597 * )
4598 break;;
4599 esac
4600 done
4601 test "$ac_cv_exeext" = no && ac_cv_exeext=
4602
4603 else
4604 ac_file=''
4605 fi
4606 if test -z "$ac_file"; then :
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 $as_echo "no" >&6; }
4609 $as_echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4614 as_fn_error 77 "C compiler cannot create executables
4615 See \`config.log' for more details" "$LINENO" 5; }
4616 else
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4618 $as_echo "yes" >&6; }
4619 fi
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4621 $as_echo_n "checking for C compiler default output file name... " >&6; }
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4623 $as_echo "$ac_file" >&6; }
4624 ac_exeext=$ac_cv_exeext
4625
4626 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4627 ac_clean_files=$ac_clean_files_save
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4629 $as_echo_n "checking for suffix of executables... " >&6; }
4630 if { { ac_try="$ac_link"
4631 case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4634 esac
4635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636 $as_echo "$ac_try_echo"; } >&5
4637 (eval "$ac_link") 2>&5
4638 ac_status=$?
4639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4640 test $ac_status = 0; }; then :
4641 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4642 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4643 # work properly (i.e., refer to `conftest.exe'), while it won't with
4644 # `rm'.
4645 for ac_file in conftest.exe conftest conftest.*; do
4646 test -f "$ac_file" || continue
4647 case $ac_file in
4648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4649 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4650 break;;
4651 * ) break;;
4652 esac
4653 done
4654 else
4655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4657 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4658 See \`config.log' for more details" "$LINENO" 5; }
4659 fi
4660 rm -f conftest conftest$ac_cv_exeext
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4662 $as_echo "$ac_cv_exeext" >&6; }
4663
4664 rm -f conftest.$ac_ext
4665 EXEEXT=$ac_cv_exeext
4666 ac_exeext=$EXEEXT
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4669 #include <stdio.h>
4670 int
4671 main ()
4672 {
4673 FILE *f = fopen ("conftest.out", "w");
4674 return ferror (f) || fclose (f) != 0;
4675
4676 ;
4677 return 0;
4678 }
4679 _ACEOF
4680 ac_clean_files="$ac_clean_files conftest.out"
4681 # Check that the compiler produces executables we can run. If not, either
4682 # the compiler is broken, or we cross compile.
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4684 $as_echo_n "checking whether we are cross compiling... " >&6; }
4685 if test "$cross_compiling" != yes; then
4686 { { ac_try="$ac_link"
4687 case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4690 esac
4691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4692 $as_echo "$ac_try_echo"; } >&5
4693 (eval "$ac_link") 2>&5
4694 ac_status=$?
4695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4696 test $ac_status = 0; }
4697 if { ac_try='./conftest$ac_cv_exeext'
4698 { { case "(($ac_try" in
4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700 *) ac_try_echo=$ac_try;;
4701 esac
4702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4703 $as_echo "$ac_try_echo"; } >&5
4704 (eval "$ac_try") 2>&5
4705 ac_status=$?
4706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4707 test $ac_status = 0; }; }; then
4708 cross_compiling=no
4709 else
4710 if test "$cross_compiling" = maybe; then
4711 cross_compiling=yes
4712 else
4713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4715 as_fn_error $? "cannot run C compiled programs.
4716 If you meant to cross compile, use \`--host'.
4717 See \`config.log' for more details" "$LINENO" 5; }
4718 fi
4719 fi
4720 fi
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4722 $as_echo "$cross_compiling" >&6; }
4723
4724 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4725 ac_clean_files=$ac_clean_files_save
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4727 $as_echo_n "checking for suffix of object files... " >&6; }
4728 if ${ac_cv_objext+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4733
4734 int
4735 main ()
4736 {
4737
4738 ;
4739 return 0;
4740 }
4741 _ACEOF
4742 rm -f conftest.o conftest.obj
4743 if { { ac_try="$ac_compile"
4744 case "(($ac_try" in
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4747 esac
4748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4749 $as_echo "$ac_try_echo"; } >&5
4750 (eval "$ac_compile") 2>&5
4751 ac_status=$?
4752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4753 test $ac_status = 0; }; then :
4754 for ac_file in conftest.o conftest.obj conftest.*; do
4755 test -f "$ac_file" || continue;
4756 case $ac_file in
4757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4758 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4759 break;;
4760 esac
4761 done
4762 else
4763 $as_echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4768 as_fn_error $? "cannot compute suffix of object files: cannot compile
4769 See \`config.log' for more details" "$LINENO" 5; }
4770 fi
4771 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4772 fi
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4774 $as_echo "$ac_cv_objext" >&6; }
4775 OBJEXT=$ac_cv_objext
4776 ac_objext=$OBJEXT
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4778 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4779 if ${ac_cv_c_compiler_gnu+:} false; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4784
4785 int
4786 main ()
4787 {
4788 #ifndef __GNUC__
4789 choke me
4790 #endif
4791
4792 ;
4793 return 0;
4794 }
4795 _ACEOF
4796 if ac_fn_c_try_compile "$LINENO"; then :
4797 ac_compiler_gnu=yes
4798 else
4799 ac_compiler_gnu=no
4800 fi
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4803
4804 fi
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4806 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4807 if test $ac_compiler_gnu = yes; then
4808 GCC=yes
4809 else
4810 GCC=
4811 fi
4812 ac_test_CFLAGS=${CFLAGS+set}
4813 ac_save_CFLAGS=$CFLAGS
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4815 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4816 if ${ac_cv_prog_cc_g+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 ac_save_c_werror_flag=$ac_c_werror_flag
4820 ac_c_werror_flag=yes
4821 ac_cv_prog_cc_g=no
4822 CFLAGS="-g"
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4825
4826 int
4827 main ()
4828 {
4829
4830 ;
4831 return 0;
4832 }
4833 _ACEOF
4834 if ac_fn_c_try_compile "$LINENO"; then :
4835 ac_cv_prog_cc_g=yes
4836 else
4837 CFLAGS=""
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4840
4841 int
4842 main ()
4843 {
4844
4845 ;
4846 return 0;
4847 }
4848 _ACEOF
4849 if ac_fn_c_try_compile "$LINENO"; then :
4850
4851 else
4852 ac_c_werror_flag=$ac_save_c_werror_flag
4853 CFLAGS="-g"
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4856
4857 int
4858 main ()
4859 {
4860
4861 ;
4862 return 0;
4863 }
4864 _ACEOF
4865 if ac_fn_c_try_compile "$LINENO"; then :
4866 ac_cv_prog_cc_g=yes
4867 fi
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 fi
4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871 fi
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 ac_c_werror_flag=$ac_save_c_werror_flag
4874 fi
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4876 $as_echo "$ac_cv_prog_cc_g" >&6; }
4877 if test "$ac_test_CFLAGS" = set; then
4878 CFLAGS=$ac_save_CFLAGS
4879 elif test $ac_cv_prog_cc_g = yes; then
4880 if test "$GCC" = yes; then
4881 CFLAGS="-g -O2"
4882 else
4883 CFLAGS="-g"
4884 fi
4885 else
4886 if test "$GCC" = yes; then
4887 CFLAGS="-O2"
4888 else
4889 CFLAGS=
4890 fi
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4893 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4894 if ${ac_cv_prog_cc_c89+:} false; then :
4895 $as_echo_n "(cached) " >&6
4896 else
4897 ac_cv_prog_cc_c89=no
4898 ac_save_CC=$CC
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4901 #include <stdarg.h>
4902 #include <stdio.h>
4903 struct stat;
4904 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4905 struct buf { int x; };
4906 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4907 static char *e (p, i)
4908 char **p;
4909 int i;
4910 {
4911 return p[i];
4912 }
4913 static char *f (char * (*g) (char **, int), char **p, ...)
4914 {
4915 char *s;
4916 va_list v;
4917 va_start (v,p);
4918 s = g (p, va_arg (v,int));
4919 va_end (v);
4920 return s;
4921 }
4922
4923 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4924 function prototypes and stuff, but not '\xHH' hex character constants.
4925 These don't provoke an error unfortunately, instead are silently treated
4926 as 'x'. The following induces an error, until -std is added to get
4927 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4928 array size at least. It's necessary to write '\x00'==0 to get something
4929 that's true only with -std. */
4930 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4931
4932 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4933 inside strings and character constants. */
4934 #define FOO(x) 'x'
4935 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4936
4937 int test (int i, double x);
4938 struct s1 {int (*f) (int a);};
4939 struct s2 {int (*f) (double a);};
4940 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4941 int argc;
4942 char **argv;
4943 int
4944 main ()
4945 {
4946 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4947 ;
4948 return 0;
4949 }
4950 _ACEOF
4951 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4952 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4953 do
4954 CC="$ac_save_CC $ac_arg"
4955 if ac_fn_c_try_compile "$LINENO"; then :
4956 ac_cv_prog_cc_c89=$ac_arg
4957 fi
4958 rm -f core conftest.err conftest.$ac_objext
4959 test "x$ac_cv_prog_cc_c89" != "xno" && break
4960 done
4961 rm -f conftest.$ac_ext
4962 CC=$ac_save_CC
4963
4964 fi
4965 # AC_CACHE_VAL
4966 case "x$ac_cv_prog_cc_c89" in
4967 x)
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4969 $as_echo "none needed" >&6; } ;;
4970 xno)
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4972 $as_echo "unsupported" >&6; } ;;
4973 *)
4974 CC="$CC $ac_cv_prog_cc_c89"
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4976 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4977 esac
4978 if test "x$ac_cv_prog_cc_c89" != xno; then :
4979
4980 fi
4981
4982 ac_ext=c
4983 ac_cpp='$CPP $CPPFLAGS'
4984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4989 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4990 if ${ac_cv_prog_cc_c99+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 ac_cv_prog_cc_c99=no
4994 ac_save_CC=$CC
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4997 #include <stdarg.h>
4998 #include <stdbool.h>
4999 #include <stdlib.h>
5000 #include <wchar.h>
5001 #include <stdio.h>
5002
5003 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5004 #define debug(...) fprintf (stderr, __VA_ARGS__)
5005 #define showlist(...) puts (#__VA_ARGS__)
5006 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5007 static void
5008 test_varargs_macros (void)
5009 {
5010 int x = 1234;
5011 int y = 5678;
5012 debug ("Flag");
5013 debug ("X = %d\n", x);
5014 showlist (The first, second, and third items.);
5015 report (x>y, "x is %d but y is %d", x, y);
5016 }
5017
5018 // Check long long types.
5019 #define BIG64 18446744073709551615ull
5020 #define BIG32 4294967295ul
5021 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5022 #if !BIG_OK
5023 your preprocessor is broken;
5024 #endif
5025 #if BIG_OK
5026 #else
5027 your preprocessor is broken;
5028 #endif
5029 static long long int bignum = -9223372036854775807LL;
5030 static unsigned long long int ubignum = BIG64;
5031
5032 struct incomplete_array
5033 {
5034 int datasize;
5035 double data[];
5036 };
5037
5038 struct named_init {
5039 int number;
5040 const wchar_t *name;
5041 double average;
5042 };
5043
5044 typedef const char *ccp;
5045
5046 static inline int
5047 test_restrict (ccp restrict text)
5048 {
5049 // See if C++-style comments work.
5050 // Iterate through items via the restricted pointer.
5051 // Also check for declarations in for loops.
5052 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5053 continue;
5054 return 0;
5055 }
5056
5057 // Check varargs and va_copy.
5058 static void
5059 test_varargs (const char *format, ...)
5060 {
5061 va_list args;
5062 va_start (args, format);
5063 va_list args_copy;
5064 va_copy (args_copy, args);
5065
5066 const char *str;
5067 int number;
5068 float fnumber;
5069
5070 while (*format)
5071 {
5072 switch (*format++)
5073 {
5074 case 's': // string
5075 str = va_arg (args_copy, const char *);
5076 break;
5077 case 'd': // int
5078 number = va_arg (args_copy, int);
5079 break;
5080 case 'f': // float
5081 fnumber = va_arg (args_copy, double);
5082 break;
5083 default:
5084 break;
5085 }
5086 }
5087 va_end (args_copy);
5088 va_end (args);
5089 }
5090
5091 int
5092 main ()
5093 {
5094
5095 // Check bool.
5096 _Bool success = false;
5097
5098 // Check restrict.
5099 if (test_restrict ("String literal") == 0)
5100 success = true;
5101 char *restrict newvar = "Another string";
5102
5103 // Check varargs.
5104 test_varargs ("s, d' f .", "string", 65, 34.234);
5105 test_varargs_macros ();
5106
5107 // Check flexible array members.
5108 struct incomplete_array *ia =
5109 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5110 ia->datasize = 10;
5111 for (int i = 0; i < ia->datasize; ++i)
5112 ia->data[i] = i * 1.234;
5113
5114 // Check named initializers.
5115 struct named_init ni = {
5116 .number = 34,
5117 .name = L"Test wide string",
5118 .average = 543.34343,
5119 };
5120
5121 ni.number = 58;
5122
5123 int dynamic_array[ni.number];
5124 dynamic_array[ni.number - 1] = 543;
5125
5126 // work around unused variable warnings
5127 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5128 || dynamic_array[ni.number - 1] != 543);
5129
5130 ;
5131 return 0;
5132 }
5133 _ACEOF
5134 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5135 do
5136 CC="$ac_save_CC $ac_arg"
5137 if ac_fn_c_try_compile "$LINENO"; then :
5138 ac_cv_prog_cc_c99=$ac_arg
5139 fi
5140 rm -f core conftest.err conftest.$ac_objext
5141 test "x$ac_cv_prog_cc_c99" != "xno" && break
5142 done
5143 rm -f conftest.$ac_ext
5144 CC=$ac_save_CC
5145
5146 fi
5147 # AC_CACHE_VAL
5148 case "x$ac_cv_prog_cc_c99" in
5149 x)
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5151 $as_echo "none needed" >&6; } ;;
5152 xno)
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5154 $as_echo "unsupported" >&6; } ;;
5155 *)
5156 CC="$CC $ac_cv_prog_cc_c99"
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5158 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5159 esac
5160 if test "x$ac_cv_prog_cc_c99" != xno; then :
5161
5162 fi
5163
5164
5165 ac_ext=cpp
5166 ac_cpp='$CXXCPP $CPPFLAGS'
5167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5170 if test -z "$CXX"; then
5171 if test -n "$CCC"; then
5172 CXX=$CCC
5173 else
5174 if test -n "$ac_tool_prefix"; then
5175 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5176 do
5177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if ${ac_cv_prog_CXX+:} false; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 if test -n "$CXX"; then
5185 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5186 else
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5189 do
5190 IFS=$as_save_IFS
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 break 2
5197 fi
5198 done
5199 done
5200 IFS=$as_save_IFS
5201
5202 fi
5203 fi
5204 CXX=$ac_cv_prog_CXX
5205 if test -n "$CXX"; then
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5207 $as_echo "$CXX" >&6; }
5208 else
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210 $as_echo "no" >&6; }
5211 fi
5212
5213
5214 test -n "$CXX" && break
5215 done
5216 fi
5217 if test -z "$CXX"; then
5218 ac_ct_CXX=$CXX
5219 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5220 do
5221 # Extract the first word of "$ac_prog", so it can be a program name with args.
5222 set dummy $ac_prog; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 if test -n "$ac_ct_CXX"; then
5229 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_ac_ct_CXX="$ac_prog"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242 done
5243 done
5244 IFS=$as_save_IFS
5245
5246 fi
5247 fi
5248 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5249 if test -n "$ac_ct_CXX"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5251 $as_echo "$ac_ct_CXX" >&6; }
5252 else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5255 fi
5256
5257
5258 test -n "$ac_ct_CXX" && break
5259 done
5260
5261 if test "x$ac_ct_CXX" = x; then
5262 CXX="g++"
5263 else
5264 case $cross_compiling:$ac_tool_warned in
5265 yes:)
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5268 ac_tool_warned=yes ;;
5269 esac
5270 CXX=$ac_ct_CXX
5271 fi
5272 fi
5273
5274 fi
5275 fi
5276 # Provide some information about the compiler.
5277 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5278 set X $ac_compile
5279 ac_compiler=$2
5280 for ac_option in --version -v -V -qversion; do
5281 { { ac_try="$ac_compiler $ac_option >&5"
5282 case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285 esac
5286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5287 $as_echo "$ac_try_echo"; } >&5
5288 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5289 ac_status=$?
5290 if test -s conftest.err; then
5291 sed '10a\
5292 ... rest of stderr output deleted ...
5293 10q' conftest.err >conftest.er1
5294 cat conftest.er1 >&5
5295 fi
5296 rm -f conftest.er1 conftest.err
5297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5298 test $ac_status = 0; }
5299 done
5300
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5302 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5303 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5308
5309 int
5310 main ()
5311 {
5312 #ifndef __GNUC__
5313 choke me
5314 #endif
5315
5316 ;
5317 return 0;
5318 }
5319 _ACEOF
5320 if ac_fn_cxx_try_compile "$LINENO"; then :
5321 ac_compiler_gnu=yes
5322 else
5323 ac_compiler_gnu=no
5324 fi
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5327
5328 fi
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5330 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5331 if test $ac_compiler_gnu = yes; then
5332 GXX=yes
5333 else
5334 GXX=
5335 fi
5336 ac_test_CXXFLAGS=${CXXFLAGS+set}
5337 ac_save_CXXFLAGS=$CXXFLAGS
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5339 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5340 if ${ac_cv_prog_cxx_g+:} false; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5344 ac_cxx_werror_flag=yes
5345 ac_cv_prog_cxx_g=no
5346 CXXFLAGS="-g"
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349
5350 int
5351 main ()
5352 {
5353
5354 ;
5355 return 0;
5356 }
5357 _ACEOF
5358 if ac_fn_cxx_try_compile "$LINENO"; then :
5359 ac_cv_prog_cxx_g=yes
5360 else
5361 CXXFLAGS=""
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364
5365 int
5366 main ()
5367 {
5368
5369 ;
5370 return 0;
5371 }
5372 _ACEOF
5373 if ac_fn_cxx_try_compile "$LINENO"; then :
5374
5375 else
5376 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5377 CXXFLAGS="-g"
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5380
5381 int
5382 main ()
5383 {
5384
5385 ;
5386 return 0;
5387 }
5388 _ACEOF
5389 if ac_fn_cxx_try_compile "$LINENO"; then :
5390 ac_cv_prog_cxx_g=yes
5391 fi
5392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5393 fi
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 fi
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5398 fi
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5400 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5401 if test "$ac_test_CXXFLAGS" = set; then
5402 CXXFLAGS=$ac_save_CXXFLAGS
5403 elif test $ac_cv_prog_cxx_g = yes; then
5404 if test "$GXX" = yes; then
5405 CXXFLAGS="-g -O2"
5406 else
5407 CXXFLAGS="-g"
5408 fi
5409 else
5410 if test "$GXX" = yes; then
5411 CXXFLAGS="-O2"
5412 else
5413 CXXFLAGS=
5414 fi
5415 fi
5416 ac_ext=c
5417 ac_cpp='$CPP $CPPFLAGS'
5418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5421
5422
5423 # We must set the default linker to the linker used by gcc for the correct
5424 # operation of libtool. If LD is not defined and we are using gcc, try to
5425 # set the LD default to the ld used by gcc.
5426 if test -z "$LD"; then
5427 if test "$GCC" = yes; then
5428 case $build in
5429 *-*-mingw*)
5430 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5431 *)
5432 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5433 esac
5434 case $gcc_prog_ld in
5435 # Accept absolute paths.
5436 [\\/]* | [A-Za-z]:[\\/]*)
5437 LD="$gcc_prog_ld" ;;
5438 esac
5439 fi
5440 fi
5441
5442 # Check whether -static-libstdc++ -static-libgcc is supported.
5443 have_static_libs=no
5444 if test "$GCC" = yes; then
5445 saved_LDFLAGS="$LDFLAGS"
5446
5447 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5449 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5450 ac_ext=cpp
5451 ac_cpp='$CXXCPP $CPPFLAGS'
5452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5455
5456
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5459
5460 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5461 #error -static-libstdc++ not implemented
5462 #endif
5463 int main() {}
5464 _ACEOF
5465 if ac_fn_cxx_try_link "$LINENO"; then :
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5467 $as_echo "yes" >&6; }; have_static_libs=yes
5468 else
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5471 fi
5472 rm -f core conftest.err conftest.$ac_objext \
5473 conftest$ac_exeext conftest.$ac_ext
5474 ac_ext=c
5475 ac_cpp='$CPP $CPPFLAGS'
5476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5479
5480
5481 LDFLAGS="$saved_LDFLAGS"
5482 fi
5483
5484
5485
5486
5487 if test -n "$ac_tool_prefix"; then
5488 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5489 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491 $as_echo_n "checking for $ac_word... " >&6; }
5492 if ${ac_cv_prog_GNATBIND+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 if test -n "$GNATBIND"; then
5496 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5497 else
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5500 do
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 break 2
5508 fi
5509 done
5510 done
5511 IFS=$as_save_IFS
5512
5513 fi
5514 fi
5515 GNATBIND=$ac_cv_prog_GNATBIND
5516 if test -n "$GNATBIND"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5518 $as_echo "$GNATBIND" >&6; }
5519 else
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 $as_echo "no" >&6; }
5522 fi
5523
5524
5525 fi
5526 if test -z "$ac_cv_prog_GNATBIND"; then
5527 ac_ct_GNATBIND=$GNATBIND
5528 # Extract the first word of "gnatbind", so it can be a program name with args.
5529 set dummy gnatbind; ac_word=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 if test -n "$ac_ct_GNATBIND"; then
5536 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5540 do
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 break 2
5548 fi
5549 done
5550 done
5551 IFS=$as_save_IFS
5552
5553 fi
5554 fi
5555 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5556 if test -n "$ac_ct_GNATBIND"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5558 $as_echo "$ac_ct_GNATBIND" >&6; }
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5562 fi
5563
5564 if test "x$ac_ct_GNATBIND" = x; then
5565 GNATBIND="no"
5566 else
5567 case $cross_compiling:$ac_tool_warned in
5568 yes:)
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5571 ac_tool_warned=yes ;;
5572 esac
5573 GNATBIND=$ac_ct_GNATBIND
5574 fi
5575 else
5576 GNATBIND="$ac_cv_prog_GNATBIND"
5577 fi
5578
5579 if test -n "$ac_tool_prefix"; then
5580 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5581 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if ${ac_cv_prog_GNATMAKE+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 if test -n "$GNATMAKE"; then
5588 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5589 else
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5592 do
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 break 2
5600 fi
5601 done
5602 done
5603 IFS=$as_save_IFS
5604
5605 fi
5606 fi
5607 GNATMAKE=$ac_cv_prog_GNATMAKE
5608 if test -n "$GNATMAKE"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5610 $as_echo "$GNATMAKE" >&6; }
5611 else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5614 fi
5615
5616
5617 fi
5618 if test -z "$ac_cv_prog_GNATMAKE"; then
5619 ac_ct_GNATMAKE=$GNATMAKE
5620 # Extract the first word of "gnatmake", so it can be a program name with args.
5621 set dummy gnatmake; ac_word=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5627 if test -n "$ac_ct_GNATMAKE"; then
5628 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5640 fi
5641 done
5642 done
5643 IFS=$as_save_IFS
5644
5645 fi
5646 fi
5647 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5648 if test -n "$ac_ct_GNATMAKE"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5650 $as_echo "$ac_ct_GNATMAKE" >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5654 fi
5655
5656 if test "x$ac_ct_GNATMAKE" = x; then
5657 GNATMAKE="no"
5658 else
5659 case $cross_compiling:$ac_tool_warned in
5660 yes:)
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5663 ac_tool_warned=yes ;;
5664 esac
5665 GNATMAKE=$ac_ct_GNATMAKE
5666 fi
5667 else
5668 GNATMAKE="$ac_cv_prog_GNATMAKE"
5669 fi
5670
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5672 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5673 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 cat >conftest.adb <<EOF
5677 pragma Warnings (Off);
5678 with System.CRTL;
5679 pragma Warnings (On);
5680 use type System.CRTL.int64;
5681 procedure conftest is begin null; end conftest;
5682 EOF
5683 acx_cv_cc_gcc_supports_ada=no
5684 # There is a bug in old released versions of GCC which causes the
5685 # driver to exit successfully when the appropriate language module
5686 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5687 # Therefore we must check for the error message as well as an
5688 # unsuccessful exit.
5689 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5690 # given a .adb file, but produce no object file. So we must check
5691 # if an object file was really produced to guard against this.
5692 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5693 if test x"$errors" = x && test -f conftest.$ac_objext; then
5694 acx_cv_cc_gcc_supports_ada=yes
5695 fi
5696 rm -f conftest.*
5697 fi
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5699 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5700
5701 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5702 have_gnat=yes
5703 else
5704 have_gnat=no
5705 fi
5706
5707
5708
5709 if test -n "$ac_tool_prefix"; then
5710 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5711 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if ${ac_cv_prog_GDC+:} false; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 if test -n "$GDC"; then
5718 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5719 else
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 for as_dir in $PATH
5722 do
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 break 2
5730 fi
5731 done
5732 done
5733 IFS=$as_save_IFS
5734
5735 fi
5736 fi
5737 GDC=$ac_cv_prog_GDC
5738 if test -n "$GDC"; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5740 $as_echo "$GDC" >&6; }
5741 else
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 $as_echo "no" >&6; }
5744 fi
5745
5746
5747 fi
5748 if test -z "$ac_cv_prog_GDC"; then
5749 ac_ct_GDC=$GDC
5750 # Extract the first word of "gdc", so it can be a program name with args.
5751 set dummy gdc; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 if test -n "$ac_ct_GDC"; then
5758 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5759 else
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5762 do
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5767 ac_cv_prog_ac_ct_GDC="gdc"
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5770 fi
5771 done
5772 done
5773 IFS=$as_save_IFS
5774
5775 fi
5776 fi
5777 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5778 if test -n "$ac_ct_GDC"; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5780 $as_echo "$ac_ct_GDC" >&6; }
5781 else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5784 fi
5785
5786 if test "x$ac_ct_GDC" = x; then
5787 GDC="no"
5788 else
5789 case $cross_compiling:$ac_tool_warned in
5790 yes:)
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5793 ac_tool_warned=yes ;;
5794 esac
5795 GDC=$ac_ct_GDC
5796 fi
5797 else
5798 GDC="$ac_cv_prog_GDC"
5799 fi
5800
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5802 $as_echo_n "checking whether the D compiler works... " >&6; }
5803 if ${acx_cv_d_compiler_works+:} false; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 cat >conftest.d <<EOF
5807 module conftest; int main() { return 0; }
5808 EOF
5809 acx_cv_d_compiler_works=no
5810 if test "x$GDC" != xno; then
5811 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5812 if test x"$errors" = x && test -f conftest.$ac_objext; then
5813 acx_cv_d_compiler_works=yes
5814 fi
5815 rm -f conftest.*
5816 fi
5817 fi
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5819 $as_echo "$acx_cv_d_compiler_works" >&6; }
5820 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5821 have_gdc=yes
5822 else
5823 have_gdc=no
5824 fi
5825
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5827 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5828 if ${gcc_cv_prog_cmp_skip+:} false; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5831 echo abfoo >t1
5832 echo cdfoo >t2
5833 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5834 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5835 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5836 :
5837 else
5838 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5839 fi
5840 fi
5841 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5842 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5843 :
5844 else
5845 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5846 fi
5847 fi
5848 rm t1 t2
5849
5850 fi
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5852 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5853 do_compare="$gcc_cv_prog_cmp_skip"
5854
5855
5856
5857 # Check whether --enable-bootstrap was given.
5858 if test "${enable_bootstrap+set}" = set; then :
5859 enableval=$enable_bootstrap;
5860 else
5861 enable_bootstrap=default
5862 fi
5863
5864
5865 # Issue errors and warnings for invalid/strange bootstrap combinations.
5866 if test -r $srcdir/gcc/configure; then
5867 have_compiler=yes
5868 else
5869 have_compiler=no
5870 fi
5871
5872 case "$have_compiler:$host:$target:$enable_bootstrap" in
5873 *:*:*:no) ;;
5874
5875 # Default behavior. Enable bootstrap if we have a compiler
5876 # and we are in a native configuration.
5877 yes:$build:$build:default)
5878 enable_bootstrap=yes ;;
5879
5880 *:*:*:default)
5881 enable_bootstrap=no ;;
5882
5883 # We have a compiler and we are in a native configuration, bootstrap is ok
5884 yes:$build:$build:yes)
5885 ;;
5886
5887 # Other configurations, but we have a compiler. Assume the user knows
5888 # what he's doing.
5889 yes:*:*:yes)
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5891 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5892 ;;
5893
5894 # No compiler: if they passed --enable-bootstrap explicitly, fail
5895 no:*:*:yes)
5896 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5897
5898 # Fail if wrong command line
5899 *)
5900 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5901 ;;
5902 esac
5903
5904 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5905 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5906 # require C++11 (or higher).
5907 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5908 CXX="$CXX -std=c++11"
5909 elif test "$have_compiler" = yes; then
5910 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5911 ac_ext=cpp
5912 ac_cpp='$CXXCPP $CPPFLAGS'
5913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5916 ac_success=no
5917
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5919 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5920 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925
5926
5927 // If the compiler admits that it is not ready for C++11, why torture it?
5928 // Hopefully, this will speed up the test.
5929
5930 #ifndef __cplusplus
5931
5932 #error "This is not a C++ compiler"
5933
5934 #elif __cplusplus < 201103L
5935
5936 #error "This is not a C++11 compiler"
5937
5938 #else
5939
5940 namespace cxx11
5941 {
5942
5943 namespace test_static_assert
5944 {
5945
5946 template <typename T>
5947 struct check
5948 {
5949 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5950 };
5951
5952 }
5953
5954 namespace test_final_override
5955 {
5956
5957 struct Base
5958 {
5959 virtual ~Base() {}
5960 virtual void f() {}
5961 };
5962
5963 struct Derived : public Base
5964 {
5965 virtual ~Derived() override {}
5966 virtual void f() override {}
5967 };
5968
5969 }
5970
5971 namespace test_double_right_angle_brackets
5972 {
5973
5974 template < typename T >
5975 struct check {};
5976
5977 typedef check<void> single_type;
5978 typedef check<check<void>> double_type;
5979 typedef check<check<check<void>>> triple_type;
5980 typedef check<check<check<check<void>>>> quadruple_type;
5981
5982 }
5983
5984 namespace test_decltype
5985 {
5986
5987 int
5988 f()
5989 {
5990 int a = 1;
5991 decltype(a) b = 2;
5992 return a + b;
5993 }
5994
5995 }
5996
5997 namespace test_type_deduction
5998 {
5999
6000 template < typename T1, typename T2 >
6001 struct is_same
6002 {
6003 static const bool value = false;
6004 };
6005
6006 template < typename T >
6007 struct is_same<T, T>
6008 {
6009 static const bool value = true;
6010 };
6011
6012 template < typename T1, typename T2 >
6013 auto
6014 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6015 {
6016 return a1 + a2;
6017 }
6018
6019 int
6020 test(const int c, volatile int v)
6021 {
6022 static_assert(is_same<int, decltype(0)>::value == true, "");
6023 static_assert(is_same<int, decltype(c)>::value == false, "");
6024 static_assert(is_same<int, decltype(v)>::value == false, "");
6025 auto ac = c;
6026 auto av = v;
6027 auto sumi = ac + av + 'x';
6028 auto sumf = ac + av + 1.0;
6029 static_assert(is_same<int, decltype(ac)>::value == true, "");
6030 static_assert(is_same<int, decltype(av)>::value == true, "");
6031 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6032 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6033 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6034 return (sumf > 0.0) ? sumi : add(c, v);
6035 }
6036
6037 }
6038
6039 namespace test_noexcept
6040 {
6041
6042 int f() { return 0; }
6043 int g() noexcept { return 0; }
6044
6045 static_assert(noexcept(f()) == false, "");
6046 static_assert(noexcept(g()) == true, "");
6047
6048 }
6049
6050 namespace test_constexpr
6051 {
6052
6053 template < typename CharT >
6054 unsigned long constexpr
6055 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6056 {
6057 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6058 }
6059
6060 template < typename CharT >
6061 unsigned long constexpr
6062 strlen_c(const CharT *const s) noexcept
6063 {
6064 return strlen_c_r(s, 0UL);
6065 }
6066
6067 static_assert(strlen_c("") == 0UL, "");
6068 static_assert(strlen_c("1") == 1UL, "");
6069 static_assert(strlen_c("example") == 7UL, "");
6070 static_assert(strlen_c("another\0example") == 7UL, "");
6071
6072 }
6073
6074 namespace test_rvalue_references
6075 {
6076
6077 template < int N >
6078 struct answer
6079 {
6080 static constexpr int value = N;
6081 };
6082
6083 answer<1> f(int&) { return answer<1>(); }
6084 answer<2> f(const int&) { return answer<2>(); }
6085 answer<3> f(int&&) { return answer<3>(); }
6086
6087 void
6088 test()
6089 {
6090 int i = 0;
6091 const int c = 0;
6092 static_assert(decltype(f(i))::value == 1, "");
6093 static_assert(decltype(f(c))::value == 2, "");
6094 static_assert(decltype(f(0))::value == 3, "");
6095 }
6096
6097 }
6098
6099 namespace test_uniform_initialization
6100 {
6101
6102 struct test
6103 {
6104 static const int zero {};
6105 static const int one {1};
6106 };
6107
6108 static_assert(test::zero == 0, "");
6109 static_assert(test::one == 1, "");
6110
6111 }
6112
6113 namespace test_lambdas
6114 {
6115
6116 void
6117 test1()
6118 {
6119 auto lambda1 = [](){};
6120 auto lambda2 = lambda1;
6121 lambda1();
6122 lambda2();
6123 }
6124
6125 int
6126 test2()
6127 {
6128 auto a = [](int i, int j){ return i + j; }(1, 2);
6129 auto b = []() -> int { return '0'; }();
6130 auto c = [=](){ return a + b; }();
6131 auto d = [&](){ return c; }();
6132 auto e = [a, &b](int x) mutable {
6133 const auto identity = [](int y){ return y; };
6134 for (auto i = 0; i < a; ++i)
6135 a += b--;
6136 return x + identity(a + b);
6137 }(0);
6138 return a + b + c + d + e;
6139 }
6140
6141 int
6142 test3()
6143 {
6144 const auto nullary = [](){ return 0; };
6145 const auto unary = [](int x){ return x; };
6146 using nullary_t = decltype(nullary);
6147 using unary_t = decltype(unary);
6148 const auto higher1st = [](nullary_t f){ return f(); };
6149 const auto higher2nd = [unary](nullary_t f1){
6150 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6151 };
6152 return higher1st(nullary) + higher2nd(nullary)(unary);
6153 }
6154
6155 }
6156
6157 namespace test_variadic_templates
6158 {
6159
6160 template <int...>
6161 struct sum;
6162
6163 template <int N0, int... N1toN>
6164 struct sum<N0, N1toN...>
6165 {
6166 static constexpr auto value = N0 + sum<N1toN...>::value;
6167 };
6168
6169 template <>
6170 struct sum<>
6171 {
6172 static constexpr auto value = 0;
6173 };
6174
6175 static_assert(sum<>::value == 0, "");
6176 static_assert(sum<1>::value == 1, "");
6177 static_assert(sum<23>::value == 23, "");
6178 static_assert(sum<1, 2>::value == 3, "");
6179 static_assert(sum<5, 5, 11>::value == 21, "");
6180 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6181
6182 }
6183
6184 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6185 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6186 // because of this.
6187 namespace test_template_alias_sfinae
6188 {
6189
6190 struct foo {};
6191
6192 template<typename T>
6193 using member = typename T::member_type;
6194
6195 template<typename T>
6196 void func(...) {}
6197
6198 template<typename T>
6199 void func(member<T>*) {}
6200
6201 void test();
6202
6203 void test() { func<foo>(0); }
6204
6205 }
6206
6207 } // namespace cxx11
6208
6209 #endif // __cplusplus >= 201103L
6210
6211
6212
6213 _ACEOF
6214 if ac_fn_cxx_try_compile "$LINENO"; then :
6215 ax_cv_cxx_compile_cxx11=yes
6216 else
6217 ax_cv_cxx_compile_cxx11=no
6218 fi
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 fi
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6222 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6223 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6224 ac_success=yes
6225 fi
6226
6227 if test x$ac_success = xno; then
6228 for alternative in ${ax_cxx_compile_alternatives}; do
6229 switch="-std=gnu++${alternative}"
6230 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6232 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6233 if eval \${$cachevar+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 ac_save_CXX="$CXX"
6237 CXX="$CXX $switch"
6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6240
6241
6242 // If the compiler admits that it is not ready for C++11, why torture it?
6243 // Hopefully, this will speed up the test.
6244
6245 #ifndef __cplusplus
6246
6247 #error "This is not a C++ compiler"
6248
6249 #elif __cplusplus < 201103L
6250
6251 #error "This is not a C++11 compiler"
6252
6253 #else
6254
6255 namespace cxx11
6256 {
6257
6258 namespace test_static_assert
6259 {
6260
6261 template <typename T>
6262 struct check
6263 {
6264 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6265 };
6266
6267 }
6268
6269 namespace test_final_override
6270 {
6271
6272 struct Base
6273 {
6274 virtual ~Base() {}
6275 virtual void f() {}
6276 };
6277
6278 struct Derived : public Base
6279 {
6280 virtual ~Derived() override {}
6281 virtual void f() override {}
6282 };
6283
6284 }
6285
6286 namespace test_double_right_angle_brackets
6287 {
6288
6289 template < typename T >
6290 struct check {};
6291
6292 typedef check<void> single_type;
6293 typedef check<check<void>> double_type;
6294 typedef check<check<check<void>>> triple_type;
6295 typedef check<check<check<check<void>>>> quadruple_type;
6296
6297 }
6298
6299 namespace test_decltype
6300 {
6301
6302 int
6303 f()
6304 {
6305 int a = 1;
6306 decltype(a) b = 2;
6307 return a + b;
6308 }
6309
6310 }
6311
6312 namespace test_type_deduction
6313 {
6314
6315 template < typename T1, typename T2 >
6316 struct is_same
6317 {
6318 static const bool value = false;
6319 };
6320
6321 template < typename T >
6322 struct is_same<T, T>
6323 {
6324 static const bool value = true;
6325 };
6326
6327 template < typename T1, typename T2 >
6328 auto
6329 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6330 {
6331 return a1 + a2;
6332 }
6333
6334 int
6335 test(const int c, volatile int v)
6336 {
6337 static_assert(is_same<int, decltype(0)>::value == true, "");
6338 static_assert(is_same<int, decltype(c)>::value == false, "");
6339 static_assert(is_same<int, decltype(v)>::value == false, "");
6340 auto ac = c;
6341 auto av = v;
6342 auto sumi = ac + av + 'x';
6343 auto sumf = ac + av + 1.0;
6344 static_assert(is_same<int, decltype(ac)>::value == true, "");
6345 static_assert(is_same<int, decltype(av)>::value == true, "");
6346 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6347 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6348 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6349 return (sumf > 0.0) ? sumi : add(c, v);
6350 }
6351
6352 }
6353
6354 namespace test_noexcept
6355 {
6356
6357 int f() { return 0; }
6358 int g() noexcept { return 0; }
6359
6360 static_assert(noexcept(f()) == false, "");
6361 static_assert(noexcept(g()) == true, "");
6362
6363 }
6364
6365 namespace test_constexpr
6366 {
6367
6368 template < typename CharT >
6369 unsigned long constexpr
6370 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6371 {
6372 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6373 }
6374
6375 template < typename CharT >
6376 unsigned long constexpr
6377 strlen_c(const CharT *const s) noexcept
6378 {
6379 return strlen_c_r(s, 0UL);
6380 }
6381
6382 static_assert(strlen_c("") == 0UL, "");
6383 static_assert(strlen_c("1") == 1UL, "");
6384 static_assert(strlen_c("example") == 7UL, "");
6385 static_assert(strlen_c("another\0example") == 7UL, "");
6386
6387 }
6388
6389 namespace test_rvalue_references
6390 {
6391
6392 template < int N >
6393 struct answer
6394 {
6395 static constexpr int value = N;
6396 };
6397
6398 answer<1> f(int&) { return answer<1>(); }
6399 answer<2> f(const int&) { return answer<2>(); }
6400 answer<3> f(int&&) { return answer<3>(); }
6401
6402 void
6403 test()
6404 {
6405 int i = 0;
6406 const int c = 0;
6407 static_assert(decltype(f(i))::value == 1, "");
6408 static_assert(decltype(f(c))::value == 2, "");
6409 static_assert(decltype(f(0))::value == 3, "");
6410 }
6411
6412 }
6413
6414 namespace test_uniform_initialization
6415 {
6416
6417 struct test
6418 {
6419 static const int zero {};
6420 static const int one {1};
6421 };
6422
6423 static_assert(test::zero == 0, "");
6424 static_assert(test::one == 1, "");
6425
6426 }
6427
6428 namespace test_lambdas
6429 {
6430
6431 void
6432 test1()
6433 {
6434 auto lambda1 = [](){};
6435 auto lambda2 = lambda1;
6436 lambda1();
6437 lambda2();
6438 }
6439
6440 int
6441 test2()
6442 {
6443 auto a = [](int i, int j){ return i + j; }(1, 2);
6444 auto b = []() -> int { return '0'; }();
6445 auto c = [=](){ return a + b; }();
6446 auto d = [&](){ return c; }();
6447 auto e = [a, &b](int x) mutable {
6448 const auto identity = [](int y){ return y; };
6449 for (auto i = 0; i < a; ++i)
6450 a += b--;
6451 return x + identity(a + b);
6452 }(0);
6453 return a + b + c + d + e;
6454 }
6455
6456 int
6457 test3()
6458 {
6459 const auto nullary = [](){ return 0; };
6460 const auto unary = [](int x){ return x; };
6461 using nullary_t = decltype(nullary);
6462 using unary_t = decltype(unary);
6463 const auto higher1st = [](nullary_t f){ return f(); };
6464 const auto higher2nd = [unary](nullary_t f1){
6465 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6466 };
6467 return higher1st(nullary) + higher2nd(nullary)(unary);
6468 }
6469
6470 }
6471
6472 namespace test_variadic_templates
6473 {
6474
6475 template <int...>
6476 struct sum;
6477
6478 template <int N0, int... N1toN>
6479 struct sum<N0, N1toN...>
6480 {
6481 static constexpr auto value = N0 + sum<N1toN...>::value;
6482 };
6483
6484 template <>
6485 struct sum<>
6486 {
6487 static constexpr auto value = 0;
6488 };
6489
6490 static_assert(sum<>::value == 0, "");
6491 static_assert(sum<1>::value == 1, "");
6492 static_assert(sum<23>::value == 23, "");
6493 static_assert(sum<1, 2>::value == 3, "");
6494 static_assert(sum<5, 5, 11>::value == 21, "");
6495 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6496
6497 }
6498
6499 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6500 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6501 // because of this.
6502 namespace test_template_alias_sfinae
6503 {
6504
6505 struct foo {};
6506
6507 template<typename T>
6508 using member = typename T::member_type;
6509
6510 template<typename T>
6511 void func(...) {}
6512
6513 template<typename T>
6514 void func(member<T>*) {}
6515
6516 void test();
6517
6518 void test() { func<foo>(0); }
6519
6520 }
6521
6522 } // namespace cxx11
6523
6524 #endif // __cplusplus >= 201103L
6525
6526
6527
6528 _ACEOF
6529 if ac_fn_cxx_try_compile "$LINENO"; then :
6530 eval $cachevar=yes
6531 else
6532 eval $cachevar=no
6533 fi
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535 CXX="$ac_save_CXX"
6536 fi
6537 eval ac_res=\$$cachevar
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6539 $as_echo "$ac_res" >&6; }
6540 if eval test x\$$cachevar = xyes; then
6541 CXX="$CXX $switch"
6542 if test -n "$CXXCPP" ; then
6543 CXXCPP="$CXXCPP $switch"
6544 fi
6545 ac_success=yes
6546 break
6547 fi
6548 done
6549 fi
6550
6551 if test x$ac_success = xno; then
6552 for alternative in ${ax_cxx_compile_alternatives}; do
6553 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6554 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6556 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6557 if eval \${$cachevar+:} false; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 ac_save_CXX="$CXX"
6561 CXX="$CXX $switch"
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6564
6565
6566 // If the compiler admits that it is not ready for C++11, why torture it?
6567 // Hopefully, this will speed up the test.
6568
6569 #ifndef __cplusplus
6570
6571 #error "This is not a C++ compiler"
6572
6573 #elif __cplusplus < 201103L
6574
6575 #error "This is not a C++11 compiler"
6576
6577 #else
6578
6579 namespace cxx11
6580 {
6581
6582 namespace test_static_assert
6583 {
6584
6585 template <typename T>
6586 struct check
6587 {
6588 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6589 };
6590
6591 }
6592
6593 namespace test_final_override
6594 {
6595
6596 struct Base
6597 {
6598 virtual ~Base() {}
6599 virtual void f() {}
6600 };
6601
6602 struct Derived : public Base
6603 {
6604 virtual ~Derived() override {}
6605 virtual void f() override {}
6606 };
6607
6608 }
6609
6610 namespace test_double_right_angle_brackets
6611 {
6612
6613 template < typename T >
6614 struct check {};
6615
6616 typedef check<void> single_type;
6617 typedef check<check<void>> double_type;
6618 typedef check<check<check<void>>> triple_type;
6619 typedef check<check<check<check<void>>>> quadruple_type;
6620
6621 }
6622
6623 namespace test_decltype
6624 {
6625
6626 int
6627 f()
6628 {
6629 int a = 1;
6630 decltype(a) b = 2;
6631 return a + b;
6632 }
6633
6634 }
6635
6636 namespace test_type_deduction
6637 {
6638
6639 template < typename T1, typename T2 >
6640 struct is_same
6641 {
6642 static const bool value = false;
6643 };
6644
6645 template < typename T >
6646 struct is_same<T, T>
6647 {
6648 static const bool value = true;
6649 };
6650
6651 template < typename T1, typename T2 >
6652 auto
6653 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6654 {
6655 return a1 + a2;
6656 }
6657
6658 int
6659 test(const int c, volatile int v)
6660 {
6661 static_assert(is_same<int, decltype(0)>::value == true, "");
6662 static_assert(is_same<int, decltype(c)>::value == false, "");
6663 static_assert(is_same<int, decltype(v)>::value == false, "");
6664 auto ac = c;
6665 auto av = v;
6666 auto sumi = ac + av + 'x';
6667 auto sumf = ac + av + 1.0;
6668 static_assert(is_same<int, decltype(ac)>::value == true, "");
6669 static_assert(is_same<int, decltype(av)>::value == true, "");
6670 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6671 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6672 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6673 return (sumf > 0.0) ? sumi : add(c, v);
6674 }
6675
6676 }
6677
6678 namespace test_noexcept
6679 {
6680
6681 int f() { return 0; }
6682 int g() noexcept { return 0; }
6683
6684 static_assert(noexcept(f()) == false, "");
6685 static_assert(noexcept(g()) == true, "");
6686
6687 }
6688
6689 namespace test_constexpr
6690 {
6691
6692 template < typename CharT >
6693 unsigned long constexpr
6694 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6695 {
6696 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6697 }
6698
6699 template < typename CharT >
6700 unsigned long constexpr
6701 strlen_c(const CharT *const s) noexcept
6702 {
6703 return strlen_c_r(s, 0UL);
6704 }
6705
6706 static_assert(strlen_c("") == 0UL, "");
6707 static_assert(strlen_c("1") == 1UL, "");
6708 static_assert(strlen_c("example") == 7UL, "");
6709 static_assert(strlen_c("another\0example") == 7UL, "");
6710
6711 }
6712
6713 namespace test_rvalue_references
6714 {
6715
6716 template < int N >
6717 struct answer
6718 {
6719 static constexpr int value = N;
6720 };
6721
6722 answer<1> f(int&) { return answer<1>(); }
6723 answer<2> f(const int&) { return answer<2>(); }
6724 answer<3> f(int&&) { return answer<3>(); }
6725
6726 void
6727 test()
6728 {
6729 int i = 0;
6730 const int c = 0;
6731 static_assert(decltype(f(i))::value == 1, "");
6732 static_assert(decltype(f(c))::value == 2, "");
6733 static_assert(decltype(f(0))::value == 3, "");
6734 }
6735
6736 }
6737
6738 namespace test_uniform_initialization
6739 {
6740
6741 struct test
6742 {
6743 static const int zero {};
6744 static const int one {1};
6745 };
6746
6747 static_assert(test::zero == 0, "");
6748 static_assert(test::one == 1, "");
6749
6750 }
6751
6752 namespace test_lambdas
6753 {
6754
6755 void
6756 test1()
6757 {
6758 auto lambda1 = [](){};
6759 auto lambda2 = lambda1;
6760 lambda1();
6761 lambda2();
6762 }
6763
6764 int
6765 test2()
6766 {
6767 auto a = [](int i, int j){ return i + j; }(1, 2);
6768 auto b = []() -> int { return '0'; }();
6769 auto c = [=](){ return a + b; }();
6770 auto d = [&](){ return c; }();
6771 auto e = [a, &b](int x) mutable {
6772 const auto identity = [](int y){ return y; };
6773 for (auto i = 0; i < a; ++i)
6774 a += b--;
6775 return x + identity(a + b);
6776 }(0);
6777 return a + b + c + d + e;
6778 }
6779
6780 int
6781 test3()
6782 {
6783 const auto nullary = [](){ return 0; };
6784 const auto unary = [](int x){ return x; };
6785 using nullary_t = decltype(nullary);
6786 using unary_t = decltype(unary);
6787 const auto higher1st = [](nullary_t f){ return f(); };
6788 const auto higher2nd = [unary](nullary_t f1){
6789 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6790 };
6791 return higher1st(nullary) + higher2nd(nullary)(unary);
6792 }
6793
6794 }
6795
6796 namespace test_variadic_templates
6797 {
6798
6799 template <int...>
6800 struct sum;
6801
6802 template <int N0, int... N1toN>
6803 struct sum<N0, N1toN...>
6804 {
6805 static constexpr auto value = N0 + sum<N1toN...>::value;
6806 };
6807
6808 template <>
6809 struct sum<>
6810 {
6811 static constexpr auto value = 0;
6812 };
6813
6814 static_assert(sum<>::value == 0, "");
6815 static_assert(sum<1>::value == 1, "");
6816 static_assert(sum<23>::value == 23, "");
6817 static_assert(sum<1, 2>::value == 3, "");
6818 static_assert(sum<5, 5, 11>::value == 21, "");
6819 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6820
6821 }
6822
6823 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6824 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6825 // because of this.
6826 namespace test_template_alias_sfinae
6827 {
6828
6829 struct foo {};
6830
6831 template<typename T>
6832 using member = typename T::member_type;
6833
6834 template<typename T>
6835 void func(...) {}
6836
6837 template<typename T>
6838 void func(member<T>*) {}
6839
6840 void test();
6841
6842 void test() { func<foo>(0); }
6843
6844 }
6845
6846 } // namespace cxx11
6847
6848 #endif // __cplusplus >= 201103L
6849
6850
6851
6852 _ACEOF
6853 if ac_fn_cxx_try_compile "$LINENO"; then :
6854 eval $cachevar=yes
6855 else
6856 eval $cachevar=no
6857 fi
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859 CXX="$ac_save_CXX"
6860 fi
6861 eval ac_res=\$$cachevar
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6863 $as_echo "$ac_res" >&6; }
6864 if eval test x\$$cachevar = xyes; then
6865 CXX="$CXX $switch"
6866 if test -n "$CXXCPP" ; then
6867 CXXCPP="$CXXCPP $switch"
6868 fi
6869 ac_success=yes
6870 break
6871 fi
6872 done
6873 if test x$ac_success = xyes; then
6874 break
6875 fi
6876 done
6877 fi
6878
6879 ac_ext=c
6880 ac_cpp='$CPP $CPPFLAGS'
6881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6884
6885 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6886 if test x$ac_success = xno; then
6887 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6888 fi
6889 fi
6890 if test x$ac_success = xno; then
6891 HAVE_CXX11=0
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6893 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6894 else
6895 HAVE_CXX11=1
6896
6897 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6898
6899 fi
6900
6901
6902
6903 if test "${build}" != "${host}"; then
6904 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6905 ac_ext=cpp
6906 ac_cpp='$CXXCPP $CPPFLAGS'
6907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6910 ac_success=no
6911 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6912 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6913 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6914 CXX="$CXX_FOR_BUILD"
6915 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6916 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6918 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6919 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6924
6925
6926 // If the compiler admits that it is not ready for C++11, why torture it?
6927 // Hopefully, this will speed up the test.
6928
6929 #ifndef __cplusplus
6930
6931 #error "This is not a C++ compiler"
6932
6933 #elif __cplusplus < 201103L
6934
6935 #error "This is not a C++11 compiler"
6936
6937 #else
6938
6939 namespace cxx11
6940 {
6941
6942 namespace test_static_assert
6943 {
6944
6945 template <typename T>
6946 struct check
6947 {
6948 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6949 };
6950
6951 }
6952
6953 namespace test_final_override
6954 {
6955
6956 struct Base
6957 {
6958 virtual ~Base() {}
6959 virtual void f() {}
6960 };
6961
6962 struct Derived : public Base
6963 {
6964 virtual ~Derived() override {}
6965 virtual void f() override {}
6966 };
6967
6968 }
6969
6970 namespace test_double_right_angle_brackets
6971 {
6972
6973 template < typename T >
6974 struct check {};
6975
6976 typedef check<void> single_type;
6977 typedef check<check<void>> double_type;
6978 typedef check<check<check<void>>> triple_type;
6979 typedef check<check<check<check<void>>>> quadruple_type;
6980
6981 }
6982
6983 namespace test_decltype
6984 {
6985
6986 int
6987 f()
6988 {
6989 int a = 1;
6990 decltype(a) b = 2;
6991 return a + b;
6992 }
6993
6994 }
6995
6996 namespace test_type_deduction
6997 {
6998
6999 template < typename T1, typename T2 >
7000 struct is_same
7001 {
7002 static const bool value = false;
7003 };
7004
7005 template < typename T >
7006 struct is_same<T, T>
7007 {
7008 static const bool value = true;
7009 };
7010
7011 template < typename T1, typename T2 >
7012 auto
7013 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7014 {
7015 return a1 + a2;
7016 }
7017
7018 int
7019 test(const int c, volatile int v)
7020 {
7021 static_assert(is_same<int, decltype(0)>::value == true, "");
7022 static_assert(is_same<int, decltype(c)>::value == false, "");
7023 static_assert(is_same<int, decltype(v)>::value == false, "");
7024 auto ac = c;
7025 auto av = v;
7026 auto sumi = ac + av + 'x';
7027 auto sumf = ac + av + 1.0;
7028 static_assert(is_same<int, decltype(ac)>::value == true, "");
7029 static_assert(is_same<int, decltype(av)>::value == true, "");
7030 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7031 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7032 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7033 return (sumf > 0.0) ? sumi : add(c, v);
7034 }
7035
7036 }
7037
7038 namespace test_noexcept
7039 {
7040
7041 int f() { return 0; }
7042 int g() noexcept { return 0; }
7043
7044 static_assert(noexcept(f()) == false, "");
7045 static_assert(noexcept(g()) == true, "");
7046
7047 }
7048
7049 namespace test_constexpr
7050 {
7051
7052 template < typename CharT >
7053 unsigned long constexpr
7054 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7055 {
7056 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7057 }
7058
7059 template < typename CharT >
7060 unsigned long constexpr
7061 strlen_c(const CharT *const s) noexcept
7062 {
7063 return strlen_c_r(s, 0UL);
7064 }
7065
7066 static_assert(strlen_c("") == 0UL, "");
7067 static_assert(strlen_c("1") == 1UL, "");
7068 static_assert(strlen_c("example") == 7UL, "");
7069 static_assert(strlen_c("another\0example") == 7UL, "");
7070
7071 }
7072
7073 namespace test_rvalue_references
7074 {
7075
7076 template < int N >
7077 struct answer
7078 {
7079 static constexpr int value = N;
7080 };
7081
7082 answer<1> f(int&) { return answer<1>(); }
7083 answer<2> f(const int&) { return answer<2>(); }
7084 answer<3> f(int&&) { return answer<3>(); }
7085
7086 void
7087 test()
7088 {
7089 int i = 0;
7090 const int c = 0;
7091 static_assert(decltype(f(i))::value == 1, "");
7092 static_assert(decltype(f(c))::value == 2, "");
7093 static_assert(decltype(f(0))::value == 3, "");
7094 }
7095
7096 }
7097
7098 namespace test_uniform_initialization
7099 {
7100
7101 struct test
7102 {
7103 static const int zero {};
7104 static const int one {1};
7105 };
7106
7107 static_assert(test::zero == 0, "");
7108 static_assert(test::one == 1, "");
7109
7110 }
7111
7112 namespace test_lambdas
7113 {
7114
7115 void
7116 test1()
7117 {
7118 auto lambda1 = [](){};
7119 auto lambda2 = lambda1;
7120 lambda1();
7121 lambda2();
7122 }
7123
7124 int
7125 test2()
7126 {
7127 auto a = [](int i, int j){ return i + j; }(1, 2);
7128 auto b = []() -> int { return '0'; }();
7129 auto c = [=](){ return a + b; }();
7130 auto d = [&](){ return c; }();
7131 auto e = [a, &b](int x) mutable {
7132 const auto identity = [](int y){ return y; };
7133 for (auto i = 0; i < a; ++i)
7134 a += b--;
7135 return x + identity(a + b);
7136 }(0);
7137 return a + b + c + d + e;
7138 }
7139
7140 int
7141 test3()
7142 {
7143 const auto nullary = [](){ return 0; };
7144 const auto unary = [](int x){ return x; };
7145 using nullary_t = decltype(nullary);
7146 using unary_t = decltype(unary);
7147 const auto higher1st = [](nullary_t f){ return f(); };
7148 const auto higher2nd = [unary](nullary_t f1){
7149 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7150 };
7151 return higher1st(nullary) + higher2nd(nullary)(unary);
7152 }
7153
7154 }
7155
7156 namespace test_variadic_templates
7157 {
7158
7159 template <int...>
7160 struct sum;
7161
7162 template <int N0, int... N1toN>
7163 struct sum<N0, N1toN...>
7164 {
7165 static constexpr auto value = N0 + sum<N1toN...>::value;
7166 };
7167
7168 template <>
7169 struct sum<>
7170 {
7171 static constexpr auto value = 0;
7172 };
7173
7174 static_assert(sum<>::value == 0, "");
7175 static_assert(sum<1>::value == 1, "");
7176 static_assert(sum<23>::value == 23, "");
7177 static_assert(sum<1, 2>::value == 3, "");
7178 static_assert(sum<5, 5, 11>::value == 21, "");
7179 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7180
7181 }
7182
7183 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7184 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7185 // because of this.
7186 namespace test_template_alias_sfinae
7187 {
7188
7189 struct foo {};
7190
7191 template<typename T>
7192 using member = typename T::member_type;
7193
7194 template<typename T>
7195 void func(...) {}
7196
7197 template<typename T>
7198 void func(member<T>*) {}
7199
7200 void test();
7201
7202 void test() { func<foo>(0); }
7203
7204 }
7205
7206 } // namespace cxx11
7207
7208 #endif // __cplusplus >= 201103L
7209
7210
7211
7212 _ACEOF
7213 if ac_fn_cxx_try_compile "$LINENO"; then :
7214 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7215 else
7216 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7217 fi
7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 fi
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7221 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7222 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7223 ac_success=yes
7224 fi
7225
7226 if test x$ac_success = xno; then
7227 for alternative in ${ax_cxx_compile_alternatives}; do
7228 switch="-std=gnu++${alternative}"
7229 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7231 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7232 if eval \${$cachevar+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 ac_save_CXX="$CXX"
7236 CXX="$CXX $switch"
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7239
7240
7241 // If the compiler admits that it is not ready for C++11, why torture it?
7242 // Hopefully, this will speed up the test.
7243
7244 #ifndef __cplusplus
7245
7246 #error "This is not a C++ compiler"
7247
7248 #elif __cplusplus < 201103L
7249
7250 #error "This is not a C++11 compiler"
7251
7252 #else
7253
7254 namespace cxx11
7255 {
7256
7257 namespace test_static_assert
7258 {
7259
7260 template <typename T>
7261 struct check
7262 {
7263 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7264 };
7265
7266 }
7267
7268 namespace test_final_override
7269 {
7270
7271 struct Base
7272 {
7273 virtual ~Base() {}
7274 virtual void f() {}
7275 };
7276
7277 struct Derived : public Base
7278 {
7279 virtual ~Derived() override {}
7280 virtual void f() override {}
7281 };
7282
7283 }
7284
7285 namespace test_double_right_angle_brackets
7286 {
7287
7288 template < typename T >
7289 struct check {};
7290
7291 typedef check<void> single_type;
7292 typedef check<check<void>> double_type;
7293 typedef check<check<check<void>>> triple_type;
7294 typedef check<check<check<check<void>>>> quadruple_type;
7295
7296 }
7297
7298 namespace test_decltype
7299 {
7300
7301 int
7302 f()
7303 {
7304 int a = 1;
7305 decltype(a) b = 2;
7306 return a + b;
7307 }
7308
7309 }
7310
7311 namespace test_type_deduction
7312 {
7313
7314 template < typename T1, typename T2 >
7315 struct is_same
7316 {
7317 static const bool value = false;
7318 };
7319
7320 template < typename T >
7321 struct is_same<T, T>
7322 {
7323 static const bool value = true;
7324 };
7325
7326 template < typename T1, typename T2 >
7327 auto
7328 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7329 {
7330 return a1 + a2;
7331 }
7332
7333 int
7334 test(const int c, volatile int v)
7335 {
7336 static_assert(is_same<int, decltype(0)>::value == true, "");
7337 static_assert(is_same<int, decltype(c)>::value == false, "");
7338 static_assert(is_same<int, decltype(v)>::value == false, "");
7339 auto ac = c;
7340 auto av = v;
7341 auto sumi = ac + av + 'x';
7342 auto sumf = ac + av + 1.0;
7343 static_assert(is_same<int, decltype(ac)>::value == true, "");
7344 static_assert(is_same<int, decltype(av)>::value == true, "");
7345 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7346 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7347 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7348 return (sumf > 0.0) ? sumi : add(c, v);
7349 }
7350
7351 }
7352
7353 namespace test_noexcept
7354 {
7355
7356 int f() { return 0; }
7357 int g() noexcept { return 0; }
7358
7359 static_assert(noexcept(f()) == false, "");
7360 static_assert(noexcept(g()) == true, "");
7361
7362 }
7363
7364 namespace test_constexpr
7365 {
7366
7367 template < typename CharT >
7368 unsigned long constexpr
7369 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7370 {
7371 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7372 }
7373
7374 template < typename CharT >
7375 unsigned long constexpr
7376 strlen_c(const CharT *const s) noexcept
7377 {
7378 return strlen_c_r(s, 0UL);
7379 }
7380
7381 static_assert(strlen_c("") == 0UL, "");
7382 static_assert(strlen_c("1") == 1UL, "");
7383 static_assert(strlen_c("example") == 7UL, "");
7384 static_assert(strlen_c("another\0example") == 7UL, "");
7385
7386 }
7387
7388 namespace test_rvalue_references
7389 {
7390
7391 template < int N >
7392 struct answer
7393 {
7394 static constexpr int value = N;
7395 };
7396
7397 answer<1> f(int&) { return answer<1>(); }
7398 answer<2> f(const int&) { return answer<2>(); }
7399 answer<3> f(int&&) { return answer<3>(); }
7400
7401 void
7402 test()
7403 {
7404 int i = 0;
7405 const int c = 0;
7406 static_assert(decltype(f(i))::value == 1, "");
7407 static_assert(decltype(f(c))::value == 2, "");
7408 static_assert(decltype(f(0))::value == 3, "");
7409 }
7410
7411 }
7412
7413 namespace test_uniform_initialization
7414 {
7415
7416 struct test
7417 {
7418 static const int zero {};
7419 static const int one {1};
7420 };
7421
7422 static_assert(test::zero == 0, "");
7423 static_assert(test::one == 1, "");
7424
7425 }
7426
7427 namespace test_lambdas
7428 {
7429
7430 void
7431 test1()
7432 {
7433 auto lambda1 = [](){};
7434 auto lambda2 = lambda1;
7435 lambda1();
7436 lambda2();
7437 }
7438
7439 int
7440 test2()
7441 {
7442 auto a = [](int i, int j){ return i + j; }(1, 2);
7443 auto b = []() -> int { return '0'; }();
7444 auto c = [=](){ return a + b; }();
7445 auto d = [&](){ return c; }();
7446 auto e = [a, &b](int x) mutable {
7447 const auto identity = [](int y){ return y; };
7448 for (auto i = 0; i < a; ++i)
7449 a += b--;
7450 return x + identity(a + b);
7451 }(0);
7452 return a + b + c + d + e;
7453 }
7454
7455 int
7456 test3()
7457 {
7458 const auto nullary = [](){ return 0; };
7459 const auto unary = [](int x){ return x; };
7460 using nullary_t = decltype(nullary);
7461 using unary_t = decltype(unary);
7462 const auto higher1st = [](nullary_t f){ return f(); };
7463 const auto higher2nd = [unary](nullary_t f1){
7464 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7465 };
7466 return higher1st(nullary) + higher2nd(nullary)(unary);
7467 }
7468
7469 }
7470
7471 namespace test_variadic_templates
7472 {
7473
7474 template <int...>
7475 struct sum;
7476
7477 template <int N0, int... N1toN>
7478 struct sum<N0, N1toN...>
7479 {
7480 static constexpr auto value = N0 + sum<N1toN...>::value;
7481 };
7482
7483 template <>
7484 struct sum<>
7485 {
7486 static constexpr auto value = 0;
7487 };
7488
7489 static_assert(sum<>::value == 0, "");
7490 static_assert(sum<1>::value == 1, "");
7491 static_assert(sum<23>::value == 23, "");
7492 static_assert(sum<1, 2>::value == 3, "");
7493 static_assert(sum<5, 5, 11>::value == 21, "");
7494 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7495
7496 }
7497
7498 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7499 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7500 // because of this.
7501 namespace test_template_alias_sfinae
7502 {
7503
7504 struct foo {};
7505
7506 template<typename T>
7507 using member = typename T::member_type;
7508
7509 template<typename T>
7510 void func(...) {}
7511
7512 template<typename T>
7513 void func(member<T>*) {}
7514
7515 void test();
7516
7517 void test() { func<foo>(0); }
7518
7519 }
7520
7521 } // namespace cxx11
7522
7523 #endif // __cplusplus >= 201103L
7524
7525
7526
7527 _ACEOF
7528 if ac_fn_cxx_try_compile "$LINENO"; then :
7529 eval $cachevar=yes
7530 else
7531 eval $cachevar=no
7532 fi
7533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7534 CXX="$ac_save_CXX"
7535 fi
7536 eval ac_res=\$$cachevar
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7538 $as_echo "$ac_res" >&6; }
7539 if eval test x\$$cachevar = xyes; then
7540 CXX="$CXX $switch"
7541 if test -n "$CXXCPP" ; then
7542 CXXCPP="$CXXCPP $switch"
7543 fi
7544 ac_success=yes
7545 break
7546 fi
7547 done
7548 fi
7549
7550 if test x$ac_success = xno; then
7551 for alternative in ${ax_cxx_compile_alternatives}; do
7552 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7553 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7555 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7556 if eval \${$cachevar+:} false; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 ac_save_CXX="$CXX"
7560 CXX="$CXX $switch"
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7563
7564
7565 // If the compiler admits that it is not ready for C++11, why torture it?
7566 // Hopefully, this will speed up the test.
7567
7568 #ifndef __cplusplus
7569
7570 #error "This is not a C++ compiler"
7571
7572 #elif __cplusplus < 201103L
7573
7574 #error "This is not a C++11 compiler"
7575
7576 #else
7577
7578 namespace cxx11
7579 {
7580
7581 namespace test_static_assert
7582 {
7583
7584 template <typename T>
7585 struct check
7586 {
7587 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7588 };
7589
7590 }
7591
7592 namespace test_final_override
7593 {
7594
7595 struct Base
7596 {
7597 virtual ~Base() {}
7598 virtual void f() {}
7599 };
7600
7601 struct Derived : public Base
7602 {
7603 virtual ~Derived() override {}
7604 virtual void f() override {}
7605 };
7606
7607 }
7608
7609 namespace test_double_right_angle_brackets
7610 {
7611
7612 template < typename T >
7613 struct check {};
7614
7615 typedef check<void> single_type;
7616 typedef check<check<void>> double_type;
7617 typedef check<check<check<void>>> triple_type;
7618 typedef check<check<check<check<void>>>> quadruple_type;
7619
7620 }
7621
7622 namespace test_decltype
7623 {
7624
7625 int
7626 f()
7627 {
7628 int a = 1;
7629 decltype(a) b = 2;
7630 return a + b;
7631 }
7632
7633 }
7634
7635 namespace test_type_deduction
7636 {
7637
7638 template < typename T1, typename T2 >
7639 struct is_same
7640 {
7641 static const bool value = false;
7642 };
7643
7644 template < typename T >
7645 struct is_same<T, T>
7646 {
7647 static const bool value = true;
7648 };
7649
7650 template < typename T1, typename T2 >
7651 auto
7652 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7653 {
7654 return a1 + a2;
7655 }
7656
7657 int
7658 test(const int c, volatile int v)
7659 {
7660 static_assert(is_same<int, decltype(0)>::value == true, "");
7661 static_assert(is_same<int, decltype(c)>::value == false, "");
7662 static_assert(is_same<int, decltype(v)>::value == false, "");
7663 auto ac = c;
7664 auto av = v;
7665 auto sumi = ac + av + 'x';
7666 auto sumf = ac + av + 1.0;
7667 static_assert(is_same<int, decltype(ac)>::value == true, "");
7668 static_assert(is_same<int, decltype(av)>::value == true, "");
7669 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7670 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7671 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7672 return (sumf > 0.0) ? sumi : add(c, v);
7673 }
7674
7675 }
7676
7677 namespace test_noexcept
7678 {
7679
7680 int f() { return 0; }
7681 int g() noexcept { return 0; }
7682
7683 static_assert(noexcept(f()) == false, "");
7684 static_assert(noexcept(g()) == true, "");
7685
7686 }
7687
7688 namespace test_constexpr
7689 {
7690
7691 template < typename CharT >
7692 unsigned long constexpr
7693 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7694 {
7695 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7696 }
7697
7698 template < typename CharT >
7699 unsigned long constexpr
7700 strlen_c(const CharT *const s) noexcept
7701 {
7702 return strlen_c_r(s, 0UL);
7703 }
7704
7705 static_assert(strlen_c("") == 0UL, "");
7706 static_assert(strlen_c("1") == 1UL, "");
7707 static_assert(strlen_c("example") == 7UL, "");
7708 static_assert(strlen_c("another\0example") == 7UL, "");
7709
7710 }
7711
7712 namespace test_rvalue_references
7713 {
7714
7715 template < int N >
7716 struct answer
7717 {
7718 static constexpr int value = N;
7719 };
7720
7721 answer<1> f(int&) { return answer<1>(); }
7722 answer<2> f(const int&) { return answer<2>(); }
7723 answer<3> f(int&&) { return answer<3>(); }
7724
7725 void
7726 test()
7727 {
7728 int i = 0;
7729 const int c = 0;
7730 static_assert(decltype(f(i))::value == 1, "");
7731 static_assert(decltype(f(c))::value == 2, "");
7732 static_assert(decltype(f(0))::value == 3, "");
7733 }
7734
7735 }
7736
7737 namespace test_uniform_initialization
7738 {
7739
7740 struct test
7741 {
7742 static const int zero {};
7743 static const int one {1};
7744 };
7745
7746 static_assert(test::zero == 0, "");
7747 static_assert(test::one == 1, "");
7748
7749 }
7750
7751 namespace test_lambdas
7752 {
7753
7754 void
7755 test1()
7756 {
7757 auto lambda1 = [](){};
7758 auto lambda2 = lambda1;
7759 lambda1();
7760 lambda2();
7761 }
7762
7763 int
7764 test2()
7765 {
7766 auto a = [](int i, int j){ return i + j; }(1, 2);
7767 auto b = []() -> int { return '0'; }();
7768 auto c = [=](){ return a + b; }();
7769 auto d = [&](){ return c; }();
7770 auto e = [a, &b](int x) mutable {
7771 const auto identity = [](int y){ return y; };
7772 for (auto i = 0; i < a; ++i)
7773 a += b--;
7774 return x + identity(a + b);
7775 }(0);
7776 return a + b + c + d + e;
7777 }
7778
7779 int
7780 test3()
7781 {
7782 const auto nullary = [](){ return 0; };
7783 const auto unary = [](int x){ return x; };
7784 using nullary_t = decltype(nullary);
7785 using unary_t = decltype(unary);
7786 const auto higher1st = [](nullary_t f){ return f(); };
7787 const auto higher2nd = [unary](nullary_t f1){
7788 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7789 };
7790 return higher1st(nullary) + higher2nd(nullary)(unary);
7791 }
7792
7793 }
7794
7795 namespace test_variadic_templates
7796 {
7797
7798 template <int...>
7799 struct sum;
7800
7801 template <int N0, int... N1toN>
7802 struct sum<N0, N1toN...>
7803 {
7804 static constexpr auto value = N0 + sum<N1toN...>::value;
7805 };
7806
7807 template <>
7808 struct sum<>
7809 {
7810 static constexpr auto value = 0;
7811 };
7812
7813 static_assert(sum<>::value == 0, "");
7814 static_assert(sum<1>::value == 1, "");
7815 static_assert(sum<23>::value == 23, "");
7816 static_assert(sum<1, 2>::value == 3, "");
7817 static_assert(sum<5, 5, 11>::value == 21, "");
7818 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7819
7820 }
7821
7822 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7823 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7824 // because of this.
7825 namespace test_template_alias_sfinae
7826 {
7827
7828 struct foo {};
7829
7830 template<typename T>
7831 using member = typename T::member_type;
7832
7833 template<typename T>
7834 void func(...) {}
7835
7836 template<typename T>
7837 void func(member<T>*) {}
7838
7839 void test();
7840
7841 void test() { func<foo>(0); }
7842
7843 }
7844
7845 } // namespace cxx11
7846
7847 #endif // __cplusplus >= 201103L
7848
7849
7850
7851 _ACEOF
7852 if ac_fn_cxx_try_compile "$LINENO"; then :
7853 eval $cachevar=yes
7854 else
7855 eval $cachevar=no
7856 fi
7857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858 CXX="$ac_save_CXX"
7859 fi
7860 eval ac_res=\$$cachevar
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7862 $as_echo "$ac_res" >&6; }
7863 if eval test x\$$cachevar = xyes; then
7864 CXX="$CXX $switch"
7865 if test -n "$CXXCPP" ; then
7866 CXXCPP="$CXXCPP $switch"
7867 fi
7868 ac_success=yes
7869 break
7870 fi
7871 done
7872 if test x$ac_success = xyes; then
7873 break
7874 fi
7875 done
7876 fi
7877 CXX_FOR_BUILD="$CXX"
7878 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7879 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7880 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7881 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7882 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7883 ac_ext=c
7884 ac_cpp='$CPP $CPPFLAGS'
7885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7888
7889 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7890 if test x$ac_success = xno; then
7891 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7892 fi
7893 fi
7894 if test x$ac_success = xno; then
7895 HAVE_CXX11_FOR_BUILD=0
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7897 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7898 else
7899 HAVE_CXX11_FOR_BUILD=1
7900
7901 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7902
7903 fi
7904
7905
7906 fi
7907 fi
7908
7909 # Check whether --enable-pgo-build was given.
7910 if test "${enable_pgo_build+set}" = set; then :
7911 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7912 else
7913 enable_pgo_build=no
7914 fi
7915
7916
7917 # Issue errors and warnings for invalid/strange PGO build combinations.
7918 case "$have_compiler:$host:$target:$enable_pgo_build" in
7919 *:*:*:no) ;;
7920
7921 # Allow the PGO build only if we aren't building a compiler and
7922 # we are in a native configuration.
7923 no:$build:$build:yes | no:$build:$build:lto) ;;
7924
7925 # Disallow the PGO bootstrap if we are building a compiler.
7926 yes:*:*:yes | yes:*:*:lto)
7927 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7928
7929 *)
7930 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7931 ;;
7932 esac
7933
7934 if test "$enable_pgo_build" != "no"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7936 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7937 old_CFLAGS="$CFLAGS"
7938 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7939 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7940
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7943 int foo;
7944 _ACEOF
7945 if ac_fn_c_try_compile "$LINENO"; then :
7946
7947 else
7948 PGO_BUILD_GEN_CFLAGS=
7949 fi
7950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951 CFLAGS="$old_CFLAGS"
7952 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7954 $as_echo "yes" >&6; }
7955 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7956 else
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7959 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7960 fi
7961
7962 if test "$enable_pgo_build" = "lto"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7964 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7965 old_CFLAGS="$CFLAGS"
7966 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7967 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7970 int foo;
7971 _ACEOF
7972 if ac_fn_c_try_compile "$LINENO"; then :
7973
7974 else
7975 PGO_BUILD_LTO_CFLAGS=
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978 CFLAGS="$old_CFLAGS"
7979 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7981 $as_echo "yes" >&6; }
7982 else
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7986 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7987 fi
7988 fi
7989 fi
7990
7991
7992
7993
7994 # Used for setting $lt_cv_objdir
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7996 $as_echo_n "checking for objdir... " >&6; }
7997 if ${lt_cv_objdir+:} false; then :
7998 $as_echo_n "(cached) " >&6
7999 else
8000 rm -f .libs 2>/dev/null
8001 mkdir .libs 2>/dev/null
8002 if test -d .libs; then
8003 lt_cv_objdir=.libs
8004 else
8005 # MS-DOS does not allow filenames that begin with a dot.
8006 lt_cv_objdir=_libs
8007 fi
8008 rmdir .libs 2>/dev/null
8009 fi
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8011 $as_echo "$lt_cv_objdir" >&6; }
8012 objdir=$lt_cv_objdir
8013
8014
8015
8016
8017
8018 cat >>confdefs.h <<_ACEOF
8019 #define LT_OBJDIR "$lt_cv_objdir/"
8020 _ACEOF
8021
8022
8023
8024 # Check for GMP, MPFR and MPC
8025 require_gmp=no
8026 require_mpc=no
8027 if test -d ${srcdir}/gcc ; then
8028 require_gmp=yes
8029 require_mpc=yes
8030 fi
8031 if test -d ${srcdir}/gdb ; then
8032 if test "x$enable_gdb" != xno; then
8033 require_gmp=yes
8034 fi
8035 fi
8036
8037 gmplibs="-lmpfr -lgmp"
8038 if test x"$require_mpc" = "xyes" ; then
8039 gmplibs="-lmpc $gmplibs"
8040 fi
8041 gmpinc=
8042 have_gmp=no
8043
8044 # Specify a location for mpc
8045 # check for this first so it ends up on the link line before mpfr.
8046
8047 # Check whether --with-mpc was given.
8048 if test "${with_mpc+set}" = set; then :
8049 withval=$with_mpc;
8050 fi
8051
8052
8053 # Check whether --with-mpc-include was given.
8054 if test "${with_mpc_include+set}" = set; then :
8055 withval=$with_mpc_include;
8056 fi
8057
8058
8059 # Check whether --with-mpc-lib was given.
8060 if test "${with_mpc_lib+set}" = set; then :
8061 withval=$with_mpc_lib;
8062 fi
8063
8064
8065 if test "x$with_mpc" != x; then
8066 gmplibs="-L$with_mpc/lib $gmplibs"
8067 gmpinc="-I$with_mpc/include $gmpinc"
8068 fi
8069 if test "x$with_mpc_include" != x; then
8070 gmpinc="-I$with_mpc_include $gmpinc"
8071 fi
8072 if test "x$with_mpc_lib" != x; then
8073 gmplibs="-L$with_mpc_lib $gmplibs"
8074 fi
8075 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
8076 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8077 gmpinc='-I$$s/mpc/src '"$gmpinc"
8078 # Do not test the mpc version. Assume that it is sufficient, since
8079 # it is in the source tree, and the library has not been built yet
8080 # but it would be included on the link line in the version check below
8081 # hence making the test fail.
8082 have_gmp=yes
8083 fi
8084
8085 # Specify a location for mpfr
8086 # check for this first so it ends up on the link line before gmp.
8087
8088 # Check whether --with-mpfr was given.
8089 if test "${with_mpfr+set}" = set; then :
8090 withval=$with_mpfr;
8091 fi
8092
8093
8094 # Check whether --with-mpfr-include was given.
8095 if test "${with_mpfr_include+set}" = set; then :
8096 withval=$with_mpfr_include;
8097 fi
8098
8099
8100 # Check whether --with-mpfr-lib was given.
8101 if test "${with_mpfr_lib+set}" = set; then :
8102 withval=$with_mpfr_lib;
8103 fi
8104
8105
8106 if test "x$with_mpfr" != x; then
8107 gmplibs="-L$with_mpfr/lib $gmplibs"
8108 gmpinc="-I$with_mpfr/include $gmpinc"
8109 fi
8110 if test "x$with_mpfr_include" != x; then
8111 gmpinc="-I$with_mpfr_include $gmpinc"
8112 fi
8113 if test "x$with_mpfr_lib" != x; then
8114 gmplibs="-L$with_mpfr_lib $gmplibs"
8115 fi
8116 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8117 # MPFR v3.1.0 moved the sources into a src sub-directory.
8118 if ! test -d ${srcdir}/mpfr/src; then
8119 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8120 fi
8121 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8122 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8123 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8124 # Do not test the mpfr version. Assume that it is sufficient, since
8125 # it is in the source tree, and the library has not been built yet
8126 # but it would be included on the link line in the version check below
8127 # hence making the test fail.
8128 have_gmp=yes
8129 fi
8130
8131 # Specify a location for gmp
8132
8133 # Check whether --with-gmp was given.
8134 if test "${with_gmp+set}" = set; then :
8135 withval=$with_gmp;
8136 fi
8137
8138
8139 # Check whether --with-gmp-include was given.
8140 if test "${with_gmp_include+set}" = set; then :
8141 withval=$with_gmp_include;
8142 fi
8143
8144
8145 # Check whether --with-gmp-lib was given.
8146 if test "${with_gmp_lib+set}" = set; then :
8147 withval=$with_gmp_lib;
8148 fi
8149
8150
8151
8152 if test "x$with_gmp" != x; then
8153 gmplibs="-L$with_gmp/lib $gmplibs"
8154 gmpinc="-I$with_gmp/include $gmpinc"
8155 fi
8156 if test "x$with_gmp_include" != x; then
8157 gmpinc="-I$with_gmp_include $gmpinc"
8158 fi
8159 if test "x$with_gmp_lib" != x; then
8160 gmplibs="-L$with_gmp_lib $gmplibs"
8161 fi
8162 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8163 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8164 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8165 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8166 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8167 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8168 # Do not test the gmp version. Assume that it is sufficient, since
8169 # it is in the source tree, and the library has not been built yet
8170 # but it would be included on the link line in the version check below
8171 # hence making the test fail.
8172 have_gmp=yes
8173 fi
8174
8175 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
8176 have_gmp=yes
8177 saved_CFLAGS="$CFLAGS"
8178 CFLAGS="$CFLAGS $gmpinc"
8179 # Check for the recommended and required versions of GMP.
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8181 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 #include "gmp.h"
8185 int
8186 main ()
8187 {
8188
8189 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8190 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8191 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8192 choke me
8193 #endif
8194
8195 ;
8196 return 0;
8197 }
8198 _ACEOF
8199 if ac_fn_c_try_compile "$LINENO"; then :
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8202 #include <gmp.h>
8203 int
8204 main ()
8205 {
8206
8207 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8208 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8209 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8210 choke me
8211 #endif
8212
8213 ;
8214 return 0;
8215 }
8216 _ACEOF
8217 if ac_fn_c_try_compile "$LINENO"; then :
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8219 $as_echo "yes" >&6; }
8220 else
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8222 $as_echo "buggy but acceptable" >&6; }
8223 fi
8224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225 else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }; have_gmp=no
8228 fi
8229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8230
8231 # If we have GMP, check the MPFR version.
8232 if test x"$have_gmp" = xyes; then
8233 # Check for the recommended and required versions of MPFR.
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8235 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8238 #include <gmp.h>
8239 #include <mpfr.h>
8240 int
8241 main ()
8242 {
8243
8244 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8245 choke me
8246 #endif
8247
8248 ;
8249 return 0;
8250 }
8251 _ACEOF
8252 if ac_fn_c_try_compile "$LINENO"; then :
8253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8255 #include <gmp.h>
8256 #include <mpfr.h>
8257 int
8258 main ()
8259 {
8260
8261 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8262 choke me
8263 #endif
8264
8265 ;
8266 return 0;
8267 }
8268 _ACEOF
8269 if ac_fn_c_try_compile "$LINENO"; then :
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8271 $as_echo "yes" >&6; }
8272 else
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8274 $as_echo "buggy but acceptable" >&6; }
8275 fi
8276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277 else
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 $as_echo "no" >&6; }; have_gmp=no
8280 fi
8281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8282 fi
8283
8284 # Check for the MPC header version.
8285 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
8286 # Check for the recommended and required versions of MPC.
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8288 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8291 #include <mpc.h>
8292 int
8293 main ()
8294 {
8295
8296 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8297 choke me
8298 #endif
8299
8300 ;
8301 return 0;
8302 }
8303 _ACEOF
8304 if ac_fn_c_try_compile "$LINENO"; then :
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8307 #include <mpc.h>
8308 int
8309 main ()
8310 {
8311
8312 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8313 choke me
8314 #endif
8315
8316 ;
8317 return 0;
8318 }
8319 _ACEOF
8320 if ac_fn_c_try_compile "$LINENO"; then :
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8322 $as_echo "yes" >&6; }
8323 else
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8325 $as_echo "buggy but acceptable" >&6; }
8326 fi
8327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 else
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 $as_echo "no" >&6; }; have_gmp=no
8331 fi
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 fi
8334
8335 # Now check the MPFR library.
8336 if test x"$have_gmp" = xyes; then
8337 saved_LIBS="$LIBS"
8338 LIBS="$LIBS $gmplibs"
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8340 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 #include <mpfr.h>
8344 int
8345 main ()
8346 {
8347
8348 mpfr_t n;
8349 mpfr_t x;
8350 int t;
8351 mpfr_init (n);
8352 mpfr_init (x);
8353 mpfr_atan2 (n, n, x, MPFR_RNDN);
8354 mpfr_erfc (n, x, MPFR_RNDN);
8355 mpfr_subnormalize (x, t, MPFR_RNDN);
8356 mpfr_clear(n);
8357 mpfr_clear(x);
8358
8359 ;
8360 return 0;
8361 }
8362 _ACEOF
8363 if ac_fn_c_try_link "$LINENO"; then :
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8365 $as_echo "yes" >&6; }
8366 else
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }; have_gmp=no
8369 fi
8370 rm -f core conftest.err conftest.$ac_objext \
8371 conftest$ac_exeext conftest.$ac_ext
8372 LIBS="$saved_LIBS"
8373 fi
8374
8375 # Now check the MPC library
8376 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8377 saved_LIBS="$LIBS"
8378 LIBS="$LIBS $gmplibs"
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8380 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8383 #include <mpc.h>
8384 int
8385 main ()
8386 {
8387
8388 mpc_t c;
8389 mpc_init2 (c, 53);
8390 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8391 mpc_cosh (c, c, MPC_RNDNN);
8392 mpc_pow (c, c, c, MPC_RNDNN);
8393 mpc_acosh (c, c, MPC_RNDNN);
8394 mpc_clear (c);
8395
8396 ;
8397 return 0;
8398 }
8399 _ACEOF
8400 if ac_fn_c_try_link "$LINENO"; then :
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8402 $as_echo "yes" >&6; }
8403 else
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }; have_gmp=no
8406 fi
8407 rm -f core conftest.err conftest.$ac_objext \
8408 conftest$ac_exeext conftest.$ac_ext
8409 LIBS="$saved_LIBS"
8410 fi
8411
8412 CFLAGS="$saved_CFLAGS"
8413
8414 # The library versions listed in the error message below should match
8415 # the HARD-minimums enforced above.
8416 if test x$have_gmp != xyes; then
8417 if test -d ${srcdir}/gcc ; then
8418 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8419 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8420 their locations. Source code for these libraries can be found at
8421 their respective hosting sites as well as at
8422 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8423 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8424 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8425 make sure that you have installed both the libraries and the header
8426 files. They may be located in separate packages." "$LINENO" 5
8427 else
8428 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8429 Try the --with-gmp and/or --with-mpfr options to specify
8430 their locations. If you obtained GMP and/or MPFR from a vendor
8431 distribution package, make sure that you have installed both the libraries
8432 and the header files. They may be located in separate packages." "$LINENO" 5
8433 fi
8434 fi
8435 fi
8436
8437 # Flags needed for both GMP, MPFR and/or MPC.
8438
8439
8440
8441
8442
8443
8444
8445 # Libraries to use for stage1 or when not bootstrapping.
8446
8447 # Check whether --with-stage1-libs was given.
8448 if test "${with_stage1_libs+set}" = set; then :
8449 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8450 stage1_libs=
8451 else
8452 stage1_libs=$withval
8453 fi
8454 else
8455 stage1_libs=
8456 fi
8457
8458
8459
8460 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8461 # default is yes if gcc is being built; no otherwise. The reason for
8462 # this default is that gdb is sometimes linked against GNU Source
8463 # Highlight, which is a shared library that uses C++ exceptions. In
8464 # this case, -static-libstdc++ will cause crashes.
8465
8466 # Check whether --with-static-standard-libraries was given.
8467 if test "${with_static_standard_libraries+set}" = set; then :
8468 withval=$with_static_standard_libraries;
8469 else
8470 with_static_standard_libraries=auto
8471 fi
8472
8473 if test "$with_static_standard_libraries" = auto; then
8474 with_static_standard_libraries=$have_compiler
8475 fi
8476
8477 # Linker flags to use for stage1 or when not bootstrapping.
8478
8479 # Check whether --with-stage1-ldflags was given.
8480 if test "${with_stage1_ldflags+set}" = set; then :
8481 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8482 stage1_ldflags=
8483 else
8484 stage1_ldflags=$withval
8485 fi
8486 else
8487 stage1_ldflags=
8488 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8489 # if supported. But if the user explicitly specified the libraries to use,
8490 # trust that they are doing what they want.
8491 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8492 -a "$have_static_libs" = yes; then
8493 stage1_ldflags="-static-libstdc++ -static-libgcc"
8494 fi
8495 fi
8496
8497
8498
8499 # Libraries to use for stage2 and later builds.
8500
8501 # Check whether --with-boot-libs was given.
8502 if test "${with_boot_libs+set}" = set; then :
8503 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8504 poststage1_libs=
8505 else
8506 poststage1_libs=$withval
8507 fi
8508 else
8509 poststage1_libs=
8510 fi
8511
8512
8513
8514 # Linker flags to use for stage2 and later builds.
8515
8516 # Check whether --with-boot-ldflags was given.
8517 if test "${with_boot_ldflags+set}" = set; then :
8518 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8519 poststage1_ldflags=
8520 else
8521 poststage1_ldflags=$withval
8522 fi
8523 else
8524 poststage1_ldflags=
8525 # In stages 2 and 3, default to linking libstdc++ and libgcc
8526 # statically. But if the user explicitly specified the libraries to
8527 # use, trust that they are doing what they want.
8528 if test "$poststage1_libs" = ""; then
8529 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8530 fi
8531 fi
8532
8533
8534
8535 # GCC GRAPHITE dependency isl.
8536 # Basic setup is inlined here, actual checks are in config/isl.m4
8537
8538
8539 # Check whether --with-isl was given.
8540 if test "${with_isl+set}" = set; then :
8541 withval=$with_isl;
8542 fi
8543
8544
8545 # Treat --without-isl as a request to disable
8546 # GRAPHITE support and skip all following checks.
8547 if test "x$with_isl" != "xno"; then
8548 # Check for isl
8549
8550
8551 # Check whether --with-isl-include was given.
8552 if test "${with_isl_include+set}" = set; then :
8553 withval=$with_isl_include;
8554 fi
8555
8556
8557 # Check whether --with-isl-lib was given.
8558 if test "${with_isl_lib+set}" = set; then :
8559 withval=$with_isl_lib;
8560 fi
8561
8562
8563 # Check whether --enable-isl-version-check was given.
8564 if test "${enable_isl_version_check+set}" = set; then :
8565 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8566 else
8567 ENABLE_ISL_CHECK=yes
8568 fi
8569
8570
8571 # Initialize isllibs and islinc.
8572 case $with_isl in
8573 no)
8574 isllibs=
8575 islinc=
8576 ;;
8577 "" | yes)
8578 ;;
8579 *)
8580 isllibs="-L$with_isl/lib"
8581 islinc="-I$with_isl/include"
8582 ;;
8583 esac
8584 if test "x${with_isl_include}" != x ; then
8585 islinc="-I$with_isl_include"
8586 fi
8587 if test "x${with_isl_lib}" != x; then
8588 isllibs="-L$with_isl_lib"
8589 fi
8590 if test "x${islinc}" = x && test "x${isllibs}" = x \
8591 && test -d ${srcdir}/isl; then
8592 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8593 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8594 ENABLE_ISL_CHECK=no
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8596 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8597 fi
8598
8599 isllibs="${isllibs} -lisl"
8600
8601
8602
8603 if test "${ENABLE_ISL_CHECK}" = yes ; then
8604 _isl_saved_CFLAGS=$CFLAGS
8605 _isl_saved_LDFLAGS=$LDFLAGS
8606 _isl_saved_LIBS=$LIBS
8607
8608 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8609 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8610 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8611
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8613 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616 #include <isl/schedule.h>
8617 int
8618 main ()
8619 {
8620 isl_options_set_schedule_serialize_sccs (NULL, 0);
8621 ;
8622 return 0;
8623 }
8624 _ACEOF
8625 if ac_fn_c_try_link "$LINENO"; then :
8626 gcc_cv_isl=yes
8627 else
8628 gcc_cv_isl=no
8629 fi
8630 rm -f core conftest.err conftest.$ac_objext \
8631 conftest$ac_exeext conftest.$ac_ext
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8633 $as_echo "$gcc_cv_isl" >&6; }
8634
8635 if test "${gcc_cv_isl}" = no ; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8637 $as_echo "required isl version is 0.15 or later" >&6; }
8638 fi
8639
8640 CFLAGS=$_isl_saved_CFLAGS
8641 LDFLAGS=$_isl_saved_LDFLAGS
8642 LIBS=$_isl_saved_LIBS
8643 fi
8644
8645
8646
8647
8648
8649
8650 if test "x${with_isl}" = xno; then
8651 graphite_requested=no
8652 elif test "x${with_isl}" != x \
8653 || test "x${with_isl_include}" != x \
8654 || test "x${with_isl_lib}" != x ; then
8655 graphite_requested=yes
8656 else
8657 graphite_requested=no
8658 fi
8659
8660
8661
8662 if test "${gcc_cv_isl}" = no ; then
8663 isllibs=
8664 islinc=
8665 fi
8666
8667 if test "${graphite_requested}" = yes \
8668 && test "x${isllibs}" = x \
8669 && test "x${islinc}" = x ; then
8670
8671 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8672 fi
8673
8674
8675 fi
8676
8677 # If the isl check failed, disable builds of in-tree variant of isl
8678 if test "x$with_isl" = xno ||
8679 test "x$gcc_cv_isl" = xno; then
8680 noconfigdirs="$noconfigdirs isl"
8681 islinc=
8682 fi
8683
8684
8685
8686
8687 # Check for LTO support.
8688 # Check whether --enable-lto was given.
8689 if test "${enable_lto+set}" = set; then :
8690 enableval=$enable_lto; enable_lto=$enableval
8691 else
8692 enable_lto=yes; default_enable_lto=yes
8693 fi
8694
8695
8696
8697
8698
8699 target_elf=no
8700 case $target in
8701 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8702 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8703 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8704 nvptx-*-none)
8705 target_elf=no
8706 ;;
8707 *)
8708 target_elf=yes
8709 ;;
8710 esac
8711
8712 if test $target_elf = yes; then :
8713 # ELF platforms build the lto-plugin always.
8714 build_lto_plugin=yes
8715
8716 else
8717 if test x"$default_enable_lto" = x"yes" ; then
8718 case $target in
8719 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8720 # On other non-ELF platforms, LTO has yet to be validated.
8721 *) enable_lto=no ;;
8722 esac
8723 else
8724 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8725 # It would also be nice to check the binutils support, but we don't
8726 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8727 # warn during gcc/ subconfigure; unless you're bootstrapping with
8728 # -flto it won't be needed until after installation anyway.
8729 case $target in
8730 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8731 *) if test x"$enable_lto" = x"yes"; then
8732 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8733 fi
8734 ;;
8735 esac
8736 fi
8737 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8738 # Build it unless LTO was explicitly disabled.
8739 case $target in
8740 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8741 *) ;;
8742 esac
8743
8744 fi
8745
8746
8747 # Check whether --enable-linker-plugin-configure-flags was given.
8748 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8749 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8750 else
8751 extra_linker_plugin_configure_flags=
8752 fi
8753
8754
8755 # Check whether --enable-linker-plugin-flags was given.
8756 if test "${enable_linker_plugin_flags+set}" = set; then :
8757 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8758 else
8759 extra_linker_plugin_flags=
8760 fi
8761
8762
8763
8764 # Enable --enable-host-shared.
8765 # Checked early to determine whether jit is an 'all' language
8766 # Check whether --enable-host-shared was given.
8767 if test "${enable_host_shared+set}" = set; then :
8768 enableval=$enable_host_shared; host_shared=$enableval
8769 case $host in
8770 x86_64-*-darwin* | aarch64-*-darwin*)
8771 if test x$host_shared != xyes ; then
8772 # PIC is the default, and actually cannot be switched off.
8773 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8774 host_shared=yes
8775 fi ;;
8776 *) ;;
8777 esac
8778 else
8779 case $host in
8780 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8781 *) host_shared=no ;;
8782 esac
8783 fi
8784
8785
8786
8787 # By default, C and C++ are the only stage 1 languages.
8788 stage1_languages=,c,
8789
8790 # Target libraries that we bootstrap.
8791 bootstrap_target_libs=,target-libgcc,
8792
8793 # Figure out what language subdirectories are present.
8794 # Look if the user specified --enable-languages="..."; if not, use
8795 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8796 # go away some day.
8797 # NB: embedded tabs in this IF block -- do not untabify
8798 if test -d ${srcdir}/gcc; then
8799 if test x"${enable_languages+set}" != xset; then
8800 if test x"${LANGUAGES+set}" = xset; then
8801 enable_languages="${LANGUAGES}"
8802 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8803 else
8804 enable_languages=default
8805 fi
8806 else
8807 if test x"${enable_languages}" = x ||
8808 test x"${enable_languages}" = xyes;
8809 then
8810 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8811 exit 1
8812 fi
8813 fi
8814 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8815
8816 # 'f95' is the old name for the 'fortran' language. We issue a warning
8817 # and make the substitution.
8818 case ,${enable_languages}, in
8819 *,f95,*)
8820 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8821 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8822 ;;
8823 esac
8824
8825 # If bootstrapping, C++ must be enabled.
8826 case ",$enable_languages,:$enable_bootstrap" in
8827 *,c++,*:*) ;;
8828 *:yes)
8829 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8830 enable_languages="${enable_languages},c++"
8831 else
8832 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8833 fi
8834 ;;
8835 esac
8836
8837 # First scan to see if an enabled language requires some other language.
8838 # We assume that a given config-lang.in will list all the language
8839 # front ends it requires, even if some are required indirectly.
8840 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8841 case ${lang_frag} in
8842 ..) ;;
8843 # The odd quoting in the next line works around
8844 # an apparent bug in bash 1.12 on linux.
8845 ${srcdir}/gcc/[*]/config-lang.in) ;;
8846 *)
8847 # From the config-lang.in, get $language, $lang_requires, and
8848 # $lang_requires_boot_languages.
8849 language=
8850 lang_requires=
8851 lang_requires_boot_languages=
8852 # set srcdir during sourcing lang_frag to the gcc dir.
8853 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8854 # polutes this shell
8855 saved_srcdir=${srcdir}
8856 srcdir=${srcdir}/gcc . ${lang_frag}
8857 srcdir=${saved_srcdir}
8858 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8859 case ,${enable_languages}, in
8860 *,$other,*) ;;
8861 *,default,*) ;;
8862 *,all,*) ;;
8863 *,$language,*)
8864 echo " \`$other' language required by \`$language'; enabling" 1>&2
8865 enable_languages="${enable_languages},${other}"
8866 ;;
8867 esac
8868 done
8869 for other in ${lang_requires_boot_languages} ; do
8870 if test "$other" != "c"; then
8871 case ,${enable_stage1_languages}, in
8872 *,$other,*) ;;
8873 *,default,*) ;;
8874 *,all,*) ;;
8875 *)
8876 case ,${enable_languages}, in
8877 *,$language,*)
8878 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8879 enable_stage1_languages="$enable_stage1_languages,${other}"
8880 ;;
8881 esac
8882 ;;
8883 esac
8884 fi
8885 done
8886 ;;
8887 esac
8888 done
8889
8890 new_enable_languages=,c,
8891
8892 # If LTO is enabled, add the LTO front end.
8893 if test "$enable_lto" = "yes" ; then
8894 case ,${enable_languages}, in
8895 *,lto,*) ;;
8896 *) enable_languages="${enable_languages},lto" ;;
8897 esac
8898 if test "${build_lto_plugin}" = "yes" ; then
8899 configdirs="$configdirs lto-plugin"
8900 fi
8901 fi
8902
8903 # If we're building an offloading compiler, add the LTO front end.
8904 if test x"$enable_as_accelerator_for" != x ; then
8905 case ,${enable_languages}, in
8906 *,lto,*) ;;
8907 *) enable_languages="${enable_languages},lto" ;;
8908 esac
8909 fi
8910
8911 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8912 potential_languages=,c,
8913
8914 enabled_target_libs=
8915 disabled_target_libs=
8916
8917 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8918 case ${lang_frag} in
8919 ..) ;;
8920 # The odd quoting in the next line works around
8921 # an apparent bug in bash 1.12 on linux.
8922 ${srcdir}/gcc/[*]/config-lang.in) ;;
8923 *)
8924 # From the config-lang.in, get $language, $target_libs,
8925 # $lang_dirs, $boot_language, and $build_by_default
8926 language=
8927 target_libs=
8928 lang_dirs=
8929 subdir_requires=
8930 boot_language=no
8931 build_by_default=yes
8932 # set srcdir during sourcing. See above about save & restore
8933 saved_srcdir=${srcdir}
8934 srcdir=${srcdir}/gcc . ${lang_frag}
8935 srcdir=${saved_srcdir}
8936 if test x${language} = x; then
8937 echo "${lang_frag} doesn't set \$language." 1>&2
8938 exit 1
8939 fi
8940
8941 if test "$language" = "c++"; then
8942 boot_language=yes
8943 fi
8944
8945 add_this_lang=no
8946 # C is always enabled, so no need to add it again
8947 if test "$language" != "c"; then
8948 case ,${enable_languages}, in
8949 *,${language},*)
8950 # Language was explicitly selected; include it
8951 add_this_lang=yes
8952 ;;
8953 *,all,*)
8954 # All languages are enabled
8955 add_this_lang=all
8956 ;;
8957 *,default,*)
8958 # 'default' was selected, select it if it is a default language
8959 add_this_lang=${build_by_default}
8960 ;;
8961 esac
8962 fi
8963
8964 # Disable languages that need other directories if these aren't available.
8965 for i in $subdir_requires; do
8966 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8967 case ${add_this_lang} in
8968 yes)
8969 # Specifically requested language; tell them.
8970 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8971 ;;
8972 all)
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8974 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8975 add_this_lang=unsupported
8976 ;;
8977 *)
8978 # Silently disable.
8979 add_this_lang=unsupported
8980 ;;
8981 esac
8982 done
8983
8984 # Disable Ada if no preexisting GNAT is available.
8985 case ${add_this_lang}:${language}:${have_gnat} in
8986 yes:ada:no)
8987 # Specifically requested language; tell them.
8988 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8989 ;;
8990 all:ada:no)
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8992 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8993 add_this_lang=unsupported
8994 ;;
8995 *:ada:no)
8996 # Silently disable.
8997 add_this_lang=unsupported
8998 ;;
8999 esac
9000
9001 # Disable D if no preexisting GDC is available.
9002 case ${add_this_lang}:${language}:${have_gdc} in
9003 yes:d:no)
9004 # Specifically requested language; tell them.
9005 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
9006 ;;
9007 all:d:no)
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9009 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9010 add_this_lang=unsupported
9011 ;;
9012 *:d:no)
9013 # Silently disable.
9014 add_this_lang=unsupported
9015 ;;
9016 esac
9017
9018 # Disable jit if -enable-host-shared not specified
9019 # but not if building for Mingw. All code in Windows
9020 # is position independent code (PIC).
9021 case $target in
9022 *mingw*) ;;
9023 *)
9024 case ${add_this_lang}:${language}:${host_shared} in
9025 yes:jit:no)
9026 # PR jit/64780: explicitly specify --enable-host-shared
9027 as_fn_error $? "
9028 Enabling language \"jit\" requires --enable-host-shared.
9029
9030 --enable-host-shared typically slows the rest of the compiler down by
9031 a few %, so you must explicitly enable it.
9032
9033 If you want to build both the jit and the regular compiler, it is often
9034 best to do this via two separate configure/builds, in separate
9035 directories, to avoid imposing the performance cost of
9036 --enable-host-shared on the regular compiler." "$LINENO" 5
9037 ;;
9038 all:jit:no)
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9040 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9041 add_this_lang=unsupported
9042 ;;
9043 *:jit:no)
9044 # Silently disable.
9045 add_this_lang=unsupported
9046 ;;
9047 esac
9048 ;;
9049 esac
9050
9051 # Disable a language that is unsupported by the target.
9052 case "${add_this_lang}: $unsupported_languages " in
9053 no:*) ;;
9054 unsupported:*) ;;
9055 *:*" $language "*)
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9057 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9058 add_this_lang=unsupported
9059 ;;
9060 esac
9061
9062 case $add_this_lang in
9063 unsupported)
9064 # Remove language-dependent dirs.
9065 disabled_target_libs="$disabled_target_libs $target_libs"
9066 noconfigdirs="$noconfigdirs $lang_dirs"
9067 ;;
9068 no)
9069 # Remove language-dependent dirs; still show language as supported.
9070 disabled_target_libs="$disabled_target_libs $target_libs"
9071 noconfigdirs="$noconfigdirs $lang_dirs"
9072 potential_languages="${potential_languages}${language},"
9073 ;;
9074 all|yes)
9075 new_enable_languages="${new_enable_languages}${language},"
9076 potential_languages="${potential_languages}${language},"
9077 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9078 enabled_target_libs="$enabled_target_libs $target_libs"
9079 case "${boot_language}:,$enable_stage1_languages," in
9080 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
9081 # Add to (comma-separated) list of stage 1 languages.
9082 case ",$stage1_languages," in
9083 *,$language,* | ,yes, | ,all,) ;;
9084 *) stage1_languages="${stage1_languages}${language}," ;;
9085 esac
9086 # We need to bootstrap any supporting libraries.
9087 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9088 ;;
9089 esac
9090 ;;
9091 esac
9092 ;;
9093 esac
9094 done
9095
9096 # Add target libraries which are only needed for disabled languages
9097 # to noconfigdirs.
9098 if test -n "$disabled_target_libs"; then
9099 for dir in $disabled_target_libs; do
9100 case " $enabled_target_libs " in
9101 *" ${dir} "*) ;;
9102 *) noconfigdirs="$noconfigdirs $dir" ;;
9103 esac
9104 done
9105 fi
9106
9107 # Check whether --enable-stage1-languages was given.
9108 if test "${enable_stage1_languages+set}" = set; then :
9109 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9110 ,no,|,,)
9111 # Set it to something that will have no effect in the loop below
9112 enable_stage1_languages=c ;;
9113 ,yes,)
9114 enable_stage1_languages=`echo $new_enable_languages | \
9115 sed -e "s/^,//" -e "s/,$//" ` ;;
9116 *,all,*)
9117 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9118 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9119 esac
9120
9121 # Add "good" languages from enable_stage1_languages to stage1_languages,
9122 # while "bad" languages go in missing_languages. Leave no duplicates.
9123 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9124 case $potential_languages in
9125 *,$i,*)
9126 case $stage1_languages in
9127 *,$i,*) ;;
9128 *) stage1_languages="$stage1_languages$i," ;;
9129 esac ;;
9130 *)
9131 case $missing_languages in
9132 *,$i,*) ;;
9133 *) missing_languages="$missing_languages$i," ;;
9134 esac ;;
9135 esac
9136 done
9137 fi
9138
9139
9140 # Remove leading/trailing commas that were added for simplicity
9141 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9142 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9143 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9144 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9145
9146 if test "x$missing_languages" != x; then
9147 as_fn_error $? "
9148 The following requested languages could not be built: ${missing_languages}
9149 Supported languages are: ${potential_languages}" "$LINENO" 5
9150 fi
9151 if test "x$new_enable_languages" != "x$enable_languages"; then
9152 echo The following languages will be built: ${new_enable_languages}
9153 enable_languages="$new_enable_languages"
9154 fi
9155
9156
9157 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9158 fi
9159
9160 # Handle --disable-<component> generically.
9161 for dir in $configdirs $build_configdirs $target_configdirs ; do
9162 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9163 varname=`echo $dirname | sed -e s/+/_/g`
9164 if eval test x\${enable_${varname}} "=" xno ; then
9165 noconfigdirs="$noconfigdirs $dir"
9166 fi
9167 done
9168
9169 # Check for Boehm's garbage collector
9170 # Check whether --enable-objc-gc was given.
9171 if test "${enable_objc_gc+set}" = set; then :
9172 enableval=$enable_objc_gc;
9173 fi
9174
9175
9176 # Check whether --with-target-bdw-gc was given.
9177 if test "${with_target_bdw_gc+set}" = set; then :
9178 withval=$with_target_bdw_gc;
9179 fi
9180
9181
9182 # Check whether --with-target-bdw-gc-include was given.
9183 if test "${with_target_bdw_gc_include+set}" = set; then :
9184 withval=$with_target_bdw_gc_include;
9185 fi
9186
9187
9188 # Check whether --with-target-bdw-gc-lib was given.
9189 if test "${with_target_bdw_gc_lib+set}" = set; then :
9190 withval=$with_target_bdw_gc_lib;
9191 fi
9192
9193
9194 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9196 $as_echo_n "checking for bdw garbage collector... " >&6; }
9197 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9199 $as_echo "using bdw-gc in default locations" >&6; }
9200 else
9201 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9202 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9203 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9204 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9205 else
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9207 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9208 fi
9209 fi
9210 esac
9211
9212 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9213 case ,${enable_languages}, in
9214 *,c++,*)
9215 # Disable libitm, libsanitizer if we're not building libstdc++
9216 case "${noconfigdirs}" in
9217 *target-libstdc++-v3*)
9218 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9219 ;;
9220 *) ;;
9221 esac
9222 ;;
9223 *)
9224 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9225 ;;
9226 esac
9227
9228 # If gcc/ is not in the source tree then we'll not be building a
9229 # target compiler, assume in that case we don't want to build any
9230 # target libraries or tools.
9231 #
9232 # This was added primarily for the benefit for binutils-gdb who reuse
9233 # this configure script, but don't always have target tools available.
9234 if test ! -d ${srcdir}/gcc; then
9235 skipdirs="${skipdirs} ${target_configdirs}"
9236 fi
9237
9238 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9239 # $build_configdirs and $target_configdirs.
9240 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9241
9242 notsupp=""
9243 for dir in . $skipdirs $noconfigdirs ; do
9244 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9245 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9246 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9247 if test -r $srcdir/$dirname/configure ; then
9248 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9249 true
9250 else
9251 notsupp="$notsupp $dir"
9252 fi
9253 fi
9254 fi
9255 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9256 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9257 if test -r $srcdir/$dirname/configure ; then
9258 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9259 true
9260 else
9261 notsupp="$notsupp $dir"
9262 fi
9263 fi
9264 fi
9265 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9266 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9267 if test -r $srcdir/$dirname/configure ; then
9268 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9269 true
9270 else
9271 notsupp="$notsupp $dir"
9272 fi
9273 fi
9274 fi
9275 done
9276
9277 # Quietly strip out all directories which aren't configurable in this tree.
9278 # This relies on all configurable subdirectories being autoconfiscated, which
9279 # is now the case.
9280 build_configdirs_all="$build_configdirs"
9281 build_configdirs=
9282 for i in ${build_configdirs_all} ; do
9283 j=`echo $i | sed -e s/build-//g`
9284 if test -f ${srcdir}/$j/configure ; then
9285 build_configdirs="${build_configdirs} $i"
9286 fi
9287 done
9288
9289 configdirs_all="$configdirs"
9290 configdirs=
9291 for i in ${configdirs_all} ; do
9292 if test -f ${srcdir}/$i/configure ; then
9293 configdirs="${configdirs} $i"
9294 fi
9295 done
9296
9297 target_configdirs_all="$target_configdirs"
9298 target_configdirs=
9299 for i in ${target_configdirs_all} ; do
9300 j=`echo $i | sed -e s/target-//g`
9301 if test -f ${srcdir}/$j/configure ; then
9302 target_configdirs="${target_configdirs} $i"
9303 fi
9304 done
9305
9306 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9307 # so we have to add it after the preceding checks.
9308 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9309 then
9310 case " $configdirs " in
9311 *" libiberty "*)
9312 # If we can build libiberty, we can also build libiberty-linker-plugin.
9313 configdirs="$configdirs libiberty-linker-plugin"
9314 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9315 --with-libiberty=../libiberty-linker-plugin";;
9316 *)
9317 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9318 esac
9319 fi
9320
9321 # Sometimes we have special requirements for the host libiberty.
9322 extra_host_libiberty_configure_flags=
9323 case " $configdirs " in
9324 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9325 # When these are to be built as shared libraries, the same applies to
9326 # libiberty.
9327 extra_host_libiberty_configure_flags=--enable-shared
9328 ;;
9329 esac
9330
9331
9332 # Sometimes we have special requirements for the host zlib.
9333 extra_host_zlib_configure_flags=
9334 case " $configdirs " in
9335 *" bfd "*)
9336 # When bfd is to be built as a shared library, the same applies to
9337 # zlib.
9338 if test "$enable_shared" = "yes"; then
9339 extra_host_zlib_configure_flags=--enable-host-shared
9340 fi
9341 ;;
9342 esac
9343
9344
9345 # Produce a warning message for the subdirs we can't configure.
9346 # This isn't especially interesting in the Cygnus tree, but in the individual
9347 # FSF releases, it's important to let people know when their machine isn't
9348 # supported by the one or two programs in a package.
9349
9350 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9351 # If $appdirs is non-empty, at least one of those directories must still
9352 # be configured, or we error out. (E.g., if the gas release supports a
9353 # specified target in some subdirs but not the gas subdir, we shouldn't
9354 # pretend that all is well.)
9355 if test -n "$appdirs" ; then
9356 for dir in $appdirs ; do
9357 if test -r $dir/Makefile.in ; then
9358 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9359 appdirs=""
9360 break
9361 fi
9362 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9363 appdirs=""
9364 break
9365 fi
9366 fi
9367 done
9368 if test -n "$appdirs" ; then
9369 echo "*** This configuration is not supported by this package." 1>&2
9370 exit 1
9371 fi
9372 fi
9373 # Okay, some application will build, or we don't care to check. Still
9374 # notify of subdirs not getting built.
9375 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9376 echo " ${notsupp}" 1>&2
9377 echo " (Any other directories should still work fine.)" 1>&2
9378 fi
9379
9380 case "$host" in
9381 *msdosdjgpp*)
9382 enable_gdbtk=no ;;
9383 esac
9384
9385 # To find our prefix, in gcc_cv_tool_prefix.
9386
9387 # The user is always right.
9388 if test "${PATH_SEPARATOR+set}" != set; then
9389 echo "#! /bin/sh" >conf$$.sh
9390 echo "exit 0" >>conf$$.sh
9391 chmod +x conf$$.sh
9392 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9393 PATH_SEPARATOR=';'
9394 else
9395 PATH_SEPARATOR=:
9396 fi
9397 rm -f conf$$.sh
9398 fi
9399
9400
9401 get_gcc_base_ver="cat"
9402
9403 # Check whether --with-gcc-major-version-only was given.
9404 if test "${with_gcc_major_version_only+set}" = set; then :
9405 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9406 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9407 fi
9408
9409 fi
9410
9411
9412
9413
9414
9415
9416 if test "x$exec_prefix" = xNONE; then
9417 if test "x$prefix" = xNONE; then
9418 gcc_cv_tool_prefix=$ac_default_prefix
9419 else
9420 gcc_cv_tool_prefix=$prefix
9421 fi
9422 else
9423 gcc_cv_tool_prefix=$exec_prefix
9424 fi
9425
9426 # If there is no compiler in the tree, use the PATH only. In any
9427 # case, if there is no compiler in the tree nobody should use
9428 # AS_FOR_TARGET and LD_FOR_TARGET.
9429 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9430 if test x$with_gcc_major_version_only = xyes ; then
9431 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9432 else
9433 gcc_version=`cat $srcdir/gcc/BASE-VER`
9434 fi
9435 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9436 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9437 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9438 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9439 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9440 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9441 else
9442 gcc_cv_tool_dirs=
9443 fi
9444
9445 if test x$build = x$target && test -n "$md_exec_prefix"; then
9446 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9447 fi
9448
9449
9450
9451 copy_dirs=
9452
9453
9454 # Check whether --with-build-sysroot was given.
9455 if test "${with_build_sysroot+set}" = set; then :
9456 withval=$with_build_sysroot; if test x"$withval" != x ; then
9457 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9458 fi
9459 else
9460 SYSROOT_CFLAGS_FOR_TARGET=
9461 fi
9462
9463
9464
9465
9466 # Check whether --with-debug-prefix-map was given.
9467 if test "${with_debug_prefix_map+set}" = set; then :
9468 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9469 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9470 for debug_map in $withval; do
9471 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9472 done
9473 fi
9474 else
9475 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9476 fi
9477
9478
9479
9480 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9481 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9482 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9483 # We want to ensure that TARGET libraries (which we know are built with
9484 # gcc) are built with "-O2 -g", so include those options when setting
9485 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9486 if test "x$CFLAGS_FOR_TARGET" = x; then
9487 if test "x${is_cross_compiler}" = xyes; then
9488 CFLAGS_FOR_TARGET="-g -O2"
9489 else
9490 CFLAGS_FOR_TARGET=$CFLAGS
9491 case " $CFLAGS " in
9492 *" -O2 "*) ;;
9493 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9494 esac
9495 case " $CFLAGS " in
9496 *" -g "* | *" -g3 "*) ;;
9497 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9498 esac
9499 fi
9500 fi
9501
9502
9503 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9504 if test "x${is_cross_compiler}" = xyes; then
9505 CXXFLAGS_FOR_TARGET="-g -O2"
9506 else
9507 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9508 case " $CXXFLAGS " in
9509 *" -O2 "*) ;;
9510 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9511 esac
9512 case " $CXXFLAGS " in
9513 *" -g "* | *" -g3 "*) ;;
9514 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9515 esac
9516 fi
9517 fi
9518
9519
9520
9521
9522 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9523 # the named directory are copied to $(tooldir)/sys-include.
9524 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9525 if test x${is_cross_compiler} = xno ; then
9526 echo 1>&2 '***' --with-headers is only supported when cross compiling
9527 exit 1
9528 fi
9529 if test x"${with_headers}" != xyes ; then
9530 x=${gcc_cv_tool_prefix}
9531 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9532 fi
9533 fi
9534
9535 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9536 # the name directories are copied to $(tooldir)/lib. Multiple directories
9537 # are permitted.
9538 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9539 if test x${is_cross_compiler} = xno ; then
9540 echo 1>&2 '***' --with-libs is only supported when cross compiling
9541 exit 1
9542 fi
9543 if test x"${with_libs}" != xyes ; then
9544 # Copy the libraries in reverse order, so that files in the first named
9545 # library override files in subsequent libraries.
9546 x=${gcc_cv_tool_prefix}
9547 for l in ${with_libs}; do
9548 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9549 done
9550 fi
9551 fi
9552
9553 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9554 #
9555 # This is done by determining whether or not the appropriate directory
9556 # is available, and by checking whether or not specific configurations
9557 # have requested that this magic not happen.
9558 #
9559 # The command line options always override the explicit settings in
9560 # configure.ac, and the settings in configure.ac override this magic.
9561 #
9562 # If the default for a toolchain is to use GNU as and ld, and you don't
9563 # want to do that, then you should use the --without-gnu-as and
9564 # --without-gnu-ld options for the configure script. Similarly, if
9565 # the default is to use the included zlib and you don't want to do that,
9566 # you should use the --with-system-zlib option for the configure script.
9567
9568 if test x${use_gnu_as} = x &&
9569 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9570 with_gnu_as=yes
9571 extra_host_args="$extra_host_args --with-gnu-as"
9572 fi
9573
9574 if test x${use_gnu_ld} = x &&
9575 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9576 with_gnu_ld=yes
9577 extra_host_args="$extra_host_args --with-gnu-ld"
9578 fi
9579
9580 if test x${use_included_zlib} = x &&
9581 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9582 :
9583 else
9584 with_system_zlib=yes
9585 extra_host_args="$extra_host_args --with-system-zlib"
9586 fi
9587
9588 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9589 # can detect this case.
9590
9591 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9592 with_newlib=yes
9593 extra_host_args="$extra_host_args --with-newlib"
9594 fi
9595
9596 # Handle ${copy_dirs}
9597 set fnord ${copy_dirs}
9598 shift
9599 while test $# != 0 ; do
9600 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9601 :
9602 else
9603 echo Copying $1 to $2
9604
9605 # Use the install script to create the directory and all required
9606 # parent directories.
9607 if test -d $2 ; then
9608 :
9609 else
9610 echo >config.temp
9611 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9612 fi
9613
9614 # Copy the directory, assuming we have tar.
9615 # FIXME: Should we use B in the second tar? Not all systems support it.
9616 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9617
9618 # It is the responsibility of the user to correctly adjust all
9619 # symlinks. If somebody can figure out how to handle them correctly
9620 # here, feel free to add the code.
9621
9622 echo $1 > $2/COPIED
9623 fi
9624 shift; shift
9625 done
9626
9627 # Determine a target-dependent exec_prefix that the installed
9628 # gcc will search in. Keep this list sorted by triplet, with
9629 # the *-*-osname triplets last.
9630 md_exec_prefix=
9631 case "${target}" in
9632 i[34567]86-pc-msdosdjgpp*)
9633 md_exec_prefix=/dev/env/DJDIR/bin
9634 ;;
9635 *-*-hpux* | \
9636 *-*-nto-qnx* | \
9637 *-*-solaris2*)
9638 md_exec_prefix=/usr/ccs/bin
9639 ;;
9640 esac
9641
9642 extra_arflags_for_target=
9643 extra_nmflags_for_target=
9644 extra_ranlibflags_for_target=
9645 target_makefile_frag=/dev/null
9646 case "${target}" in
9647 spu-*-*)
9648 target_makefile_frag="config/mt-spu"
9649 ;;
9650 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9651 target_makefile_frag="config/mt-sde"
9652 ;;
9653 mipsisa*-*-elfoabi*)
9654 target_makefile_frag="config/mt-mips-elfoabi"
9655 ;;
9656 mips*-*-*linux* | mips*-*-gnu*)
9657 target_makefile_frag="config/mt-mips-gnu"
9658 ;;
9659 nios2-*-elf*)
9660 target_makefile_frag="config/mt-nios2-elf"
9661 ;;
9662 *-*-linux-android*)
9663 target_makefile_frag="config/mt-android"
9664 ;;
9665 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9666 target_makefile_frag="config/mt-gnu"
9667 ;;
9668 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9669 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9670 # commands to handle both 32-bit and 64-bit objects. These flags are
9671 # harmless if we're using GNU nm or ar.
9672 extra_arflags_for_target=" -X32_64"
9673 extra_nmflags_for_target=" -B -X32_64"
9674 ;;
9675 esac
9676
9677 alphaieee_frag=/dev/null
9678 case $target in
9679 alpha*-*-*)
9680 # This just makes sure to use the -mieee option to build target libs.
9681 # This should probably be set individually by each library.
9682 alphaieee_frag="config/mt-alphaieee"
9683 ;;
9684 esac
9685
9686 # If --enable-target-optspace always use -Os instead of -O2 to build
9687 # the target libraries, similarly if it is not specified, use -Os
9688 # on selected platforms.
9689 ospace_frag=/dev/null
9690 case "${enable_target_optspace}:${target}" in
9691 yes:*)
9692 ospace_frag="config/mt-ospace"
9693 ;;
9694 :d30v-*)
9695 ospace_frag="config/mt-d30v"
9696 ;;
9697 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9698 ospace_frag="config/mt-ospace"
9699 ;;
9700 no:* | :*)
9701 ;;
9702 *)
9703 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9704 ;;
9705 esac
9706
9707 # Some systems (e.g., one of the i386-aix systems the gas testers are
9708 # using) don't handle "\$" correctly, so don't use it here.
9709 tooldir='${exec_prefix}'/${target_noncanonical}
9710 build_tooldir=${tooldir}
9711
9712 # Create a .gdbinit file which runs the one in srcdir
9713 # and tells GDB to look there for source files.
9714
9715 if test -r ${srcdir}/.gdbinit ; then
9716 case ${srcdir} in
9717 .) ;;
9718 *) cat > ./.gdbinit <<EOF
9719 # ${NO_EDIT}
9720 dir ${srcdir}
9721 dir .
9722 source ${srcdir}/.gdbinit
9723 EOF
9724 ;;
9725 esac
9726 fi
9727
9728 # Make sure that the compiler is able to generate an executable. If it
9729 # can't, we are probably in trouble. We don't care whether we can run the
9730 # executable--we might be using a cross compiler--we only care whether it
9731 # can be created. At this point the main configure script has set CC.
9732 we_are_ok=no
9733 echo "int main () { return 0; }" > conftest.c
9734 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9735 if test $? = 0 ; then
9736 if test -s conftest || test -s conftest.exe ; then
9737 we_are_ok=yes
9738 fi
9739 fi
9740 case $we_are_ok in
9741 no)
9742 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9743 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9744 rm -f conftest*
9745 exit 1
9746 ;;
9747 esac
9748 rm -f conftest*
9749
9750 # Decide which environment variable is used to find dynamic libraries.
9751 case "${host}" in
9752 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9753 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9754 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9755 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9756 esac
9757
9758 # On systems where the dynamic library environment variable is PATH,
9759 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9760 # built executables to PATH.
9761 if test "$RPATH_ENVVAR" = PATH; then
9762 GCC_SHLIB_SUBDIR=/shlib
9763 else
9764 GCC_SHLIB_SUBDIR=
9765 fi
9766
9767 # Adjust the toplevel makefile according to whether bootstrap was selected.
9768 case $enable_bootstrap in
9769 yes)
9770 bootstrap_suffix=bootstrap
9771 BUILD_CONFIG=bootstrap-debug
9772 ;;
9773 no)
9774 bootstrap_suffix=no-bootstrap
9775 BUILD_CONFIG=
9776 ;;
9777 esac
9778
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9780 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9781
9782
9783 # Check whether --with-build-config was given.
9784 if test "${with_build_config+set}" = set; then :
9785 withval=$with_build_config; case $with_build_config in
9786 yes) with_build_config= ;;
9787 no) with_build_config= BUILD_CONFIG= ;;
9788 esac
9789 fi
9790
9791
9792 if test "x${with_build_config}" != x; then
9793 BUILD_CONFIG=$with_build_config
9794 else
9795 case $BUILD_CONFIG in
9796 bootstrap-debug)
9797 if echo "int f (void) { return 0; }" > conftest.c &&
9798 ${CC} -c conftest.c &&
9799 mv conftest.o conftest.o.g0 &&
9800 ${CC} -c -g conftest.c &&
9801 mv conftest.o conftest.o.g &&
9802 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9803 :
9804 else
9805 BUILD_CONFIG=
9806 fi
9807 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9808 ;;
9809 esac
9810 fi
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9812 $as_echo "$BUILD_CONFIG" >&6; }
9813
9814
9815 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9817 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9818 # Check whether --enable-vtable-verify was given.
9819 if test "${enable_vtable_verify+set}" = set; then :
9820 enableval=$enable_vtable_verify; case "$enableval" in
9821 yes) enable_vtable_verify=yes ;;
9822 no) enable_vtable_verify=no ;;
9823 *) enable_vtable_verify=no;;
9824 esac
9825 else
9826 enable_vtable_verify=no
9827 fi
9828
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9830 $as_echo "$enable_vtable_verify" >&6; }
9831
9832 # Record target_configdirs and the configure arguments for target and
9833 # build configuration in Makefile.
9834 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9835 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9836 bootstrap_fixincludes=no
9837
9838 # If we are building libgomp, bootstrap it.
9839 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9840 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9841 fi
9842
9843 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9844 # or bootstrap-ubsan, bootstrap it.
9845 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9846 case "$BUILD_CONFIG" in
9847 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9848 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9849 bootstrap_fixincludes=yes
9850 ;;
9851 esac
9852 fi
9853
9854 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9855 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9856 test "$enable_vtable_verify" != no; then
9857 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9858 fi
9859
9860 # If we are building libatomic and the list of enabled languages includes the
9861 # D frontend, bootstrap it.
9862 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9863 case ,${enable_languages}, in
9864 *,d,*)
9865 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9866 ;;
9867 esac
9868 fi
9869
9870 # Determine whether gdb needs tk/tcl or not.
9871 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9872 # and in that case we want gdb to be built without tk. Ugh!
9873 # In fact I believe gdb is the *only* package directly dependent on tk,
9874 # so we should be able to put the 'maybe's in unconditionally and
9875 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9876 # 100% sure that that's safe though.
9877
9878 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9879 case "$enable_gdbtk" in
9880 no)
9881 GDB_TK="" ;;
9882 yes)
9883 GDB_TK="${gdb_tk}" ;;
9884 *)
9885 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9886 # distro. Eventually someone will fix this and move Insight, nee
9887 # gdbtk to a separate directory.
9888 if test -d ${srcdir}/gdb/gdbtk ; then
9889 GDB_TK="${gdb_tk}"
9890 else
9891 GDB_TK=""
9892 fi
9893 ;;
9894 esac
9895 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9896 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9897
9898 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9899 # else does, only include them if one of these is built. The Makefile
9900 # provides the ordering, so it's enough here to add to the list.
9901 case " ${configdirs} " in
9902 *\ gdb\ *)
9903 configdirs="${configdirs} gnulib gdbsupport"
9904 ;;
9905 *\ gdbserver\ *)
9906 configdirs="${configdirs} gnulib gdbsupport"
9907 ;;
9908 *\ sim\ *)
9909 configdirs="${configdirs} gnulib"
9910 ;;
9911 esac
9912
9913 # Strip out unwanted targets.
9914
9915 # While at that, we remove Makefiles if we were started for recursive
9916 # configuration, so that the top-level Makefile reconfigures them,
9917 # like we used to do when configure itself was recursive.
9918
9919 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9920 # but now we're fixing up the Makefile ourselves with the additional
9921 # commands passed to AC_CONFIG_FILES. Use separate variables
9922 # extrasub-{build,host,target} not because there is any reason to split
9923 # the substitutions up that way, but only to remain below the limit of
9924 # 99 commands in a script, for HP-UX sed.
9925
9926 # Do not nest @if/@endif or @unless/@endunless pairs, because
9927 # configure will not warn you at all.
9928
9929 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9930 yes:yes:*\ gold\ *:*,c++,*) ;;
9931 yes:yes:*\ gold\ *:*)
9932 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9933 ;;
9934 esac
9935
9936 extrasub_build=
9937 for module in ${build_configdirs} ; do
9938 if test -z "${no_recursion}" \
9939 && test -f ${build_subdir}/${module}/Makefile; then
9940 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9941 rm -f ${build_subdir}/${module}/Makefile
9942 fi
9943 extrasub_build="$extrasub_build
9944 /^@if build-$module\$/d
9945 /^@endif build-$module\$/d
9946 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9947 /^@if build-$module-$bootstrap_suffix\$/d
9948 /^@endif build-$module-$bootstrap_suffix\$/d
9949 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9950 done
9951 extrasub_host=
9952 for module in ${configdirs} ; do
9953 if test -z "${no_recursion}"; then
9954 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9955 if test -f ${file}; then
9956 echo 1>&2 "*** removing ${file} to force reconfigure"
9957 rm -f ${file}
9958 fi
9959 done
9960 fi
9961 case ${module},${bootstrap_fixincludes} in
9962 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9963 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9964 esac
9965 extrasub_host="$extrasub_host
9966 /^@if $module\$/d
9967 /^@endif $module\$/d
9968 /^@unless $module\$/,/^@endunless $module\$/d
9969 /^@if $module-$host_bootstrap_suffix\$/d
9970 /^@endif $module-$host_bootstrap_suffix\$/d
9971 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9972 done
9973 extrasub_target=
9974 for module in ${target_configdirs} ; do
9975 if test -z "${no_recursion}" \
9976 && test -f ${target_subdir}/${module}/Makefile; then
9977 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9978 rm -f ${target_subdir}/${module}/Makefile
9979 fi
9980
9981 # We only bootstrap target libraries listed in bootstrap_target_libs.
9982 case $bootstrap_target_libs in
9983 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9984 *) target_bootstrap_suffix=no-bootstrap ;;
9985 esac
9986
9987 extrasub_target="$extrasub_target
9988 /^@if target-$module\$/d
9989 /^@endif target-$module\$/d
9990 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9991 /^@if target-$module-$target_bootstrap_suffix\$/d
9992 /^@endif target-$module-$target_bootstrap_suffix\$/d
9993 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9994 done
9995
9996 # Do the final fixup along with target modules.
9997 extrasub_target="$extrasub_target
9998 /^@if /,/^@endif /d
9999 /^@unless /d
10000 /^@endunless /d"
10001
10002 if test "$enable_pgo_build" != "no"; then
10003 extrasub_build="$extrasub_build
10004 /^@if pgo-build\$/d
10005 /^@endif pgo-build\$/d"
10006 fi
10007
10008 # Create the serialization dependencies. This uses a temporary file.
10009
10010 # Check whether --enable-serial-configure was given.
10011 if test "${enable_serial_configure+set}" = set; then :
10012 enableval=$enable_serial_configure;
10013 fi
10014
10015
10016 case ${enable_serial_configure} in
10017 yes)
10018 enable_serial_build_configure=yes
10019 enable_serial_host_configure=yes
10020 enable_serial_target_configure=yes
10021 ;;
10022 esac
10023
10024 # These force 'configure's to be done one at a time, to avoid problems
10025 # with contention over a shared config.cache.
10026 rm -f serdep.tmp
10027 echo '# serdep.tmp' > serdep.tmp
10028 olditem=
10029 test "x${enable_serial_build_configure}" = xyes &&
10030 for item in ${build_configdirs} ; do
10031 case ${olditem} in
10032 "") ;;
10033 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
10034 esac
10035 olditem=${item}
10036 done
10037 olditem=
10038 test "x${enable_serial_host_configure}" = xyes &&
10039 for item in ${configdirs} ; do
10040 case ${olditem} in
10041 "") ;;
10042 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
10043 esac
10044 olditem=${item}
10045 done
10046 olditem=
10047 test "x${enable_serial_target_configure}" = xyes &&
10048 for item in ${target_configdirs} ; do
10049 case ${olditem} in
10050 "") ;;
10051 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
10052 esac
10053 olditem=${item}
10054 done
10055 serialization_dependencies=serdep.tmp
10056
10057
10058 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10059 # target, nonopt, and variable assignments. These are the ones we
10060 # might not want to pass down to subconfigures. The exception being
10061 # --cache-file=/dev/null, which is used to turn off the use of cache
10062 # files altogether, and which should be passed on to subconfigures.
10063 # Also strip program-prefix, program-suffix, and program-transform-name,
10064 # so that we can pass down a consistent program-transform-name.
10065 baseargs=
10066 tbaseargs=
10067 keep_next=no
10068 skip_next=no
10069 eval "set -- $ac_configure_args"
10070 for ac_arg
10071 do
10072 if test X"$skip_next" = X"yes"; then
10073 skip_next=no
10074 continue
10075 fi
10076 if test X"$keep_next" = X"yes"; then
10077 case $ac_arg in
10078 *\'*)
10079 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10080 esac
10081 baseargs="$baseargs '$ac_arg'"
10082 tbaseargs="$tbaseargs '$ac_arg'"
10083 keep_next=no
10084 continue
10085 fi
10086
10087 # Handle separated arguments. Based on the logic generated by
10088 # autoconf 2.59.
10089 case $ac_arg in
10090 *=* | --config-cache | -C | -disable-* | --disable-* \
10091 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10092 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10093 | -with-* | --with-* | -without-* | --without-* | --x)
10094 separate_arg=no
10095 ;;
10096 -*)
10097 separate_arg=yes
10098 ;;
10099 *)
10100 separate_arg=no
10101 ;;
10102 esac
10103
10104 skip_targ=no
10105 case $ac_arg in
10106
10107 --with-* | --without-*)
10108 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10109
10110 case $libopt in
10111 *[-_]include)
10112 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10113 ;;
10114 *[-_]lib)
10115 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10116 ;;
10117 *)
10118 lib=$libopt
10119 ;;
10120 esac
10121
10122
10123 case $lib in
10124 mpc | mpfr | gmp | isl)
10125 # If we're processing --with-$lib, --with-$lib-include or
10126 # --with-$lib-lib, for one of the libs above, and target is
10127 # different from host, don't pass the current argument to any
10128 # target library's configure.
10129 if test x$is_cross_compiler = xyes; then
10130 skip_targ=yes
10131 fi
10132 ;;
10133 esac
10134 ;;
10135 esac
10136
10137 case "$ac_arg" in
10138 --cache-file=/dev/null | \
10139 -cache-file=/dev/null )
10140 # Handled here to avoid the test to skip args below.
10141 baseargs="$baseargs '$ac_arg'"
10142 tbaseargs="$tbaseargs '$ac_arg'"
10143 # Assert: $separate_arg should always be no.
10144 keep_next=$separate_arg
10145 ;;
10146 --no*)
10147 continue
10148 ;;
10149 --c* | \
10150 --sr* | \
10151 --ho* | \
10152 --bu* | \
10153 --t* | \
10154 --program-* | \
10155 -cache_file* | \
10156 -srcdir* | \
10157 -host* | \
10158 -build* | \
10159 -target* | \
10160 -program-prefix* | \
10161 -program-suffix* | \
10162 -program-transform-name* )
10163 skip_next=$separate_arg
10164 continue
10165 ;;
10166 -*)
10167 # An option. Add it.
10168 case $ac_arg in
10169 *\'*)
10170 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10171 esac
10172 baseargs="$baseargs '$ac_arg'"
10173 if test X"$skip_targ" = Xno; then
10174 tbaseargs="$tbaseargs '$ac_arg'"
10175 fi
10176 keep_next=$separate_arg
10177 ;;
10178 *)
10179 # Either a variable assignment, or a nonopt (triplet). Don't
10180 # pass it down; let the Makefile handle this.
10181 continue
10182 ;;
10183 esac
10184 done
10185 # Remove the initial space we just introduced and, as these will be
10186 # expanded by make, quote '$'.
10187 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10188
10189 # Add in --program-transform-name, after --program-prefix and
10190 # --program-suffix have been applied to it. Autoconf has already
10191 # doubled dollar signs and backslashes in program_transform_name; we want
10192 # the backslashes un-doubled, and then the entire thing wrapped in single
10193 # quotes, because this will be expanded first by make and then by the shell.
10194 # Also, because we want to override the logic in subdir configure scripts to
10195 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10196 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10197 ${program_transform_name}
10198 EOF_SED
10199 gcc_transform_name=`cat conftestsed.out`
10200 rm -f conftestsed.out
10201 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10202 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10203 if test "$silent" = yes; then
10204 baseargs="$baseargs --silent"
10205 tbaseargs="$tbaseargs --silent"
10206 fi
10207
10208 baseargs="$baseargs --disable-option-checking"
10209 tbaseargs="$tbaseargs --disable-option-checking"
10210
10211 if test "$enable_year2038" = no; then
10212 baseargs="$baseargs --disable-year2038"
10213 tbaseargs="$tbaseargs --disable-year2038"
10214 fi
10215
10216 # Record and document user additions to sub configure arguments.
10217
10218
10219
10220
10221 # For the build-side libraries, we just need to pretend we're native,
10222 # and not use the same cache file. Multilibs are neither needed nor
10223 # desired. We can't even use the same cache file for all build-side
10224 # libraries, as they're compiled differently; some with C, some with
10225 # C++ or with different feature-enabling options.
10226 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10227
10228 # For host modules, accept cache file option, or specification as blank.
10229 case "${cache_file}" in
10230 "") # empty
10231 cache_file_option="" ;;
10232 /* | [A-Za-z]:[\\/]* ) # absolute path
10233 cache_file_option="--cache-file=${cache_file}" ;;
10234 *) # relative path
10235 cache_file_option="--cache-file=../${cache_file}" ;;
10236 esac
10237
10238 # Host dirs don't like to share a cache file either, horribly enough.
10239 # This seems to be due to autoconf 2.5x stupidity.
10240 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10241
10242 target_configargs="$target_configargs ${tbaseargs}"
10243
10244 # Passing a --with-cross-host argument lets the target libraries know
10245 # whether they are being built with a cross-compiler or being built
10246 # native. However, it would be better to use other mechanisms to make the
10247 # sorts of decisions they want to make on this basis. Please consider
10248 # this option to be deprecated. FIXME.
10249 if test x${is_cross_compiler} = xyes ; then
10250 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10251 fi
10252
10253 # Special user-friendly check for native x86_64-linux build, if
10254 # multilib is not explicitly enabled.
10255 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10256 x86_64-*linux*:yes:$build:$build:)
10257 # Make sure we have a development environment that handles 32-bit
10258 dev64=no
10259 echo "int main () { return 0; }" > conftest.c
10260 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10261 if test $? = 0 ; then
10262 if test -s conftest || test -s conftest.exe ; then
10263 dev64=yes
10264 fi
10265 fi
10266 rm -f conftest*
10267 if test x${dev64} != xyes ; then
10268 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
10269 fi
10270 ;;
10271 esac
10272
10273 # Default to --enable-multilib.
10274 if test x${enable_multilib} = x ; then
10275 target_configargs="--enable-multilib ${target_configargs}"
10276 fi
10277
10278 # Pass --with-newlib if appropriate. Note that target_configdirs has
10279 # changed from the earlier setting of with_newlib.
10280 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10281 target_configargs="--with-newlib ${target_configargs}"
10282 fi
10283
10284 # Different target subdirs use different values of certain variables
10285 # (notably CXX). Worse, multilibs use *lots* of different values.
10286 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10287 # it doesn't automatically accept command-line overrides of them.
10288 # This means it's not safe for target subdirs to share a cache file,
10289 # which is disgusting, but there you have it. Hopefully this can be
10290 # fixed in future. It's still worthwhile to use a cache file for each
10291 # directory. I think.
10292
10293 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10294 # We need to pass --target, as newer autoconf's requires consistency
10295 # for target_alias and gcc doesn't manage it consistently.
10296 target_configargs="--cache-file=./config.cache ${target_configargs}"
10297
10298 FLAGS_FOR_TARGET=
10299 case " $target_configdirs " in
10300 *" newlib "*)
10301 case " $target_configargs " in
10302 *" --with-newlib "*)
10303 case "$target" in
10304 *-cygwin*)
10305 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10306 ;;
10307 esac
10308
10309 # If we're not building GCC, don't discard standard headers.
10310 if test -d ${srcdir}/gcc; then
10311 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10312
10313 if test "${build}" != "${host}"; then
10314 # On Canadian crosses, CC_FOR_TARGET will have already been set
10315 # by `configure', so we won't have an opportunity to add -Bgcc/
10316 # to it. This is right: we don't want to search that directory
10317 # for binaries, but we want the header files in there, so add
10318 # them explicitly.
10319 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10320
10321 # Someone might think of using the pre-installed headers on
10322 # Canadian crosses, in case the installed compiler is not fully
10323 # compatible with the compiler being built. In this case, it
10324 # would be better to flag an error than risking having
10325 # incompatible object files being constructed. We can't
10326 # guarantee that an error will be flagged, but let's hope the
10327 # compiler will do it, when presented with incompatible header
10328 # files.
10329 fi
10330 fi
10331
10332 case "${target}-${is_cross_compiler}" in
10333 i[3456789]86-*-linux*-no)
10334 # Here host == target, so we don't need to build gcc,
10335 # so we don't want to discard standard headers.
10336 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10337 ;;
10338 *)
10339 # If we're building newlib, use its generic headers last, but search
10340 # for any libc-related directories first (so make it the last -B
10341 # switch).
10342 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10343
10344 # If we're building libgloss, find the startup file, simulator library
10345 # and linker script.
10346 case " $target_configdirs " in
10347 *" libgloss "*)
10348 # Look for startup file, simulator library and maybe linker script.
10349 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10350 # Look for libnosys.a in case the target needs it.
10351 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10352 # Most targets have the linker script in the source directory.
10353 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10354 ;;
10355 esac
10356 ;;
10357 esac
10358 ;;
10359 esac
10360 ;;
10361 esac
10362
10363 case "$target" in
10364 x86_64-*mingw* | *-w64-mingw*)
10365 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10366 # however, use a symlink named 'mingw' in ${prefix} .
10367 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10368 ;;
10369 *-mingw*)
10370 # MinGW can't be handled as Cygwin above since it does not use newlib.
10371 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'
10372 ;;
10373 esac
10374
10375 # Allow the user to override the flags for
10376 # our build compiler if desired.
10377 if test x"${build}" = x"${host}" ; then
10378 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10379 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10380 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10381 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10382 fi
10383
10384 # On Canadian crosses, we'll be searching the right directories for
10385 # the previously-installed cross compiler, so don't bother to add
10386 # flags for directories within the install tree of the compiler
10387 # being built; programs in there won't even run.
10388 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10389 # Search for pre-installed headers if nothing else fits.
10390 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10391 fi
10392
10393 if test "x${use_gnu_ld}" = x &&
10394 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10395 # Arrange for us to find uninstalled linker scripts.
10396 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10397 fi
10398
10399 # Search for other target-specific linker scripts and such.
10400 case "${target}" in
10401 mep*)
10402 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10403 ;;
10404 # The VxWorks support for shared libraries is getting in
10405 # incrementally. Make sure it doesn't get activated implicitly:
10406 *vxworks*)
10407 if test "${enable_shared-unset}" = unset ; then
10408 enable_shared=no
10409 # So the build of libraries knows ...
10410 target_configargs="${target_configargs} --disable-shared"
10411 # So gcc knows ...
10412 host_configargs="${host_configargs} --disable-shared"
10413 fi
10414 ;;
10415 esac
10416
10417 # Makefile fragments.
10418 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10419 do
10420 eval fragval=\$$frag
10421 if test $fragval != /dev/null; then
10422 eval $frag=${srcdir}/$fragval
10423 fi
10424 done
10425
10426
10427
10428
10429
10430 # Miscellanea: directories, flags, etc.
10431
10432
10433
10434
10435
10436
10437
10438
10439 # Build module lists & subconfigure args.
10440
10441
10442
10443 # Host module lists & subconfigure args.
10444
10445
10446
10447
10448 # Target module lists & subconfigure args.
10449
10450
10451
10452 # Build tools.
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473 # Generate default definitions for YACC, M4, LEX and other programs that run
10474 # on the build machine. These are used if the Makefile can't locate these
10475 # programs in objdir.
10476 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10477
10478 for ac_prog in 'bison -y' byacc yacc
10479 do
10480 # Extract the first word of "$ac_prog", so it can be a program name with args.
10481 set dummy $ac_prog; ac_word=$2
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483 $as_echo_n "checking for $ac_word... " >&6; }
10484 if ${ac_cv_prog_YACC+:} false; then :
10485 $as_echo_n "(cached) " >&6
10486 else
10487 if test -n "$YACC"; then
10488 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10489 else
10490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491 for as_dir in $PATH
10492 do
10493 IFS=$as_save_IFS
10494 test -z "$as_dir" && as_dir=.
10495 for ac_exec_ext in '' $ac_executable_extensions; do
10496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10497 ac_cv_prog_YACC="$ac_prog"
10498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10499 break 2
10500 fi
10501 done
10502 done
10503 IFS=$as_save_IFS
10504
10505 fi
10506 fi
10507 YACC=$ac_cv_prog_YACC
10508 if test -n "$YACC"; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10510 $as_echo "$YACC" >&6; }
10511 else
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513 $as_echo "no" >&6; }
10514 fi
10515
10516
10517 test -n "$YACC" && break
10518 done
10519 test -n "$YACC" || YACC="$MISSING bison -y"
10520
10521 case " $build_configdirs " in
10522 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10523 esac
10524
10525 for ac_prog in bison
10526 do
10527 # Extract the first word of "$ac_prog", so it can be a program name with args.
10528 set dummy $ac_prog; ac_word=$2
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10530 $as_echo_n "checking for $ac_word... " >&6; }
10531 if ${ac_cv_prog_BISON+:} false; then :
10532 $as_echo_n "(cached) " >&6
10533 else
10534 if test -n "$BISON"; then
10535 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10536 else
10537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10538 for as_dir in $PATH
10539 do
10540 IFS=$as_save_IFS
10541 test -z "$as_dir" && as_dir=.
10542 for ac_exec_ext in '' $ac_executable_extensions; do
10543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10544 ac_cv_prog_BISON="$ac_prog"
10545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10546 break 2
10547 fi
10548 done
10549 done
10550 IFS=$as_save_IFS
10551
10552 fi
10553 fi
10554 BISON=$ac_cv_prog_BISON
10555 if test -n "$BISON"; then
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10557 $as_echo "$BISON" >&6; }
10558 else
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10560 $as_echo "no" >&6; }
10561 fi
10562
10563
10564 test -n "$BISON" && break
10565 done
10566 test -n "$BISON" || BISON="$MISSING bison"
10567
10568 case " $build_configdirs " in
10569 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10570 esac
10571
10572 for ac_prog in gm4 gnum4 m4
10573 do
10574 # Extract the first word of "$ac_prog", so it can be a program name with args.
10575 set dummy $ac_prog; ac_word=$2
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10577 $as_echo_n "checking for $ac_word... " >&6; }
10578 if ${ac_cv_prog_M4+:} false; then :
10579 $as_echo_n "(cached) " >&6
10580 else
10581 if test -n "$M4"; then
10582 ac_cv_prog_M4="$M4" # Let the user override the test.
10583 else
10584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585 for as_dir in $PATH
10586 do
10587 IFS=$as_save_IFS
10588 test -z "$as_dir" && as_dir=.
10589 for ac_exec_ext in '' $ac_executable_extensions; do
10590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10591 ac_cv_prog_M4="$ac_prog"
10592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10593 break 2
10594 fi
10595 done
10596 done
10597 IFS=$as_save_IFS
10598
10599 fi
10600 fi
10601 M4=$ac_cv_prog_M4
10602 if test -n "$M4"; then
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10604 $as_echo "$M4" >&6; }
10605 else
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; }
10608 fi
10609
10610
10611 test -n "$M4" && break
10612 done
10613 test -n "$M4" || M4="$MISSING m4"
10614
10615 case " $build_configdirs " in
10616 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10617 esac
10618
10619 for ac_prog in flex lex
10620 do
10621 # Extract the first word of "$ac_prog", so it can be a program name with args.
10622 set dummy $ac_prog; ac_word=$2
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10624 $as_echo_n "checking for $ac_word... " >&6; }
10625 if ${ac_cv_prog_LEX+:} false; then :
10626 $as_echo_n "(cached) " >&6
10627 else
10628 if test -n "$LEX"; then
10629 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10630 else
10631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10632 for as_dir in $PATH
10633 do
10634 IFS=$as_save_IFS
10635 test -z "$as_dir" && as_dir=.
10636 for ac_exec_ext in '' $ac_executable_extensions; do
10637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10638 ac_cv_prog_LEX="$ac_prog"
10639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10640 break 2
10641 fi
10642 done
10643 done
10644 IFS=$as_save_IFS
10645
10646 fi
10647 fi
10648 LEX=$ac_cv_prog_LEX
10649 if test -n "$LEX"; then
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10651 $as_echo "$LEX" >&6; }
10652 else
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654 $as_echo "no" >&6; }
10655 fi
10656
10657
10658 test -n "$LEX" && break
10659 done
10660 test -n "$LEX" || LEX="$MISSING flex"
10661
10662 case " $build_configdirs " in
10663 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10664 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10665 esac
10666
10667 for ac_prog in flex
10668 do
10669 # Extract the first word of "$ac_prog", so it can be a program name with args.
10670 set dummy $ac_prog; ac_word=$2
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10672 $as_echo_n "checking for $ac_word... " >&6; }
10673 if ${ac_cv_prog_FLEX+:} false; then :
10674 $as_echo_n "(cached) " >&6
10675 else
10676 if test -n "$FLEX"; then
10677 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10678 else
10679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10680 for as_dir in $PATH
10681 do
10682 IFS=$as_save_IFS
10683 test -z "$as_dir" && as_dir=.
10684 for ac_exec_ext in '' $ac_executable_extensions; do
10685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10686 ac_cv_prog_FLEX="$ac_prog"
10687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10688 break 2
10689 fi
10690 done
10691 done
10692 IFS=$as_save_IFS
10693
10694 fi
10695 fi
10696 FLEX=$ac_cv_prog_FLEX
10697 if test -n "$FLEX"; then
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10699 $as_echo "$FLEX" >&6; }
10700 else
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10702 $as_echo "no" >&6; }
10703 fi
10704
10705
10706 test -n "$FLEX" && break
10707 done
10708 test -n "$FLEX" || FLEX="$MISSING flex"
10709
10710 case " $build_configdirs " in
10711 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10712 esac
10713
10714 for ac_prog in makeinfo
10715 do
10716 # Extract the first word of "$ac_prog", so it can be a program name with args.
10717 set dummy $ac_prog; ac_word=$2
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10719 $as_echo_n "checking for $ac_word... " >&6; }
10720 if ${ac_cv_prog_MAKEINFO+:} false; then :
10721 $as_echo_n "(cached) " >&6
10722 else
10723 if test -n "$MAKEINFO"; then
10724 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10725 else
10726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10727 for as_dir in $PATH
10728 do
10729 IFS=$as_save_IFS
10730 test -z "$as_dir" && as_dir=.
10731 for ac_exec_ext in '' $ac_executable_extensions; do
10732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10733 ac_cv_prog_MAKEINFO="$ac_prog"
10734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10735 break 2
10736 fi
10737 done
10738 done
10739 IFS=$as_save_IFS
10740
10741 fi
10742 fi
10743 MAKEINFO=$ac_cv_prog_MAKEINFO
10744 if test -n "$MAKEINFO"; then
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10746 $as_echo "$MAKEINFO" >&6; }
10747 else
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749 $as_echo "no" >&6; }
10750 fi
10751
10752
10753 test -n "$MAKEINFO" && break
10754 done
10755 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10756
10757 case " $build_configdirs " in
10758 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10759 *)
10760
10761 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10762 # higher, else we use the "missing" dummy.
10763 if ${MAKEINFO} --version \
10764 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10765 :
10766 else
10767 MAKEINFO="$MISSING makeinfo"
10768 fi
10769 ;;
10770
10771 esac
10772
10773 # FIXME: expect and dejagnu may become build tools?
10774
10775 for ac_prog in expect
10776 do
10777 # Extract the first word of "$ac_prog", so it can be a program name with args.
10778 set dummy $ac_prog; ac_word=$2
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10780 $as_echo_n "checking for $ac_word... " >&6; }
10781 if ${ac_cv_prog_EXPECT+:} false; then :
10782 $as_echo_n "(cached) " >&6
10783 else
10784 if test -n "$EXPECT"; then
10785 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10786 else
10787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10788 for as_dir in $PATH
10789 do
10790 IFS=$as_save_IFS
10791 test -z "$as_dir" && as_dir=.
10792 for ac_exec_ext in '' $ac_executable_extensions; do
10793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10794 ac_cv_prog_EXPECT="$ac_prog"
10795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10796 break 2
10797 fi
10798 done
10799 done
10800 IFS=$as_save_IFS
10801
10802 fi
10803 fi
10804 EXPECT=$ac_cv_prog_EXPECT
10805 if test -n "$EXPECT"; then
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10807 $as_echo "$EXPECT" >&6; }
10808 else
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10810 $as_echo "no" >&6; }
10811 fi
10812
10813
10814 test -n "$EXPECT" && break
10815 done
10816 test -n "$EXPECT" || EXPECT="expect"
10817
10818 case " $configdirs " in
10819 *" expect "*)
10820 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10821 ;;
10822 esac
10823
10824 for ac_prog in runtest
10825 do
10826 # Extract the first word of "$ac_prog", so it can be a program name with args.
10827 set dummy $ac_prog; ac_word=$2
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10829 $as_echo_n "checking for $ac_word... " >&6; }
10830 if ${ac_cv_prog_RUNTEST+:} false; then :
10831 $as_echo_n "(cached) " >&6
10832 else
10833 if test -n "$RUNTEST"; then
10834 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10835 else
10836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10838 do
10839 IFS=$as_save_IFS
10840 test -z "$as_dir" && as_dir=.
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843 ac_cv_prog_RUNTEST="$ac_prog"
10844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 break 2
10846 fi
10847 done
10848 done
10849 IFS=$as_save_IFS
10850
10851 fi
10852 fi
10853 RUNTEST=$ac_cv_prog_RUNTEST
10854 if test -n "$RUNTEST"; then
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10856 $as_echo "$RUNTEST" >&6; }
10857 else
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859 $as_echo "no" >&6; }
10860 fi
10861
10862
10863 test -n "$RUNTEST" && break
10864 done
10865 test -n "$RUNTEST" || RUNTEST="runtest"
10866
10867 case " $configdirs " in
10868 *" dejagnu "*)
10869 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10870 ;;
10871 esac
10872
10873
10874 # Host tools.
10875 ncn_tool_prefix=
10876 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10877 ncn_target_tool_prefix=
10878 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10879
10880
10881
10882 if test -n "$AR"; then
10883 ac_cv_prog_AR=$AR
10884 elif test -n "$ac_cv_prog_AR"; then
10885 AR=$ac_cv_prog_AR
10886 fi
10887
10888 if test -n "$ac_cv_prog_AR"; then
10889 for ncn_progname in ar; do
10890 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10891 set dummy ${ncn_progname}; ac_word=$2
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10893 $as_echo_n "checking for $ac_word... " >&6; }
10894 if ${ac_cv_prog_AR+:} false; then :
10895 $as_echo_n "(cached) " >&6
10896 else
10897 if test -n "$AR"; then
10898 ac_cv_prog_AR="$AR" # Let the user override the test.
10899 else
10900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901 for as_dir in $PATH
10902 do
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10907 ac_cv_prog_AR="${ncn_progname}"
10908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10909 break 2
10910 fi
10911 done
10912 done
10913 IFS=$as_save_IFS
10914
10915 fi
10916 fi
10917 AR=$ac_cv_prog_AR
10918 if test -n "$AR"; then
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10920 $as_echo "$AR" >&6; }
10921 else
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10923 $as_echo "no" >&6; }
10924 fi
10925
10926
10927 done
10928 fi
10929
10930 for ncn_progname in ar; do
10931 if test -n "$ncn_tool_prefix"; then
10932 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10933 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935 $as_echo_n "checking for $ac_word... " >&6; }
10936 if ${ac_cv_prog_AR+:} false; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 if test -n "$AR"; then
10940 ac_cv_prog_AR="$AR" # Let the user override the test.
10941 else
10942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943 for as_dir in $PATH
10944 do
10945 IFS=$as_save_IFS
10946 test -z "$as_dir" && as_dir=.
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10949 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10951 break 2
10952 fi
10953 done
10954 done
10955 IFS=$as_save_IFS
10956
10957 fi
10958 fi
10959 AR=$ac_cv_prog_AR
10960 if test -n "$AR"; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10962 $as_echo "$AR" >&6; }
10963 else
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965 $as_echo "no" >&6; }
10966 fi
10967
10968
10969 fi
10970 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10972 set dummy ${ncn_progname}; ac_word=$2
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974 $as_echo_n "checking for $ac_word... " >&6; }
10975 if ${ac_cv_prog_AR+:} false; then :
10976 $as_echo_n "(cached) " >&6
10977 else
10978 if test -n "$AR"; then
10979 ac_cv_prog_AR="$AR" # Let the user override the test.
10980 else
10981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982 for as_dir in $PATH
10983 do
10984 IFS=$as_save_IFS
10985 test -z "$as_dir" && as_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10988 ac_cv_prog_AR="${ncn_progname}"
10989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10990 break 2
10991 fi
10992 done
10993 done
10994 IFS=$as_save_IFS
10995
10996 fi
10997 fi
10998 AR=$ac_cv_prog_AR
10999 if test -n "$AR"; then
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11001 $as_echo "$AR" >&6; }
11002 else
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11005 fi
11006
11007
11008 fi
11009 test -n "$ac_cv_prog_AR" && break
11010 done
11011
11012 if test -z "$ac_cv_prog_AR" ; then
11013 set dummy ar
11014 if test $build = $host ; then
11015 AR="$2"
11016 else
11017 AR="${ncn_tool_prefix}$2"
11018 fi
11019 fi
11020
11021
11022
11023 if test -n "$AS"; then
11024 ac_cv_prog_AS=$AS
11025 elif test -n "$ac_cv_prog_AS"; then
11026 AS=$ac_cv_prog_AS
11027 fi
11028
11029 if test -n "$ac_cv_prog_AS"; then
11030 for ncn_progname in as; do
11031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11032 set dummy ${ncn_progname}; ac_word=$2
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11034 $as_echo_n "checking for $ac_word... " >&6; }
11035 if ${ac_cv_prog_AS+:} false; then :
11036 $as_echo_n "(cached) " >&6
11037 else
11038 if test -n "$AS"; then
11039 ac_cv_prog_AS="$AS" # Let the user override the test.
11040 else
11041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11043 do
11044 IFS=$as_save_IFS
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11048 ac_cv_prog_AS="${ncn_progname}"
11049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11050 break 2
11051 fi
11052 done
11053 done
11054 IFS=$as_save_IFS
11055
11056 fi
11057 fi
11058 AS=$ac_cv_prog_AS
11059 if test -n "$AS"; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11061 $as_echo "$AS" >&6; }
11062 else
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11065 fi
11066
11067
11068 done
11069 fi
11070
11071 for ncn_progname in as; do
11072 if test -n "$ncn_tool_prefix"; then
11073 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11074 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11076 $as_echo_n "checking for $ac_word... " >&6; }
11077 if ${ac_cv_prog_AS+:} false; then :
11078 $as_echo_n "(cached) " >&6
11079 else
11080 if test -n "$AS"; then
11081 ac_cv_prog_AS="$AS" # Let the user override the test.
11082 else
11083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084 for as_dir in $PATH
11085 do
11086 IFS=$as_save_IFS
11087 test -z "$as_dir" && as_dir=.
11088 for ac_exec_ext in '' $ac_executable_extensions; do
11089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11090 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11092 break 2
11093 fi
11094 done
11095 done
11096 IFS=$as_save_IFS
11097
11098 fi
11099 fi
11100 AS=$ac_cv_prog_AS
11101 if test -n "$AS"; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11103 $as_echo "$AS" >&6; }
11104 else
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106 $as_echo "no" >&6; }
11107 fi
11108
11109
11110 fi
11111 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11113 set dummy ${ncn_progname}; ac_word=$2
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11115 $as_echo_n "checking for $ac_word... " >&6; }
11116 if ${ac_cv_prog_AS+:} false; then :
11117 $as_echo_n "(cached) " >&6
11118 else
11119 if test -n "$AS"; then
11120 ac_cv_prog_AS="$AS" # Let the user override the test.
11121 else
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123 for as_dir in $PATH
11124 do
11125 IFS=$as_save_IFS
11126 test -z "$as_dir" && as_dir=.
11127 for ac_exec_ext in '' $ac_executable_extensions; do
11128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11129 ac_cv_prog_AS="${ncn_progname}"
11130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11131 break 2
11132 fi
11133 done
11134 done
11135 IFS=$as_save_IFS
11136
11137 fi
11138 fi
11139 AS=$ac_cv_prog_AS
11140 if test -n "$AS"; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11142 $as_echo "$AS" >&6; }
11143 else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145 $as_echo "no" >&6; }
11146 fi
11147
11148
11149 fi
11150 test -n "$ac_cv_prog_AS" && break
11151 done
11152
11153 if test -z "$ac_cv_prog_AS" ; then
11154 set dummy as
11155 if test $build = $host ; then
11156 AS="$2"
11157 else
11158 AS="${ncn_tool_prefix}$2"
11159 fi
11160 fi
11161
11162
11163
11164 if test -n "$DLLTOOL"; then
11165 ac_cv_prog_DLLTOOL=$DLLTOOL
11166 elif test -n "$ac_cv_prog_DLLTOOL"; then
11167 DLLTOOL=$ac_cv_prog_DLLTOOL
11168 fi
11169
11170 if test -n "$ac_cv_prog_DLLTOOL"; then
11171 for ncn_progname in dlltool; do
11172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11173 set dummy ${ncn_progname}; ac_word=$2
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11175 $as_echo_n "checking for $ac_word... " >&6; }
11176 if ${ac_cv_prog_DLLTOOL+:} false; then :
11177 $as_echo_n "(cached) " >&6
11178 else
11179 if test -n "$DLLTOOL"; then
11180 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11181 else
11182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183 for as_dir in $PATH
11184 do
11185 IFS=$as_save_IFS
11186 test -z "$as_dir" && as_dir=.
11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11189 ac_cv_prog_DLLTOOL="${ncn_progname}"
11190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11191 break 2
11192 fi
11193 done
11194 done
11195 IFS=$as_save_IFS
11196
11197 fi
11198 fi
11199 DLLTOOL=$ac_cv_prog_DLLTOOL
11200 if test -n "$DLLTOOL"; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11202 $as_echo "$DLLTOOL" >&6; }
11203 else
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205 $as_echo "no" >&6; }
11206 fi
11207
11208
11209 done
11210 fi
11211
11212 for ncn_progname in dlltool; do
11213 if test -n "$ncn_tool_prefix"; then
11214 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11215 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11217 $as_echo_n "checking for $ac_word... " >&6; }
11218 if ${ac_cv_prog_DLLTOOL+:} false; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 if test -n "$DLLTOOL"; then
11222 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11223 else
11224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11225 for as_dir in $PATH
11226 do
11227 IFS=$as_save_IFS
11228 test -z "$as_dir" && as_dir=.
11229 for ac_exec_ext in '' $ac_executable_extensions; do
11230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11231 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11233 break 2
11234 fi
11235 done
11236 done
11237 IFS=$as_save_IFS
11238
11239 fi
11240 fi
11241 DLLTOOL=$ac_cv_prog_DLLTOOL
11242 if test -n "$DLLTOOL"; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11244 $as_echo "$DLLTOOL" >&6; }
11245 else
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247 $as_echo "no" >&6; }
11248 fi
11249
11250
11251 fi
11252 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11254 set dummy ${ncn_progname}; ac_word=$2
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11256 $as_echo_n "checking for $ac_word... " >&6; }
11257 if ${ac_cv_prog_DLLTOOL+:} false; then :
11258 $as_echo_n "(cached) " >&6
11259 else
11260 if test -n "$DLLTOOL"; then
11261 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11262 else
11263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264 for as_dir in $PATH
11265 do
11266 IFS=$as_save_IFS
11267 test -z "$as_dir" && as_dir=.
11268 for ac_exec_ext in '' $ac_executable_extensions; do
11269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11270 ac_cv_prog_DLLTOOL="${ncn_progname}"
11271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11272 break 2
11273 fi
11274 done
11275 done
11276 IFS=$as_save_IFS
11277
11278 fi
11279 fi
11280 DLLTOOL=$ac_cv_prog_DLLTOOL
11281 if test -n "$DLLTOOL"; then
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11283 $as_echo "$DLLTOOL" >&6; }
11284 else
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11286 $as_echo "no" >&6; }
11287 fi
11288
11289
11290 fi
11291 test -n "$ac_cv_prog_DLLTOOL" && break
11292 done
11293
11294 if test -z "$ac_cv_prog_DLLTOOL" ; then
11295 set dummy dlltool
11296 if test $build = $host ; then
11297 DLLTOOL="$2"
11298 else
11299 DLLTOOL="${ncn_tool_prefix}$2"
11300 fi
11301 fi
11302
11303
11304
11305 if test -n "$DSYMUTIL"; then
11306 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11307 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11308 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11309 fi
11310
11311 if test -n "$ac_cv_prog_DSYMUTIL"; then
11312 for ncn_progname in dsymutil; do
11313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11314 set dummy ${ncn_progname}; ac_word=$2
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11316 $as_echo_n "checking for $ac_word... " >&6; }
11317 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11318 $as_echo_n "(cached) " >&6
11319 else
11320 if test -n "$DSYMUTIL"; then
11321 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11322 else
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11325 do
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11330 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11332 break 2
11333 fi
11334 done
11335 done
11336 IFS=$as_save_IFS
11337
11338 fi
11339 fi
11340 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11341 if test -n "$DSYMUTIL"; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11343 $as_echo "$DSYMUTIL" >&6; }
11344 else
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11347 fi
11348
11349
11350 done
11351 fi
11352
11353 for ncn_progname in dsymutil; do
11354 if test -n "$ncn_tool_prefix"; then
11355 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11356 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11358 $as_echo_n "checking for $ac_word... " >&6; }
11359 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11362 if test -n "$DSYMUTIL"; then
11363 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11364 else
11365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11366 for as_dir in $PATH
11367 do
11368 IFS=$as_save_IFS
11369 test -z "$as_dir" && as_dir=.
11370 for ac_exec_ext in '' $ac_executable_extensions; do
11371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11372 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11374 break 2
11375 fi
11376 done
11377 done
11378 IFS=$as_save_IFS
11379
11380 fi
11381 fi
11382 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11383 if test -n "$DSYMUTIL"; then
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11385 $as_echo "$DSYMUTIL" >&6; }
11386 else
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11388 $as_echo "no" >&6; }
11389 fi
11390
11391
11392 fi
11393 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11395 set dummy ${ncn_progname}; ac_word=$2
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11397 $as_echo_n "checking for $ac_word... " >&6; }
11398 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11399 $as_echo_n "(cached) " >&6
11400 else
11401 if test -n "$DSYMUTIL"; then
11402 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11403 else
11404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in $PATH
11406 do
11407 IFS=$as_save_IFS
11408 test -z "$as_dir" && as_dir=.
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11411 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11413 break 2
11414 fi
11415 done
11416 done
11417 IFS=$as_save_IFS
11418
11419 fi
11420 fi
11421 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11422 if test -n "$DSYMUTIL"; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11424 $as_echo "$DSYMUTIL" >&6; }
11425 else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11428 fi
11429
11430
11431 fi
11432 test -n "$ac_cv_prog_DSYMUTIL" && break
11433 done
11434
11435 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11436 set dummy dsymutil
11437 if test $build = $host ; then
11438 DSYMUTIL="$2"
11439 else
11440 DSYMUTIL="${ncn_tool_prefix}$2"
11441 fi
11442 fi
11443
11444
11445
11446 if test -n "$LD"; then
11447 ac_cv_prog_LD=$LD
11448 elif test -n "$ac_cv_prog_LD"; then
11449 LD=$ac_cv_prog_LD
11450 fi
11451
11452 if test -n "$ac_cv_prog_LD"; then
11453 for ncn_progname in ld; do
11454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11455 set dummy ${ncn_progname}; ac_word=$2
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11457 $as_echo_n "checking for $ac_word... " >&6; }
11458 if ${ac_cv_prog_LD+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 if test -n "$LD"; then
11462 ac_cv_prog_LD="$LD" # Let the user override the test.
11463 else
11464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in $PATH
11466 do
11467 IFS=$as_save_IFS
11468 test -z "$as_dir" && as_dir=.
11469 for ac_exec_ext in '' $ac_executable_extensions; do
11470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11471 ac_cv_prog_LD="${ncn_progname}"
11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11473 break 2
11474 fi
11475 done
11476 done
11477 IFS=$as_save_IFS
11478
11479 fi
11480 fi
11481 LD=$ac_cv_prog_LD
11482 if test -n "$LD"; then
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11484 $as_echo "$LD" >&6; }
11485 else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11488 fi
11489
11490
11491 done
11492 fi
11493
11494 for ncn_progname in ld; do
11495 if test -n "$ncn_tool_prefix"; then
11496 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11497 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499 $as_echo_n "checking for $ac_word... " >&6; }
11500 if ${ac_cv_prog_LD+:} false; then :
11501 $as_echo_n "(cached) " >&6
11502 else
11503 if test -n "$LD"; then
11504 ac_cv_prog_LD="$LD" # Let the user override the test.
11505 else
11506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507 for as_dir in $PATH
11508 do
11509 IFS=$as_save_IFS
11510 test -z "$as_dir" && as_dir=.
11511 for ac_exec_ext in '' $ac_executable_extensions; do
11512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11513 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11515 break 2
11516 fi
11517 done
11518 done
11519 IFS=$as_save_IFS
11520
11521 fi
11522 fi
11523 LD=$ac_cv_prog_LD
11524 if test -n "$LD"; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11526 $as_echo "$LD" >&6; }
11527 else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11530 fi
11531
11532
11533 fi
11534 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11536 set dummy ${ncn_progname}; ac_word=$2
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11538 $as_echo_n "checking for $ac_word... " >&6; }
11539 if ${ac_cv_prog_LD+:} false; then :
11540 $as_echo_n "(cached) " >&6
11541 else
11542 if test -n "$LD"; then
11543 ac_cv_prog_LD="$LD" # Let the user override the test.
11544 else
11545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11547 do
11548 IFS=$as_save_IFS
11549 test -z "$as_dir" && as_dir=.
11550 for ac_exec_ext in '' $ac_executable_extensions; do
11551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11552 ac_cv_prog_LD="${ncn_progname}"
11553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11554 break 2
11555 fi
11556 done
11557 done
11558 IFS=$as_save_IFS
11559
11560 fi
11561 fi
11562 LD=$ac_cv_prog_LD
11563 if test -n "$LD"; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11565 $as_echo "$LD" >&6; }
11566 else
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568 $as_echo "no" >&6; }
11569 fi
11570
11571
11572 fi
11573 test -n "$ac_cv_prog_LD" && break
11574 done
11575
11576 if test -z "$ac_cv_prog_LD" ; then
11577 set dummy ld
11578 if test $build = $host ; then
11579 LD="$2"
11580 else
11581 LD="${ncn_tool_prefix}$2"
11582 fi
11583 fi
11584
11585
11586
11587 if test -n "$LIPO"; then
11588 ac_cv_prog_LIPO=$LIPO
11589 elif test -n "$ac_cv_prog_LIPO"; then
11590 LIPO=$ac_cv_prog_LIPO
11591 fi
11592
11593 if test -n "$ac_cv_prog_LIPO"; then
11594 for ncn_progname in lipo; do
11595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11596 set dummy ${ncn_progname}; ac_word=$2
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598 $as_echo_n "checking for $ac_word... " >&6; }
11599 if ${ac_cv_prog_LIPO+:} false; then :
11600 $as_echo_n "(cached) " >&6
11601 else
11602 if test -n "$LIPO"; then
11603 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11604 else
11605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606 for as_dir in $PATH
11607 do
11608 IFS=$as_save_IFS
11609 test -z "$as_dir" && as_dir=.
11610 for ac_exec_ext in '' $ac_executable_extensions; do
11611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11612 ac_cv_prog_LIPO="${ncn_progname}"
11613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11614 break 2
11615 fi
11616 done
11617 done
11618 IFS=$as_save_IFS
11619
11620 fi
11621 fi
11622 LIPO=$ac_cv_prog_LIPO
11623 if test -n "$LIPO"; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11625 $as_echo "$LIPO" >&6; }
11626 else
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628 $as_echo "no" >&6; }
11629 fi
11630
11631
11632 done
11633 fi
11634
11635 for ncn_progname in lipo; do
11636 if test -n "$ncn_tool_prefix"; then
11637 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11638 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11640 $as_echo_n "checking for $ac_word... " >&6; }
11641 if ${ac_cv_prog_LIPO+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 if test -n "$LIPO"; then
11645 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11646 else
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11649 do
11650 IFS=$as_save_IFS
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
11653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11654 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11656 break 2
11657 fi
11658 done
11659 done
11660 IFS=$as_save_IFS
11661
11662 fi
11663 fi
11664 LIPO=$ac_cv_prog_LIPO
11665 if test -n "$LIPO"; then
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11667 $as_echo "$LIPO" >&6; }
11668 else
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670 $as_echo "no" >&6; }
11671 fi
11672
11673
11674 fi
11675 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11677 set dummy ${ncn_progname}; ac_word=$2
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11679 $as_echo_n "checking for $ac_word... " >&6; }
11680 if ${ac_cv_prog_LIPO+:} false; then :
11681 $as_echo_n "(cached) " >&6
11682 else
11683 if test -n "$LIPO"; then
11684 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11685 else
11686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687 for as_dir in $PATH
11688 do
11689 IFS=$as_save_IFS
11690 test -z "$as_dir" && as_dir=.
11691 for ac_exec_ext in '' $ac_executable_extensions; do
11692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11693 ac_cv_prog_LIPO="${ncn_progname}"
11694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11695 break 2
11696 fi
11697 done
11698 done
11699 IFS=$as_save_IFS
11700
11701 fi
11702 fi
11703 LIPO=$ac_cv_prog_LIPO
11704 if test -n "$LIPO"; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11706 $as_echo "$LIPO" >&6; }
11707 else
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709 $as_echo "no" >&6; }
11710 fi
11711
11712
11713 fi
11714 test -n "$ac_cv_prog_LIPO" && break
11715 done
11716
11717 if test -z "$ac_cv_prog_LIPO" ; then
11718 set dummy lipo
11719 if test $build = $host ; then
11720 LIPO="$2"
11721 else
11722 LIPO="${ncn_tool_prefix}$2"
11723 fi
11724 fi
11725
11726
11727
11728 if test -n "$NM"; then
11729 ac_cv_prog_NM=$NM
11730 elif test -n "$ac_cv_prog_NM"; then
11731 NM=$ac_cv_prog_NM
11732 fi
11733
11734 if test -n "$ac_cv_prog_NM"; then
11735 for ncn_progname in nm; do
11736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11737 set dummy ${ncn_progname}; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if ${ac_cv_prog_NM+:} false; then :
11741 $as_echo_n "(cached) " >&6
11742 else
11743 if test -n "$NM"; then
11744 ac_cv_prog_NM="$NM" # Let the user override the test.
11745 else
11746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747 for as_dir in $PATH
11748 do
11749 IFS=$as_save_IFS
11750 test -z "$as_dir" && as_dir=.
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11753 ac_cv_prog_NM="${ncn_progname}"
11754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11755 break 2
11756 fi
11757 done
11758 done
11759 IFS=$as_save_IFS
11760
11761 fi
11762 fi
11763 NM=$ac_cv_prog_NM
11764 if test -n "$NM"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11766 $as_echo "$NM" >&6; }
11767 else
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11770 fi
11771
11772
11773 done
11774 fi
11775
11776 for ncn_progname in nm; do
11777 if test -n "$ncn_tool_prefix"; then
11778 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11779 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11781 $as_echo_n "checking for $ac_word... " >&6; }
11782 if ${ac_cv_prog_NM+:} false; then :
11783 $as_echo_n "(cached) " >&6
11784 else
11785 if test -n "$NM"; then
11786 ac_cv_prog_NM="$NM" # Let the user override the test.
11787 else
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11790 do
11791 IFS=$as_save_IFS
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11797 break 2
11798 fi
11799 done
11800 done
11801 IFS=$as_save_IFS
11802
11803 fi
11804 fi
11805 NM=$ac_cv_prog_NM
11806 if test -n "$NM"; then
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11808 $as_echo "$NM" >&6; }
11809 else
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11811 $as_echo "no" >&6; }
11812 fi
11813
11814
11815 fi
11816 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11818 set dummy ${ncn_progname}; ac_word=$2
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11820 $as_echo_n "checking for $ac_word... " >&6; }
11821 if ${ac_cv_prog_NM+:} false; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 if test -n "$NM"; then
11825 ac_cv_prog_NM="$NM" # Let the user override the test.
11826 else
11827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828 for as_dir in $PATH
11829 do
11830 IFS=$as_save_IFS
11831 test -z "$as_dir" && as_dir=.
11832 for ac_exec_ext in '' $ac_executable_extensions; do
11833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11834 ac_cv_prog_NM="${ncn_progname}"
11835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11836 break 2
11837 fi
11838 done
11839 done
11840 IFS=$as_save_IFS
11841
11842 fi
11843 fi
11844 NM=$ac_cv_prog_NM
11845 if test -n "$NM"; then
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11847 $as_echo "$NM" >&6; }
11848 else
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850 $as_echo "no" >&6; }
11851 fi
11852
11853
11854 fi
11855 test -n "$ac_cv_prog_NM" && break
11856 done
11857
11858 if test -z "$ac_cv_prog_NM" ; then
11859 set dummy nm
11860 if test $build = $host ; then
11861 NM="$2"
11862 else
11863 NM="${ncn_tool_prefix}$2"
11864 fi
11865 fi
11866
11867
11868
11869 if test -n "$RANLIB"; then
11870 ac_cv_prog_RANLIB=$RANLIB
11871 elif test -n "$ac_cv_prog_RANLIB"; then
11872 RANLIB=$ac_cv_prog_RANLIB
11873 fi
11874
11875 if test -n "$ac_cv_prog_RANLIB"; then
11876 for ncn_progname in ranlib; do
11877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11878 set dummy ${ncn_progname}; ac_word=$2
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11880 $as_echo_n "checking for $ac_word... " >&6; }
11881 if ${ac_cv_prog_RANLIB+:} false; then :
11882 $as_echo_n "(cached) " >&6
11883 else
11884 if test -n "$RANLIB"; then
11885 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11886 else
11887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888 for as_dir in $PATH
11889 do
11890 IFS=$as_save_IFS
11891 test -z "$as_dir" && as_dir=.
11892 for ac_exec_ext in '' $ac_executable_extensions; do
11893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11894 ac_cv_prog_RANLIB="${ncn_progname}"
11895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11896 break 2
11897 fi
11898 done
11899 done
11900 IFS=$as_save_IFS
11901
11902 fi
11903 fi
11904 RANLIB=$ac_cv_prog_RANLIB
11905 if test -n "$RANLIB"; then
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11907 $as_echo "$RANLIB" >&6; }
11908 else
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11911 fi
11912
11913
11914 done
11915 fi
11916
11917 for ncn_progname in ranlib; do
11918 if test -n "$ncn_tool_prefix"; then
11919 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11920 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11922 $as_echo_n "checking for $ac_word... " >&6; }
11923 if ${ac_cv_prog_RANLIB+:} false; then :
11924 $as_echo_n "(cached) " >&6
11925 else
11926 if test -n "$RANLIB"; then
11927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11928 else
11929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930 for as_dir in $PATH
11931 do
11932 IFS=$as_save_IFS
11933 test -z "$as_dir" && as_dir=.
11934 for ac_exec_ext in '' $ac_executable_extensions; do
11935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11936 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11938 break 2
11939 fi
11940 done
11941 done
11942 IFS=$as_save_IFS
11943
11944 fi
11945 fi
11946 RANLIB=$ac_cv_prog_RANLIB
11947 if test -n "$RANLIB"; then
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11949 $as_echo "$RANLIB" >&6; }
11950 else
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952 $as_echo "no" >&6; }
11953 fi
11954
11955
11956 fi
11957 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11959 set dummy ${ncn_progname}; ac_word=$2
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961 $as_echo_n "checking for $ac_word... " >&6; }
11962 if ${ac_cv_prog_RANLIB+:} false; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 if test -n "$RANLIB"; then
11966 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11967 else
11968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969 for as_dir in $PATH
11970 do
11971 IFS=$as_save_IFS
11972 test -z "$as_dir" && as_dir=.
11973 for ac_exec_ext in '' $ac_executable_extensions; do
11974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11975 ac_cv_prog_RANLIB="${ncn_progname}"
11976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11977 break 2
11978 fi
11979 done
11980 done
11981 IFS=$as_save_IFS
11982
11983 fi
11984 fi
11985 RANLIB=$ac_cv_prog_RANLIB
11986 if test -n "$RANLIB"; then
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11988 $as_echo "$RANLIB" >&6; }
11989 else
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
11992 fi
11993
11994
11995 fi
11996 test -n "$ac_cv_prog_RANLIB" && break
11997 done
11998
11999 if test -z "$ac_cv_prog_RANLIB" ; then
12000 RANLIB="true"
12001 fi
12002
12003
12004
12005 if test -n "$STRIP"; then
12006 ac_cv_prog_STRIP=$STRIP
12007 elif test -n "$ac_cv_prog_STRIP"; then
12008 STRIP=$ac_cv_prog_STRIP
12009 fi
12010
12011 if test -n "$ac_cv_prog_STRIP"; then
12012 for ncn_progname in strip; do
12013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12014 set dummy ${ncn_progname}; ac_word=$2
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12016 $as_echo_n "checking for $ac_word... " >&6; }
12017 if ${ac_cv_prog_STRIP+:} false; then :
12018 $as_echo_n "(cached) " >&6
12019 else
12020 if test -n "$STRIP"; then
12021 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12022 else
12023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024 for as_dir in $PATH
12025 do
12026 IFS=$as_save_IFS
12027 test -z "$as_dir" && as_dir=.
12028 for ac_exec_ext in '' $ac_executable_extensions; do
12029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12030 ac_cv_prog_STRIP="${ncn_progname}"
12031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12032 break 2
12033 fi
12034 done
12035 done
12036 IFS=$as_save_IFS
12037
12038 fi
12039 fi
12040 STRIP=$ac_cv_prog_STRIP
12041 if test -n "$STRIP"; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12043 $as_echo "$STRIP" >&6; }
12044 else
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12047 fi
12048
12049
12050 done
12051 fi
12052
12053 for ncn_progname in strip; do
12054 if test -n "$ncn_tool_prefix"; then
12055 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12056 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12058 $as_echo_n "checking for $ac_word... " >&6; }
12059 if ${ac_cv_prog_STRIP+:} false; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 if test -n "$STRIP"; then
12063 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12064 else
12065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12066 for as_dir in $PATH
12067 do
12068 IFS=$as_save_IFS
12069 test -z "$as_dir" && as_dir=.
12070 for ac_exec_ext in '' $ac_executable_extensions; do
12071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12072 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12074 break 2
12075 fi
12076 done
12077 done
12078 IFS=$as_save_IFS
12079
12080 fi
12081 fi
12082 STRIP=$ac_cv_prog_STRIP
12083 if test -n "$STRIP"; then
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12085 $as_echo "$STRIP" >&6; }
12086 else
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088 $as_echo "no" >&6; }
12089 fi
12090
12091
12092 fi
12093 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12095 set dummy ${ncn_progname}; ac_word=$2
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12097 $as_echo_n "checking for $ac_word... " >&6; }
12098 if ${ac_cv_prog_STRIP+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 if test -n "$STRIP"; then
12102 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12103 else
12104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105 for as_dir in $PATH
12106 do
12107 IFS=$as_save_IFS
12108 test -z "$as_dir" && as_dir=.
12109 for ac_exec_ext in '' $ac_executable_extensions; do
12110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12111 ac_cv_prog_STRIP="${ncn_progname}"
12112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12113 break 2
12114 fi
12115 done
12116 done
12117 IFS=$as_save_IFS
12118
12119 fi
12120 fi
12121 STRIP=$ac_cv_prog_STRIP
12122 if test -n "$STRIP"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12124 $as_echo "$STRIP" >&6; }
12125 else
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127 $as_echo "no" >&6; }
12128 fi
12129
12130
12131 fi
12132 test -n "$ac_cv_prog_STRIP" && break
12133 done
12134
12135 if test -z "$ac_cv_prog_STRIP" ; then
12136 STRIP="true"
12137 fi
12138
12139
12140
12141 if test -n "$WINDRES"; then
12142 ac_cv_prog_WINDRES=$WINDRES
12143 elif test -n "$ac_cv_prog_WINDRES"; then
12144 WINDRES=$ac_cv_prog_WINDRES
12145 fi
12146
12147 if test -n "$ac_cv_prog_WINDRES"; then
12148 for ncn_progname in windres; do
12149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12150 set dummy ${ncn_progname}; ac_word=$2
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12152 $as_echo_n "checking for $ac_word... " >&6; }
12153 if ${ac_cv_prog_WINDRES+:} false; then :
12154 $as_echo_n "(cached) " >&6
12155 else
12156 if test -n "$WINDRES"; then
12157 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12158 else
12159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160 for as_dir in $PATH
12161 do
12162 IFS=$as_save_IFS
12163 test -z "$as_dir" && as_dir=.
12164 for ac_exec_ext in '' $ac_executable_extensions; do
12165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12166 ac_cv_prog_WINDRES="${ncn_progname}"
12167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12168 break 2
12169 fi
12170 done
12171 done
12172 IFS=$as_save_IFS
12173
12174 fi
12175 fi
12176 WINDRES=$ac_cv_prog_WINDRES
12177 if test -n "$WINDRES"; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12179 $as_echo "$WINDRES" >&6; }
12180 else
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182 $as_echo "no" >&6; }
12183 fi
12184
12185
12186 done
12187 fi
12188
12189 for ncn_progname in windres; do
12190 if test -n "$ncn_tool_prefix"; then
12191 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12192 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if ${ac_cv_prog_WINDRES+:} false; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 if test -n "$WINDRES"; then
12199 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12200 else
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12203 do
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12208 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12210 break 2
12211 fi
12212 done
12213 done
12214 IFS=$as_save_IFS
12215
12216 fi
12217 fi
12218 WINDRES=$ac_cv_prog_WINDRES
12219 if test -n "$WINDRES"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12221 $as_echo "$WINDRES" >&6; }
12222 else
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12225 fi
12226
12227
12228 fi
12229 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12231 set dummy ${ncn_progname}; ac_word=$2
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12233 $as_echo_n "checking for $ac_word... " >&6; }
12234 if ${ac_cv_prog_WINDRES+:} false; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 if test -n "$WINDRES"; then
12238 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12239 else
12240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241 for as_dir in $PATH
12242 do
12243 IFS=$as_save_IFS
12244 test -z "$as_dir" && as_dir=.
12245 for ac_exec_ext in '' $ac_executable_extensions; do
12246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12247 ac_cv_prog_WINDRES="${ncn_progname}"
12248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12249 break 2
12250 fi
12251 done
12252 done
12253 IFS=$as_save_IFS
12254
12255 fi
12256 fi
12257 WINDRES=$ac_cv_prog_WINDRES
12258 if test -n "$WINDRES"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12260 $as_echo "$WINDRES" >&6; }
12261 else
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12264 fi
12265
12266
12267 fi
12268 test -n "$ac_cv_prog_WINDRES" && break
12269 done
12270
12271 if test -z "$ac_cv_prog_WINDRES" ; then
12272 set dummy windres
12273 if test $build = $host ; then
12274 WINDRES="$2"
12275 else
12276 WINDRES="${ncn_tool_prefix}$2"
12277 fi
12278 fi
12279
12280
12281
12282 if test -n "$WINDMC"; then
12283 ac_cv_prog_WINDMC=$WINDMC
12284 elif test -n "$ac_cv_prog_WINDMC"; then
12285 WINDMC=$ac_cv_prog_WINDMC
12286 fi
12287
12288 if test -n "$ac_cv_prog_WINDMC"; then
12289 for ncn_progname in windmc; do
12290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12291 set dummy ${ncn_progname}; ac_word=$2
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12293 $as_echo_n "checking for $ac_word... " >&6; }
12294 if ${ac_cv_prog_WINDMC+:} false; then :
12295 $as_echo_n "(cached) " >&6
12296 else
12297 if test -n "$WINDMC"; then
12298 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12299 else
12300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12301 for as_dir in $PATH
12302 do
12303 IFS=$as_save_IFS
12304 test -z "$as_dir" && as_dir=.
12305 for ac_exec_ext in '' $ac_executable_extensions; do
12306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12307 ac_cv_prog_WINDMC="${ncn_progname}"
12308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12309 break 2
12310 fi
12311 done
12312 done
12313 IFS=$as_save_IFS
12314
12315 fi
12316 fi
12317 WINDMC=$ac_cv_prog_WINDMC
12318 if test -n "$WINDMC"; then
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12320 $as_echo "$WINDMC" >&6; }
12321 else
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323 $as_echo "no" >&6; }
12324 fi
12325
12326
12327 done
12328 fi
12329
12330 for ncn_progname in windmc; do
12331 if test -n "$ncn_tool_prefix"; then
12332 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12333 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335 $as_echo_n "checking for $ac_word... " >&6; }
12336 if ${ac_cv_prog_WINDMC+:} false; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 if test -n "$WINDMC"; then
12340 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12341 else
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12344 do
12345 IFS=$as_save_IFS
12346 test -z "$as_dir" && as_dir=.
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12349 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12351 break 2
12352 fi
12353 done
12354 done
12355 IFS=$as_save_IFS
12356
12357 fi
12358 fi
12359 WINDMC=$ac_cv_prog_WINDMC
12360 if test -n "$WINDMC"; then
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12362 $as_echo "$WINDMC" >&6; }
12363 else
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365 $as_echo "no" >&6; }
12366 fi
12367
12368
12369 fi
12370 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12372 set dummy ${ncn_progname}; ac_word=$2
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374 $as_echo_n "checking for $ac_word... " >&6; }
12375 if ${ac_cv_prog_WINDMC+:} false; then :
12376 $as_echo_n "(cached) " >&6
12377 else
12378 if test -n "$WINDMC"; then
12379 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12380 else
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
12383 do
12384 IFS=$as_save_IFS
12385 test -z "$as_dir" && as_dir=.
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12388 ac_cv_prog_WINDMC="${ncn_progname}"
12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12390 break 2
12391 fi
12392 done
12393 done
12394 IFS=$as_save_IFS
12395
12396 fi
12397 fi
12398 WINDMC=$ac_cv_prog_WINDMC
12399 if test -n "$WINDMC"; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12401 $as_echo "$WINDMC" >&6; }
12402 else
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12405 fi
12406
12407
12408 fi
12409 test -n "$ac_cv_prog_WINDMC" && break
12410 done
12411
12412 if test -z "$ac_cv_prog_WINDMC" ; then
12413 set dummy windmc
12414 if test $build = $host ; then
12415 WINDMC="$2"
12416 else
12417 WINDMC="${ncn_tool_prefix}$2"
12418 fi
12419 fi
12420
12421
12422
12423 if test -n "$OBJCOPY"; then
12424 ac_cv_prog_OBJCOPY=$OBJCOPY
12425 elif test -n "$ac_cv_prog_OBJCOPY"; then
12426 OBJCOPY=$ac_cv_prog_OBJCOPY
12427 fi
12428
12429 if test -n "$ac_cv_prog_OBJCOPY"; then
12430 for ncn_progname in objcopy; do
12431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12432 set dummy ${ncn_progname}; ac_word=$2
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434 $as_echo_n "checking for $ac_word... " >&6; }
12435 if ${ac_cv_prog_OBJCOPY+:} false; then :
12436 $as_echo_n "(cached) " >&6
12437 else
12438 if test -n "$OBJCOPY"; then
12439 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12440 else
12441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442 for as_dir in $PATH
12443 do
12444 IFS=$as_save_IFS
12445 test -z "$as_dir" && as_dir=.
12446 for ac_exec_ext in '' $ac_executable_extensions; do
12447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12448 ac_cv_prog_OBJCOPY="${ncn_progname}"
12449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12450 break 2
12451 fi
12452 done
12453 done
12454 IFS=$as_save_IFS
12455
12456 fi
12457 fi
12458 OBJCOPY=$ac_cv_prog_OBJCOPY
12459 if test -n "$OBJCOPY"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12461 $as_echo "$OBJCOPY" >&6; }
12462 else
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464 $as_echo "no" >&6; }
12465 fi
12466
12467
12468 done
12469 fi
12470
12471 for ncn_progname in objcopy; do
12472 if test -n "$ncn_tool_prefix"; then
12473 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12474 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12476 $as_echo_n "checking for $ac_word... " >&6; }
12477 if ${ac_cv_prog_OBJCOPY+:} false; then :
12478 $as_echo_n "(cached) " >&6
12479 else
12480 if test -n "$OBJCOPY"; then
12481 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12482 else
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12485 do
12486 IFS=$as_save_IFS
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12490 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12492 break 2
12493 fi
12494 done
12495 done
12496 IFS=$as_save_IFS
12497
12498 fi
12499 fi
12500 OBJCOPY=$ac_cv_prog_OBJCOPY
12501 if test -n "$OBJCOPY"; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12503 $as_echo "$OBJCOPY" >&6; }
12504 else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12507 fi
12508
12509
12510 fi
12511 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12513 set dummy ${ncn_progname}; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if ${ac_cv_prog_OBJCOPY+:} false; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 if test -n "$OBJCOPY"; then
12520 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12521 else
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12524 do
12525 IFS=$as_save_IFS
12526 test -z "$as_dir" && as_dir=.
12527 for ac_exec_ext in '' $ac_executable_extensions; do
12528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12529 ac_cv_prog_OBJCOPY="${ncn_progname}"
12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12531 break 2
12532 fi
12533 done
12534 done
12535 IFS=$as_save_IFS
12536
12537 fi
12538 fi
12539 OBJCOPY=$ac_cv_prog_OBJCOPY
12540 if test -n "$OBJCOPY"; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12542 $as_echo "$OBJCOPY" >&6; }
12543 else
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; }
12546 fi
12547
12548
12549 fi
12550 test -n "$ac_cv_prog_OBJCOPY" && break
12551 done
12552
12553 if test -z "$ac_cv_prog_OBJCOPY" ; then
12554 set dummy objcopy
12555 if test $build = $host ; then
12556 OBJCOPY="$2"
12557 else
12558 OBJCOPY="${ncn_tool_prefix}$2"
12559 fi
12560 fi
12561
12562
12563
12564 if test -n "$OBJDUMP"; then
12565 ac_cv_prog_OBJDUMP=$OBJDUMP
12566 elif test -n "$ac_cv_prog_OBJDUMP"; then
12567 OBJDUMP=$ac_cv_prog_OBJDUMP
12568 fi
12569
12570 if test -n "$ac_cv_prog_OBJDUMP"; then
12571 for ncn_progname in objdump; do
12572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12573 set dummy ${ncn_progname}; ac_word=$2
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575 $as_echo_n "checking for $ac_word... " >&6; }
12576 if ${ac_cv_prog_OBJDUMP+:} false; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 if test -n "$OBJDUMP"; then
12580 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12581 else
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12584 do
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12589 ac_cv_prog_OBJDUMP="${ncn_progname}"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591 break 2
12592 fi
12593 done
12594 done
12595 IFS=$as_save_IFS
12596
12597 fi
12598 fi
12599 OBJDUMP=$ac_cv_prog_OBJDUMP
12600 if test -n "$OBJDUMP"; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12602 $as_echo "$OBJDUMP" >&6; }
12603 else
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12606 fi
12607
12608
12609 done
12610 fi
12611
12612 for ncn_progname in objdump; do
12613 if test -n "$ncn_tool_prefix"; then
12614 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12615 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12617 $as_echo_n "checking for $ac_word... " >&6; }
12618 if ${ac_cv_prog_OBJDUMP+:} false; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 if test -n "$OBJDUMP"; then
12622 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12623 else
12624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12626 do
12627 IFS=$as_save_IFS
12628 test -z "$as_dir" && as_dir=.
12629 for ac_exec_ext in '' $ac_executable_extensions; do
12630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12631 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12633 break 2
12634 fi
12635 done
12636 done
12637 IFS=$as_save_IFS
12638
12639 fi
12640 fi
12641 OBJDUMP=$ac_cv_prog_OBJDUMP
12642 if test -n "$OBJDUMP"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12644 $as_echo "$OBJDUMP" >&6; }
12645 else
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 $as_echo "no" >&6; }
12648 fi
12649
12650
12651 fi
12652 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12654 set dummy ${ncn_progname}; ac_word=$2
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656 $as_echo_n "checking for $ac_word... " >&6; }
12657 if ${ac_cv_prog_OBJDUMP+:} false; then :
12658 $as_echo_n "(cached) " >&6
12659 else
12660 if test -n "$OBJDUMP"; then
12661 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12662 else
12663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12664 for as_dir in $PATH
12665 do
12666 IFS=$as_save_IFS
12667 test -z "$as_dir" && as_dir=.
12668 for ac_exec_ext in '' $ac_executable_extensions; do
12669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12670 ac_cv_prog_OBJDUMP="${ncn_progname}"
12671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12672 break 2
12673 fi
12674 done
12675 done
12676 IFS=$as_save_IFS
12677
12678 fi
12679 fi
12680 OBJDUMP=$ac_cv_prog_OBJDUMP
12681 if test -n "$OBJDUMP"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12683 $as_echo "$OBJDUMP" >&6; }
12684 else
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12687 fi
12688
12689
12690 fi
12691 test -n "$ac_cv_prog_OBJDUMP" && break
12692 done
12693
12694 if test -z "$ac_cv_prog_OBJDUMP" ; then
12695 set dummy objdump
12696 if test $build = $host ; then
12697 OBJDUMP="$2"
12698 else
12699 OBJDUMP="${ncn_tool_prefix}$2"
12700 fi
12701 fi
12702
12703
12704
12705 if test -n "$OTOOL"; then
12706 ac_cv_prog_OTOOL=$OTOOL
12707 elif test -n "$ac_cv_prog_OTOOL"; then
12708 OTOOL=$ac_cv_prog_OTOOL
12709 fi
12710
12711 if test -n "$ac_cv_prog_OTOOL"; then
12712 for ncn_progname in otool; do
12713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12714 set dummy ${ncn_progname}; ac_word=$2
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716 $as_echo_n "checking for $ac_word... " >&6; }
12717 if ${ac_cv_prog_OTOOL+:} false; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 if test -n "$OTOOL"; then
12721 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12722 else
12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 for as_dir in $PATH
12725 do
12726 IFS=$as_save_IFS
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
12729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12730 ac_cv_prog_OTOOL="${ncn_progname}"
12731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12732 break 2
12733 fi
12734 done
12735 done
12736 IFS=$as_save_IFS
12737
12738 fi
12739 fi
12740 OTOOL=$ac_cv_prog_OTOOL
12741 if test -n "$OTOOL"; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12743 $as_echo "$OTOOL" >&6; }
12744 else
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12747 fi
12748
12749
12750 done
12751 fi
12752
12753 for ncn_progname in otool; do
12754 if test -n "$ncn_tool_prefix"; then
12755 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12756 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12758 $as_echo_n "checking for $ac_word... " >&6; }
12759 if ${ac_cv_prog_OTOOL+:} false; then :
12760 $as_echo_n "(cached) " >&6
12761 else
12762 if test -n "$OTOOL"; then
12763 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12764 else
12765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766 for as_dir in $PATH
12767 do
12768 IFS=$as_save_IFS
12769 test -z "$as_dir" && as_dir=.
12770 for ac_exec_ext in '' $ac_executable_extensions; do
12771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12772 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12774 break 2
12775 fi
12776 done
12777 done
12778 IFS=$as_save_IFS
12779
12780 fi
12781 fi
12782 OTOOL=$ac_cv_prog_OTOOL
12783 if test -n "$OTOOL"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12785 $as_echo "$OTOOL" >&6; }
12786 else
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12789 fi
12790
12791
12792 fi
12793 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12795 set dummy ${ncn_progname}; ac_word=$2
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12797 $as_echo_n "checking for $ac_word... " >&6; }
12798 if ${ac_cv_prog_OTOOL+:} false; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 if test -n "$OTOOL"; then
12802 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12803 else
12804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12806 do
12807 IFS=$as_save_IFS
12808 test -z "$as_dir" && as_dir=.
12809 for ac_exec_ext in '' $ac_executable_extensions; do
12810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12811 ac_cv_prog_OTOOL="${ncn_progname}"
12812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12813 break 2
12814 fi
12815 done
12816 done
12817 IFS=$as_save_IFS
12818
12819 fi
12820 fi
12821 OTOOL=$ac_cv_prog_OTOOL
12822 if test -n "$OTOOL"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12824 $as_echo "$OTOOL" >&6; }
12825 else
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12828 fi
12829
12830
12831 fi
12832 test -n "$ac_cv_prog_OTOOL" && break
12833 done
12834
12835 if test -z "$ac_cv_prog_OTOOL" ; then
12836 set dummy otool
12837 if test $build = $host ; then
12838 OTOOL="$2"
12839 else
12840 OTOOL="${ncn_tool_prefix}$2"
12841 fi
12842 fi
12843
12844
12845
12846 if test -n "$READELF"; then
12847 ac_cv_prog_READELF=$READELF
12848 elif test -n "$ac_cv_prog_READELF"; then
12849 READELF=$ac_cv_prog_READELF
12850 fi
12851
12852 if test -n "$ac_cv_prog_READELF"; then
12853 for ncn_progname in readelf; do
12854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12855 set dummy ${ncn_progname}; ac_word=$2
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12857 $as_echo_n "checking for $ac_word... " >&6; }
12858 if ${ac_cv_prog_READELF+:} false; then :
12859 $as_echo_n "(cached) " >&6
12860 else
12861 if test -n "$READELF"; then
12862 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12863 else
12864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12865 for as_dir in $PATH
12866 do
12867 IFS=$as_save_IFS
12868 test -z "$as_dir" && as_dir=.
12869 for ac_exec_ext in '' $ac_executable_extensions; do
12870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12871 ac_cv_prog_READELF="${ncn_progname}"
12872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12873 break 2
12874 fi
12875 done
12876 done
12877 IFS=$as_save_IFS
12878
12879 fi
12880 fi
12881 READELF=$ac_cv_prog_READELF
12882 if test -n "$READELF"; then
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12884 $as_echo "$READELF" >&6; }
12885 else
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12887 $as_echo "no" >&6; }
12888 fi
12889
12890
12891 done
12892 fi
12893
12894 for ncn_progname in readelf; do
12895 if test -n "$ncn_tool_prefix"; then
12896 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12897 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12899 $as_echo_n "checking for $ac_word... " >&6; }
12900 if ${ac_cv_prog_READELF+:} false; then :
12901 $as_echo_n "(cached) " >&6
12902 else
12903 if test -n "$READELF"; then
12904 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12905 else
12906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907 for as_dir in $PATH
12908 do
12909 IFS=$as_save_IFS
12910 test -z "$as_dir" && as_dir=.
12911 for ac_exec_ext in '' $ac_executable_extensions; do
12912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12913 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12915 break 2
12916 fi
12917 done
12918 done
12919 IFS=$as_save_IFS
12920
12921 fi
12922 fi
12923 READELF=$ac_cv_prog_READELF
12924 if test -n "$READELF"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12926 $as_echo "$READELF" >&6; }
12927 else
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929 $as_echo "no" >&6; }
12930 fi
12931
12932
12933 fi
12934 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12936 set dummy ${ncn_progname}; ac_word=$2
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938 $as_echo_n "checking for $ac_word... " >&6; }
12939 if ${ac_cv_prog_READELF+:} false; then :
12940 $as_echo_n "(cached) " >&6
12941 else
12942 if test -n "$READELF"; then
12943 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12944 else
12945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946 for as_dir in $PATH
12947 do
12948 IFS=$as_save_IFS
12949 test -z "$as_dir" && as_dir=.
12950 for ac_exec_ext in '' $ac_executable_extensions; do
12951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12952 ac_cv_prog_READELF="${ncn_progname}"
12953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12954 break 2
12955 fi
12956 done
12957 done
12958 IFS=$as_save_IFS
12959
12960 fi
12961 fi
12962 READELF=$ac_cv_prog_READELF
12963 if test -n "$READELF"; then
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12965 $as_echo "$READELF" >&6; }
12966 else
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968 $as_echo "no" >&6; }
12969 fi
12970
12971
12972 fi
12973 test -n "$ac_cv_prog_READELF" && break
12974 done
12975
12976 if test -z "$ac_cv_prog_READELF" ; then
12977 set dummy readelf
12978 if test $build = $host ; then
12979 READELF="$2"
12980 else
12981 READELF="${ncn_tool_prefix}$2"
12982 fi
12983 fi
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
12994 $as_echo_n "checking for -plugin option... " >&6; }
12995
12996 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
12997 plugin_option=
12998 for plugin in $plugin_names; do
12999 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13000 if test x$plugin_so = x$plugin; then
13001 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13002 fi
13003 if test x$plugin_so != x$plugin; then
13004 plugin_option="--plugin $plugin_so"
13005 break
13006 fi
13007 done
13008 if test -n "$ac_tool_prefix"; then
13009 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13010 set dummy ${ac_tool_prefix}ar; ac_word=$2
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13012 $as_echo_n "checking for $ac_word... " >&6; }
13013 if ${ac_cv_prog_AR+:} false; then :
13014 $as_echo_n "(cached) " >&6
13015 else
13016 if test -n "$AR"; then
13017 ac_cv_prog_AR="$AR" # Let the user override the test.
13018 else
13019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13020 for as_dir in $PATH
13021 do
13022 IFS=$as_save_IFS
13023 test -z "$as_dir" && as_dir=.
13024 for ac_exec_ext in '' $ac_executable_extensions; do
13025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13026 ac_cv_prog_AR="${ac_tool_prefix}ar"
13027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13028 break 2
13029 fi
13030 done
13031 done
13032 IFS=$as_save_IFS
13033
13034 fi
13035 fi
13036 AR=$ac_cv_prog_AR
13037 if test -n "$AR"; then
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13039 $as_echo "$AR" >&6; }
13040 else
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13042 $as_echo "no" >&6; }
13043 fi
13044
13045
13046 fi
13047 if test -z "$ac_cv_prog_AR"; then
13048 ac_ct_AR=$AR
13049 # Extract the first word of "ar", so it can be a program name with args.
13050 set dummy ar; ac_word=$2
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13052 $as_echo_n "checking for $ac_word... " >&6; }
13053 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13054 $as_echo_n "(cached) " >&6
13055 else
13056 if test -n "$ac_ct_AR"; then
13057 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13058 else
13059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13060 for as_dir in $PATH
13061 do
13062 IFS=$as_save_IFS
13063 test -z "$as_dir" && as_dir=.
13064 for ac_exec_ext in '' $ac_executable_extensions; do
13065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13066 ac_cv_prog_ac_ct_AR="ar"
13067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13068 break 2
13069 fi
13070 done
13071 done
13072 IFS=$as_save_IFS
13073
13074 fi
13075 fi
13076 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13077 if test -n "$ac_ct_AR"; then
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13079 $as_echo "$ac_ct_AR" >&6; }
13080 else
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082 $as_echo "no" >&6; }
13083 fi
13084
13085 if test "x$ac_ct_AR" = x; then
13086 AR=""
13087 else
13088 case $cross_compiling:$ac_tool_warned in
13089 yes:)
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13092 ac_tool_warned=yes ;;
13093 esac
13094 AR=$ac_ct_AR
13095 fi
13096 else
13097 AR="$ac_cv_prog_AR"
13098 fi
13099
13100 if test "${AR}" = "" ; then
13101 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
13102 fi
13103 touch conftest.c
13104 ${AR} $plugin_option rc conftest.a conftest.c
13105 if test "$?" != 0; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
13107 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
13108 plugin_option=
13109 fi
13110 rm -f conftest.*
13111 if test -n "$plugin_option"; then
13112 PLUGIN_OPTION="$plugin_option"
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
13114 $as_echo "$plugin_option" >&6; }
13115 else
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117 $as_echo "no" >&6; }
13118 fi
13119
13120 AR_PLUGIN_OPTION=
13121 RANLIB_PLUGIN_OPTION=
13122 if test -n "$PLUGIN_OPTION"; then
13123 if $AR --help 2>&1 | grep -q "\--plugin"; then
13124 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13125 fi
13126 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
13127 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13128 fi
13129 fi
13130
13131
13132
13133 # Target tools.
13134
13135 # Check whether --with-build-time-tools was given.
13136 if test "${with_build_time_tools+set}" = set; then :
13137 withval=$with_build_time_tools; case x"$withval" in
13138 x/*) ;;
13139 *)
13140 with_build_time_tools=
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
13142 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
13143 ;;
13144 esac
13145 else
13146 with_build_time_tools=
13147 fi
13148
13149
13150
13151
13152 if test -n "$CC_FOR_TARGET"; then
13153 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13154 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13155 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13156 fi
13157
13158 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13159 for ncn_progname in cc gcc; do
13160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13161 set dummy ${ncn_progname}; ac_word=$2
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13163 $as_echo_n "checking for $ac_word... " >&6; }
13164 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13165 $as_echo_n "(cached) " >&6
13166 else
13167 if test -n "$CC_FOR_TARGET"; then
13168 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13169 else
13170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171 for as_dir in $PATH
13172 do
13173 IFS=$as_save_IFS
13174 test -z "$as_dir" && as_dir=.
13175 for ac_exec_ext in '' $ac_executable_extensions; do
13176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13177 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13179 break 2
13180 fi
13181 done
13182 done
13183 IFS=$as_save_IFS
13184
13185 fi
13186 fi
13187 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13188 if test -n "$CC_FOR_TARGET"; then
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13190 $as_echo "$CC_FOR_TARGET" >&6; }
13191 else
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13193 $as_echo "no" >&6; }
13194 fi
13195
13196
13197 done
13198 fi
13199
13200 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13201 for ncn_progname in cc gcc; do
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13203 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13204 if test -x $with_build_time_tools/${ncn_progname}; then
13205 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13207 $as_echo "yes" >&6; }
13208 break
13209 else
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13212 fi
13213 done
13214 fi
13215
13216 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13217 for ncn_progname in cc gcc; do
13218 if test -n "$ncn_target_tool_prefix"; then
13219 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13220 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13222 $as_echo_n "checking for $ac_word... " >&6; }
13223 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 if test -n "$CC_FOR_TARGET"; then
13227 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13228 else
13229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13230 for as_dir in $PATH
13231 do
13232 IFS=$as_save_IFS
13233 test -z "$as_dir" && as_dir=.
13234 for ac_exec_ext in '' $ac_executable_extensions; do
13235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13236 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13238 break 2
13239 fi
13240 done
13241 done
13242 IFS=$as_save_IFS
13243
13244 fi
13245 fi
13246 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13247 if test -n "$CC_FOR_TARGET"; then
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13249 $as_echo "$CC_FOR_TARGET" >&6; }
13250 else
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13252 $as_echo "no" >&6; }
13253 fi
13254
13255
13256 fi
13257 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13259 set dummy ${ncn_progname}; ac_word=$2
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13261 $as_echo_n "checking for $ac_word... " >&6; }
13262 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13263 $as_echo_n "(cached) " >&6
13264 else
13265 if test -n "$CC_FOR_TARGET"; then
13266 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13267 else
13268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269 for as_dir in $PATH
13270 do
13271 IFS=$as_save_IFS
13272 test -z "$as_dir" && as_dir=.
13273 for ac_exec_ext in '' $ac_executable_extensions; do
13274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13275 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13277 break 2
13278 fi
13279 done
13280 done
13281 IFS=$as_save_IFS
13282
13283 fi
13284 fi
13285 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13286 if test -n "$CC_FOR_TARGET"; then
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13288 $as_echo "$CC_FOR_TARGET" >&6; }
13289 else
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13291 $as_echo "no" >&6; }
13292 fi
13293
13294
13295 fi
13296 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13297 done
13298 fi
13299
13300 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13301 set dummy cc gcc
13302 if test $build = $target ; then
13303 CC_FOR_TARGET="$2"
13304 else
13305 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13306 fi
13307 else
13308 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13309 fi
13310
13311
13312
13313 if test -n "$CXX_FOR_TARGET"; then
13314 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13315 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13316 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13317 fi
13318
13319 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13320 for ncn_progname in c++ g++ cxx gxx; do
13321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13322 set dummy ${ncn_progname}; ac_word=$2
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13324 $as_echo_n "checking for $ac_word... " >&6; }
13325 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13326 $as_echo_n "(cached) " >&6
13327 else
13328 if test -n "$CXX_FOR_TARGET"; then
13329 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13330 else
13331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13332 for as_dir in $PATH
13333 do
13334 IFS=$as_save_IFS
13335 test -z "$as_dir" && as_dir=.
13336 for ac_exec_ext in '' $ac_executable_extensions; do
13337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13338 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13340 break 2
13341 fi
13342 done
13343 done
13344 IFS=$as_save_IFS
13345
13346 fi
13347 fi
13348 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13349 if test -n "$CXX_FOR_TARGET"; then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13351 $as_echo "$CXX_FOR_TARGET" >&6; }
13352 else
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13354 $as_echo "no" >&6; }
13355 fi
13356
13357
13358 done
13359 fi
13360
13361 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13362 for ncn_progname in c++ g++ cxx gxx; do
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13364 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13365 if test -x $with_build_time_tools/${ncn_progname}; then
13366 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13368 $as_echo "yes" >&6; }
13369 break
13370 else
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372 $as_echo "no" >&6; }
13373 fi
13374 done
13375 fi
13376
13377 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13378 for ncn_progname in c++ g++ cxx gxx; do
13379 if test -n "$ncn_target_tool_prefix"; then
13380 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13381 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13383 $as_echo_n "checking for $ac_word... " >&6; }
13384 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13385 $as_echo_n "(cached) " >&6
13386 else
13387 if test -n "$CXX_FOR_TARGET"; then
13388 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13389 else
13390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391 for as_dir in $PATH
13392 do
13393 IFS=$as_save_IFS
13394 test -z "$as_dir" && as_dir=.
13395 for ac_exec_ext in '' $ac_executable_extensions; do
13396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13397 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13399 break 2
13400 fi
13401 done
13402 done
13403 IFS=$as_save_IFS
13404
13405 fi
13406 fi
13407 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13408 if test -n "$CXX_FOR_TARGET"; then
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13410 $as_echo "$CXX_FOR_TARGET" >&6; }
13411 else
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13413 $as_echo "no" >&6; }
13414 fi
13415
13416
13417 fi
13418 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13420 set dummy ${ncn_progname}; ac_word=$2
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13422 $as_echo_n "checking for $ac_word... " >&6; }
13423 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13424 $as_echo_n "(cached) " >&6
13425 else
13426 if test -n "$CXX_FOR_TARGET"; then
13427 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13428 else
13429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13430 for as_dir in $PATH
13431 do
13432 IFS=$as_save_IFS
13433 test -z "$as_dir" && as_dir=.
13434 for ac_exec_ext in '' $ac_executable_extensions; do
13435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13436 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13438 break 2
13439 fi
13440 done
13441 done
13442 IFS=$as_save_IFS
13443
13444 fi
13445 fi
13446 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13447 if test -n "$CXX_FOR_TARGET"; then
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13449 $as_echo "$CXX_FOR_TARGET" >&6; }
13450 else
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13452 $as_echo "no" >&6; }
13453 fi
13454
13455
13456 fi
13457 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13458 done
13459 fi
13460
13461 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13462 set dummy c++ g++ cxx gxx
13463 if test $build = $target ; then
13464 CXX_FOR_TARGET="$2"
13465 else
13466 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13467 fi
13468 else
13469 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13470 fi
13471
13472
13473
13474 if test -n "$GCC_FOR_TARGET"; then
13475 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13476 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13477 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13478 fi
13479
13480 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13481 for ncn_progname in gcc; do
13482 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13483 set dummy ${ncn_progname}; ac_word=$2
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13485 $as_echo_n "checking for $ac_word... " >&6; }
13486 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13487 $as_echo_n "(cached) " >&6
13488 else
13489 if test -n "$GCC_FOR_TARGET"; then
13490 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13491 else
13492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13493 for as_dir in $PATH
13494 do
13495 IFS=$as_save_IFS
13496 test -z "$as_dir" && as_dir=.
13497 for ac_exec_ext in '' $ac_executable_extensions; do
13498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13499 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13501 break 2
13502 fi
13503 done
13504 done
13505 IFS=$as_save_IFS
13506
13507 fi
13508 fi
13509 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13510 if test -n "$GCC_FOR_TARGET"; then
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13512 $as_echo "$GCC_FOR_TARGET" >&6; }
13513 else
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13515 $as_echo "no" >&6; }
13516 fi
13517
13518
13519 done
13520 fi
13521
13522 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13523 for ncn_progname in gcc; do
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13525 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13526 if test -x $with_build_time_tools/${ncn_progname}; then
13527 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13529 $as_echo "yes" >&6; }
13530 break
13531 else
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533 $as_echo "no" >&6; }
13534 fi
13535 done
13536 fi
13537
13538 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13539 for ncn_progname in gcc; do
13540 if test -n "$ncn_target_tool_prefix"; then
13541 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13542 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13544 $as_echo_n "checking for $ac_word... " >&6; }
13545 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13546 $as_echo_n "(cached) " >&6
13547 else
13548 if test -n "$GCC_FOR_TARGET"; then
13549 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13550 else
13551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13552 for as_dir in $PATH
13553 do
13554 IFS=$as_save_IFS
13555 test -z "$as_dir" && as_dir=.
13556 for ac_exec_ext in '' $ac_executable_extensions; do
13557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13558 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13560 break 2
13561 fi
13562 done
13563 done
13564 IFS=$as_save_IFS
13565
13566 fi
13567 fi
13568 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13569 if test -n "$GCC_FOR_TARGET"; then
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13571 $as_echo "$GCC_FOR_TARGET" >&6; }
13572 else
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574 $as_echo "no" >&6; }
13575 fi
13576
13577
13578 fi
13579 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13581 set dummy ${ncn_progname}; ac_word=$2
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13583 $as_echo_n "checking for $ac_word... " >&6; }
13584 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13585 $as_echo_n "(cached) " >&6
13586 else
13587 if test -n "$GCC_FOR_TARGET"; then
13588 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13589 else
13590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591 for as_dir in $PATH
13592 do
13593 IFS=$as_save_IFS
13594 test -z "$as_dir" && as_dir=.
13595 for ac_exec_ext in '' $ac_executable_extensions; do
13596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13597 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13599 break 2
13600 fi
13601 done
13602 done
13603 IFS=$as_save_IFS
13604
13605 fi
13606 fi
13607 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13608 if test -n "$GCC_FOR_TARGET"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13610 $as_echo "$GCC_FOR_TARGET" >&6; }
13611 else
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13613 $as_echo "no" >&6; }
13614 fi
13615
13616
13617 fi
13618 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13619 done
13620 fi
13621
13622 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13623 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13624 else
13625 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13626 fi
13627
13628
13629
13630 if test -n "$GFORTRAN_FOR_TARGET"; then
13631 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13632 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13633 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13634 fi
13635
13636 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13637 for ncn_progname in gfortran; do
13638 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13639 set dummy ${ncn_progname}; ac_word=$2
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13641 $as_echo_n "checking for $ac_word... " >&6; }
13642 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13643 $as_echo_n "(cached) " >&6
13644 else
13645 if test -n "$GFORTRAN_FOR_TARGET"; then
13646 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13647 else
13648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13649 for as_dir in $PATH
13650 do
13651 IFS=$as_save_IFS
13652 test -z "$as_dir" && as_dir=.
13653 for ac_exec_ext in '' $ac_executable_extensions; do
13654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13655 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13657 break 2
13658 fi
13659 done
13660 done
13661 IFS=$as_save_IFS
13662
13663 fi
13664 fi
13665 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13666 if test -n "$GFORTRAN_FOR_TARGET"; then
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13668 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13669 else
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13671 $as_echo "no" >&6; }
13672 fi
13673
13674
13675 done
13676 fi
13677
13678 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13679 for ncn_progname in gfortran; do
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13681 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13682 if test -x $with_build_time_tools/${ncn_progname}; then
13683 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13685 $as_echo "yes" >&6; }
13686 break
13687 else
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13689 $as_echo "no" >&6; }
13690 fi
13691 done
13692 fi
13693
13694 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13695 for ncn_progname in gfortran; do
13696 if test -n "$ncn_target_tool_prefix"; then
13697 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13698 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13700 $as_echo_n "checking for $ac_word... " >&6; }
13701 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13702 $as_echo_n "(cached) " >&6
13703 else
13704 if test -n "$GFORTRAN_FOR_TARGET"; then
13705 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13706 else
13707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13708 for as_dir in $PATH
13709 do
13710 IFS=$as_save_IFS
13711 test -z "$as_dir" && as_dir=.
13712 for ac_exec_ext in '' $ac_executable_extensions; do
13713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13714 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13716 break 2
13717 fi
13718 done
13719 done
13720 IFS=$as_save_IFS
13721
13722 fi
13723 fi
13724 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13725 if test -n "$GFORTRAN_FOR_TARGET"; then
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13727 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13728 else
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13730 $as_echo "no" >&6; }
13731 fi
13732
13733
13734 fi
13735 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13737 set dummy ${ncn_progname}; ac_word=$2
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13739 $as_echo_n "checking for $ac_word... " >&6; }
13740 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13741 $as_echo_n "(cached) " >&6
13742 else
13743 if test -n "$GFORTRAN_FOR_TARGET"; then
13744 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13745 else
13746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13747 for as_dir in $PATH
13748 do
13749 IFS=$as_save_IFS
13750 test -z "$as_dir" && as_dir=.
13751 for ac_exec_ext in '' $ac_executable_extensions; do
13752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13753 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13755 break 2
13756 fi
13757 done
13758 done
13759 IFS=$as_save_IFS
13760
13761 fi
13762 fi
13763 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13764 if test -n "$GFORTRAN_FOR_TARGET"; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13766 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13767 else
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13769 $as_echo "no" >&6; }
13770 fi
13771
13772
13773 fi
13774 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13775 done
13776 fi
13777
13778 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13779 set dummy gfortran
13780 if test $build = $target ; then
13781 GFORTRAN_FOR_TARGET="$2"
13782 else
13783 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13784 fi
13785 else
13786 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13787 fi
13788
13789
13790
13791 if test -n "$GOC_FOR_TARGET"; then
13792 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13793 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13794 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13795 fi
13796
13797 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13798 for ncn_progname in gccgo; do
13799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13800 set dummy ${ncn_progname}; ac_word=$2
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13802 $as_echo_n "checking for $ac_word... " >&6; }
13803 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13804 $as_echo_n "(cached) " >&6
13805 else
13806 if test -n "$GOC_FOR_TARGET"; then
13807 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13808 else
13809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810 for as_dir in $PATH
13811 do
13812 IFS=$as_save_IFS
13813 test -z "$as_dir" && as_dir=.
13814 for ac_exec_ext in '' $ac_executable_extensions; do
13815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13816 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13818 break 2
13819 fi
13820 done
13821 done
13822 IFS=$as_save_IFS
13823
13824 fi
13825 fi
13826 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13827 if test -n "$GOC_FOR_TARGET"; then
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13829 $as_echo "$GOC_FOR_TARGET" >&6; }
13830 else
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13832 $as_echo "no" >&6; }
13833 fi
13834
13835
13836 done
13837 fi
13838
13839 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13840 for ncn_progname in gccgo; do
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13842 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13843 if test -x $with_build_time_tools/${ncn_progname}; then
13844 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13846 $as_echo "yes" >&6; }
13847 break
13848 else
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13850 $as_echo "no" >&6; }
13851 fi
13852 done
13853 fi
13854
13855 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13856 for ncn_progname in gccgo; do
13857 if test -n "$ncn_target_tool_prefix"; then
13858 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13859 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13861 $as_echo_n "checking for $ac_word... " >&6; }
13862 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13863 $as_echo_n "(cached) " >&6
13864 else
13865 if test -n "$GOC_FOR_TARGET"; then
13866 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13867 else
13868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869 for as_dir in $PATH
13870 do
13871 IFS=$as_save_IFS
13872 test -z "$as_dir" && as_dir=.
13873 for ac_exec_ext in '' $ac_executable_extensions; do
13874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13875 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13877 break 2
13878 fi
13879 done
13880 done
13881 IFS=$as_save_IFS
13882
13883 fi
13884 fi
13885 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13886 if test -n "$GOC_FOR_TARGET"; then
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13888 $as_echo "$GOC_FOR_TARGET" >&6; }
13889 else
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13891 $as_echo "no" >&6; }
13892 fi
13893
13894
13895 fi
13896 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13898 set dummy ${ncn_progname}; ac_word=$2
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13900 $as_echo_n "checking for $ac_word... " >&6; }
13901 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13902 $as_echo_n "(cached) " >&6
13903 else
13904 if test -n "$GOC_FOR_TARGET"; then
13905 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13906 else
13907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13908 for as_dir in $PATH
13909 do
13910 IFS=$as_save_IFS
13911 test -z "$as_dir" && as_dir=.
13912 for ac_exec_ext in '' $ac_executable_extensions; do
13913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13914 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13916 break 2
13917 fi
13918 done
13919 done
13920 IFS=$as_save_IFS
13921
13922 fi
13923 fi
13924 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13925 if test -n "$GOC_FOR_TARGET"; then
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13927 $as_echo "$GOC_FOR_TARGET" >&6; }
13928 else
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13930 $as_echo "no" >&6; }
13931 fi
13932
13933
13934 fi
13935 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13936 done
13937 fi
13938
13939 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13940 set dummy gccgo
13941 if test $build = $target ; then
13942 GOC_FOR_TARGET="$2"
13943 else
13944 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13945 fi
13946 else
13947 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13948 fi
13949
13950
13951
13952 if test -n "$GDC_FOR_TARGET"; then
13953 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13954 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13955 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13956 fi
13957
13958 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13959 for ncn_progname in gdc; do
13960 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13961 set dummy ${ncn_progname}; ac_word=$2
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13963 $as_echo_n "checking for $ac_word... " >&6; }
13964 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13965 $as_echo_n "(cached) " >&6
13966 else
13967 if test -n "$GDC_FOR_TARGET"; then
13968 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13969 else
13970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13971 for as_dir in $PATH
13972 do
13973 IFS=$as_save_IFS
13974 test -z "$as_dir" && as_dir=.
13975 for ac_exec_ext in '' $ac_executable_extensions; do
13976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13977 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13979 break 2
13980 fi
13981 done
13982 done
13983 IFS=$as_save_IFS
13984
13985 fi
13986 fi
13987 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13988 if test -n "$GDC_FOR_TARGET"; then
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13990 $as_echo "$GDC_FOR_TARGET" >&6; }
13991 else
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13993 $as_echo "no" >&6; }
13994 fi
13995
13996
13997 done
13998 fi
13999
14000 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14001 for ncn_progname in gdc; do
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14003 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14004 if test -x $with_build_time_tools/${ncn_progname}; then
14005 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14007 $as_echo "yes" >&6; }
14008 break
14009 else
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14011 $as_echo "no" >&6; }
14012 fi
14013 done
14014 fi
14015
14016 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14017 for ncn_progname in gdc; do
14018 if test -n "$ncn_target_tool_prefix"; then
14019 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14020 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14022 $as_echo_n "checking for $ac_word... " >&6; }
14023 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14024 $as_echo_n "(cached) " >&6
14025 else
14026 if test -n "$GDC_FOR_TARGET"; then
14027 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14028 else
14029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14030 for as_dir in $PATH
14031 do
14032 IFS=$as_save_IFS
14033 test -z "$as_dir" && as_dir=.
14034 for ac_exec_ext in '' $ac_executable_extensions; do
14035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14036 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14038 break 2
14039 fi
14040 done
14041 done
14042 IFS=$as_save_IFS
14043
14044 fi
14045 fi
14046 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14047 if test -n "$GDC_FOR_TARGET"; then
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14049 $as_echo "$GDC_FOR_TARGET" >&6; }
14050 else
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14052 $as_echo "no" >&6; }
14053 fi
14054
14055
14056 fi
14057 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14059 set dummy ${ncn_progname}; ac_word=$2
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14061 $as_echo_n "checking for $ac_word... " >&6; }
14062 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14063 $as_echo_n "(cached) " >&6
14064 else
14065 if test -n "$GDC_FOR_TARGET"; then
14066 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14067 else
14068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14069 for as_dir in $PATH
14070 do
14071 IFS=$as_save_IFS
14072 test -z "$as_dir" && as_dir=.
14073 for ac_exec_ext in '' $ac_executable_extensions; do
14074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14075 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14077 break 2
14078 fi
14079 done
14080 done
14081 IFS=$as_save_IFS
14082
14083 fi
14084 fi
14085 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14086 if test -n "$GDC_FOR_TARGET"; then
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14088 $as_echo "$GDC_FOR_TARGET" >&6; }
14089 else
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14091 $as_echo "no" >&6; }
14092 fi
14093
14094
14095 fi
14096 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14097 done
14098 fi
14099
14100 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14101 set dummy gdc
14102 if test $build = $target ; then
14103 GDC_FOR_TARGET="$2"
14104 else
14105 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14106 fi
14107 else
14108 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14109 fi
14110
14111
14112
14113 cat > conftest.c << \EOF
14114 #ifdef __GNUC__
14115 gcc_yay;
14116 #endif
14117 EOF
14118 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14119 have_gcc_for_target=yes
14120 else
14121 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14122 have_gcc_for_target=no
14123 fi
14124 rm conftest.c
14125
14126
14127
14128
14129 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14130 if test -n "$with_build_time_tools"; then
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14132 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
14133 if test -x $with_build_time_tools/ar; then
14134 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14135 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14137 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14138 else
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14140 $as_echo "no" >&6; }
14141 fi
14142 elif test $build != $host && test $have_gcc_for_target = yes; then
14143 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14144 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14145 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14146 fi
14147 fi
14148 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14149 # Extract the first word of "ar", so it can be a program name with args.
14150 set dummy ar; ac_word=$2
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14152 $as_echo_n "checking for $ac_word... " >&6; }
14153 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14154 $as_echo_n "(cached) " >&6
14155 else
14156 case $AR_FOR_TARGET in
14157 [\\/]* | ?:[\\/]*)
14158 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14159 ;;
14160 *)
14161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14162 for as_dir in $gcc_cv_tool_dirs
14163 do
14164 IFS=$as_save_IFS
14165 test -z "$as_dir" && as_dir=.
14166 for ac_exec_ext in '' $ac_executable_extensions; do
14167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14168 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14170 break 2
14171 fi
14172 done
14173 done
14174 IFS=$as_save_IFS
14175
14176 ;;
14177 esac
14178 fi
14179 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14180 if test -n "$AR_FOR_TARGET"; then
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14182 $as_echo "$AR_FOR_TARGET" >&6; }
14183 else
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14185 $as_echo "no" >&6; }
14186 fi
14187
14188
14189 fi
14190 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14191
14192
14193 if test -n "$AR_FOR_TARGET"; then
14194 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14195 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14196 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14197 fi
14198
14199 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14200 for ncn_progname in ar; do
14201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14202 set dummy ${ncn_progname}; ac_word=$2
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14204 $as_echo_n "checking for $ac_word... " >&6; }
14205 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14206 $as_echo_n "(cached) " >&6
14207 else
14208 if test -n "$AR_FOR_TARGET"; then
14209 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14210 else
14211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14212 for as_dir in $PATH
14213 do
14214 IFS=$as_save_IFS
14215 test -z "$as_dir" && as_dir=.
14216 for ac_exec_ext in '' $ac_executable_extensions; do
14217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14218 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14220 break 2
14221 fi
14222 done
14223 done
14224 IFS=$as_save_IFS
14225
14226 fi
14227 fi
14228 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14229 if test -n "$AR_FOR_TARGET"; then
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14231 $as_echo "$AR_FOR_TARGET" >&6; }
14232 else
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14234 $as_echo "no" >&6; }
14235 fi
14236
14237
14238 done
14239 fi
14240
14241 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14242 for ncn_progname in ar; do
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14244 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14245 if test -x $with_build_time_tools/${ncn_progname}; then
14246 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14248 $as_echo "yes" >&6; }
14249 break
14250 else
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14252 $as_echo "no" >&6; }
14253 fi
14254 done
14255 fi
14256
14257 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14258 for ncn_progname in ar; do
14259 if test -n "$ncn_target_tool_prefix"; then
14260 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14261 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14263 $as_echo_n "checking for $ac_word... " >&6; }
14264 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14265 $as_echo_n "(cached) " >&6
14266 else
14267 if test -n "$AR_FOR_TARGET"; then
14268 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14269 else
14270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14271 for as_dir in $PATH
14272 do
14273 IFS=$as_save_IFS
14274 test -z "$as_dir" && as_dir=.
14275 for ac_exec_ext in '' $ac_executable_extensions; do
14276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14277 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14279 break 2
14280 fi
14281 done
14282 done
14283 IFS=$as_save_IFS
14284
14285 fi
14286 fi
14287 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14288 if test -n "$AR_FOR_TARGET"; then
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14290 $as_echo "$AR_FOR_TARGET" >&6; }
14291 else
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14293 $as_echo "no" >&6; }
14294 fi
14295
14296
14297 fi
14298 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14300 set dummy ${ncn_progname}; ac_word=$2
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14302 $as_echo_n "checking for $ac_word... " >&6; }
14303 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14304 $as_echo_n "(cached) " >&6
14305 else
14306 if test -n "$AR_FOR_TARGET"; then
14307 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14308 else
14309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14310 for as_dir in $PATH
14311 do
14312 IFS=$as_save_IFS
14313 test -z "$as_dir" && as_dir=.
14314 for ac_exec_ext in '' $ac_executable_extensions; do
14315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14316 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14318 break 2
14319 fi
14320 done
14321 done
14322 IFS=$as_save_IFS
14323
14324 fi
14325 fi
14326 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14327 if test -n "$AR_FOR_TARGET"; then
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14329 $as_echo "$AR_FOR_TARGET" >&6; }
14330 else
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14332 $as_echo "no" >&6; }
14333 fi
14334
14335
14336 fi
14337 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14338 done
14339 fi
14340
14341 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14342 set dummy ar
14343 if test $build = $target ; then
14344 AR_FOR_TARGET="$2"
14345 else
14346 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14347 fi
14348 else
14349 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14350 fi
14351
14352 else
14353 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14354 fi
14355
14356
14357
14358
14359 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14360 if test -n "$with_build_time_tools"; then
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14362 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14363 if test -x $with_build_time_tools/as; then
14364 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14365 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14367 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14368 else
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370 $as_echo "no" >&6; }
14371 fi
14372 elif test $build != $host && test $have_gcc_for_target = yes; then
14373 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14374 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14375 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14376 fi
14377 fi
14378 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14379 # Extract the first word of "as", so it can be a program name with args.
14380 set dummy as; ac_word=$2
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14382 $as_echo_n "checking for $ac_word... " >&6; }
14383 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14384 $as_echo_n "(cached) " >&6
14385 else
14386 case $AS_FOR_TARGET in
14387 [\\/]* | ?:[\\/]*)
14388 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14389 ;;
14390 *)
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $gcc_cv_tool_dirs
14393 do
14394 IFS=$as_save_IFS
14395 test -z "$as_dir" && as_dir=.
14396 for ac_exec_ext in '' $ac_executable_extensions; do
14397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14398 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14400 break 2
14401 fi
14402 done
14403 done
14404 IFS=$as_save_IFS
14405
14406 ;;
14407 esac
14408 fi
14409 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14410 if test -n "$AS_FOR_TARGET"; then
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14412 $as_echo "$AS_FOR_TARGET" >&6; }
14413 else
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14415 $as_echo "no" >&6; }
14416 fi
14417
14418
14419 fi
14420 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14421
14422
14423 if test -n "$AS_FOR_TARGET"; then
14424 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14425 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14426 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14427 fi
14428
14429 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14430 for ncn_progname in as; do
14431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14432 set dummy ${ncn_progname}; ac_word=$2
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14434 $as_echo_n "checking for $ac_word... " >&6; }
14435 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14436 $as_echo_n "(cached) " >&6
14437 else
14438 if test -n "$AS_FOR_TARGET"; then
14439 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14440 else
14441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442 for as_dir in $PATH
14443 do
14444 IFS=$as_save_IFS
14445 test -z "$as_dir" && as_dir=.
14446 for ac_exec_ext in '' $ac_executable_extensions; do
14447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14448 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14450 break 2
14451 fi
14452 done
14453 done
14454 IFS=$as_save_IFS
14455
14456 fi
14457 fi
14458 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14459 if test -n "$AS_FOR_TARGET"; then
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14461 $as_echo "$AS_FOR_TARGET" >&6; }
14462 else
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14464 $as_echo "no" >&6; }
14465 fi
14466
14467
14468 done
14469 fi
14470
14471 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14472 for ncn_progname in as; do
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14474 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14475 if test -x $with_build_time_tools/${ncn_progname}; then
14476 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14478 $as_echo "yes" >&6; }
14479 break
14480 else
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14482 $as_echo "no" >&6; }
14483 fi
14484 done
14485 fi
14486
14487 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14488 for ncn_progname in as; do
14489 if test -n "$ncn_target_tool_prefix"; then
14490 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14491 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14493 $as_echo_n "checking for $ac_word... " >&6; }
14494 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14495 $as_echo_n "(cached) " >&6
14496 else
14497 if test -n "$AS_FOR_TARGET"; then
14498 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14499 else
14500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14501 for as_dir in $PATH
14502 do
14503 IFS=$as_save_IFS
14504 test -z "$as_dir" && as_dir=.
14505 for ac_exec_ext in '' $ac_executable_extensions; do
14506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14507 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14509 break 2
14510 fi
14511 done
14512 done
14513 IFS=$as_save_IFS
14514
14515 fi
14516 fi
14517 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14518 if test -n "$AS_FOR_TARGET"; then
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14520 $as_echo "$AS_FOR_TARGET" >&6; }
14521 else
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14523 $as_echo "no" >&6; }
14524 fi
14525
14526
14527 fi
14528 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14530 set dummy ${ncn_progname}; ac_word=$2
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14532 $as_echo_n "checking for $ac_word... " >&6; }
14533 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14534 $as_echo_n "(cached) " >&6
14535 else
14536 if test -n "$AS_FOR_TARGET"; then
14537 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14538 else
14539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14540 for as_dir in $PATH
14541 do
14542 IFS=$as_save_IFS
14543 test -z "$as_dir" && as_dir=.
14544 for ac_exec_ext in '' $ac_executable_extensions; do
14545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14546 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14548 break 2
14549 fi
14550 done
14551 done
14552 IFS=$as_save_IFS
14553
14554 fi
14555 fi
14556 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14557 if test -n "$AS_FOR_TARGET"; then
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14559 $as_echo "$AS_FOR_TARGET" >&6; }
14560 else
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14562 $as_echo "no" >&6; }
14563 fi
14564
14565
14566 fi
14567 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14568 done
14569 fi
14570
14571 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14572 set dummy as
14573 if test $build = $target ; then
14574 AS_FOR_TARGET="$2"
14575 else
14576 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14577 fi
14578 else
14579 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14580 fi
14581
14582 else
14583 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14584 fi
14585
14586
14587
14588
14589 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14590 if test -n "$with_build_time_tools"; then
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14592 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14593 if test -x $with_build_time_tools/dlltool; then
14594 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14595 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14597 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14598 else
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14600 $as_echo "no" >&6; }
14601 fi
14602 elif test $build != $host && test $have_gcc_for_target = yes; then
14603 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14604 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14605 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14606 fi
14607 fi
14608 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14609 # Extract the first word of "dlltool", so it can be a program name with args.
14610 set dummy dlltool; ac_word=$2
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14612 $as_echo_n "checking for $ac_word... " >&6; }
14613 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14614 $as_echo_n "(cached) " >&6
14615 else
14616 case $DLLTOOL_FOR_TARGET in
14617 [\\/]* | ?:[\\/]*)
14618 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14619 ;;
14620 *)
14621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14622 for as_dir in $gcc_cv_tool_dirs
14623 do
14624 IFS=$as_save_IFS
14625 test -z "$as_dir" && as_dir=.
14626 for ac_exec_ext in '' $ac_executable_extensions; do
14627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14628 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14630 break 2
14631 fi
14632 done
14633 done
14634 IFS=$as_save_IFS
14635
14636 ;;
14637 esac
14638 fi
14639 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14640 if test -n "$DLLTOOL_FOR_TARGET"; then
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14642 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14643 else
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14645 $as_echo "no" >&6; }
14646 fi
14647
14648
14649 fi
14650 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14651
14652
14653 if test -n "$DLLTOOL_FOR_TARGET"; then
14654 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14655 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14656 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14657 fi
14658
14659 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14660 for ncn_progname in dlltool; do
14661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14662 set dummy ${ncn_progname}; ac_word=$2
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14664 $as_echo_n "checking for $ac_word... " >&6; }
14665 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14666 $as_echo_n "(cached) " >&6
14667 else
14668 if test -n "$DLLTOOL_FOR_TARGET"; then
14669 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14670 else
14671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14672 for as_dir in $PATH
14673 do
14674 IFS=$as_save_IFS
14675 test -z "$as_dir" && as_dir=.
14676 for ac_exec_ext in '' $ac_executable_extensions; do
14677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14678 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14680 break 2
14681 fi
14682 done
14683 done
14684 IFS=$as_save_IFS
14685
14686 fi
14687 fi
14688 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14689 if test -n "$DLLTOOL_FOR_TARGET"; then
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14691 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14692 else
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14694 $as_echo "no" >&6; }
14695 fi
14696
14697
14698 done
14699 fi
14700
14701 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14702 for ncn_progname in dlltool; do
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14704 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14705 if test -x $with_build_time_tools/${ncn_progname}; then
14706 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14708 $as_echo "yes" >&6; }
14709 break
14710 else
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14712 $as_echo "no" >&6; }
14713 fi
14714 done
14715 fi
14716
14717 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14718 for ncn_progname in dlltool; do
14719 if test -n "$ncn_target_tool_prefix"; then
14720 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14721 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14723 $as_echo_n "checking for $ac_word... " >&6; }
14724 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14725 $as_echo_n "(cached) " >&6
14726 else
14727 if test -n "$DLLTOOL_FOR_TARGET"; then
14728 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14729 else
14730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14731 for as_dir in $PATH
14732 do
14733 IFS=$as_save_IFS
14734 test -z "$as_dir" && as_dir=.
14735 for ac_exec_ext in '' $ac_executable_extensions; do
14736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14737 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14739 break 2
14740 fi
14741 done
14742 done
14743 IFS=$as_save_IFS
14744
14745 fi
14746 fi
14747 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14748 if test -n "$DLLTOOL_FOR_TARGET"; then
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14750 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14751 else
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14753 $as_echo "no" >&6; }
14754 fi
14755
14756
14757 fi
14758 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14760 set dummy ${ncn_progname}; ac_word=$2
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14762 $as_echo_n "checking for $ac_word... " >&6; }
14763 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14764 $as_echo_n "(cached) " >&6
14765 else
14766 if test -n "$DLLTOOL_FOR_TARGET"; then
14767 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14768 else
14769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14770 for as_dir in $PATH
14771 do
14772 IFS=$as_save_IFS
14773 test -z "$as_dir" && as_dir=.
14774 for ac_exec_ext in '' $ac_executable_extensions; do
14775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14776 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14778 break 2
14779 fi
14780 done
14781 done
14782 IFS=$as_save_IFS
14783
14784 fi
14785 fi
14786 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14787 if test -n "$DLLTOOL_FOR_TARGET"; then
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14789 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14790 else
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14792 $as_echo "no" >&6; }
14793 fi
14794
14795
14796 fi
14797 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14798 done
14799 fi
14800
14801 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14802 set dummy dlltool
14803 if test $build = $target ; then
14804 DLLTOOL_FOR_TARGET="$2"
14805 else
14806 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14807 fi
14808 else
14809 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14810 fi
14811
14812 else
14813 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14814 fi
14815
14816
14817
14818
14819 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14820 if test -n "$with_build_time_tools"; then
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14822 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14823 if test -x $with_build_time_tools/dsymutil; then
14824 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14825 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14827 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14828 else
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14830 $as_echo "no" >&6; }
14831 fi
14832 elif test $build != $host && test $have_gcc_for_target = yes; then
14833 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14834 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14835 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14836 fi
14837 fi
14838 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14839 # Extract the first word of "dsymutil", so it can be a program name with args.
14840 set dummy dsymutil; ac_word=$2
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14842 $as_echo_n "checking for $ac_word... " >&6; }
14843 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14844 $as_echo_n "(cached) " >&6
14845 else
14846 case $DSYMUTIL_FOR_TARGET in
14847 [\\/]* | ?:[\\/]*)
14848 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14849 ;;
14850 *)
14851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14852 for as_dir in $gcc_cv_tool_dirs
14853 do
14854 IFS=$as_save_IFS
14855 test -z "$as_dir" && as_dir=.
14856 for ac_exec_ext in '' $ac_executable_extensions; do
14857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14858 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14860 break 2
14861 fi
14862 done
14863 done
14864 IFS=$as_save_IFS
14865
14866 ;;
14867 esac
14868 fi
14869 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14870 if test -n "$DSYMUTIL_FOR_TARGET"; then
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14872 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14873 else
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14875 $as_echo "no" >&6; }
14876 fi
14877
14878
14879 fi
14880 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14881
14882
14883 if test -n "$DSYMUTIL_FOR_TARGET"; then
14884 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14885 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14886 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14887 fi
14888
14889 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14890 for ncn_progname in dsymutil; do
14891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14892 set dummy ${ncn_progname}; ac_word=$2
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14894 $as_echo_n "checking for $ac_word... " >&6; }
14895 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14896 $as_echo_n "(cached) " >&6
14897 else
14898 if test -n "$DSYMUTIL_FOR_TARGET"; then
14899 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14900 else
14901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14902 for as_dir in $PATH
14903 do
14904 IFS=$as_save_IFS
14905 test -z "$as_dir" && as_dir=.
14906 for ac_exec_ext in '' $ac_executable_extensions; do
14907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14908 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14910 break 2
14911 fi
14912 done
14913 done
14914 IFS=$as_save_IFS
14915
14916 fi
14917 fi
14918 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14919 if test -n "$DSYMUTIL_FOR_TARGET"; then
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14921 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14922 else
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14924 $as_echo "no" >&6; }
14925 fi
14926
14927
14928 done
14929 fi
14930
14931 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14932 for ncn_progname in dsymutil; do
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14934 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14935 if test -x $with_build_time_tools/${ncn_progname}; then
14936 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14938 $as_echo "yes" >&6; }
14939 break
14940 else
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14942 $as_echo "no" >&6; }
14943 fi
14944 done
14945 fi
14946
14947 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14948 for ncn_progname in dsymutil; do
14949 if test -n "$ncn_target_tool_prefix"; then
14950 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14951 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14953 $as_echo_n "checking for $ac_word... " >&6; }
14954 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14955 $as_echo_n "(cached) " >&6
14956 else
14957 if test -n "$DSYMUTIL_FOR_TARGET"; then
14958 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14959 else
14960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14961 for as_dir in $PATH
14962 do
14963 IFS=$as_save_IFS
14964 test -z "$as_dir" && as_dir=.
14965 for ac_exec_ext in '' $ac_executable_extensions; do
14966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14967 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14969 break 2
14970 fi
14971 done
14972 done
14973 IFS=$as_save_IFS
14974
14975 fi
14976 fi
14977 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14978 if test -n "$DSYMUTIL_FOR_TARGET"; then
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14980 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14981 else
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14983 $as_echo "no" >&6; }
14984 fi
14985
14986
14987 fi
14988 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14990 set dummy ${ncn_progname}; ac_word=$2
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14992 $as_echo_n "checking for $ac_word... " >&6; }
14993 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14994 $as_echo_n "(cached) " >&6
14995 else
14996 if test -n "$DSYMUTIL_FOR_TARGET"; then
14997 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14998 else
14999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15000 for as_dir in $PATH
15001 do
15002 IFS=$as_save_IFS
15003 test -z "$as_dir" && as_dir=.
15004 for ac_exec_ext in '' $ac_executable_extensions; do
15005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15006 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15008 break 2
15009 fi
15010 done
15011 done
15012 IFS=$as_save_IFS
15013
15014 fi
15015 fi
15016 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15017 if test -n "$DSYMUTIL_FOR_TARGET"; then
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15019 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15020 else
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15022 $as_echo "no" >&6; }
15023 fi
15024
15025
15026 fi
15027 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15028 done
15029 fi
15030
15031 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15032 set dummy dsymutil
15033 if test $build = $target ; then
15034 DSYMUTIL_FOR_TARGET="$2"
15035 else
15036 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15037 fi
15038 else
15039 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15040 fi
15041
15042 else
15043 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15044 fi
15045
15046
15047
15048
15049 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15050 if test -n "$with_build_time_tools"; then
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15052 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
15053 if test -x $with_build_time_tools/ld; then
15054 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15055 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15057 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15058 else
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15060 $as_echo "no" >&6; }
15061 fi
15062 elif test $build != $host && test $have_gcc_for_target = yes; then
15063 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15064 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15065 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15066 fi
15067 fi
15068 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15069 # Extract the first word of "ld", so it can be a program name with args.
15070 set dummy ld; ac_word=$2
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15072 $as_echo_n "checking for $ac_word... " >&6; }
15073 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15074 $as_echo_n "(cached) " >&6
15075 else
15076 case $LD_FOR_TARGET in
15077 [\\/]* | ?:[\\/]*)
15078 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15079 ;;
15080 *)
15081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15082 for as_dir in $gcc_cv_tool_dirs
15083 do
15084 IFS=$as_save_IFS
15085 test -z "$as_dir" && as_dir=.
15086 for ac_exec_ext in '' $ac_executable_extensions; do
15087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15088 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15090 break 2
15091 fi
15092 done
15093 done
15094 IFS=$as_save_IFS
15095
15096 ;;
15097 esac
15098 fi
15099 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15100 if test -n "$LD_FOR_TARGET"; then
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15102 $as_echo "$LD_FOR_TARGET" >&6; }
15103 else
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15105 $as_echo "no" >&6; }
15106 fi
15107
15108
15109 fi
15110 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15111
15112
15113 if test -n "$LD_FOR_TARGET"; then
15114 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15115 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15116 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15117 fi
15118
15119 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15120 for ncn_progname in ld; do
15121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15122 set dummy ${ncn_progname}; ac_word=$2
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15124 $as_echo_n "checking for $ac_word... " >&6; }
15125 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15126 $as_echo_n "(cached) " >&6
15127 else
15128 if test -n "$LD_FOR_TARGET"; then
15129 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15130 else
15131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15132 for as_dir in $PATH
15133 do
15134 IFS=$as_save_IFS
15135 test -z "$as_dir" && as_dir=.
15136 for ac_exec_ext in '' $ac_executable_extensions; do
15137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15138 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15140 break 2
15141 fi
15142 done
15143 done
15144 IFS=$as_save_IFS
15145
15146 fi
15147 fi
15148 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15149 if test -n "$LD_FOR_TARGET"; then
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15151 $as_echo "$LD_FOR_TARGET" >&6; }
15152 else
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15154 $as_echo "no" >&6; }
15155 fi
15156
15157
15158 done
15159 fi
15160
15161 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15162 for ncn_progname in ld; do
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15164 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15165 if test -x $with_build_time_tools/${ncn_progname}; then
15166 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15168 $as_echo "yes" >&6; }
15169 break
15170 else
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15172 $as_echo "no" >&6; }
15173 fi
15174 done
15175 fi
15176
15177 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15178 for ncn_progname in ld; do
15179 if test -n "$ncn_target_tool_prefix"; then
15180 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15181 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15183 $as_echo_n "checking for $ac_word... " >&6; }
15184 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15185 $as_echo_n "(cached) " >&6
15186 else
15187 if test -n "$LD_FOR_TARGET"; then
15188 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15189 else
15190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15191 for as_dir in $PATH
15192 do
15193 IFS=$as_save_IFS
15194 test -z "$as_dir" && as_dir=.
15195 for ac_exec_ext in '' $ac_executable_extensions; do
15196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15197 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15199 break 2
15200 fi
15201 done
15202 done
15203 IFS=$as_save_IFS
15204
15205 fi
15206 fi
15207 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15208 if test -n "$LD_FOR_TARGET"; then
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15210 $as_echo "$LD_FOR_TARGET" >&6; }
15211 else
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15213 $as_echo "no" >&6; }
15214 fi
15215
15216
15217 fi
15218 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15220 set dummy ${ncn_progname}; ac_word=$2
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15222 $as_echo_n "checking for $ac_word... " >&6; }
15223 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15224 $as_echo_n "(cached) " >&6
15225 else
15226 if test -n "$LD_FOR_TARGET"; then
15227 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15228 else
15229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15230 for as_dir in $PATH
15231 do
15232 IFS=$as_save_IFS
15233 test -z "$as_dir" && as_dir=.
15234 for ac_exec_ext in '' $ac_executable_extensions; do
15235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15236 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15238 break 2
15239 fi
15240 done
15241 done
15242 IFS=$as_save_IFS
15243
15244 fi
15245 fi
15246 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15247 if test -n "$LD_FOR_TARGET"; then
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15249 $as_echo "$LD_FOR_TARGET" >&6; }
15250 else
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15252 $as_echo "no" >&6; }
15253 fi
15254
15255
15256 fi
15257 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15258 done
15259 fi
15260
15261 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15262 set dummy ld
15263 if test $build = $target ; then
15264 LD_FOR_TARGET="$2"
15265 else
15266 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15267 fi
15268 else
15269 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15270 fi
15271
15272 else
15273 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15274 fi
15275
15276
15277
15278
15279 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15280 if test -n "$with_build_time_tools"; then
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15282 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15283 if test -x $with_build_time_tools/lipo; then
15284 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15285 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15287 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15288 else
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15290 $as_echo "no" >&6; }
15291 fi
15292 elif test $build != $host && test $have_gcc_for_target = yes; then
15293 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15294 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15295 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15296 fi
15297 fi
15298 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15299 # Extract the first word of "lipo", so it can be a program name with args.
15300 set dummy lipo; ac_word=$2
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15302 $as_echo_n "checking for $ac_word... " >&6; }
15303 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15304 $as_echo_n "(cached) " >&6
15305 else
15306 case $LIPO_FOR_TARGET in
15307 [\\/]* | ?:[\\/]*)
15308 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15309 ;;
15310 *)
15311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15312 for as_dir in $gcc_cv_tool_dirs
15313 do
15314 IFS=$as_save_IFS
15315 test -z "$as_dir" && as_dir=.
15316 for ac_exec_ext in '' $ac_executable_extensions; do
15317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15318 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15320 break 2
15321 fi
15322 done
15323 done
15324 IFS=$as_save_IFS
15325
15326 ;;
15327 esac
15328 fi
15329 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15330 if test -n "$LIPO_FOR_TARGET"; then
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15332 $as_echo "$LIPO_FOR_TARGET" >&6; }
15333 else
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15335 $as_echo "no" >&6; }
15336 fi
15337
15338
15339 fi
15340 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15341
15342
15343 if test -n "$LIPO_FOR_TARGET"; then
15344 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15345 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15346 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15347 fi
15348
15349 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15350 for ncn_progname in lipo; do
15351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15352 set dummy ${ncn_progname}; ac_word=$2
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15354 $as_echo_n "checking for $ac_word... " >&6; }
15355 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15356 $as_echo_n "(cached) " >&6
15357 else
15358 if test -n "$LIPO_FOR_TARGET"; then
15359 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15360 else
15361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15362 for as_dir in $PATH
15363 do
15364 IFS=$as_save_IFS
15365 test -z "$as_dir" && as_dir=.
15366 for ac_exec_ext in '' $ac_executable_extensions; do
15367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15368 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15370 break 2
15371 fi
15372 done
15373 done
15374 IFS=$as_save_IFS
15375
15376 fi
15377 fi
15378 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15379 if test -n "$LIPO_FOR_TARGET"; then
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15381 $as_echo "$LIPO_FOR_TARGET" >&6; }
15382 else
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15384 $as_echo "no" >&6; }
15385 fi
15386
15387
15388 done
15389 fi
15390
15391 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15392 for ncn_progname in lipo; do
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15394 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15395 if test -x $with_build_time_tools/${ncn_progname}; then
15396 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15398 $as_echo "yes" >&6; }
15399 break
15400 else
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15402 $as_echo "no" >&6; }
15403 fi
15404 done
15405 fi
15406
15407 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15408 for ncn_progname in lipo; do
15409 if test -n "$ncn_target_tool_prefix"; then
15410 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15411 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15413 $as_echo_n "checking for $ac_word... " >&6; }
15414 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15415 $as_echo_n "(cached) " >&6
15416 else
15417 if test -n "$LIPO_FOR_TARGET"; then
15418 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15419 else
15420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15421 for as_dir in $PATH
15422 do
15423 IFS=$as_save_IFS
15424 test -z "$as_dir" && as_dir=.
15425 for ac_exec_ext in '' $ac_executable_extensions; do
15426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15427 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15429 break 2
15430 fi
15431 done
15432 done
15433 IFS=$as_save_IFS
15434
15435 fi
15436 fi
15437 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15438 if test -n "$LIPO_FOR_TARGET"; then
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15440 $as_echo "$LIPO_FOR_TARGET" >&6; }
15441 else
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15443 $as_echo "no" >&6; }
15444 fi
15445
15446
15447 fi
15448 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15450 set dummy ${ncn_progname}; ac_word=$2
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15452 $as_echo_n "checking for $ac_word... " >&6; }
15453 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15454 $as_echo_n "(cached) " >&6
15455 else
15456 if test -n "$LIPO_FOR_TARGET"; then
15457 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15458 else
15459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15460 for as_dir in $PATH
15461 do
15462 IFS=$as_save_IFS
15463 test -z "$as_dir" && as_dir=.
15464 for ac_exec_ext in '' $ac_executable_extensions; do
15465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15466 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15468 break 2
15469 fi
15470 done
15471 done
15472 IFS=$as_save_IFS
15473
15474 fi
15475 fi
15476 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15477 if test -n "$LIPO_FOR_TARGET"; then
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15479 $as_echo "$LIPO_FOR_TARGET" >&6; }
15480 else
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15482 $as_echo "no" >&6; }
15483 fi
15484
15485
15486 fi
15487 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15488 done
15489 fi
15490
15491 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15492 set dummy lipo
15493 if test $build = $target ; then
15494 LIPO_FOR_TARGET="$2"
15495 else
15496 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15497 fi
15498 else
15499 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15500 fi
15501
15502 else
15503 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15504 fi
15505
15506
15507
15508
15509 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15510 if test -n "$with_build_time_tools"; then
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15512 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15513 if test -x $with_build_time_tools/nm; then
15514 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15515 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15517 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15518 else
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15520 $as_echo "no" >&6; }
15521 fi
15522 elif test $build != $host && test $have_gcc_for_target = yes; then
15523 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15524 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15525 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15526 fi
15527 fi
15528 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15529 # Extract the first word of "nm", so it can be a program name with args.
15530 set dummy nm; ac_word=$2
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15532 $as_echo_n "checking for $ac_word... " >&6; }
15533 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15534 $as_echo_n "(cached) " >&6
15535 else
15536 case $NM_FOR_TARGET in
15537 [\\/]* | ?:[\\/]*)
15538 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15539 ;;
15540 *)
15541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15542 for as_dir in $gcc_cv_tool_dirs
15543 do
15544 IFS=$as_save_IFS
15545 test -z "$as_dir" && as_dir=.
15546 for ac_exec_ext in '' $ac_executable_extensions; do
15547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15548 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15550 break 2
15551 fi
15552 done
15553 done
15554 IFS=$as_save_IFS
15555
15556 ;;
15557 esac
15558 fi
15559 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15560 if test -n "$NM_FOR_TARGET"; then
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15562 $as_echo "$NM_FOR_TARGET" >&6; }
15563 else
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15565 $as_echo "no" >&6; }
15566 fi
15567
15568
15569 fi
15570 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15571
15572
15573 if test -n "$NM_FOR_TARGET"; then
15574 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15575 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15576 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15577 fi
15578
15579 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15580 for ncn_progname in nm; do
15581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15582 set dummy ${ncn_progname}; ac_word=$2
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15584 $as_echo_n "checking for $ac_word... " >&6; }
15585 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15586 $as_echo_n "(cached) " >&6
15587 else
15588 if test -n "$NM_FOR_TARGET"; then
15589 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15590 else
15591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15592 for as_dir in $PATH
15593 do
15594 IFS=$as_save_IFS
15595 test -z "$as_dir" && as_dir=.
15596 for ac_exec_ext in '' $ac_executable_extensions; do
15597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15598 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15600 break 2
15601 fi
15602 done
15603 done
15604 IFS=$as_save_IFS
15605
15606 fi
15607 fi
15608 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15609 if test -n "$NM_FOR_TARGET"; then
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15611 $as_echo "$NM_FOR_TARGET" >&6; }
15612 else
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15614 $as_echo "no" >&6; }
15615 fi
15616
15617
15618 done
15619 fi
15620
15621 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15622 for ncn_progname in nm; do
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15624 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15625 if test -x $with_build_time_tools/${ncn_progname}; then
15626 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15628 $as_echo "yes" >&6; }
15629 break
15630 else
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15632 $as_echo "no" >&6; }
15633 fi
15634 done
15635 fi
15636
15637 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15638 for ncn_progname in nm; do
15639 if test -n "$ncn_target_tool_prefix"; then
15640 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15641 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15643 $as_echo_n "checking for $ac_word... " >&6; }
15644 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15645 $as_echo_n "(cached) " >&6
15646 else
15647 if test -n "$NM_FOR_TARGET"; then
15648 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15649 else
15650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15651 for as_dir in $PATH
15652 do
15653 IFS=$as_save_IFS
15654 test -z "$as_dir" && as_dir=.
15655 for ac_exec_ext in '' $ac_executable_extensions; do
15656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15657 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15659 break 2
15660 fi
15661 done
15662 done
15663 IFS=$as_save_IFS
15664
15665 fi
15666 fi
15667 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15668 if test -n "$NM_FOR_TARGET"; then
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15670 $as_echo "$NM_FOR_TARGET" >&6; }
15671 else
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15673 $as_echo "no" >&6; }
15674 fi
15675
15676
15677 fi
15678 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15680 set dummy ${ncn_progname}; ac_word=$2
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15682 $as_echo_n "checking for $ac_word... " >&6; }
15683 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15684 $as_echo_n "(cached) " >&6
15685 else
15686 if test -n "$NM_FOR_TARGET"; then
15687 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15688 else
15689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15690 for as_dir in $PATH
15691 do
15692 IFS=$as_save_IFS
15693 test -z "$as_dir" && as_dir=.
15694 for ac_exec_ext in '' $ac_executable_extensions; do
15695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15696 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15698 break 2
15699 fi
15700 done
15701 done
15702 IFS=$as_save_IFS
15703
15704 fi
15705 fi
15706 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15707 if test -n "$NM_FOR_TARGET"; then
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15709 $as_echo "$NM_FOR_TARGET" >&6; }
15710 else
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15712 $as_echo "no" >&6; }
15713 fi
15714
15715
15716 fi
15717 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15718 done
15719 fi
15720
15721 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15722 set dummy nm
15723 if test $build = $target ; then
15724 NM_FOR_TARGET="$2"
15725 else
15726 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15727 fi
15728 else
15729 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15730 fi
15731
15732 else
15733 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15734 fi
15735
15736
15737
15738
15739 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15740 if test -n "$with_build_time_tools"; then
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15742 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15743 if test -x $with_build_time_tools/objcopy; then
15744 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15745 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15747 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15748 else
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15750 $as_echo "no" >&6; }
15751 fi
15752 elif test $build != $host && test $have_gcc_for_target = yes; then
15753 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15754 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15755 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15756 fi
15757 fi
15758 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15759 # Extract the first word of "objcopy", so it can be a program name with args.
15760 set dummy objcopy; ac_word=$2
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15762 $as_echo_n "checking for $ac_word... " >&6; }
15763 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15764 $as_echo_n "(cached) " >&6
15765 else
15766 case $OBJCOPY_FOR_TARGET in
15767 [\\/]* | ?:[\\/]*)
15768 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15769 ;;
15770 *)
15771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15772 for as_dir in $gcc_cv_tool_dirs
15773 do
15774 IFS=$as_save_IFS
15775 test -z "$as_dir" && as_dir=.
15776 for ac_exec_ext in '' $ac_executable_extensions; do
15777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15778 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15780 break 2
15781 fi
15782 done
15783 done
15784 IFS=$as_save_IFS
15785
15786 ;;
15787 esac
15788 fi
15789 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15790 if test -n "$OBJCOPY_FOR_TARGET"; then
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15792 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15793 else
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15795 $as_echo "no" >&6; }
15796 fi
15797
15798
15799 fi
15800 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15801
15802
15803 if test -n "$OBJCOPY_FOR_TARGET"; then
15804 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15805 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15806 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15807 fi
15808
15809 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15810 for ncn_progname in objcopy; do
15811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15812 set dummy ${ncn_progname}; ac_word=$2
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15814 $as_echo_n "checking for $ac_word... " >&6; }
15815 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15816 $as_echo_n "(cached) " >&6
15817 else
15818 if test -n "$OBJCOPY_FOR_TARGET"; then
15819 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15820 else
15821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15822 for as_dir in $PATH
15823 do
15824 IFS=$as_save_IFS
15825 test -z "$as_dir" && as_dir=.
15826 for ac_exec_ext in '' $ac_executable_extensions; do
15827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15828 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15830 break 2
15831 fi
15832 done
15833 done
15834 IFS=$as_save_IFS
15835
15836 fi
15837 fi
15838 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15839 if test -n "$OBJCOPY_FOR_TARGET"; then
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15841 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15842 else
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15844 $as_echo "no" >&6; }
15845 fi
15846
15847
15848 done
15849 fi
15850
15851 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15852 for ncn_progname in objcopy; do
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15854 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15855 if test -x $with_build_time_tools/${ncn_progname}; then
15856 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15858 $as_echo "yes" >&6; }
15859 break
15860 else
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15862 $as_echo "no" >&6; }
15863 fi
15864 done
15865 fi
15866
15867 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15868 for ncn_progname in objcopy; do
15869 if test -n "$ncn_target_tool_prefix"; then
15870 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15871 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15873 $as_echo_n "checking for $ac_word... " >&6; }
15874 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15875 $as_echo_n "(cached) " >&6
15876 else
15877 if test -n "$OBJCOPY_FOR_TARGET"; then
15878 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15879 else
15880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15881 for as_dir in $PATH
15882 do
15883 IFS=$as_save_IFS
15884 test -z "$as_dir" && as_dir=.
15885 for ac_exec_ext in '' $ac_executable_extensions; do
15886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15887 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15889 break 2
15890 fi
15891 done
15892 done
15893 IFS=$as_save_IFS
15894
15895 fi
15896 fi
15897 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15898 if test -n "$OBJCOPY_FOR_TARGET"; then
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15900 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15901 else
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15903 $as_echo "no" >&6; }
15904 fi
15905
15906
15907 fi
15908 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15910 set dummy ${ncn_progname}; ac_word=$2
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15912 $as_echo_n "checking for $ac_word... " >&6; }
15913 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15914 $as_echo_n "(cached) " >&6
15915 else
15916 if test -n "$OBJCOPY_FOR_TARGET"; then
15917 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15918 else
15919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15920 for as_dir in $PATH
15921 do
15922 IFS=$as_save_IFS
15923 test -z "$as_dir" && as_dir=.
15924 for ac_exec_ext in '' $ac_executable_extensions; do
15925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15926 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15928 break 2
15929 fi
15930 done
15931 done
15932 IFS=$as_save_IFS
15933
15934 fi
15935 fi
15936 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15937 if test -n "$OBJCOPY_FOR_TARGET"; then
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15939 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15940 else
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15942 $as_echo "no" >&6; }
15943 fi
15944
15945
15946 fi
15947 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15948 done
15949 fi
15950
15951 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15952 set dummy objcopy
15953 if test $build = $target ; then
15954 OBJCOPY_FOR_TARGET="$2"
15955 else
15956 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15957 fi
15958 else
15959 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15960 fi
15961
15962 else
15963 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15964 fi
15965
15966
15967
15968
15969 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15970 if test -n "$with_build_time_tools"; then
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15972 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15973 if test -x $with_build_time_tools/objdump; then
15974 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15975 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15977 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15978 else
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15980 $as_echo "no" >&6; }
15981 fi
15982 elif test $build != $host && test $have_gcc_for_target = yes; then
15983 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15984 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15985 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15986 fi
15987 fi
15988 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15989 # Extract the first word of "objdump", so it can be a program name with args.
15990 set dummy objdump; ac_word=$2
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15992 $as_echo_n "checking for $ac_word... " >&6; }
15993 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15994 $as_echo_n "(cached) " >&6
15995 else
15996 case $OBJDUMP_FOR_TARGET in
15997 [\\/]* | ?:[\\/]*)
15998 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15999 ;;
16000 *)
16001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16002 for as_dir in $gcc_cv_tool_dirs
16003 do
16004 IFS=$as_save_IFS
16005 test -z "$as_dir" && as_dir=.
16006 for ac_exec_ext in '' $ac_executable_extensions; do
16007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16008 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16010 break 2
16011 fi
16012 done
16013 done
16014 IFS=$as_save_IFS
16015
16016 ;;
16017 esac
16018 fi
16019 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16020 if test -n "$OBJDUMP_FOR_TARGET"; then
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16022 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16023 else
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16025 $as_echo "no" >&6; }
16026 fi
16027
16028
16029 fi
16030 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16031
16032
16033 if test -n "$OBJDUMP_FOR_TARGET"; then
16034 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16035 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16036 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16037 fi
16038
16039 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16040 for ncn_progname in objdump; do
16041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16042 set dummy ${ncn_progname}; ac_word=$2
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16044 $as_echo_n "checking for $ac_word... " >&6; }
16045 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16046 $as_echo_n "(cached) " >&6
16047 else
16048 if test -n "$OBJDUMP_FOR_TARGET"; then
16049 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16050 else
16051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16052 for as_dir in $PATH
16053 do
16054 IFS=$as_save_IFS
16055 test -z "$as_dir" && as_dir=.
16056 for ac_exec_ext in '' $ac_executable_extensions; do
16057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16058 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16060 break 2
16061 fi
16062 done
16063 done
16064 IFS=$as_save_IFS
16065
16066 fi
16067 fi
16068 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16069 if test -n "$OBJDUMP_FOR_TARGET"; then
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16071 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16072 else
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16074 $as_echo "no" >&6; }
16075 fi
16076
16077
16078 done
16079 fi
16080
16081 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16082 for ncn_progname in objdump; do
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16084 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16085 if test -x $with_build_time_tools/${ncn_progname}; then
16086 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16088 $as_echo "yes" >&6; }
16089 break
16090 else
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16092 $as_echo "no" >&6; }
16093 fi
16094 done
16095 fi
16096
16097 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16098 for ncn_progname in objdump; do
16099 if test -n "$ncn_target_tool_prefix"; then
16100 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16101 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16103 $as_echo_n "checking for $ac_word... " >&6; }
16104 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16105 $as_echo_n "(cached) " >&6
16106 else
16107 if test -n "$OBJDUMP_FOR_TARGET"; then
16108 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16109 else
16110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16111 for as_dir in $PATH
16112 do
16113 IFS=$as_save_IFS
16114 test -z "$as_dir" && as_dir=.
16115 for ac_exec_ext in '' $ac_executable_extensions; do
16116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16117 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16119 break 2
16120 fi
16121 done
16122 done
16123 IFS=$as_save_IFS
16124
16125 fi
16126 fi
16127 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16128 if test -n "$OBJDUMP_FOR_TARGET"; then
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16130 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16131 else
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16133 $as_echo "no" >&6; }
16134 fi
16135
16136
16137 fi
16138 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16140 set dummy ${ncn_progname}; ac_word=$2
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16142 $as_echo_n "checking for $ac_word... " >&6; }
16143 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16144 $as_echo_n "(cached) " >&6
16145 else
16146 if test -n "$OBJDUMP_FOR_TARGET"; then
16147 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16148 else
16149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16150 for as_dir in $PATH
16151 do
16152 IFS=$as_save_IFS
16153 test -z "$as_dir" && as_dir=.
16154 for ac_exec_ext in '' $ac_executable_extensions; do
16155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16156 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16158 break 2
16159 fi
16160 done
16161 done
16162 IFS=$as_save_IFS
16163
16164 fi
16165 fi
16166 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16167 if test -n "$OBJDUMP_FOR_TARGET"; then
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16169 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16170 else
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16172 $as_echo "no" >&6; }
16173 fi
16174
16175
16176 fi
16177 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16178 done
16179 fi
16180
16181 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16182 set dummy objdump
16183 if test $build = $target ; then
16184 OBJDUMP_FOR_TARGET="$2"
16185 else
16186 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16187 fi
16188 else
16189 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16190 fi
16191
16192 else
16193 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16194 fi
16195
16196
16197
16198
16199 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16200 if test -n "$with_build_time_tools"; then
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16202 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16203 if test -x $with_build_time_tools/otool; then
16204 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16205 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16207 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16208 else
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16210 $as_echo "no" >&6; }
16211 fi
16212 elif test $build != $host && test $have_gcc_for_target = yes; then
16213 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16214 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16215 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16216 fi
16217 fi
16218 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16219 # Extract the first word of "otool", so it can be a program name with args.
16220 set dummy otool; ac_word=$2
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16222 $as_echo_n "checking for $ac_word... " >&6; }
16223 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16224 $as_echo_n "(cached) " >&6
16225 else
16226 case $OTOOL_FOR_TARGET in
16227 [\\/]* | ?:[\\/]*)
16228 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16229 ;;
16230 *)
16231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16232 for as_dir in $gcc_cv_tool_dirs
16233 do
16234 IFS=$as_save_IFS
16235 test -z "$as_dir" && as_dir=.
16236 for ac_exec_ext in '' $ac_executable_extensions; do
16237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16238 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16240 break 2
16241 fi
16242 done
16243 done
16244 IFS=$as_save_IFS
16245
16246 ;;
16247 esac
16248 fi
16249 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16250 if test -n "$OTOOL_FOR_TARGET"; then
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16252 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16253 else
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16255 $as_echo "no" >&6; }
16256 fi
16257
16258
16259 fi
16260 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16261
16262
16263 if test -n "$OTOOL_FOR_TARGET"; then
16264 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16265 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16266 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16267 fi
16268
16269 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16270 for ncn_progname in otool; do
16271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16272 set dummy ${ncn_progname}; ac_word=$2
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16274 $as_echo_n "checking for $ac_word... " >&6; }
16275 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16276 $as_echo_n "(cached) " >&6
16277 else
16278 if test -n "$OTOOL_FOR_TARGET"; then
16279 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16280 else
16281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16282 for as_dir in $PATH
16283 do
16284 IFS=$as_save_IFS
16285 test -z "$as_dir" && as_dir=.
16286 for ac_exec_ext in '' $ac_executable_extensions; do
16287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16288 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16290 break 2
16291 fi
16292 done
16293 done
16294 IFS=$as_save_IFS
16295
16296 fi
16297 fi
16298 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16299 if test -n "$OTOOL_FOR_TARGET"; then
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16301 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16302 else
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16304 $as_echo "no" >&6; }
16305 fi
16306
16307
16308 done
16309 fi
16310
16311 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16312 for ncn_progname in otool; do
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16314 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16315 if test -x $with_build_time_tools/${ncn_progname}; then
16316 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16318 $as_echo "yes" >&6; }
16319 break
16320 else
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16322 $as_echo "no" >&6; }
16323 fi
16324 done
16325 fi
16326
16327 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16328 for ncn_progname in otool; do
16329 if test -n "$ncn_target_tool_prefix"; then
16330 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16331 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16333 $as_echo_n "checking for $ac_word... " >&6; }
16334 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16335 $as_echo_n "(cached) " >&6
16336 else
16337 if test -n "$OTOOL_FOR_TARGET"; then
16338 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16339 else
16340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16341 for as_dir in $PATH
16342 do
16343 IFS=$as_save_IFS
16344 test -z "$as_dir" && as_dir=.
16345 for ac_exec_ext in '' $ac_executable_extensions; do
16346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16347 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16349 break 2
16350 fi
16351 done
16352 done
16353 IFS=$as_save_IFS
16354
16355 fi
16356 fi
16357 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16358 if test -n "$OTOOL_FOR_TARGET"; then
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16360 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16361 else
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16363 $as_echo "no" >&6; }
16364 fi
16365
16366
16367 fi
16368 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16370 set dummy ${ncn_progname}; ac_word=$2
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16372 $as_echo_n "checking for $ac_word... " >&6; }
16373 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16374 $as_echo_n "(cached) " >&6
16375 else
16376 if test -n "$OTOOL_FOR_TARGET"; then
16377 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16378 else
16379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16380 for as_dir in $PATH
16381 do
16382 IFS=$as_save_IFS
16383 test -z "$as_dir" && as_dir=.
16384 for ac_exec_ext in '' $ac_executable_extensions; do
16385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16386 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16388 break 2
16389 fi
16390 done
16391 done
16392 IFS=$as_save_IFS
16393
16394 fi
16395 fi
16396 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16397 if test -n "$OTOOL_FOR_TARGET"; then
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16399 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16400 else
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16402 $as_echo "no" >&6; }
16403 fi
16404
16405
16406 fi
16407 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16408 done
16409 fi
16410
16411 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16412 set dummy otool
16413 if test $build = $target ; then
16414 OTOOL_FOR_TARGET="$2"
16415 else
16416 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16417 fi
16418 else
16419 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16420 fi
16421
16422 else
16423 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16424 fi
16425
16426
16427
16428
16429 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16430 if test -n "$with_build_time_tools"; then
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16432 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16433 if test -x $with_build_time_tools/ranlib; then
16434 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16435 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16437 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16438 else
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16440 $as_echo "no" >&6; }
16441 fi
16442 elif test $build != $host && test $have_gcc_for_target = yes; then
16443 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16444 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16445 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16446 fi
16447 fi
16448 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16449 # Extract the first word of "ranlib", so it can be a program name with args.
16450 set dummy ranlib; ac_word=$2
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16452 $as_echo_n "checking for $ac_word... " >&6; }
16453 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16454 $as_echo_n "(cached) " >&6
16455 else
16456 case $RANLIB_FOR_TARGET in
16457 [\\/]* | ?:[\\/]*)
16458 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16459 ;;
16460 *)
16461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16462 for as_dir in $gcc_cv_tool_dirs
16463 do
16464 IFS=$as_save_IFS
16465 test -z "$as_dir" && as_dir=.
16466 for ac_exec_ext in '' $ac_executable_extensions; do
16467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16468 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16470 break 2
16471 fi
16472 done
16473 done
16474 IFS=$as_save_IFS
16475
16476 ;;
16477 esac
16478 fi
16479 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16480 if test -n "$RANLIB_FOR_TARGET"; then
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16482 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16483 else
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16485 $as_echo "no" >&6; }
16486 fi
16487
16488
16489 fi
16490 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16491
16492
16493 if test -n "$RANLIB_FOR_TARGET"; then
16494 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16495 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16496 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16497 fi
16498
16499 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16500 for ncn_progname in ranlib; do
16501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16502 set dummy ${ncn_progname}; ac_word=$2
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16504 $as_echo_n "checking for $ac_word... " >&6; }
16505 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16506 $as_echo_n "(cached) " >&6
16507 else
16508 if test -n "$RANLIB_FOR_TARGET"; then
16509 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16510 else
16511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16512 for as_dir in $PATH
16513 do
16514 IFS=$as_save_IFS
16515 test -z "$as_dir" && as_dir=.
16516 for ac_exec_ext in '' $ac_executable_extensions; do
16517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16518 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16520 break 2
16521 fi
16522 done
16523 done
16524 IFS=$as_save_IFS
16525
16526 fi
16527 fi
16528 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16529 if test -n "$RANLIB_FOR_TARGET"; then
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16531 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16532 else
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16534 $as_echo "no" >&6; }
16535 fi
16536
16537
16538 done
16539 fi
16540
16541 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16542 for ncn_progname in ranlib; do
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16544 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16545 if test -x $with_build_time_tools/${ncn_progname}; then
16546 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16548 $as_echo "yes" >&6; }
16549 break
16550 else
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16552 $as_echo "no" >&6; }
16553 fi
16554 done
16555 fi
16556
16557 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16558 for ncn_progname in ranlib; do
16559 if test -n "$ncn_target_tool_prefix"; then
16560 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16561 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16563 $as_echo_n "checking for $ac_word... " >&6; }
16564 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16565 $as_echo_n "(cached) " >&6
16566 else
16567 if test -n "$RANLIB_FOR_TARGET"; then
16568 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16569 else
16570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16571 for as_dir in $PATH
16572 do
16573 IFS=$as_save_IFS
16574 test -z "$as_dir" && as_dir=.
16575 for ac_exec_ext in '' $ac_executable_extensions; do
16576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16577 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16579 break 2
16580 fi
16581 done
16582 done
16583 IFS=$as_save_IFS
16584
16585 fi
16586 fi
16587 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16588 if test -n "$RANLIB_FOR_TARGET"; then
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16590 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16591 else
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16593 $as_echo "no" >&6; }
16594 fi
16595
16596
16597 fi
16598 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16600 set dummy ${ncn_progname}; ac_word=$2
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16602 $as_echo_n "checking for $ac_word... " >&6; }
16603 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16604 $as_echo_n "(cached) " >&6
16605 else
16606 if test -n "$RANLIB_FOR_TARGET"; then
16607 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16608 else
16609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16610 for as_dir in $PATH
16611 do
16612 IFS=$as_save_IFS
16613 test -z "$as_dir" && as_dir=.
16614 for ac_exec_ext in '' $ac_executable_extensions; do
16615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16616 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16618 break 2
16619 fi
16620 done
16621 done
16622 IFS=$as_save_IFS
16623
16624 fi
16625 fi
16626 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16627 if test -n "$RANLIB_FOR_TARGET"; then
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16629 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16630 else
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16632 $as_echo "no" >&6; }
16633 fi
16634
16635
16636 fi
16637 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16638 done
16639 fi
16640
16641 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16642 set dummy ranlib
16643 if test $build = $target ; then
16644 RANLIB_FOR_TARGET="$2"
16645 else
16646 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16647 fi
16648 else
16649 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16650 fi
16651
16652 else
16653 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16654 fi
16655
16656
16657
16658
16659 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16660 if test -n "$with_build_time_tools"; then
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16662 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16663 if test -x $with_build_time_tools/readelf; then
16664 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16665 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16667 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16668 else
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16670 $as_echo "no" >&6; }
16671 fi
16672 elif test $build != $host && test $have_gcc_for_target = yes; then
16673 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16674 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16675 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16676 fi
16677 fi
16678 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16679 # Extract the first word of "readelf", so it can be a program name with args.
16680 set dummy readelf; ac_word=$2
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16682 $as_echo_n "checking for $ac_word... " >&6; }
16683 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16684 $as_echo_n "(cached) " >&6
16685 else
16686 case $READELF_FOR_TARGET in
16687 [\\/]* | ?:[\\/]*)
16688 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16689 ;;
16690 *)
16691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16692 for as_dir in $gcc_cv_tool_dirs
16693 do
16694 IFS=$as_save_IFS
16695 test -z "$as_dir" && as_dir=.
16696 for ac_exec_ext in '' $ac_executable_extensions; do
16697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16698 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16700 break 2
16701 fi
16702 done
16703 done
16704 IFS=$as_save_IFS
16705
16706 ;;
16707 esac
16708 fi
16709 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16710 if test -n "$READELF_FOR_TARGET"; then
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16712 $as_echo "$READELF_FOR_TARGET" >&6; }
16713 else
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16715 $as_echo "no" >&6; }
16716 fi
16717
16718
16719 fi
16720 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16721
16722
16723 if test -n "$READELF_FOR_TARGET"; then
16724 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16725 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16726 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16727 fi
16728
16729 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16730 for ncn_progname in readelf; do
16731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16732 set dummy ${ncn_progname}; ac_word=$2
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16734 $as_echo_n "checking for $ac_word... " >&6; }
16735 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16736 $as_echo_n "(cached) " >&6
16737 else
16738 if test -n "$READELF_FOR_TARGET"; then
16739 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16740 else
16741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16742 for as_dir in $PATH
16743 do
16744 IFS=$as_save_IFS
16745 test -z "$as_dir" && as_dir=.
16746 for ac_exec_ext in '' $ac_executable_extensions; do
16747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16748 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16750 break 2
16751 fi
16752 done
16753 done
16754 IFS=$as_save_IFS
16755
16756 fi
16757 fi
16758 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16759 if test -n "$READELF_FOR_TARGET"; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16761 $as_echo "$READELF_FOR_TARGET" >&6; }
16762 else
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764 $as_echo "no" >&6; }
16765 fi
16766
16767
16768 done
16769 fi
16770
16771 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16772 for ncn_progname in readelf; do
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16774 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16775 if test -x $with_build_time_tools/${ncn_progname}; then
16776 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16778 $as_echo "yes" >&6; }
16779 break
16780 else
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16782 $as_echo "no" >&6; }
16783 fi
16784 done
16785 fi
16786
16787 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16788 for ncn_progname in readelf; do
16789 if test -n "$ncn_target_tool_prefix"; then
16790 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16791 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16793 $as_echo_n "checking for $ac_word... " >&6; }
16794 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16795 $as_echo_n "(cached) " >&6
16796 else
16797 if test -n "$READELF_FOR_TARGET"; then
16798 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16799 else
16800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16801 for as_dir in $PATH
16802 do
16803 IFS=$as_save_IFS
16804 test -z "$as_dir" && as_dir=.
16805 for ac_exec_ext in '' $ac_executable_extensions; do
16806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16807 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16809 break 2
16810 fi
16811 done
16812 done
16813 IFS=$as_save_IFS
16814
16815 fi
16816 fi
16817 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16818 if test -n "$READELF_FOR_TARGET"; then
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16820 $as_echo "$READELF_FOR_TARGET" >&6; }
16821 else
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16823 $as_echo "no" >&6; }
16824 fi
16825
16826
16827 fi
16828 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16830 set dummy ${ncn_progname}; ac_word=$2
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16832 $as_echo_n "checking for $ac_word... " >&6; }
16833 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16834 $as_echo_n "(cached) " >&6
16835 else
16836 if test -n "$READELF_FOR_TARGET"; then
16837 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16838 else
16839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16840 for as_dir in $PATH
16841 do
16842 IFS=$as_save_IFS
16843 test -z "$as_dir" && as_dir=.
16844 for ac_exec_ext in '' $ac_executable_extensions; do
16845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16846 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16848 break 2
16849 fi
16850 done
16851 done
16852 IFS=$as_save_IFS
16853
16854 fi
16855 fi
16856 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16857 if test -n "$READELF_FOR_TARGET"; then
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16859 $as_echo "$READELF_FOR_TARGET" >&6; }
16860 else
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16862 $as_echo "no" >&6; }
16863 fi
16864
16865
16866 fi
16867 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16868 done
16869 fi
16870
16871 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16872 set dummy readelf
16873 if test $build = $target ; then
16874 READELF_FOR_TARGET="$2"
16875 else
16876 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16877 fi
16878 else
16879 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16880 fi
16881
16882 else
16883 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16884 fi
16885
16886
16887
16888
16889 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16890 if test -n "$with_build_time_tools"; then
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16892 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16893 if test -x $with_build_time_tools/strip; then
16894 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16895 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16897 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16898 else
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16900 $as_echo "no" >&6; }
16901 fi
16902 elif test $build != $host && test $have_gcc_for_target = yes; then
16903 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16904 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16905 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16906 fi
16907 fi
16908 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16909 # Extract the first word of "strip", so it can be a program name with args.
16910 set dummy strip; ac_word=$2
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16912 $as_echo_n "checking for $ac_word... " >&6; }
16913 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16914 $as_echo_n "(cached) " >&6
16915 else
16916 case $STRIP_FOR_TARGET in
16917 [\\/]* | ?:[\\/]*)
16918 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16919 ;;
16920 *)
16921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16922 for as_dir in $gcc_cv_tool_dirs
16923 do
16924 IFS=$as_save_IFS
16925 test -z "$as_dir" && as_dir=.
16926 for ac_exec_ext in '' $ac_executable_extensions; do
16927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16928 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16930 break 2
16931 fi
16932 done
16933 done
16934 IFS=$as_save_IFS
16935
16936 ;;
16937 esac
16938 fi
16939 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16940 if test -n "$STRIP_FOR_TARGET"; then
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16942 $as_echo "$STRIP_FOR_TARGET" >&6; }
16943 else
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16945 $as_echo "no" >&6; }
16946 fi
16947
16948
16949 fi
16950 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16951
16952
16953 if test -n "$STRIP_FOR_TARGET"; then
16954 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16955 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16956 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16957 fi
16958
16959 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16960 for ncn_progname in strip; do
16961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16962 set dummy ${ncn_progname}; ac_word=$2
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16964 $as_echo_n "checking for $ac_word... " >&6; }
16965 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16966 $as_echo_n "(cached) " >&6
16967 else
16968 if test -n "$STRIP_FOR_TARGET"; then
16969 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16970 else
16971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16972 for as_dir in $PATH
16973 do
16974 IFS=$as_save_IFS
16975 test -z "$as_dir" && as_dir=.
16976 for ac_exec_ext in '' $ac_executable_extensions; do
16977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16978 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16980 break 2
16981 fi
16982 done
16983 done
16984 IFS=$as_save_IFS
16985
16986 fi
16987 fi
16988 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16989 if test -n "$STRIP_FOR_TARGET"; then
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16991 $as_echo "$STRIP_FOR_TARGET" >&6; }
16992 else
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16994 $as_echo "no" >&6; }
16995 fi
16996
16997
16998 done
16999 fi
17000
17001 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17002 for ncn_progname in strip; do
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17004 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17005 if test -x $with_build_time_tools/${ncn_progname}; then
17006 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17008 $as_echo "yes" >&6; }
17009 break
17010 else
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17012 $as_echo "no" >&6; }
17013 fi
17014 done
17015 fi
17016
17017 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17018 for ncn_progname in strip; do
17019 if test -n "$ncn_target_tool_prefix"; then
17020 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17021 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17023 $as_echo_n "checking for $ac_word... " >&6; }
17024 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17025 $as_echo_n "(cached) " >&6
17026 else
17027 if test -n "$STRIP_FOR_TARGET"; then
17028 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17029 else
17030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17031 for as_dir in $PATH
17032 do
17033 IFS=$as_save_IFS
17034 test -z "$as_dir" && as_dir=.
17035 for ac_exec_ext in '' $ac_executable_extensions; do
17036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17037 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17039 break 2
17040 fi
17041 done
17042 done
17043 IFS=$as_save_IFS
17044
17045 fi
17046 fi
17047 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17048 if test -n "$STRIP_FOR_TARGET"; then
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17050 $as_echo "$STRIP_FOR_TARGET" >&6; }
17051 else
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17053 $as_echo "no" >&6; }
17054 fi
17055
17056
17057 fi
17058 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17060 set dummy ${ncn_progname}; ac_word=$2
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17062 $as_echo_n "checking for $ac_word... " >&6; }
17063 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17064 $as_echo_n "(cached) " >&6
17065 else
17066 if test -n "$STRIP_FOR_TARGET"; then
17067 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17068 else
17069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17070 for as_dir in $PATH
17071 do
17072 IFS=$as_save_IFS
17073 test -z "$as_dir" && as_dir=.
17074 for ac_exec_ext in '' $ac_executable_extensions; do
17075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17076 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17078 break 2
17079 fi
17080 done
17081 done
17082 IFS=$as_save_IFS
17083
17084 fi
17085 fi
17086 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17087 if test -n "$STRIP_FOR_TARGET"; then
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17089 $as_echo "$STRIP_FOR_TARGET" >&6; }
17090 else
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17092 $as_echo "no" >&6; }
17093 fi
17094
17095
17096 fi
17097 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17098 done
17099 fi
17100
17101 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17102 set dummy strip
17103 if test $build = $target ; then
17104 STRIP_FOR_TARGET="$2"
17105 else
17106 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17107 fi
17108 else
17109 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17110 fi
17111
17112 else
17113 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17114 fi
17115
17116
17117
17118
17119 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17120 if test -n "$with_build_time_tools"; then
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17122 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
17123 if test -x $with_build_time_tools/windres; then
17124 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17125 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17127 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17128 else
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17130 $as_echo "no" >&6; }
17131 fi
17132 elif test $build != $host && test $have_gcc_for_target = yes; then
17133 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17134 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17135 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17136 fi
17137 fi
17138 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17139 # Extract the first word of "windres", so it can be a program name with args.
17140 set dummy windres; ac_word=$2
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17142 $as_echo_n "checking for $ac_word... " >&6; }
17143 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17144 $as_echo_n "(cached) " >&6
17145 else
17146 case $WINDRES_FOR_TARGET in
17147 [\\/]* | ?:[\\/]*)
17148 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17149 ;;
17150 *)
17151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17152 for as_dir in $gcc_cv_tool_dirs
17153 do
17154 IFS=$as_save_IFS
17155 test -z "$as_dir" && as_dir=.
17156 for ac_exec_ext in '' $ac_executable_extensions; do
17157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17158 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17160 break 2
17161 fi
17162 done
17163 done
17164 IFS=$as_save_IFS
17165
17166 ;;
17167 esac
17168 fi
17169 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17170 if test -n "$WINDRES_FOR_TARGET"; then
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17172 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17173 else
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17175 $as_echo "no" >&6; }
17176 fi
17177
17178
17179 fi
17180 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17181
17182
17183 if test -n "$WINDRES_FOR_TARGET"; then
17184 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17185 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17186 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17187 fi
17188
17189 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17190 for ncn_progname in windres; do
17191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17192 set dummy ${ncn_progname}; ac_word=$2
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17194 $as_echo_n "checking for $ac_word... " >&6; }
17195 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17196 $as_echo_n "(cached) " >&6
17197 else
17198 if test -n "$WINDRES_FOR_TARGET"; then
17199 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17200 else
17201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17202 for as_dir in $PATH
17203 do
17204 IFS=$as_save_IFS
17205 test -z "$as_dir" && as_dir=.
17206 for ac_exec_ext in '' $ac_executable_extensions; do
17207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17208 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17210 break 2
17211 fi
17212 done
17213 done
17214 IFS=$as_save_IFS
17215
17216 fi
17217 fi
17218 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17219 if test -n "$WINDRES_FOR_TARGET"; then
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17221 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17222 else
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17224 $as_echo "no" >&6; }
17225 fi
17226
17227
17228 done
17229 fi
17230
17231 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17232 for ncn_progname in windres; do
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17234 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17235 if test -x $with_build_time_tools/${ncn_progname}; then
17236 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17238 $as_echo "yes" >&6; }
17239 break
17240 else
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17242 $as_echo "no" >&6; }
17243 fi
17244 done
17245 fi
17246
17247 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17248 for ncn_progname in windres; do
17249 if test -n "$ncn_target_tool_prefix"; then
17250 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17251 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17253 $as_echo_n "checking for $ac_word... " >&6; }
17254 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17255 $as_echo_n "(cached) " >&6
17256 else
17257 if test -n "$WINDRES_FOR_TARGET"; then
17258 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17259 else
17260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17261 for as_dir in $PATH
17262 do
17263 IFS=$as_save_IFS
17264 test -z "$as_dir" && as_dir=.
17265 for ac_exec_ext in '' $ac_executable_extensions; do
17266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17267 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17269 break 2
17270 fi
17271 done
17272 done
17273 IFS=$as_save_IFS
17274
17275 fi
17276 fi
17277 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17278 if test -n "$WINDRES_FOR_TARGET"; then
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17280 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17281 else
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17283 $as_echo "no" >&6; }
17284 fi
17285
17286
17287 fi
17288 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17290 set dummy ${ncn_progname}; ac_word=$2
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17292 $as_echo_n "checking for $ac_word... " >&6; }
17293 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17294 $as_echo_n "(cached) " >&6
17295 else
17296 if test -n "$WINDRES_FOR_TARGET"; then
17297 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17298 else
17299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17300 for as_dir in $PATH
17301 do
17302 IFS=$as_save_IFS
17303 test -z "$as_dir" && as_dir=.
17304 for ac_exec_ext in '' $ac_executable_extensions; do
17305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17306 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17308 break 2
17309 fi
17310 done
17311 done
17312 IFS=$as_save_IFS
17313
17314 fi
17315 fi
17316 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17317 if test -n "$WINDRES_FOR_TARGET"; then
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17319 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17320 else
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17322 $as_echo "no" >&6; }
17323 fi
17324
17325
17326 fi
17327 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17328 done
17329 fi
17330
17331 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17332 set dummy windres
17333 if test $build = $target ; then
17334 WINDRES_FOR_TARGET="$2"
17335 else
17336 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17337 fi
17338 else
17339 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17340 fi
17341
17342 else
17343 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17344 fi
17345
17346
17347
17348
17349 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17350 if test -n "$with_build_time_tools"; then
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17352 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17353 if test -x $with_build_time_tools/windmc; then
17354 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17355 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17357 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17358 else
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17360 $as_echo "no" >&6; }
17361 fi
17362 elif test $build != $host && test $have_gcc_for_target = yes; then
17363 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17364 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17365 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17366 fi
17367 fi
17368 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17369 # Extract the first word of "windmc", so it can be a program name with args.
17370 set dummy windmc; ac_word=$2
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17372 $as_echo_n "checking for $ac_word... " >&6; }
17373 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17374 $as_echo_n "(cached) " >&6
17375 else
17376 case $WINDMC_FOR_TARGET in
17377 [\\/]* | ?:[\\/]*)
17378 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17379 ;;
17380 *)
17381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17382 for as_dir in $gcc_cv_tool_dirs
17383 do
17384 IFS=$as_save_IFS
17385 test -z "$as_dir" && as_dir=.
17386 for ac_exec_ext in '' $ac_executable_extensions; do
17387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17388 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17390 break 2
17391 fi
17392 done
17393 done
17394 IFS=$as_save_IFS
17395
17396 ;;
17397 esac
17398 fi
17399 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17400 if test -n "$WINDMC_FOR_TARGET"; then
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17402 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17403 else
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17405 $as_echo "no" >&6; }
17406 fi
17407
17408
17409 fi
17410 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17411
17412
17413 if test -n "$WINDMC_FOR_TARGET"; then
17414 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17415 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17416 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17417 fi
17418
17419 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17420 for ncn_progname in windmc; do
17421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17422 set dummy ${ncn_progname}; ac_word=$2
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17424 $as_echo_n "checking for $ac_word... " >&6; }
17425 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17426 $as_echo_n "(cached) " >&6
17427 else
17428 if test -n "$WINDMC_FOR_TARGET"; then
17429 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17430 else
17431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17432 for as_dir in $PATH
17433 do
17434 IFS=$as_save_IFS
17435 test -z "$as_dir" && as_dir=.
17436 for ac_exec_ext in '' $ac_executable_extensions; do
17437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17438 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17440 break 2
17441 fi
17442 done
17443 done
17444 IFS=$as_save_IFS
17445
17446 fi
17447 fi
17448 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17449 if test -n "$WINDMC_FOR_TARGET"; then
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17451 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17452 else
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17454 $as_echo "no" >&6; }
17455 fi
17456
17457
17458 done
17459 fi
17460
17461 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17462 for ncn_progname in windmc; do
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17464 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17465 if test -x $with_build_time_tools/${ncn_progname}; then
17466 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17468 $as_echo "yes" >&6; }
17469 break
17470 else
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17472 $as_echo "no" >&6; }
17473 fi
17474 done
17475 fi
17476
17477 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17478 for ncn_progname in windmc; do
17479 if test -n "$ncn_target_tool_prefix"; then
17480 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17481 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17483 $as_echo_n "checking for $ac_word... " >&6; }
17484 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17485 $as_echo_n "(cached) " >&6
17486 else
17487 if test -n "$WINDMC_FOR_TARGET"; then
17488 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17489 else
17490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17491 for as_dir in $PATH
17492 do
17493 IFS=$as_save_IFS
17494 test -z "$as_dir" && as_dir=.
17495 for ac_exec_ext in '' $ac_executable_extensions; do
17496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17497 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17499 break 2
17500 fi
17501 done
17502 done
17503 IFS=$as_save_IFS
17504
17505 fi
17506 fi
17507 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17508 if test -n "$WINDMC_FOR_TARGET"; then
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17510 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17511 else
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17513 $as_echo "no" >&6; }
17514 fi
17515
17516
17517 fi
17518 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17520 set dummy ${ncn_progname}; ac_word=$2
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17522 $as_echo_n "checking for $ac_word... " >&6; }
17523 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17524 $as_echo_n "(cached) " >&6
17525 else
17526 if test -n "$WINDMC_FOR_TARGET"; then
17527 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17528 else
17529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17530 for as_dir in $PATH
17531 do
17532 IFS=$as_save_IFS
17533 test -z "$as_dir" && as_dir=.
17534 for ac_exec_ext in '' $ac_executable_extensions; do
17535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17536 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17538 break 2
17539 fi
17540 done
17541 done
17542 IFS=$as_save_IFS
17543
17544 fi
17545 fi
17546 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17547 if test -n "$WINDMC_FOR_TARGET"; then
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17549 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17550 else
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17552 $as_echo "no" >&6; }
17553 fi
17554
17555
17556 fi
17557 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17558 done
17559 fi
17560
17561 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17562 set dummy windmc
17563 if test $build = $target ; then
17564 WINDMC_FOR_TARGET="$2"
17565 else
17566 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17567 fi
17568 else
17569 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17570 fi
17571
17572 else
17573 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17574 fi
17575
17576
17577 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17578
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17580 $as_echo_n "checking where to find the target ar... " >&6; }
17581 if test "x${build}" != "x${host}" ; then
17582 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17583 # We already found the complete path
17584 ac_dir=`dirname $AR_FOR_TARGET`
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17586 $as_echo "pre-installed in $ac_dir" >&6; }
17587 else
17588 # Canadian cross, just use what we found
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17590 $as_echo "pre-installed" >&6; }
17591 fi
17592 else
17593 ok=yes
17594 case " ${configdirs} " in
17595 *" binutils "*) ;;
17596 *) ok=no ;;
17597 esac
17598
17599 if test $ok = yes; then
17600 # An in-tree tool is available and we can use it
17601 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17603 $as_echo "just compiled" >&6; }
17604 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17605 # We already found the complete path
17606 ac_dir=`dirname $AR_FOR_TARGET`
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17608 $as_echo "pre-installed in $ac_dir" >&6; }
17609 elif test "x$target" = "x$host"; then
17610 # We can use an host tool
17611 AR_FOR_TARGET='$(AR)'
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17613 $as_echo "host tool" >&6; }
17614 else
17615 # We need a cross tool
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17617 $as_echo "pre-installed" >&6; }
17618 fi
17619 fi
17620
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17622 $as_echo_n "checking where to find the target as... " >&6; }
17623 if test "x${build}" != "x${host}" ; then
17624 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17625 # We already found the complete path
17626 ac_dir=`dirname $AS_FOR_TARGET`
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17628 $as_echo "pre-installed in $ac_dir" >&6; }
17629 else
17630 # Canadian cross, just use what we found
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17632 $as_echo "pre-installed" >&6; }
17633 fi
17634 else
17635 ok=yes
17636 case " ${configdirs} " in
17637 *" gas "*) ;;
17638 *) ok=no ;;
17639 esac
17640
17641 if test $ok = yes; then
17642 # An in-tree tool is available and we can use it
17643 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17645 $as_echo "just compiled" >&6; }
17646 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17647 # We already found the complete path
17648 ac_dir=`dirname $AS_FOR_TARGET`
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17650 $as_echo "pre-installed in $ac_dir" >&6; }
17651 elif test "x$target" = "x$host"; then
17652 # We can use an host tool
17653 AS_FOR_TARGET='$(AS)'
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17655 $as_echo "host tool" >&6; }
17656 else
17657 # We need a cross tool
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17659 $as_echo "pre-installed" >&6; }
17660 fi
17661 fi
17662
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17664 $as_echo_n "checking where to find the target cc... " >&6; }
17665 if test "x${build}" != "x${host}" ; then
17666 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17667 # We already found the complete path
17668 ac_dir=`dirname $CC_FOR_TARGET`
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17670 $as_echo "pre-installed in $ac_dir" >&6; }
17671 else
17672 # Canadian cross, just use what we found
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17674 $as_echo "pre-installed" >&6; }
17675 fi
17676 else
17677 ok=yes
17678 case " ${configdirs} " in
17679 *" gcc "*) ;;
17680 *) ok=no ;;
17681 esac
17682
17683 if test $ok = yes; then
17684 # An in-tree tool is available and we can use it
17685 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17687 $as_echo "just compiled" >&6; }
17688 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17689 # We already found the complete path
17690 ac_dir=`dirname $CC_FOR_TARGET`
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17692 $as_echo "pre-installed in $ac_dir" >&6; }
17693 elif test "x$target" = "x$host"; then
17694 # We can use an host tool
17695 CC_FOR_TARGET='$(CC)'
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17697 $as_echo "host tool" >&6; }
17698 else
17699 # We need a cross tool
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17701 $as_echo "pre-installed" >&6; }
17702 fi
17703 fi
17704
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17706 $as_echo_n "checking where to find the target c++... " >&6; }
17707 if test "x${build}" != "x${host}" ; then
17708 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17709 # We already found the complete path
17710 ac_dir=`dirname $CXX_FOR_TARGET`
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17712 $as_echo "pre-installed in $ac_dir" >&6; }
17713 else
17714 # Canadian cross, just use what we found
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17716 $as_echo "pre-installed" >&6; }
17717 fi
17718 else
17719 ok=yes
17720 case " ${configdirs} " in
17721 *" gcc "*) ;;
17722 *) ok=no ;;
17723 esac
17724 case ,${enable_languages}, in
17725 *,c++,*) ;;
17726 *) ok=no ;;
17727 esac
17728 if test $ok = yes; then
17729 # An in-tree tool is available and we can use it
17730 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'
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17732 $as_echo "just compiled" >&6; }
17733 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17734 # We already found the complete path
17735 ac_dir=`dirname $CXX_FOR_TARGET`
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17737 $as_echo "pre-installed in $ac_dir" >&6; }
17738 elif test "x$target" = "x$host"; then
17739 # We can use an host tool
17740 CXX_FOR_TARGET='$(CXX)'
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17742 $as_echo "host tool" >&6; }
17743 else
17744 # We need a cross tool
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17746 $as_echo "pre-installed" >&6; }
17747 fi
17748 fi
17749
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17751 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17752 if test "x${build}" != "x${host}" ; then
17753 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17754 # We already found the complete path
17755 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17757 $as_echo "pre-installed in $ac_dir" >&6; }
17758 else
17759 # Canadian cross, just use what we found
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17761 $as_echo "pre-installed" >&6; }
17762 fi
17763 else
17764 ok=yes
17765 case " ${configdirs} " in
17766 *" gcc "*) ;;
17767 *) ok=no ;;
17768 esac
17769 case ,${enable_languages}, in
17770 *,c++,*) ;;
17771 *) ok=no ;;
17772 esac
17773 if test $ok = yes; then
17774 # An in-tree tool is available and we can use it
17775 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'
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17777 $as_echo "just compiled" >&6; }
17778 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17779 # We already found the complete path
17780 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17782 $as_echo "pre-installed in $ac_dir" >&6; }
17783 elif test "x$target" = "x$host"; then
17784 # We can use an host tool
17785 RAW_CXX_FOR_TARGET='$(CXX)'
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17787 $as_echo "host tool" >&6; }
17788 else
17789 # We need a cross tool
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17791 $as_echo "pre-installed" >&6; }
17792 fi
17793 fi
17794
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17796 $as_echo_n "checking where to find the target dlltool... " >&6; }
17797 if test "x${build}" != "x${host}" ; then
17798 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17799 # We already found the complete path
17800 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17802 $as_echo "pre-installed in $ac_dir" >&6; }
17803 else
17804 # Canadian cross, just use what we found
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17806 $as_echo "pre-installed" >&6; }
17807 fi
17808 else
17809 ok=yes
17810 case " ${configdirs} " in
17811 *" binutils "*) ;;
17812 *) ok=no ;;
17813 esac
17814
17815 if test $ok = yes; then
17816 # An in-tree tool is available and we can use it
17817 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17819 $as_echo "just compiled" >&6; }
17820 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17821 # We already found the complete path
17822 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17824 $as_echo "pre-installed in $ac_dir" >&6; }
17825 elif test "x$target" = "x$host"; then
17826 # We can use an host tool
17827 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17829 $as_echo "host tool" >&6; }
17830 else
17831 # We need a cross tool
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17833 $as_echo "pre-installed" >&6; }
17834 fi
17835 fi
17836
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17838 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17839 if test "x${build}" != "x${host}" ; then
17840 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17841 # We already found the complete path
17842 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17844 $as_echo "pre-installed in $ac_dir" >&6; }
17845 else
17846 # Canadian cross, just use what we found
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17848 $as_echo "pre-installed" >&6; }
17849 fi
17850 else
17851 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17852 # We already found the complete path
17853 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17855 $as_echo "pre-installed in $ac_dir" >&6; }
17856 elif test "x$target" = "x$host"; then
17857 # We can use an host tool
17858 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17860 $as_echo "host tool" >&6; }
17861 else
17862 # We need a cross tool
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17864 $as_echo "pre-installed" >&6; }
17865 fi
17866 fi
17867
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17869 $as_echo_n "checking where to find the target gcc... " >&6; }
17870 if test "x${build}" != "x${host}" ; then
17871 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17872 # We already found the complete path
17873 ac_dir=`dirname $GCC_FOR_TARGET`
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17875 $as_echo "pre-installed in $ac_dir" >&6; }
17876 else
17877 # Canadian cross, just use what we found
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17879 $as_echo "pre-installed" >&6; }
17880 fi
17881 else
17882 ok=yes
17883 case " ${configdirs} " in
17884 *" gcc "*) ;;
17885 *) ok=no ;;
17886 esac
17887
17888 if test $ok = yes; then
17889 # An in-tree tool is available and we can use it
17890 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17892 $as_echo "just compiled" >&6; }
17893 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17894 # We already found the complete path
17895 ac_dir=`dirname $GCC_FOR_TARGET`
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17897 $as_echo "pre-installed in $ac_dir" >&6; }
17898 elif test "x$target" = "x$host"; then
17899 # We can use an host tool
17900 GCC_FOR_TARGET='$()'
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17902 $as_echo "host tool" >&6; }
17903 else
17904 # We need a cross tool
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17906 $as_echo "pre-installed" >&6; }
17907 fi
17908 fi
17909
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17911 $as_echo_n "checking where to find the target gfortran... " >&6; }
17912 if test "x${build}" != "x${host}" ; then
17913 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17914 # We already found the complete path
17915 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17917 $as_echo "pre-installed in $ac_dir" >&6; }
17918 else
17919 # Canadian cross, just use what we found
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17921 $as_echo "pre-installed" >&6; }
17922 fi
17923 else
17924 ok=yes
17925 case " ${configdirs} " in
17926 *" gcc "*) ;;
17927 *) ok=no ;;
17928 esac
17929 case ,${enable_languages}, in
17930 *,fortran,*) ;;
17931 *) ok=no ;;
17932 esac
17933 if test $ok = yes; then
17934 # An in-tree tool is available and we can use it
17935 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17937 $as_echo "just compiled" >&6; }
17938 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17939 # We already found the complete path
17940 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17942 $as_echo "pre-installed in $ac_dir" >&6; }
17943 elif test "x$target" = "x$host"; then
17944 # We can use an host tool
17945 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17947 $as_echo "host tool" >&6; }
17948 else
17949 # We need a cross tool
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17951 $as_echo "pre-installed" >&6; }
17952 fi
17953 fi
17954
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17956 $as_echo_n "checking where to find the target gccgo... " >&6; }
17957 if test "x${build}" != "x${host}" ; then
17958 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17959 # We already found the complete path
17960 ac_dir=`dirname $GOC_FOR_TARGET`
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17962 $as_echo "pre-installed in $ac_dir" >&6; }
17963 else
17964 # Canadian cross, just use what we found
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17966 $as_echo "pre-installed" >&6; }
17967 fi
17968 else
17969 ok=yes
17970 case " ${configdirs} " in
17971 *" gcc "*) ;;
17972 *) ok=no ;;
17973 esac
17974 case ,${enable_languages}, in
17975 *,go,*) ;;
17976 *) ok=no ;;
17977 esac
17978 if test $ok = yes; then
17979 # An in-tree tool is available and we can use it
17980 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17982 $as_echo "just compiled" >&6; }
17983 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17984 # We already found the complete path
17985 ac_dir=`dirname $GOC_FOR_TARGET`
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17987 $as_echo "pre-installed in $ac_dir" >&6; }
17988 elif test "x$target" = "x$host"; then
17989 # We can use an host tool
17990 GOC_FOR_TARGET='$(GOC)'
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17992 $as_echo "host tool" >&6; }
17993 else
17994 # We need a cross tool
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17996 $as_echo "pre-installed" >&6; }
17997 fi
17998 fi
17999
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
18001 $as_echo_n "checking where to find the target gdc... " >&6; }
18002 if test "x${build}" != "x${host}" ; then
18003 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18004 # We already found the complete path
18005 ac_dir=`dirname $GDC_FOR_TARGET`
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18007 $as_echo "pre-installed in $ac_dir" >&6; }
18008 else
18009 # Canadian cross, just use what we found
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18011 $as_echo "pre-installed" >&6; }
18012 fi
18013 else
18014 ok=yes
18015 case " ${configdirs} " in
18016 *" gcc "*) ;;
18017 *) ok=no ;;
18018 esac
18019 case ,${enable_languages}, in
18020 *,d,*) ;;
18021 *) ok=no ;;
18022 esac
18023 if test $ok = yes; then
18024 # An in-tree tool is available and we can use it
18025 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18027 $as_echo "just compiled" >&6; }
18028 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18029 # We already found the complete path
18030 ac_dir=`dirname $GDC_FOR_TARGET`
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18032 $as_echo "pre-installed in $ac_dir" >&6; }
18033 elif test "x$target" = "x$host"; then
18034 # We can use an host tool
18035 GDC_FOR_TARGET='$(GDC)'
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18037 $as_echo "host tool" >&6; }
18038 else
18039 # We need a cross tool
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18041 $as_echo "pre-installed" >&6; }
18042 fi
18043 fi
18044
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18046 $as_echo_n "checking where to find the target ld... " >&6; }
18047 if test "x${build}" != "x${host}" ; then
18048 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18049 # We already found the complete path
18050 ac_dir=`dirname $LD_FOR_TARGET`
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18052 $as_echo "pre-installed in $ac_dir" >&6; }
18053 else
18054 # Canadian cross, just use what we found
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18056 $as_echo "pre-installed" >&6; }
18057 fi
18058 else
18059 ok=yes
18060 case " ${configdirs} " in
18061 *" ld "*) ;;
18062 *) ok=no ;;
18063 esac
18064
18065 if test $ok = yes; then
18066 # An in-tree tool is available and we can use it
18067 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18069 $as_echo "just compiled" >&6; }
18070 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18071 # We already found the complete path
18072 ac_dir=`dirname $LD_FOR_TARGET`
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18074 $as_echo "pre-installed in $ac_dir" >&6; }
18075 elif test "x$target" = "x$host"; then
18076 # We can use an host tool
18077 LD_FOR_TARGET='$(LD)'
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18079 $as_echo "host tool" >&6; }
18080 else
18081 # We need a cross tool
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18083 $as_echo "pre-installed" >&6; }
18084 fi
18085 fi
18086
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18088 $as_echo_n "checking where to find the target lipo... " >&6; }
18089 if test "x${build}" != "x${host}" ; then
18090 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18091 # We already found the complete path
18092 ac_dir=`dirname $LIPO_FOR_TARGET`
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18094 $as_echo "pre-installed in $ac_dir" >&6; }
18095 else
18096 # Canadian cross, just use what we found
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18098 $as_echo "pre-installed" >&6; }
18099 fi
18100 else
18101 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18102 # We already found the complete path
18103 ac_dir=`dirname $LIPO_FOR_TARGET`
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18105 $as_echo "pre-installed in $ac_dir" >&6; }
18106 elif test "x$target" = "x$host"; then
18107 # We can use an host tool
18108 LIPO_FOR_TARGET='$(LIPO)'
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18110 $as_echo "host tool" >&6; }
18111 else
18112 # We need a cross tool
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18114 $as_echo "pre-installed" >&6; }
18115 fi
18116 fi
18117
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18119 $as_echo_n "checking where to find the target nm... " >&6; }
18120 if test "x${build}" != "x${host}" ; then
18121 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18122 # We already found the complete path
18123 ac_dir=`dirname $NM_FOR_TARGET`
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18125 $as_echo "pre-installed in $ac_dir" >&6; }
18126 else
18127 # Canadian cross, just use what we found
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18129 $as_echo "pre-installed" >&6; }
18130 fi
18131 else
18132 ok=yes
18133 case " ${configdirs} " in
18134 *" binutils "*) ;;
18135 *) ok=no ;;
18136 esac
18137
18138 if test $ok = yes; then
18139 # An in-tree tool is available and we can use it
18140 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18142 $as_echo "just compiled" >&6; }
18143 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18144 # We already found the complete path
18145 ac_dir=`dirname $NM_FOR_TARGET`
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18147 $as_echo "pre-installed in $ac_dir" >&6; }
18148 elif test "x$target" = "x$host"; then
18149 # We can use an host tool
18150 NM_FOR_TARGET='$(NM)'
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18152 $as_echo "host tool" >&6; }
18153 else
18154 # We need a cross tool
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18156 $as_echo "pre-installed" >&6; }
18157 fi
18158 fi
18159
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18161 $as_echo_n "checking where to find the target objcopy... " >&6; }
18162 if test "x${build}" != "x${host}" ; then
18163 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18164 # We already found the complete path
18165 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18167 $as_echo "pre-installed in $ac_dir" >&6; }
18168 else
18169 # Canadian cross, just use what we found
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18171 $as_echo "pre-installed" >&6; }
18172 fi
18173 else
18174 ok=yes
18175 case " ${configdirs} " in
18176 *" binutils "*) ;;
18177 *) ok=no ;;
18178 esac
18179
18180 if test $ok = yes; then
18181 # An in-tree tool is available and we can use it
18182 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18184 $as_echo "just compiled" >&6; }
18185 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18186 # We already found the complete path
18187 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18189 $as_echo "pre-installed in $ac_dir" >&6; }
18190 elif test "x$target" = "x$host"; then
18191 # We can use an host tool
18192 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18194 $as_echo "host tool" >&6; }
18195 else
18196 # We need a cross tool
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18198 $as_echo "pre-installed" >&6; }
18199 fi
18200 fi
18201
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18203 $as_echo_n "checking where to find the target objdump... " >&6; }
18204 if test "x${build}" != "x${host}" ; then
18205 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18206 # We already found the complete path
18207 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18209 $as_echo "pre-installed in $ac_dir" >&6; }
18210 else
18211 # Canadian cross, just use what we found
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18213 $as_echo "pre-installed" >&6; }
18214 fi
18215 else
18216 ok=yes
18217 case " ${configdirs} " in
18218 *" binutils "*) ;;
18219 *) ok=no ;;
18220 esac
18221
18222 if test $ok = yes; then
18223 # An in-tree tool is available and we can use it
18224 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18226 $as_echo "just compiled" >&6; }
18227 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18228 # We already found the complete path
18229 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18231 $as_echo "pre-installed in $ac_dir" >&6; }
18232 elif test "x$target" = "x$host"; then
18233 # We can use an host tool
18234 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18236 $as_echo "host tool" >&6; }
18237 else
18238 # We need a cross tool
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18240 $as_echo "pre-installed" >&6; }
18241 fi
18242 fi
18243
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18245 $as_echo_n "checking where to find the target otool... " >&6; }
18246 if test "x${build}" != "x${host}" ; then
18247 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18248 # We already found the complete path
18249 ac_dir=`dirname $OTOOL_FOR_TARGET`
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18251 $as_echo "pre-installed in $ac_dir" >&6; }
18252 else
18253 # Canadian cross, just use what we found
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18255 $as_echo "pre-installed" >&6; }
18256 fi
18257 else
18258 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18259 # We already found the complete path
18260 ac_dir=`dirname $OTOOL_FOR_TARGET`
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18262 $as_echo "pre-installed in $ac_dir" >&6; }
18263 elif test "x$target" = "x$host"; then
18264 # We can use an host tool
18265 OTOOL_FOR_TARGET='$(OTOOL)'
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18267 $as_echo "host tool" >&6; }
18268 else
18269 # We need a cross tool
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18271 $as_echo "pre-installed" >&6; }
18272 fi
18273 fi
18274
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18276 $as_echo_n "checking where to find the target ranlib... " >&6; }
18277 if test "x${build}" != "x${host}" ; then
18278 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18279 # We already found the complete path
18280 ac_dir=`dirname $RANLIB_FOR_TARGET`
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18282 $as_echo "pre-installed in $ac_dir" >&6; }
18283 else
18284 # Canadian cross, just use what we found
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18286 $as_echo "pre-installed" >&6; }
18287 fi
18288 else
18289 ok=yes
18290 case " ${configdirs} " in
18291 *" binutils "*) ;;
18292 *) ok=no ;;
18293 esac
18294
18295 if test $ok = yes; then
18296 # An in-tree tool is available and we can use it
18297 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18299 $as_echo "just compiled" >&6; }
18300 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18301 # We already found the complete path
18302 ac_dir=`dirname $RANLIB_FOR_TARGET`
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18304 $as_echo "pre-installed in $ac_dir" >&6; }
18305 elif test "x$target" = "x$host"; then
18306 # We can use an host tool
18307 RANLIB_FOR_TARGET='$(RANLIB)'
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18309 $as_echo "host tool" >&6; }
18310 else
18311 # We need a cross tool
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18313 $as_echo "pre-installed" >&6; }
18314 fi
18315 fi
18316
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18318 $as_echo_n "checking where to find the target readelf... " >&6; }
18319 if test "x${build}" != "x${host}" ; then
18320 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18321 # We already found the complete path
18322 ac_dir=`dirname $READELF_FOR_TARGET`
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18324 $as_echo "pre-installed in $ac_dir" >&6; }
18325 else
18326 # Canadian cross, just use what we found
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18328 $as_echo "pre-installed" >&6; }
18329 fi
18330 else
18331 ok=yes
18332 case " ${configdirs} " in
18333 *" binutils "*) ;;
18334 *) ok=no ;;
18335 esac
18336
18337 if test $ok = yes; then
18338 # An in-tree tool is available and we can use it
18339 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18341 $as_echo "just compiled" >&6; }
18342 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18343 # We already found the complete path
18344 ac_dir=`dirname $READELF_FOR_TARGET`
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18346 $as_echo "pre-installed in $ac_dir" >&6; }
18347 elif test "x$target" = "x$host"; then
18348 # We can use an host tool
18349 READELF_FOR_TARGET='$(READELF)'
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18351 $as_echo "host tool" >&6; }
18352 else
18353 # We need a cross tool
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18355 $as_echo "pre-installed" >&6; }
18356 fi
18357 fi
18358
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18360 $as_echo_n "checking where to find the target strip... " >&6; }
18361 if test "x${build}" != "x${host}" ; then
18362 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18363 # We already found the complete path
18364 ac_dir=`dirname $STRIP_FOR_TARGET`
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18366 $as_echo "pre-installed in $ac_dir" >&6; }
18367 else
18368 # Canadian cross, just use what we found
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18370 $as_echo "pre-installed" >&6; }
18371 fi
18372 else
18373 ok=yes
18374 case " ${configdirs} " in
18375 *" binutils "*) ;;
18376 *) ok=no ;;
18377 esac
18378
18379 if test $ok = yes; then
18380 # An in-tree tool is available and we can use it
18381 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18383 $as_echo "just compiled" >&6; }
18384 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18385 # We already found the complete path
18386 ac_dir=`dirname $STRIP_FOR_TARGET`
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18388 $as_echo "pre-installed in $ac_dir" >&6; }
18389 elif test "x$target" = "x$host"; then
18390 # We can use an host tool
18391 STRIP_FOR_TARGET='$(STRIP)'
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18393 $as_echo "host tool" >&6; }
18394 else
18395 # We need a cross tool
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18397 $as_echo "pre-installed" >&6; }
18398 fi
18399 fi
18400
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18402 $as_echo_n "checking where to find the target windres... " >&6; }
18403 if test "x${build}" != "x${host}" ; then
18404 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18405 # We already found the complete path
18406 ac_dir=`dirname $WINDRES_FOR_TARGET`
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18408 $as_echo "pre-installed in $ac_dir" >&6; }
18409 else
18410 # Canadian cross, just use what we found
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18412 $as_echo "pre-installed" >&6; }
18413 fi
18414 else
18415 ok=yes
18416 case " ${configdirs} " in
18417 *" binutils "*) ;;
18418 *) ok=no ;;
18419 esac
18420
18421 if test $ok = yes; then
18422 # An in-tree tool is available and we can use it
18423 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18425 $as_echo "just compiled" >&6; }
18426 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18427 # We already found the complete path
18428 ac_dir=`dirname $WINDRES_FOR_TARGET`
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18430 $as_echo "pre-installed in $ac_dir" >&6; }
18431 elif test "x$target" = "x$host"; then
18432 # We can use an host tool
18433 WINDRES_FOR_TARGET='$(WINDRES)'
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18435 $as_echo "host tool" >&6; }
18436 else
18437 # We need a cross tool
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18439 $as_echo "pre-installed" >&6; }
18440 fi
18441 fi
18442
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18444 $as_echo_n "checking where to find the target windmc... " >&6; }
18445 if test "x${build}" != "x${host}" ; then
18446 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18447 # We already found the complete path
18448 ac_dir=`dirname $WINDMC_FOR_TARGET`
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18450 $as_echo "pre-installed in $ac_dir" >&6; }
18451 else
18452 # Canadian cross, just use what we found
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18454 $as_echo "pre-installed" >&6; }
18455 fi
18456 else
18457 ok=yes
18458 case " ${configdirs} " in
18459 *" binutils "*) ;;
18460 *) ok=no ;;
18461 esac
18462
18463 if test $ok = yes; then
18464 # An in-tree tool is available and we can use it
18465 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18467 $as_echo "just compiled" >&6; }
18468 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18469 # We already found the complete path
18470 ac_dir=`dirname $WINDMC_FOR_TARGET`
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18472 $as_echo "pre-installed in $ac_dir" >&6; }
18473 elif test "x$target" = "x$host"; then
18474 # We can use an host tool
18475 WINDMC_FOR_TARGET='$(WINDMC)'
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18477 $as_echo "host tool" >&6; }
18478 else
18479 # We need a cross tool
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18481 $as_echo "pre-installed" >&6; }
18482 fi
18483 fi
18484
18485
18486
18487
18488
18489 # Certain tools may need extra flags.
18490 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18491 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18492 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18493
18494 # When building target libraries, except in a Canadian cross, we use
18495 # the same toolchain as the compiler we just built.
18496 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18497 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18498 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18499 if test $host = $build; then
18500 case " $configdirs " in
18501 *" gcc "*)
18502 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18503 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18504 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18505 ;;
18506 esac
18507 fi
18508
18509
18510
18511
18512
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18514 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18515 # Check whether --enable-maintainer-mode was given.
18516 if test "${enable_maintainer_mode+set}" = set; then :
18517 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18518 else
18519 USE_MAINTAINER_MODE=no
18520 fi
18521
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18523 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18524
18525
18526 if test "$USE_MAINTAINER_MODE" = yes; then
18527 MAINTAINER_MODE_TRUE=
18528 MAINTAINER_MODE_FALSE='#'
18529 else
18530 MAINTAINER_MODE_TRUE='#'
18531 MAINTAINER_MODE_FALSE=
18532 fi
18533 MAINT=$MAINTAINER_MODE_TRUE
18534
18535 # ---------------------
18536 # GCC bootstrap support
18537 # ---------------------
18538
18539 # Stage specific cflags for build.
18540 stage1_cflags="-g"
18541 case $build in
18542 vax-*-*)
18543 case ${GCC} in
18544 yes) stage1_cflags="-g -Wa,-J" ;;
18545 *) stage1_cflags="-g -J" ;;
18546 esac ;;
18547 esac
18548
18549
18550
18551 # Enable --enable-checking in stage1 of the compiler.
18552 # Check whether --enable-stage1-checking was given.
18553 if test "${enable_stage1_checking+set}" = set; then :
18554 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18555 else
18556 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18557 # For --disable-checking or implicit --enable-checking=release, avoid
18558 # setting --enable-checking=gc in the default stage1 checking for LTO
18559 # bootstraps. See PR62077.
18560 case $BUILD_CONFIG in
18561 *lto*)
18562 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18563 *)
18564 stage1_checking=--enable-checking=yes,types;;
18565 esac
18566 if test "x$enable_checking" = x && \
18567 test -d ${srcdir}/gcc && \
18568 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18569 stage1_checking=--enable-checking=yes,types,extra
18570 fi
18571 else
18572 stage1_checking=--enable-checking=$enable_checking,types
18573 fi
18574 fi
18575
18576
18577
18578 # Enable -Werror in bootstrap stage2 and later.
18579 # Check whether --enable-werror was given.
18580 if test "${enable_werror+set}" = set; then :
18581 enableval=$enable_werror;
18582 case ${enable_werror} in
18583 yes) stage2_werror_flag="--enable-werror-always" ;;
18584 *) stage2_werror_flag="" ;;
18585 esac
18586
18587 else
18588
18589 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18590 case $BUILD_CONFIG in
18591 bootstrap-debug)
18592 stage2_werror_flag="--enable-werror-always" ;;
18593 "")
18594 stage2_werror_flag="--enable-werror-always" ;;
18595 esac
18596 fi
18597
18598 fi
18599
18600
18601
18602
18603 # Specify what files to not compare during bootstrap.
18604
18605 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18606 case "$target" in
18607 hppa*64*-*-hpux*) ;;
18608 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18609 esac
18610
18611
18612 ac_config_files="$ac_config_files Makefile"
18613
18614 cat >confcache <<\_ACEOF
18615 # This file is a shell script that caches the results of configure
18616 # tests run on this system so they can be shared between configure
18617 # scripts and configure runs, see configure's option --config-cache.
18618 # It is not useful on other systems. If it contains results you don't
18619 # want to keep, you may remove or edit it.
18620 #
18621 # config.status only pays attention to the cache file if you give it
18622 # the --recheck option to rerun configure.
18623 #
18624 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18625 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18626 # following values.
18627
18628 _ACEOF
18629
18630 # The following way of writing the cache mishandles newlines in values,
18631 # but we know of no workaround that is simple, portable, and efficient.
18632 # So, we kill variables containing newlines.
18633 # Ultrix sh set writes to stderr and can't be redirected directly,
18634 # and sets the high bit in the cache file unless we assign to the vars.
18635 (
18636 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18637 eval ac_val=\$$ac_var
18638 case $ac_val in #(
18639 *${as_nl}*)
18640 case $ac_var in #(
18641 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18642 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18643 esac
18644 case $ac_var in #(
18645 _ | IFS | as_nl) ;; #(
18646 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18647 *) { eval $ac_var=; unset $ac_var;} ;;
18648 esac ;;
18649 esac
18650 done
18651
18652 (set) 2>&1 |
18653 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18654 *${as_nl}ac_space=\ *)
18655 # `set' does not quote correctly, so add quotes: double-quote
18656 # substitution turns \\\\ into \\, and sed turns \\ into \.
18657 sed -n \
18658 "s/'/'\\\\''/g;
18659 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18660 ;; #(
18661 *)
18662 # `set' quotes correctly as required by POSIX, so do not add quotes.
18663 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18664 ;;
18665 esac |
18666 sort
18667 ) |
18668 sed '
18669 /^ac_cv_env_/b end
18670 t clear
18671 :clear
18672 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18673 t end
18674 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18675 :end' >>confcache
18676 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18677 if test -w "$cache_file"; then
18678 if test "x$cache_file" != "x/dev/null"; then
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18680 $as_echo "$as_me: updating cache $cache_file" >&6;}
18681 if test ! -f "$cache_file" || test -h "$cache_file"; then
18682 cat confcache >"$cache_file"
18683 else
18684 case $cache_file in #(
18685 */* | ?:*)
18686 mv -f confcache "$cache_file"$$ &&
18687 mv -f "$cache_file"$$ "$cache_file" ;; #(
18688 *)
18689 mv -f confcache "$cache_file" ;;
18690 esac
18691 fi
18692 fi
18693 else
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18695 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18696 fi
18697 fi
18698 rm -f confcache
18699
18700 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18701 # Let make expand exec_prefix.
18702 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18703
18704 # Transform confdefs.h into DEFS.
18705 # Protect against shell expansion while executing Makefile rules.
18706 # Protect against Makefile macro expansion.
18707 #
18708 # If the first sed substitution is executed (which looks for macros that
18709 # take arguments), then branch to the quote section. Otherwise,
18710 # look for a macro that doesn't take arguments.
18711 ac_script='
18712 :mline
18713 /\\$/{
18714 N
18715 s,\\\n,,
18716 b mline
18717 }
18718 t clear
18719 :clear
18720 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18721 t quote
18722 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18723 t quote
18724 b any
18725 :quote
18726 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18727 s/\[/\\&/g
18728 s/\]/\\&/g
18729 s/\$/$$/g
18730 H
18731 :any
18732 ${
18733 g
18734 s/^\n//
18735 s/\n/ /g
18736 p
18737 }
18738 '
18739 DEFS=`sed -n "$ac_script" confdefs.h`
18740
18741
18742 ac_libobjs=
18743 ac_ltlibobjs=
18744 U=
18745 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18746 # 1. Remove the extension, and $U if already installed.
18747 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18748 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18749 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18750 # will be set to the directory where LIBOBJS objects are built.
18751 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18752 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18753 done
18754 LIBOBJS=$ac_libobjs
18755
18756 LTLIBOBJS=$ac_ltlibobjs
18757
18758
18759
18760 : "${CONFIG_STATUS=./config.status}"
18761 ac_write_fail=0
18762 ac_clean_files_save=$ac_clean_files
18763 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18765 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18766 as_write_fail=0
18767 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18768 #! $SHELL
18769 # Generated by $as_me.
18770 # Run this file to recreate the current configuration.
18771 # Compiler output produced by configure, useful for debugging
18772 # configure, is in config.log if it exists.
18773
18774 debug=false
18775 ac_cs_recheck=false
18776 ac_cs_silent=false
18777
18778 SHELL=\${CONFIG_SHELL-$SHELL}
18779 export SHELL
18780 _ASEOF
18781 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18782 ## -------------------- ##
18783 ## M4sh Initialization. ##
18784 ## -------------------- ##
18785
18786 # Be more Bourne compatible
18787 DUALCASE=1; export DUALCASE # for MKS sh
18788 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18789 emulate sh
18790 NULLCMD=:
18791 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18792 # is contrary to our usage. Disable this feature.
18793 alias -g '${1+"$@"}'='"$@"'
18794 setopt NO_GLOB_SUBST
18795 else
18796 case `(set -o) 2>/dev/null` in #(
18797 *posix*) :
18798 set -o posix ;; #(
18799 *) :
18800 ;;
18801 esac
18802 fi
18803
18804
18805 as_nl='
18806 '
18807 export as_nl
18808 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18809 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18810 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18811 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18812 # Prefer a ksh shell builtin over an external printf program on Solaris,
18813 # but without wasting forks for bash or zsh.
18814 if test -z "$BASH_VERSION$ZSH_VERSION" \
18815 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18816 as_echo='print -r --'
18817 as_echo_n='print -rn --'
18818 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18819 as_echo='printf %s\n'
18820 as_echo_n='printf %s'
18821 else
18822 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18823 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18824 as_echo_n='/usr/ucb/echo -n'
18825 else
18826 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18827 as_echo_n_body='eval
18828 arg=$1;
18829 case $arg in #(
18830 *"$as_nl"*)
18831 expr "X$arg" : "X\\(.*\\)$as_nl";
18832 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18833 esac;
18834 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18835 '
18836 export as_echo_n_body
18837 as_echo_n='sh -c $as_echo_n_body as_echo'
18838 fi
18839 export as_echo_body
18840 as_echo='sh -c $as_echo_body as_echo'
18841 fi
18842
18843 # The user is always right.
18844 if test "${PATH_SEPARATOR+set}" != set; then
18845 PATH_SEPARATOR=:
18846 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18847 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18848 PATH_SEPARATOR=';'
18849 }
18850 fi
18851
18852
18853 # IFS
18854 # We need space, tab and new line, in precisely that order. Quoting is
18855 # there to prevent editors from complaining about space-tab.
18856 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18857 # splitting by setting IFS to empty value.)
18858 IFS=" "" $as_nl"
18859
18860 # Find who we are. Look in the path if we contain no directory separator.
18861 as_myself=
18862 case $0 in #((
18863 *[\\/]* ) as_myself=$0 ;;
18864 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18865 for as_dir in $PATH
18866 do
18867 IFS=$as_save_IFS
18868 test -z "$as_dir" && as_dir=.
18869 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18870 done
18871 IFS=$as_save_IFS
18872
18873 ;;
18874 esac
18875 # We did not find ourselves, most probably we were run as `sh COMMAND'
18876 # in which case we are not to be found in the path.
18877 if test "x$as_myself" = x; then
18878 as_myself=$0
18879 fi
18880 if test ! -f "$as_myself"; then
18881 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18882 exit 1
18883 fi
18884
18885 # Unset variables that we do not need and which cause bugs (e.g. in
18886 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18887 # suppresses any "Segmentation fault" message there. '((' could
18888 # trigger a bug in pdksh 5.2.14.
18889 for as_var in BASH_ENV ENV MAIL MAILPATH
18890 do eval test x\${$as_var+set} = xset \
18891 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18892 done
18893 PS1='$ '
18894 PS2='> '
18895 PS4='+ '
18896
18897 # NLS nuisances.
18898 LC_ALL=C
18899 export LC_ALL
18900 LANGUAGE=C
18901 export LANGUAGE
18902
18903 # CDPATH.
18904 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18905
18906
18907 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18908 # ----------------------------------------
18909 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18910 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18911 # script with STATUS, using 1 if that was 0.
18912 as_fn_error ()
18913 {
18914 as_status=$1; test $as_status -eq 0 && as_status=1
18915 if test "$4"; then
18916 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18917 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18918 fi
18919 $as_echo "$as_me: error: $2" >&2
18920 as_fn_exit $as_status
18921 } # as_fn_error
18922
18923
18924 # as_fn_set_status STATUS
18925 # -----------------------
18926 # Set $? to STATUS, without forking.
18927 as_fn_set_status ()
18928 {
18929 return $1
18930 } # as_fn_set_status
18931
18932 # as_fn_exit STATUS
18933 # -----------------
18934 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18935 as_fn_exit ()
18936 {
18937 set +e
18938 as_fn_set_status $1
18939 exit $1
18940 } # as_fn_exit
18941
18942 # as_fn_unset VAR
18943 # ---------------
18944 # Portably unset VAR.
18945 as_fn_unset ()
18946 {
18947 { eval $1=; unset $1;}
18948 }
18949 as_unset=as_fn_unset
18950 # as_fn_append VAR VALUE
18951 # ----------------------
18952 # Append the text in VALUE to the end of the definition contained in VAR. Take
18953 # advantage of any shell optimizations that allow amortized linear growth over
18954 # repeated appends, instead of the typical quadratic growth present in naive
18955 # implementations.
18956 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18957 eval 'as_fn_append ()
18958 {
18959 eval $1+=\$2
18960 }'
18961 else
18962 as_fn_append ()
18963 {
18964 eval $1=\$$1\$2
18965 }
18966 fi # as_fn_append
18967
18968 # as_fn_arith ARG...
18969 # ------------------
18970 # Perform arithmetic evaluation on the ARGs, and store the result in the
18971 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18972 # must be portable across $(()) and expr.
18973 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18974 eval 'as_fn_arith ()
18975 {
18976 as_val=$(( $* ))
18977 }'
18978 else
18979 as_fn_arith ()
18980 {
18981 as_val=`expr "$@" || test $? -eq 1`
18982 }
18983 fi # as_fn_arith
18984
18985
18986 if expr a : '\(a\)' >/dev/null 2>&1 &&
18987 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18988 as_expr=expr
18989 else
18990 as_expr=false
18991 fi
18992
18993 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18994 as_basename=basename
18995 else
18996 as_basename=false
18997 fi
18998
18999 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19000 as_dirname=dirname
19001 else
19002 as_dirname=false
19003 fi
19004
19005 as_me=`$as_basename -- "$0" ||
19006 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19007 X"$0" : 'X\(//\)$' \| \
19008 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19009 $as_echo X/"$0" |
19010 sed '/^.*\/\([^/][^/]*\)\/*$/{
19011 s//\1/
19012 q
19013 }
19014 /^X\/\(\/\/\)$/{
19015 s//\1/
19016 q
19017 }
19018 /^X\/\(\/\).*/{
19019 s//\1/
19020 q
19021 }
19022 s/.*/./; q'`
19023
19024 # Avoid depending upon Character Ranges.
19025 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19026 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19027 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19028 as_cr_digits='0123456789'
19029 as_cr_alnum=$as_cr_Letters$as_cr_digits
19030
19031 ECHO_C= ECHO_N= ECHO_T=
19032 case `echo -n x` in #(((((
19033 -n*)
19034 case `echo 'xy\c'` in
19035 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19036 xy) ECHO_C='\c';;
19037 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19038 ECHO_T=' ';;
19039 esac;;
19040 *)
19041 ECHO_N='-n';;
19042 esac
19043
19044 rm -f conf$$ conf$$.exe conf$$.file
19045 if test -d conf$$.dir; then
19046 rm -f conf$$.dir/conf$$.file
19047 else
19048 rm -f conf$$.dir
19049 mkdir conf$$.dir 2>/dev/null
19050 fi
19051 if (echo >conf$$.file) 2>/dev/null; then
19052 if ln -s conf$$.file conf$$ 2>/dev/null; then
19053 as_ln_s='ln -s'
19054 # ... but there are two gotchas:
19055 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19056 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19057 # In both cases, we have to default to `cp -pR'.
19058 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19059 as_ln_s='cp -pR'
19060 elif ln conf$$.file conf$$ 2>/dev/null; then
19061 as_ln_s=ln
19062 else
19063 as_ln_s='cp -pR'
19064 fi
19065 else
19066 as_ln_s='cp -pR'
19067 fi
19068 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19069 rmdir conf$$.dir 2>/dev/null
19070
19071
19072 # as_fn_mkdir_p
19073 # -------------
19074 # Create "$as_dir" as a directory, including parents if necessary.
19075 as_fn_mkdir_p ()
19076 {
19077
19078 case $as_dir in #(
19079 -*) as_dir=./$as_dir;;
19080 esac
19081 test -d "$as_dir" || eval $as_mkdir_p || {
19082 as_dirs=
19083 while :; do
19084 case $as_dir in #(
19085 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19086 *) as_qdir=$as_dir;;
19087 esac
19088 as_dirs="'$as_qdir' $as_dirs"
19089 as_dir=`$as_dirname -- "$as_dir" ||
19090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19091 X"$as_dir" : 'X\(//\)[^/]' \| \
19092 X"$as_dir" : 'X\(//\)$' \| \
19093 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19094 $as_echo X"$as_dir" |
19095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19096 s//\1/
19097 q
19098 }
19099 /^X\(\/\/\)[^/].*/{
19100 s//\1/
19101 q
19102 }
19103 /^X\(\/\/\)$/{
19104 s//\1/
19105 q
19106 }
19107 /^X\(\/\).*/{
19108 s//\1/
19109 q
19110 }
19111 s/.*/./; q'`
19112 test -d "$as_dir" && break
19113 done
19114 test -z "$as_dirs" || eval "mkdir $as_dirs"
19115 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19116
19117
19118 } # as_fn_mkdir_p
19119 if mkdir -p . 2>/dev/null; then
19120 as_mkdir_p='mkdir -p "$as_dir"'
19121 else
19122 test -d ./-p && rmdir ./-p
19123 as_mkdir_p=false
19124 fi
19125
19126
19127 # as_fn_executable_p FILE
19128 # -----------------------
19129 # Test if FILE is an executable regular file.
19130 as_fn_executable_p ()
19131 {
19132 test -f "$1" && test -x "$1"
19133 } # as_fn_executable_p
19134 as_test_x='test -x'
19135 as_executable_p=as_fn_executable_p
19136
19137 # Sed expression to map a string onto a valid CPP name.
19138 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19139
19140 # Sed expression to map a string onto a valid variable name.
19141 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19142
19143
19144 exec 6>&1
19145 ## ----------------------------------- ##
19146 ## Main body of $CONFIG_STATUS script. ##
19147 ## ----------------------------------- ##
19148 _ASEOF
19149 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19150
19151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19152 # Save the log message, to keep $0 and so on meaningful, and to
19153 # report actual input values of CONFIG_FILES etc. instead of their
19154 # values after options handling.
19155 ac_log="
19156 This file was extended by $as_me, which was
19157 generated by GNU Autoconf 2.69. Invocation command line was
19158
19159 CONFIG_FILES = $CONFIG_FILES
19160 CONFIG_HEADERS = $CONFIG_HEADERS
19161 CONFIG_LINKS = $CONFIG_LINKS
19162 CONFIG_COMMANDS = $CONFIG_COMMANDS
19163 $ $0 $@
19164
19165 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19166 "
19167
19168 _ACEOF
19169
19170 case $ac_config_files in *"
19171 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19172 esac
19173
19174
19175
19176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19177 # Files that config.status was made for.
19178 config_files="$ac_config_files"
19179
19180 _ACEOF
19181
19182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19183 ac_cs_usage="\
19184 \`$as_me' instantiates files and other configuration actions
19185 from templates according to the current configuration. Unless the files
19186 and actions are specified as TAGs, all are instantiated by default.
19187
19188 Usage: $0 [OPTION]... [TAG]...
19189
19190 -h, --help print this help, then exit
19191 -V, --version print version number and configuration settings, then exit
19192 --config print configuration, then exit
19193 -q, --quiet, --silent
19194 do not print progress messages
19195 -d, --debug don't remove temporary files
19196 --recheck update $as_me by reconfiguring in the same conditions
19197 --file=FILE[:TEMPLATE]
19198 instantiate the configuration file FILE
19199
19200 Configuration files:
19201 $config_files
19202
19203 Report bugs to the package provider."
19204
19205 _ACEOF
19206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19207 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19208 ac_cs_version="\\
19209 config.status
19210 configured by $0, generated by GNU Autoconf 2.69,
19211 with options \\"\$ac_cs_config\\"
19212
19213 Copyright (C) 2012 Free Software Foundation, Inc.
19214 This config.status script is free software; the Free Software Foundation
19215 gives unlimited permission to copy, distribute and modify it."
19216
19217 ac_pwd='$ac_pwd'
19218 srcdir='$srcdir'
19219 INSTALL='$INSTALL'
19220 AWK='$AWK'
19221 test -n "\$AWK" || AWK=awk
19222 _ACEOF
19223
19224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19225 # The default lists apply if the user does not specify any file.
19226 ac_need_defaults=:
19227 while test $# != 0
19228 do
19229 case $1 in
19230 --*=?*)
19231 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19232 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19233 ac_shift=:
19234 ;;
19235 --*=)
19236 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19237 ac_optarg=
19238 ac_shift=:
19239 ;;
19240 *)
19241 ac_option=$1
19242 ac_optarg=$2
19243 ac_shift=shift
19244 ;;
19245 esac
19246
19247 case $ac_option in
19248 # Handling of the options.
19249 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19250 ac_cs_recheck=: ;;
19251 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19252 $as_echo "$ac_cs_version"; exit ;;
19253 --config | --confi | --conf | --con | --co | --c )
19254 $as_echo "$ac_cs_config"; exit ;;
19255 --debug | --debu | --deb | --de | --d | -d )
19256 debug=: ;;
19257 --file | --fil | --fi | --f )
19258 $ac_shift
19259 case $ac_optarg in
19260 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19261 '') as_fn_error $? "missing file argument" ;;
19262 esac
19263 as_fn_append CONFIG_FILES " '$ac_optarg'"
19264 ac_need_defaults=false;;
19265 --he | --h | --help | --hel | -h )
19266 $as_echo "$ac_cs_usage"; exit ;;
19267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19268 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19269 ac_cs_silent=: ;;
19270
19271 # This is an error.
19272 -*) as_fn_error $? "unrecognized option: \`$1'
19273 Try \`$0 --help' for more information." ;;
19274
19275 *) as_fn_append ac_config_targets " $1"
19276 ac_need_defaults=false ;;
19277
19278 esac
19279 shift
19280 done
19281
19282 ac_configure_extra_args=
19283
19284 if $ac_cs_silent; then
19285 exec 6>/dev/null
19286 ac_configure_extra_args="$ac_configure_extra_args --silent"
19287 fi
19288
19289 _ACEOF
19290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19291 if \$ac_cs_recheck; then
19292 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19293 shift
19294 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19295 CONFIG_SHELL='$SHELL'
19296 export CONFIG_SHELL
19297 exec "\$@"
19298 fi
19299
19300 _ACEOF
19301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19302 exec 5>>config.log
19303 {
19304 echo
19305 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19306 ## Running $as_me. ##
19307 _ASBOX
19308 $as_echo "$ac_log"
19309 } >&5
19310
19311 _ACEOF
19312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19313 #
19314 # INIT-COMMANDS
19315 #
19316 extrasub_build="$extrasub_build"
19317 extrasub_host="$extrasub_host"
19318 extrasub_target="$extrasub_target"
19319
19320 _ACEOF
19321
19322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19323
19324 # Handling of arguments.
19325 for ac_config_target in $ac_config_targets
19326 do
19327 case $ac_config_target in
19328 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19329
19330 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19331 esac
19332 done
19333
19334
19335 # If the user did not use the arguments to specify the items to instantiate,
19336 # then the envvar interface is used. Set only those that are not.
19337 # We use the long form for the default assignment because of an extremely
19338 # bizarre bug on SunOS 4.1.3.
19339 if $ac_need_defaults; then
19340 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19341 fi
19342
19343 # Have a temporary directory for convenience. Make it in the build tree
19344 # simply because there is no reason against having it here, and in addition,
19345 # creating and moving files from /tmp can sometimes cause problems.
19346 # Hook for its removal unless debugging.
19347 # Note that there is a small window in which the directory will not be cleaned:
19348 # after its creation but before its name has been assigned to `$tmp'.
19349 $debug ||
19350 {
19351 tmp= ac_tmp=
19352 trap 'exit_status=$?
19353 : "${ac_tmp:=$tmp}"
19354 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19355 ' 0
19356 trap 'as_fn_exit 1' 1 2 13 15
19357 }
19358 # Create a (secure) tmp directory for tmp files.
19359
19360 {
19361 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19362 test -d "$tmp"
19363 } ||
19364 {
19365 tmp=./conf$$-$RANDOM
19366 (umask 077 && mkdir "$tmp")
19367 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19368 ac_tmp=$tmp
19369
19370 # Set up the scripts for CONFIG_FILES section.
19371 # No need to generate them if there are no CONFIG_FILES.
19372 # This happens for instance with `./config.status config.h'.
19373 if test -n "$CONFIG_FILES"; then
19374
19375 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19376 ac_cs_awk_getline=:
19377 ac_cs_awk_pipe_init=
19378 ac_cs_awk_read_file='
19379 while ((getline aline < (F[key])) > 0)
19380 print(aline)
19381 close(F[key])'
19382 ac_cs_awk_pipe_fini=
19383 else
19384 ac_cs_awk_getline=false
19385 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19386 ac_cs_awk_read_file='
19387 print "|#_!!_#|"
19388 print "cat " F[key] " &&"
19389 '$ac_cs_awk_pipe_init
19390 # The final `:' finishes the AND list.
19391 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19392 fi
19393 ac_cr=`echo X | tr X '\015'`
19394 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19395 # But we know of no other shell where ac_cr would be empty at this
19396 # point, so we can use a bashism as a fallback.
19397 if test "x$ac_cr" = x; then
19398 eval ac_cr=\$\'\\r\'
19399 fi
19400 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19401 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19402 ac_cs_awk_cr='\\r'
19403 else
19404 ac_cs_awk_cr=$ac_cr
19405 fi
19406
19407 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19408 _ACEOF
19409
19410 # Create commands to substitute file output variables.
19411 {
19412 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19413 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19414 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19415 echo "_ACAWK" &&
19416 echo "_ACEOF"
19417 } >conf$$files.sh &&
19418 . ./conf$$files.sh ||
19419 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19420 rm -f conf$$files.sh
19421
19422 {
19423 echo "cat >conf$$subs.awk <<_ACEOF" &&
19424 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19425 echo "_ACEOF"
19426 } >conf$$subs.sh ||
19427 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19428 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19429 ac_delim='%!_!# '
19430 for ac_last_try in false false false false false :; do
19431 . ./conf$$subs.sh ||
19432 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19433
19434 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19435 if test $ac_delim_n = $ac_delim_num; then
19436 break
19437 elif $ac_last_try; then
19438 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19439 else
19440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19441 fi
19442 done
19443 rm -f conf$$subs.sh
19444
19445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19446 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19447 _ACEOF
19448 sed -n '
19449 h
19450 s/^/S["/; s/!.*/"]=/
19451 p
19452 g
19453 s/^[^!]*!//
19454 :repl
19455 t repl
19456 s/'"$ac_delim"'$//
19457 t delim
19458 :nl
19459 h
19460 s/\(.\{148\}\)..*/\1/
19461 t more1
19462 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19463 p
19464 n
19465 b repl
19466 :more1
19467 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19468 p
19469 g
19470 s/.\{148\}//
19471 t nl
19472 :delim
19473 h
19474 s/\(.\{148\}\)..*/\1/
19475 t more2
19476 s/["\\]/\\&/g; s/^/"/; s/$/"/
19477 p
19478 b
19479 :more2
19480 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19481 p
19482 g
19483 s/.\{148\}//
19484 t delim
19485 ' <conf$$subs.awk | sed '
19486 /^[^""]/{
19487 N
19488 s/\n//
19489 }
19490 ' >>$CONFIG_STATUS || ac_write_fail=1
19491 rm -f conf$$subs.awk
19492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19493 _ACAWK
19494 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19495 for (key in S) S_is_set[key] = 1
19496 FS = "\a"
19497 \$ac_cs_awk_pipe_init
19498 }
19499 {
19500 line = $ 0
19501 nfields = split(line, field, "@")
19502 substed = 0
19503 len = length(field[1])
19504 for (i = 2; i < nfields; i++) {
19505 key = field[i]
19506 keylen = length(key)
19507 if (S_is_set[key]) {
19508 value = S[key]
19509 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19510 len += length(value) + length(field[++i])
19511 substed = 1
19512 } else
19513 len += 1 + keylen
19514 }
19515 if (nfields == 3 && !substed) {
19516 key = field[2]
19517 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19518 \$ac_cs_awk_read_file
19519 next
19520 }
19521 }
19522 print line
19523 }
19524 \$ac_cs_awk_pipe_fini
19525 _ACAWK
19526 _ACEOF
19527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19528 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19529 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19530 else
19531 cat
19532 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19533 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19534 _ACEOF
19535
19536 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19537 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19538 # trailing colons and then remove the whole line if VPATH becomes empty
19539 # (actually we leave an empty line to preserve line numbers).
19540 if test "x$srcdir" = x.; then
19541 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19542 h
19543 s///
19544 s/^/:/
19545 s/[ ]*$/:/
19546 s/:\$(srcdir):/:/g
19547 s/:\${srcdir}:/:/g
19548 s/:@srcdir@:/:/g
19549 s/^:*//
19550 s/:*$//
19551 x
19552 s/\(=[ ]*\).*/\1/
19553 G
19554 s/\n//
19555 s/^[^=]*=[ ]*$//
19556 }'
19557 fi
19558
19559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19560 fi # test -n "$CONFIG_FILES"
19561
19562
19563 eval set X " :F $CONFIG_FILES "
19564 shift
19565 for ac_tag
19566 do
19567 case $ac_tag in
19568 :[FHLC]) ac_mode=$ac_tag; continue;;
19569 esac
19570 case $ac_mode$ac_tag in
19571 :[FHL]*:*);;
19572 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19573 :[FH]-) ac_tag=-:-;;
19574 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19575 esac
19576 ac_save_IFS=$IFS
19577 IFS=:
19578 set x $ac_tag
19579 IFS=$ac_save_IFS
19580 shift
19581 ac_file=$1
19582 shift
19583
19584 case $ac_mode in
19585 :L) ac_source=$1;;
19586 :[FH])
19587 ac_file_inputs=
19588 for ac_f
19589 do
19590 case $ac_f in
19591 -) ac_f="$ac_tmp/stdin";;
19592 *) # Look for the file first in the build tree, then in the source tree
19593 # (if the path is not absolute). The absolute path cannot be DOS-style,
19594 # because $ac_f cannot contain `:'.
19595 test -f "$ac_f" ||
19596 case $ac_f in
19597 [\\/$]*) false;;
19598 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19599 esac ||
19600 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19601 esac
19602 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19603 as_fn_append ac_file_inputs " '$ac_f'"
19604 done
19605
19606 # Let's still pretend it is `configure' which instantiates (i.e., don't
19607 # use $as_me), people would be surprised to read:
19608 # /* config.h. Generated by config.status. */
19609 configure_input='Generated from '`
19610 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19611 `' by configure.'
19612 if test x"$ac_file" != x-; then
19613 configure_input="$ac_file. $configure_input"
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19615 $as_echo "$as_me: creating $ac_file" >&6;}
19616 fi
19617 # Neutralize special characters interpreted by sed in replacement strings.
19618 case $configure_input in #(
19619 *\&* | *\|* | *\\* )
19620 ac_sed_conf_input=`$as_echo "$configure_input" |
19621 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19622 *) ac_sed_conf_input=$configure_input;;
19623 esac
19624
19625 case $ac_tag in
19626 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19628 esac
19629 ;;
19630 esac
19631
19632 ac_dir=`$as_dirname -- "$ac_file" ||
19633 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19634 X"$ac_file" : 'X\(//\)[^/]' \| \
19635 X"$ac_file" : 'X\(//\)$' \| \
19636 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19637 $as_echo X"$ac_file" |
19638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19639 s//\1/
19640 q
19641 }
19642 /^X\(\/\/\)[^/].*/{
19643 s//\1/
19644 q
19645 }
19646 /^X\(\/\/\)$/{
19647 s//\1/
19648 q
19649 }
19650 /^X\(\/\).*/{
19651 s//\1/
19652 q
19653 }
19654 s/.*/./; q'`
19655 as_dir="$ac_dir"; as_fn_mkdir_p
19656 ac_builddir=.
19657
19658 case "$ac_dir" in
19659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19660 *)
19661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19662 # A ".." for each directory in $ac_dir_suffix.
19663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19664 case $ac_top_builddir_sub in
19665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19667 esac ;;
19668 esac
19669 ac_abs_top_builddir=$ac_pwd
19670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19671 # for backward compatibility:
19672 ac_top_builddir=$ac_top_build_prefix
19673
19674 case $srcdir in
19675 .) # We are building in place.
19676 ac_srcdir=.
19677 ac_top_srcdir=$ac_top_builddir_sub
19678 ac_abs_top_srcdir=$ac_pwd ;;
19679 [\\/]* | ?:[\\/]* ) # Absolute name.
19680 ac_srcdir=$srcdir$ac_dir_suffix;
19681 ac_top_srcdir=$srcdir
19682 ac_abs_top_srcdir=$srcdir ;;
19683 *) # Relative name.
19684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19685 ac_top_srcdir=$ac_top_build_prefix$srcdir
19686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19687 esac
19688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19689
19690
19691 case $ac_mode in
19692 :F)
19693 #
19694 # CONFIG_FILE
19695 #
19696
19697 case $INSTALL in
19698 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19699 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19700 esac
19701 _ACEOF
19702
19703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19704 # If the template does not know about datarootdir, expand it.
19705 # FIXME: This hack should be removed a few years after 2.60.
19706 ac_datarootdir_hack=; ac_datarootdir_seen=
19707 ac_sed_dataroot='
19708 /datarootdir/ {
19709 p
19710 q
19711 }
19712 /@datadir@/p
19713 /@docdir@/p
19714 /@infodir@/p
19715 /@localedir@/p
19716 /@mandir@/p'
19717 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19718 *datarootdir*) ac_datarootdir_seen=yes;;
19719 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19721 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19722 _ACEOF
19723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19724 ac_datarootdir_hack='
19725 s&@datadir@&$datadir&g
19726 s&@docdir@&$docdir&g
19727 s&@infodir@&$infodir&g
19728 s&@localedir@&$localedir&g
19729 s&@mandir@&$mandir&g
19730 s&\\\${datarootdir}&$datarootdir&g' ;;
19731 esac
19732 _ACEOF
19733
19734 # Neutralize VPATH when `$srcdir' = `.'.
19735 # Shell code in configure.ac might set extrasub.
19736 # FIXME: do we really want to maintain this feature?
19737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19738 ac_sed_extra="$ac_vpsub
19739 $extrasub
19740 _ACEOF
19741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19742 :t
19743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19744 s|@configure_input@|$ac_sed_conf_input|;t t
19745 s&@top_builddir@&$ac_top_builddir_sub&;t t
19746 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19747 s&@srcdir@&$ac_srcdir&;t t
19748 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19749 s&@top_srcdir@&$ac_top_srcdir&;t t
19750 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19751 s&@builddir@&$ac_builddir&;t t
19752 s&@abs_builddir@&$ac_abs_builddir&;t t
19753 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19754 s&@INSTALL@&$ac_INSTALL&;t t
19755 $ac_datarootdir_hack
19756 "
19757 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19758 if $ac_cs_awk_getline; then
19759 $AWK -f "$ac_tmp/subs.awk"
19760 else
19761 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19762 fi \
19763 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19764
19765 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19766 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19767 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19768 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19770 which seems to be undefined. Please make sure it is defined" >&5
19771 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19772 which seems to be undefined. Please make sure it is defined" >&2;}
19773
19774 rm -f "$ac_tmp/stdin"
19775 case $ac_file in
19776 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19777 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19778 esac \
19779 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19780 ;;
19781
19782
19783
19784 esac
19785
19786
19787 case $ac_file$ac_mode in
19788 "Makefile":F) sed "$extrasub_build" Makefile |
19789 sed "$extrasub_host" |
19790 sed "$extrasub_target" > mf$$
19791 mv -f mf$$ Makefile ;;
19792
19793 esac
19794 done # for ac_tag
19795
19796
19797 as_fn_exit 0
19798 _ACEOF
19799 ac_clean_files=$ac_clean_files_save
19800
19801 test $ac_write_fail = 0 ||
19802 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19803
19804
19805 # configure is writing to config.log, and then calls config.status.
19806 # config.status does its own redirection, appending to config.log.
19807 # Unfortunately, on DOS this fails, as config.log is still kept open
19808 # by configure, so config.status won't be able to write to it; its
19809 # output is simply discarded. So we exec the FD to /dev/null,
19810 # effectively closing config.log, so it can be properly (re)opened and
19811 # appended to by config.status. When coming back to configure, we
19812 # need to make the FD available again.
19813 if test "$no_create" != yes; then
19814 ac_cs_success=:
19815 ac_config_status_args=
19816 test "$silent" = yes &&
19817 ac_config_status_args="$ac_config_status_args --quiet"
19818 exec 5>/dev/null
19819 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19820 exec 5>>config.log
19821 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19822 # would make configure fail if this is the last instruction.
19823 $ac_cs_success || as_fn_exit 1
19824 fi
19825 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19827 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19828 fi
19829