]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - configure
Move some dwarf2_cu methods to new file
[thirdparty/binutils-gdb.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OBJDUMP_FOR_TARGET
607 OBJCOPY_FOR_TARGET
608 NM_FOR_TARGET
609 LIPO_FOR_TARGET
610 LD_FOR_TARGET
611 DLLTOOL_FOR_TARGET
612 AS_FOR_TARGET
613 AR_FOR_TARGET
614 GOC_FOR_TARGET
615 GFORTRAN_FOR_TARGET
616 GCC_FOR_TARGET
617 CXX_FOR_TARGET
618 CC_FOR_TARGET
619 RANLIB_PLUGIN_OPTION
620 AR_PLUGIN_OPTION
621 READELF
622 OBJDUMP
623 OBJCOPY
624 WINDMC
625 WINDRES
626 STRIP
627 RANLIB
628 NM
629 LIPO
630 LD
631 DLLTOOL
632 AS
633 AR
634 RUNTEST
635 EXPECT
636 MAKEINFO
637 FLEX
638 LEX
639 M4
640 BISON
641 YACC
642 WINDRES_FOR_BUILD
643 WINDMC_FOR_BUILD
644 RANLIB_FOR_BUILD
645 NM_FOR_BUILD
646 LD_FOR_BUILD
647 LDFLAGS_FOR_BUILD
648 GOC_FOR_BUILD
649 GFORTRAN_FOR_BUILD
650 DLLTOOL_FOR_BUILD
651 CXX_FOR_BUILD
652 CXXFLAGS_FOR_BUILD
653 CFLAGS_FOR_BUILD
654 CC_FOR_BUILD
655 AS_FOR_BUILD
656 AR_FOR_BUILD
657 target_configdirs
658 configdirs
659 build_configdirs
660 INSTALL_GDB_TK
661 GDB_TK
662 CONFIGURE_GDB_TK
663 build_tooldir
664 tooldir
665 GCC_SHLIB_SUBDIR
666 RPATH_ENVVAR
667 target_configargs
668 host_configargs
669 build_configargs
670 BUILD_CONFIG
671 LDFLAGS_FOR_TARGET
672 CXXFLAGS_FOR_TARGET
673 CFLAGS_FOR_TARGET
674 DEBUG_PREFIX_CFLAGS_FOR_TARGET
675 SYSROOT_CFLAGS_FOR_TARGET
676 get_gcc_base_ver
677 extra_host_zlib_configure_flags
678 extra_host_libiberty_configure_flags
679 stage1_languages
680 host_shared
681 extra_linker_plugin_flags
682 extra_linker_plugin_configure_flags
683 islinc
684 isllibs
685 poststage1_ldflags
686 poststage1_libs
687 stage1_ldflags
688 stage1_libs
689 extra_isl_gmp_configure_flags
690 extra_mpc_mpfr_configure_flags
691 extra_mpc_gmp_configure_flags
692 extra_mpfr_configure_flags
693 gmpinc
694 gmplibs
695 PGO_BUILD_LTO_CFLAGS
696 PGO_BUILD_USE_CFLAGS
697 PGO_BUILD_GEN_CFLAGS
698 do_compare
699 GNATMAKE
700 GNATBIND
701 ac_ct_CXX
702 CXXFLAGS
703 CXX
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 extra_liboffloadmic_configure_flags
712 target_subdir
713 host_subdir
714 build_subdir
715 build_libsubdir
716 AWK
717 SED
718 LN_S
719 LN
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 target_os
724 target_vendor
725 target_cpu
726 target
727 host_os
728 host_vendor
729 host_cpu
730 host
731 target_noncanonical
732 host_noncanonical
733 build_noncanonical
734 build_os
735 build_vendor
736 build_cpu
737 build
738 TOPLEVEL_CONFIGURE_ARGUMENTS
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL'
777 ac_subst_files='serialization_dependencies
778 host_makefile_frag
779 target_makefile_frag
780 alphaieee_frag
781 ospace_frag'
782 ac_user_opts='
783 enable_option_checking
784 with_build_libsubdir
785 with_system_zlib
786 enable_as_accelerator_for
787 enable_offload_targets
788 enable_gold
789 enable_ld
790 enable_compressed_debug_sections
791 enable_libquadmath
792 enable_libquadmath_support
793 enable_libada
794 enable_libssp
795 enable_libstdcxx
796 enable_liboffloadmic
797 enable_bootstrap
798 enable_pgo_build
799 with_mpc
800 with_mpc_include
801 with_mpc_lib
802 with_mpfr_dir
803 with_mpfr
804 with_mpfr_include
805 with_mpfr_lib
806 with_gmp_dir
807 with_gmp
808 with_gmp_include
809 with_gmp_lib
810 with_stage1_libs
811 with_static_standard_libraries
812 with_stage1_ldflags
813 with_boot_libs
814 with_boot_ldflags
815 with_isl
816 with_isl_include
817 with_isl_lib
818 enable_isl_version_check
819 enable_lto
820 enable_linker_plugin_configure_flags
821 enable_linker_plugin_flags
822 enable_host_shared
823 enable_stage1_languages
824 enable_objc_gc
825 with_target_bdw_gc
826 with_target_bdw_gc_include
827 with_target_bdw_gc_lib
828 with_gcc_major_version_only
829 with_build_sysroot
830 with_debug_prefix_map
831 with_build_config
832 enable_vtable_verify
833 enable_serial_configure
834 with_build_time_tools
835 enable_maintainer_mode
836 enable_stage1_checking
837 enable_werror
838 '
839 ac_precious_vars='build_alias
840 host_alias
841 target_alias
842 CC
843 CFLAGS
844 LDFLAGS
845 LIBS
846 CPPFLAGS
847 CXX
848 CXXFLAGS
849 CCC
850 build_configargs
851 host_configargs
852 target_configargs
853 AR
854 AS
855 DLLTOOL
856 LD
857 LIPO
858 NM
859 RANLIB
860 STRIP
861 WINDRES
862 WINDMC
863 OBJCOPY
864 OBJDUMP
865 READELF
866 CC_FOR_TARGET
867 CXX_FOR_TARGET
868 GCC_FOR_TARGET
869 GFORTRAN_FOR_TARGET
870 GOC_FOR_TARGET
871 AR_FOR_TARGET
872 AS_FOR_TARGET
873 DLLTOOL_FOR_TARGET
874 LD_FOR_TARGET
875 LIPO_FOR_TARGET
876 NM_FOR_TARGET
877 OBJCOPY_FOR_TARGET
878 OBJDUMP_FOR_TARGET
879 RANLIB_FOR_TARGET
880 READELF_FOR_TARGET
881 STRIP_FOR_TARGET
882 WINDRES_FOR_TARGET
883 WINDMC_FOR_TARGET'
884
885
886 # Initialize some variables set by options.
887 ac_init_help=
888 ac_init_version=false
889 ac_unrecognized_opts=
890 ac_unrecognized_sep=
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
893 cache_file=/dev/null
894 exec_prefix=NONE
895 no_create=
896 no_recursion=
897 prefix=NONE
898 program_prefix=NONE
899 program_suffix=NONE
900 program_transform_name=s,x,x,
901 silent=
902 site=
903 srcdir=
904 verbose=
905 x_includes=NONE
906 x_libraries=NONE
907
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir='${exec_prefix}/bin'
915 sbindir='${exec_prefix}/sbin'
916 libexecdir='${exec_prefix}/libexec'
917 datarootdir='${prefix}/share'
918 datadir='${datarootdir}'
919 sysconfdir='${prefix}/etc'
920 sharedstatedir='${prefix}/com'
921 localstatedir='${prefix}/var'
922 includedir='${prefix}/include'
923 oldincludedir='/usr/include'
924 docdir='${datarootdir}/doc/${PACKAGE}'
925 infodir='${datarootdir}/info'
926 htmldir='${docdir}'
927 dvidir='${docdir}'
928 pdfdir='${docdir}'
929 psdir='${docdir}'
930 libdir='${exec_prefix}/lib'
931 localedir='${datarootdir}/locale'
932 mandir='${datarootdir}/man'
933
934 ac_prev=
935 ac_dashdash=
936 for ac_option
937 do
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
940 eval $ac_prev=\$ac_option
941 ac_prev=
942 continue
943 fi
944
945 case $ac_option in
946 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 *=) ac_optarg= ;;
948 *) ac_optarg=yes ;;
949 esac
950
951 # Accept the important Cygnus configure options, so we can diagnose typos.
952
953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960 bindir=$ac_optarg ;;
961
962 -build | --build | --buil | --bui | --bu)
963 ac_prev=build_alias ;;
964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965 build_alias=$ac_optarg ;;
966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
976
977 -datadir | --datadir | --datadi | --datad)
978 ac_prev=datadir ;;
979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
980 datadir=$ac_optarg ;;
981
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
989 -disable-* | --disable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1014
1015 -enable-* | --enable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error $? "invalid feature name: $ac_useropt"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024 "enable_$ac_useropt"
1025 "*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=\$ac_optarg ;;
1030
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
1038 exec_prefix=$ac_optarg ;;
1039
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1043
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
1050
1051 -host | --host | --hos | --ho)
1052 ac_prev=host_alias ;;
1053 -host=* | --host=* | --hos=* | --ho=*)
1054 host_alias=$ac_optarg ;;
1055
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1061
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
1067 includedir=$ac_optarg ;;
1068
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072 infodir=$ac_optarg ;;
1073
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077 libdir=$ac_optarg ;;
1078
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
1084 libexecdir=$ac_optarg ;;
1085
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1090
1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
1092 | --localstate | --localstat | --localsta | --localst | --locals)
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096 localstatedir=$ac_optarg ;;
1097
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101 mandir=$ac_optarg ;;
1102
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1106
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108 | --no-cr | --no-c | -n)
1109 no_create=yes ;;
1110
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1114
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122 oldincludedir=$ac_optarg ;;
1123
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127 prefix=$ac_optarg ;;
1128
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134 program_prefix=$ac_optarg ;;
1135
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141 program_suffix=$ac_optarg ;;
1142
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
1158 program_transform_name=$ac_optarg ;;
1159
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1164
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1169
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
1178 sbindir=$ac_optarg ;;
1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
1189 sharedstatedir=$ac_optarg ;;
1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
1194 site=$ac_optarg ;;
1195
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199 srcdir=$ac_optarg ;;
1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206 sysconfdir=$ac_optarg ;;
1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
1209 ac_prev=target_alias ;;
1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211 target_alias=$ac_optarg ;;
1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
1218
1219 -with-* | --with-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error $? "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=\$ac_optarg ;;
1234
1235 -without-* | --without-*)
1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error $? "invalid package name: $ac_useropt"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244 "with_$ac_useropt"
1245 "*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=no ;;
1250
1251 --x)
1252 # Obsolete; use --with-x.
1253 with_x=yes ;;
1254
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260 x_includes=$ac_optarg ;;
1261
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267 x_libraries=$ac_optarg ;;
1268
1269 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1270 Try \`$0 --help' for more information"
1271 ;;
1272
1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
1276 case $ac_envvar in #(
1277 '' | [0-9]* | *[!_$as_cr_alnum]* )
1278 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1279 esac
1280 eval $ac_envvar=\$ac_optarg
1281 export $ac_envvar ;;
1282
1283 *)
1284 # FIXME: should be removed in autoconf 3.0.
1285 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1289 ;;
1290
1291 esac
1292 done
1293
1294 if test -n "$ac_prev"; then
1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296 as_fn_error $? "missing argument to $ac_option"
1297 fi
1298
1299 if test -n "$ac_unrecognized_opts"; then
1300 case $enable_option_checking in
1301 no) ;;
1302 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1303 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304 esac
1305 fi
1306
1307 # Check all directory arguments for consistency.
1308 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
1312 do
1313 eval ac_val=\$$ac_var
1314 # Remove trailing slashes.
1315 case $ac_val in
1316 */ )
1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318 eval $ac_var=\$ac_val;;
1319 esac
1320 # Be sure to have absolute directory names.
1321 case $ac_val in
1322 [\\/$]* | ?:[\\/]* ) continue;;
1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324 esac
1325 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1326 done
1327
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1331 build=$build_alias
1332 host=$host_alias
1333 target=$target_alias
1334
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1341 fi
1342 fi
1343
1344 ac_tool_prefix=
1345 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347 test "$silent" = yes && exec 6>/dev/null
1348
1349
1350 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di=`ls -di .` &&
1352 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353 as_fn_error $? "working directory cannot be determined"
1354 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355 as_fn_error $? "pwd does not report name of working directory"
1356
1357
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir=`$as_dirname -- "$as_myself" ||
1363 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$as_myself" : 'X\(//\)[^/]' \| \
1365 X"$as_myself" : 'X\(//\)$' \| \
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367 $as_echo X"$as_myself" |
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)[^/].*/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\).*/{
1381 s//\1/
1382 q
1383 }
1384 s/.*/./; q'`
1385 srcdir=$ac_confdir
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 srcdir=..
1388 fi
1389 else
1390 ac_srcdir_defaulted=no
1391 fi
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1395 fi
1396 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397 ac_abs_confdir=`(
1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1399 pwd)`
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403 fi
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1407 case $srcdir in
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 esac
1410 case $srcdir in
1411 *" "*)
1412 as_fn_error $? "path to source, $srcdir, contains spaces"
1413 ;;
1414 esac
1415 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1416
1417 for ac_var in $ac_precious_vars; do
1418 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_env_${ac_var}_value=\$${ac_var}
1420 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422 done
1423
1424 #
1425 # Report the --help message.
1426 #
1427 if test "$ac_init_help" = "long"; then
1428 # Omit some internal or obsolete options to make the list less imposing.
1429 # This message is too long to be a string in the A/UX 3.1 sh.
1430 cat <<_ACEOF
1431 \`configure' configures this package to adapt to many kinds of systems.
1432
1433 Usage: $0 [OPTION]... [VAR=VALUE]...
1434
1435 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436 VAR=VALUE. See below for descriptions of some of the useful variables.
1437
1438 Defaults for the options are specified in brackets.
1439
1440 Configuration:
1441 -h, --help display this help and exit
1442 --help=short display options specific to this package
1443 --help=recursive display the short help of all the included packages
1444 -V, --version display version information and exit
1445 -q, --quiet, --silent do not print \`checking ...' messages
1446 --cache-file=FILE cache test results in FILE [disabled]
1447 -C, --config-cache alias for \`--cache-file=config.cache'
1448 -n, --no-create do not create output files
1449 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450
1451 Installation directories:
1452 --prefix=PREFIX install architecture-independent files in PREFIX
1453 [$ac_default_prefix]
1454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1455 [PREFIX]
1456
1457 By default, \`make install' will install all the files in
1458 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1459 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1460 for instance \`--prefix=\$HOME'.
1461
1462 For better control, use the options below.
1463
1464 Fine tuning of the installation directories:
1465 --bindir=DIR user executables [EPREFIX/bin]
1466 --sbindir=DIR system admin executables [EPREFIX/sbin]
1467 --libexecdir=DIR program executables [EPREFIX/libexec]
1468 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1469 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1470 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1471 --libdir=DIR object code libraries [EPREFIX/lib]
1472 --includedir=DIR C header files [PREFIX/include]
1473 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1474 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1475 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1476 --infodir=DIR info documentation [DATAROOTDIR/info]
1477 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1478 --mandir=DIR man documentation [DATAROOTDIR/man]
1479 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1480 --htmldir=DIR html documentation [DOCDIR]
1481 --dvidir=DIR dvi documentation [DOCDIR]
1482 --pdfdir=DIR pdf documentation [DOCDIR]
1483 --psdir=DIR ps documentation [DOCDIR]
1484 _ACEOF
1485
1486 cat <<\_ACEOF
1487
1488 Program names:
1489 --program-prefix=PREFIX prepend PREFIX to installed program names
1490 --program-suffix=SUFFIX append SUFFIX to installed program names
1491 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492
1493 System types:
1494 --build=BUILD configure for building on BUILD [guessed]
1495 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496 --target=TARGET configure for building compilers for TARGET [HOST]
1497 _ACEOF
1498 fi
1499
1500 if test -n "$ac_init_help"; then
1501
1502 cat <<\_ACEOF
1503
1504 Optional Features:
1505 --disable-option-checking ignore unrecognized --enable/--with options
1506 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1507 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1508 --enable-as-accelerator-for=ARG
1509 build as offload target compiler. Specify offload
1510 host triple by ARG
1511 --enable-offload-targets=LIST
1512 enable offloading to devices from comma-separated
1513 LIST of TARGET[=DIR]. Use optional path to find
1514 offload target compiler during the build
1515 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1516 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1517 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1518 Enable compressed debug sections for gas, gold or ld
1519 by default
1520 --disable-libquadmath do not build libquadmath directory
1521 --disable-libquadmath-support
1522 disable libquadmath support for Fortran
1523 --enable-libada build libada directory
1524 --enable-libssp build libssp directory
1525 --disable-libstdcxx do not build libstdc++-v3 directory
1526 --enable-liboffloadmic=ARG
1527 build liboffloadmic [ARG={no,host,target}]
1528 --enable-bootstrap enable bootstrapping [yes if native build]
1529 --enable-pgo-build[=lto]
1530 enable the PGO build
1531 --disable-isl-version-check
1532 disable check for isl version
1533 --enable-lto enable link time optimization support
1534 --enable-linker-plugin-configure-flags=FLAGS
1535 additional flags for configuring linker plugins
1536 [none]
1537 --enable-linker-plugin-flags=FLAGS
1538 additional flags for configuring and building linker
1539 plugins [none]
1540 --enable-host-shared build host code as shared libraries
1541 --enable-stage1-languages[=all]
1542 choose additional languages to build during stage1.
1543 Mostly useful for compiler development
1544 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1545 Objective-C runtime
1546 --enable-vtable-verify Enable vtable verification feature
1547 --enable-serial-[{host,target,build}-]configure
1548 force sequential configuration of sub-packages for
1549 the host, target or build machine, or all
1550 sub-packages
1551 --enable-maintainer-mode
1552 enable make rules and dependencies not useful (and
1553 sometimes confusing) to the casual installer
1554 --enable-stage1-checking[=all]
1555 choose additional checking for stage1 of the
1556 compiler
1557 --enable-werror enable -Werror in bootstrap stage2 and later
1558
1559 Optional Packages:
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1562 --with-build-libsubdir=DIR Directory where to find libraries for build system
1563 --with-system-zlib use installed libz
1564 --with-mpc=PATH specify prefix directory for installed MPC package.
1565 Equivalent to --with-mpc-include=PATH/include plus
1566 --with-mpc-lib=PATH/lib
1567 --with-mpc-include=PATH specify directory for installed MPC include files
1568 --with-mpc-lib=PATH specify directory for the installed MPC library
1569 --with-mpfr-dir=PATH this option has been REMOVED
1570 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1571 Equivalent to --with-mpfr-include=PATH/include plus
1572 --with-mpfr-lib=PATH/lib
1573 --with-mpfr-include=PATH
1574 specify directory for installed MPFR include files
1575 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1576 --with-gmp-dir=PATH this option has been REMOVED
1577 --with-gmp=PATH specify prefix directory for the installed GMP
1578 package. Equivalent to
1579 --with-gmp-include=PATH/include plus
1580 --with-gmp-lib=PATH/lib
1581 --with-gmp-include=PATH specify directory for installed GMP include files
1582 --with-gmp-lib=PATH specify directory for the installed GMP library
1583 --with-stage1-libs=LIBS libraries for stage1
1584 --with-static-standard-libraries
1585 use -static-libstdc++ and -static-libgcc
1586 (default=auto)
1587 --with-stage1-ldflags=FLAGS
1588 linker flags for stage1
1589 --with-boot-libs=LIBS libraries for stage2 and later
1590 --with-boot-ldflags=FLAGS
1591 linker flags for stage2 and later
1592 --with-isl=PATH Specify prefix directory for the installed isl
1593 package. Equivalent to
1594 --with-isl-include=PATH/include plus
1595 --with-isl-lib=PATH/lib
1596 --with-isl-include=PATH Specify directory for installed isl include files
1597 --with-isl-lib=PATH Specify the directory for the installed isl library
1598 --with-target-bdw-gc=PATHLIST
1599 specify prefix directory for installed bdw-gc
1600 package. Equivalent to
1601 --with-target-bdw-gc-include=PATH/include plus
1602 --with-target-bdw-gc-lib=PATH/lib
1603 --with-target-bdw-gc-include=PATHLIST
1604 specify directories for installed bdw-gc include
1605 files
1606 --with-target-bdw-gc-lib=PATHLIST
1607 specify directories for installed bdw-gc library
1608 --with-gcc-major-version-only
1609 use only GCC major number in filesystem paths
1610 --with-build-sysroot=SYSROOT
1611 use sysroot as the system root during the build
1612 --with-debug-prefix-map='A=B C=D ...'
1613 map A to B, C to D ... in debug information
1614 --with-build-config='NAME NAME2...'
1615 use config/NAME.mk build configuration
1616 --with-build-time-tools=PATH
1617 use given path to find target tools during the build
1618
1619 Some influential environment variables:
1620 CC C compiler command
1621 CFLAGS C compiler flags
1622 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1623 nonstandard directory <lib dir>
1624 LIBS libraries to pass to the linker, e.g. -l<library>
1625 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1626 you have headers in a nonstandard directory <include dir>
1627 CXX C++ compiler command
1628 CXXFLAGS C++ compiler flags
1629 build_configargs
1630 additional configure arguments for build directories
1631 host_configargs
1632 additional configure arguments for host directories
1633 target_configargs
1634 additional configure arguments for target directories
1635 AR AR for the host
1636 AS AS for the host
1637 DLLTOOL DLLTOOL for the host
1638 LD LD for the host
1639 LIPO LIPO for the host
1640 NM NM for the host
1641 RANLIB RANLIB for the host
1642 STRIP STRIP for the host
1643 WINDRES WINDRES for the host
1644 WINDMC WINDMC for the host
1645 OBJCOPY OBJCOPY for the host
1646 OBJDUMP OBJDUMP for the host
1647 READELF READELF for the host
1648 CC_FOR_TARGET
1649 CC for the target
1650 CXX_FOR_TARGET
1651 CXX for the target
1652 GCC_FOR_TARGET
1653 GCC for the target
1654 GFORTRAN_FOR_TARGET
1655 GFORTRAN for the target
1656 GOC_FOR_TARGET
1657 GOC for the target
1658 AR_FOR_TARGET
1659 AR for the target
1660 AS_FOR_TARGET
1661 AS for the target
1662 DLLTOOL_FOR_TARGET
1663 DLLTOOL for the target
1664 LD_FOR_TARGET
1665 LD for the target
1666 LIPO_FOR_TARGET
1667 LIPO for the target
1668 NM_FOR_TARGET
1669 NM for the target
1670 OBJCOPY_FOR_TARGET
1671 OBJCOPY for the target
1672 OBJDUMP_FOR_TARGET
1673 OBJDUMP for the target
1674 RANLIB_FOR_TARGET
1675 RANLIB for the target
1676 READELF_FOR_TARGET
1677 READELF for the target
1678 STRIP_FOR_TARGET
1679 STRIP for the target
1680 WINDRES_FOR_TARGET
1681 WINDRES for the target
1682 WINDMC_FOR_TARGET
1683 WINDMC for the target
1684
1685 Use these variables to override the choices made by `configure' or to help
1686 it to find libraries and programs with nonstandard names/locations.
1687
1688 Report bugs to the package provider.
1689 _ACEOF
1690 ac_status=$?
1691 fi
1692
1693 if test "$ac_init_help" = "recursive"; then
1694 # If there are subdirs, report their specific --help.
1695 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1696 test -d "$ac_dir" ||
1697 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1698 continue
1699 ac_builddir=.
1700
1701 case "$ac_dir" in
1702 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703 *)
1704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1705 # A ".." for each directory in $ac_dir_suffix.
1706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1707 case $ac_top_builddir_sub in
1708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1710 esac ;;
1711 esac
1712 ac_abs_top_builddir=$ac_pwd
1713 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1714 # for backward compatibility:
1715 ac_top_builddir=$ac_top_build_prefix
1716
1717 case $srcdir in
1718 .) # We are building in place.
1719 ac_srcdir=.
1720 ac_top_srcdir=$ac_top_builddir_sub
1721 ac_abs_top_srcdir=$ac_pwd ;;
1722 [\\/]* | ?:[\\/]* ) # Absolute name.
1723 ac_srcdir=$srcdir$ac_dir_suffix;
1724 ac_top_srcdir=$srcdir
1725 ac_abs_top_srcdir=$srcdir ;;
1726 *) # Relative name.
1727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1728 ac_top_srcdir=$ac_top_build_prefix$srcdir
1729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1730 esac
1731 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1732
1733 cd "$ac_dir" || { ac_status=$?; continue; }
1734 # Check for guested configure.
1735 if test -f "$ac_srcdir/configure.gnu"; then
1736 echo &&
1737 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1738 elif test -f "$ac_srcdir/configure"; then
1739 echo &&
1740 $SHELL "$ac_srcdir/configure" --help=recursive
1741 else
1742 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1743 fi || ac_status=$?
1744 cd "$ac_pwd" || { ac_status=$?; break; }
1745 done
1746 fi
1747
1748 test -n "$ac_init_help" && exit $ac_status
1749 if $ac_init_version; then
1750 cat <<\_ACEOF
1751 configure
1752 generated by GNU Autoconf 2.69
1753
1754 Copyright (C) 2012 Free Software Foundation, Inc.
1755 This configure script is free software; the Free Software Foundation
1756 gives unlimited permission to copy, distribute and modify it.
1757 _ACEOF
1758 exit
1759 fi
1760
1761 ## ------------------------ ##
1762 ## Autoconf initialization. ##
1763 ## ------------------------ ##
1764
1765 # ac_fn_c_try_compile LINENO
1766 # --------------------------
1767 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1768 ac_fn_c_try_compile ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 rm -f conftest.$ac_objext
1772 if { { ac_try="$ac_compile"
1773 case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_compile") 2>conftest.err
1780 ac_status=$?
1781 if test -s conftest.err; then
1782 grep -v '^ *+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1785 fi
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && {
1788 test -z "$ac_c_werror_flag" ||
1789 test ! -s conftest.err
1790 } && test -s conftest.$ac_objext; then :
1791 ac_retval=0
1792 else
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797 fi
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 as_fn_set_status $ac_retval
1800
1801 } # ac_fn_c_try_compile
1802
1803 # ac_fn_cxx_try_compile LINENO
1804 # ----------------------------
1805 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_cxx_try_compile ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 rm -f conftest.$ac_objext
1810 if { { ac_try="$ac_compile"
1811 case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_compile") 2>conftest.err
1818 ac_status=$?
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1823 fi
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && {
1826 test -z "$ac_cxx_werror_flag" ||
1827 test ! -s conftest.err
1828 } && test -s conftest.$ac_objext; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=1
1835 fi
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1838
1839 } # ac_fn_cxx_try_compile
1840
1841 # ac_fn_cxx_try_link LINENO
1842 # -------------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_cxx_try_link ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext conftest$ac_exeext
1848 if { { ac_try="$ac_link"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1861 fi
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_cxx_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest$ac_exeext && {
1867 test "$cross_compiling" = yes ||
1868 test -x conftest$ac_exeext
1869 }; then :
1870 ac_retval=0
1871 else
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1874
1875 ac_retval=1
1876 fi
1877 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1878 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1879 # interfere with the next link command; also delete a directory that is
1880 # left behind by Apple's compiler. We do this before executing the actions.
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
1884
1885 } # ac_fn_cxx_try_link
1886
1887 # ac_fn_c_try_link LINENO
1888 # -----------------------
1889 # Try to link conftest.$ac_ext, and return whether this succeeded.
1890 ac_fn_c_try_link ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 rm -f conftest.$ac_objext conftest$ac_exeext
1894 if { { ac_try="$ac_link"
1895 case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1907 fi
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } && {
1910 test -z "$ac_c_werror_flag" ||
1911 test ! -s conftest.err
1912 } && test -s conftest$ac_exeext && {
1913 test "$cross_compiling" = yes ||
1914 test -x conftest$ac_exeext
1915 }; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1920
1921 ac_retval=1
1922 fi
1923 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1924 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1925 # interfere with the next link command; also delete a directory that is
1926 # left behind by Apple's compiler. We do this before executing the actions.
1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
1930
1931 } # ac_fn_c_try_link
1932 cat >config.log <<_ACEOF
1933 This file contains any messages produced by compilers while
1934 running configure, to aid debugging if configure makes a mistake.
1935
1936 It was created by $as_me, which was
1937 generated by GNU Autoconf 2.69. Invocation command line was
1938
1939 $ $0 $@
1940
1941 _ACEOF
1942 exec 5>>config.log
1943 {
1944 cat <<_ASUNAME
1945 ## --------- ##
1946 ## Platform. ##
1947 ## --------- ##
1948
1949 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1950 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1951 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1952 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1953 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1954
1955 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1956 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1957
1958 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1959 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1960 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1961 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1962 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1963 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1964 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1965
1966 _ASUNAME
1967
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 for as_dir in $PATH
1970 do
1971 IFS=$as_save_IFS
1972 test -z "$as_dir" && as_dir=.
1973 $as_echo "PATH: $as_dir"
1974 done
1975 IFS=$as_save_IFS
1976
1977 } >&5
1978
1979 cat >&5 <<_ACEOF
1980
1981
1982 ## ----------- ##
1983 ## Core tests. ##
1984 ## ----------- ##
1985
1986 _ACEOF
1987
1988
1989 # Keep a trace of the command line.
1990 # Strip out --no-create and --no-recursion so they do not pile up.
1991 # Strip out --silent because we don't want to record it for future runs.
1992 # Also quote any args containing shell meta-characters.
1993 # Make two passes to allow for proper duplicate-argument suppression.
1994 ac_configure_args=
1995 ac_configure_args0=
1996 ac_configure_args1=
1997 ac_must_keep_next=false
1998 for ac_pass in 1 2
1999 do
2000 for ac_arg
2001 do
2002 case $ac_arg in
2003 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2005 | -silent | --silent | --silen | --sile | --sil)
2006 continue ;;
2007 *\'*)
2008 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2009 esac
2010 case $ac_pass in
2011 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2012 2)
2013 as_fn_append ac_configure_args1 " '$ac_arg'"
2014 if test $ac_must_keep_next = true; then
2015 ac_must_keep_next=false # Got value, back to normal.
2016 else
2017 case $ac_arg in
2018 *=* | --config-cache | -C | -disable-* | --disable-* \
2019 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2020 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2021 | -with-* | --with-* | -without-* | --without-* | --x)
2022 case "$ac_configure_args0 " in
2023 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2024 esac
2025 ;;
2026 -* ) ac_must_keep_next=true ;;
2027 esac
2028 fi
2029 as_fn_append ac_configure_args " '$ac_arg'"
2030 ;;
2031 esac
2032 done
2033 done
2034 { ac_configure_args0=; unset ac_configure_args0;}
2035 { ac_configure_args1=; unset ac_configure_args1;}
2036
2037 # When interrupted or exit'd, cleanup temporary files, and complete
2038 # config.log. We remove comments because anyway the quotes in there
2039 # would cause problems or look ugly.
2040 # WARNING: Use '\'' to represent an apostrophe within the trap.
2041 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2042 trap 'exit_status=$?
2043 # Save into config.log some information that might help in debugging.
2044 {
2045 echo
2046
2047 $as_echo "## ---------------- ##
2048 ## Cache variables. ##
2049 ## ---------------- ##"
2050 echo
2051 # The following way of writing the cache mishandles newlines in values,
2052 (
2053 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2054 eval ac_val=\$$ac_var
2055 case $ac_val in #(
2056 *${as_nl}*)
2057 case $ac_var in #(
2058 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2059 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2060 esac
2061 case $ac_var in #(
2062 _ | IFS | as_nl) ;; #(
2063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2064 *) { eval $ac_var=; unset $ac_var;} ;;
2065 esac ;;
2066 esac
2067 done
2068 (set) 2>&1 |
2069 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2070 *${as_nl}ac_space=\ *)
2071 sed -n \
2072 "s/'\''/'\''\\\\'\'''\''/g;
2073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2074 ;; #(
2075 *)
2076 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2077 ;;
2078 esac |
2079 sort
2080 )
2081 echo
2082
2083 $as_echo "## ----------------- ##
2084 ## Output variables. ##
2085 ## ----------------- ##"
2086 echo
2087 for ac_var in $ac_subst_vars
2088 do
2089 eval ac_val=\$$ac_var
2090 case $ac_val in
2091 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2092 esac
2093 $as_echo "$ac_var='\''$ac_val'\''"
2094 done | sort
2095 echo
2096
2097 if test -n "$ac_subst_files"; then
2098 $as_echo "## ------------------- ##
2099 ## File substitutions. ##
2100 ## ------------------- ##"
2101 echo
2102 for ac_var in $ac_subst_files
2103 do
2104 eval ac_val=\$$ac_var
2105 case $ac_val in
2106 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2107 esac
2108 $as_echo "$ac_var='\''$ac_val'\''"
2109 done | sort
2110 echo
2111 fi
2112
2113 if test -s confdefs.h; then
2114 $as_echo "## ----------- ##
2115 ## confdefs.h. ##
2116 ## ----------- ##"
2117 echo
2118 cat confdefs.h
2119 echo
2120 fi
2121 test "$ac_signal" != 0 &&
2122 $as_echo "$as_me: caught signal $ac_signal"
2123 $as_echo "$as_me: exit $exit_status"
2124 } >&5
2125 rm -f core *.core core.conftest.* &&
2126 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2127 exit $exit_status
2128 ' 0
2129 for ac_signal in 1 2 13 15; do
2130 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2131 done
2132 ac_signal=0
2133
2134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2135 rm -f -r conftest* confdefs.h
2136
2137 $as_echo "/* confdefs.h */" > confdefs.h
2138
2139 # Predefined preprocessor variables.
2140
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_NAME "$PACKAGE_NAME"
2143 _ACEOF
2144
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2147 _ACEOF
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2151 _ACEOF
2152
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_STRING "$PACKAGE_STRING"
2155 _ACEOF
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2159 _ACEOF
2160
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_URL "$PACKAGE_URL"
2163 _ACEOF
2164
2165
2166 # Let the site file select an alternate cache file if it wants to.
2167 # Prefer an explicitly selected file to automatically selected ones.
2168 ac_site_file1=NONE
2169 ac_site_file2=NONE
2170 if test -n "$CONFIG_SITE"; then
2171 # We do not want a PATH search for config.site.
2172 case $CONFIG_SITE in #((
2173 -*) ac_site_file1=./$CONFIG_SITE;;
2174 */*) ac_site_file1=$CONFIG_SITE;;
2175 *) ac_site_file1=./$CONFIG_SITE;;
2176 esac
2177 elif test "x$prefix" != xNONE; then
2178 ac_site_file1=$prefix/share/config.site
2179 ac_site_file2=$prefix/etc/config.site
2180 else
2181 ac_site_file1=$ac_default_prefix/share/config.site
2182 ac_site_file2=$ac_default_prefix/etc/config.site
2183 fi
2184 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2185 do
2186 test "x$ac_site_file" = xNONE && continue
2187 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2189 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2190 sed 's/^/| /' "$ac_site_file" >&5
2191 . "$ac_site_file" \
2192 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2194 as_fn_error $? "failed to load site script $ac_site_file
2195 See \`config.log' for more details" "$LINENO" 5; }
2196 fi
2197 done
2198
2199 if test -r "$cache_file"; then
2200 # Some versions of bash will fail to source /dev/null (special files
2201 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2202 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2204 $as_echo "$as_me: loading cache $cache_file" >&6;}
2205 case $cache_file in
2206 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2207 *) . "./$cache_file";;
2208 esac
2209 fi
2210 else
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2212 $as_echo "$as_me: creating cache $cache_file" >&6;}
2213 >$cache_file
2214 fi
2215
2216 # Check that the precious variables saved in the cache have kept the same
2217 # value.
2218 ac_cache_corrupted=false
2219 for ac_var in $ac_precious_vars; do
2220 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2221 eval ac_new_set=\$ac_env_${ac_var}_set
2222 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2223 eval ac_new_val=\$ac_env_${ac_var}_value
2224 case $ac_old_set,$ac_new_set in
2225 set,)
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2227 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2228 ac_cache_corrupted=: ;;
2229 ,set)
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2231 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2232 ac_cache_corrupted=: ;;
2233 ,);;
2234 *)
2235 if test "x$ac_old_val" != "x$ac_new_val"; then
2236 # differences in whitespace do not lead to failure.
2237 ac_old_val_w=`echo x $ac_old_val`
2238 ac_new_val_w=`echo x $ac_new_val`
2239 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2241 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2242 ac_cache_corrupted=:
2243 else
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2245 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2246 eval $ac_var=\$ac_old_val
2247 fi
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2249 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2251 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2252 fi;;
2253 esac
2254 # Pass precious variables to config.status.
2255 if test "$ac_new_set" = set; then
2256 case $ac_new_val in
2257 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2258 *) ac_arg=$ac_var=$ac_new_val ;;
2259 esac
2260 case " $ac_configure_args " in
2261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2262 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2263 esac
2264 fi
2265 done
2266 if $ac_cache_corrupted; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2270 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2271 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2272 fi
2273 ## -------------------- ##
2274 ## Main body of script. ##
2275 ## -------------------- ##
2276
2277 ac_ext=c
2278 ac_cpp='$CPP $CPPFLAGS'
2279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282
2283
2284
2285
2286
2287
2288
2289
2290 progname=$0
2291 # if PWD already has a value, it is probably wrong.
2292 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2293
2294 # Export original configure arguments for use by sub-configures.
2295 # Quote arguments with shell meta charatcers.
2296 TOPLEVEL_CONFIGURE_ARGUMENTS=
2297 set -- "$progname" "$@"
2298 for ac_arg
2299 do
2300 case "$ac_arg" in
2301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2302 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2303 # if the argument is of the form -foo=baz, quote the baz part only
2304 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2305 *) ;;
2306 esac
2307 # Add the quoted argument to the list.
2308 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2309 done
2310 if test "$silent" = yes; then
2311 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2312 fi
2313 # Remove the initial space we just introduced and, as these will be
2314 # expanded by make, quote '$'.
2315 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2316
2317
2318 # Find the build, host, and target systems.
2319 ac_aux_dir=
2320 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2321 if test -f "$ac_dir/install-sh"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/install-sh -c"
2324 break
2325 elif test -f "$ac_dir/install.sh"; then
2326 ac_aux_dir=$ac_dir
2327 ac_install_sh="$ac_aux_dir/install.sh -c"
2328 break
2329 elif test -f "$ac_dir/shtool"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/shtool install -c"
2332 break
2333 fi
2334 done
2335 if test -z "$ac_aux_dir"; then
2336 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2337 fi
2338
2339 # These three variables are undocumented and unsupported,
2340 # and are intended to be withdrawn in a future Autoconf release.
2341 # They can cause serious problems if a builder's source tree is in a directory
2342 # whose full name contains unusual characters.
2343 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2344 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2345 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2346
2347
2348 # Make sure we can run config.sub.
2349 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2350 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2351
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2353 $as_echo_n "checking build system type... " >&6; }
2354 if ${ac_cv_build+:} false; then :
2355 $as_echo_n "(cached) " >&6
2356 else
2357 ac_build_alias=$build_alias
2358 test "x$ac_build_alias" = x &&
2359 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2360 test "x$ac_build_alias" = x &&
2361 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2362 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2363 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2364
2365 fi
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2367 $as_echo "$ac_cv_build" >&6; }
2368 case $ac_cv_build in
2369 *-*-*) ;;
2370 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2371 esac
2372 build=$ac_cv_build
2373 ac_save_IFS=$IFS; IFS='-'
2374 set x $ac_cv_build
2375 shift
2376 build_cpu=$1
2377 build_vendor=$2
2378 shift; shift
2379 # Remember, the first character of IFS is used to create $*,
2380 # except with old shells:
2381 build_os=$*
2382 IFS=$ac_save_IFS
2383 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2384
2385
2386 case ${build_alias} in
2387 "") build_noncanonical=${build} ;;
2388 *) build_noncanonical=${build_alias} ;;
2389 esac
2390
2391
2392
2393 case ${host_alias} in
2394 "") host_noncanonical=${build_noncanonical} ;;
2395 *) host_noncanonical=${host_alias} ;;
2396 esac
2397
2398
2399
2400 case ${target_alias} in
2401 "") target_noncanonical=${host_noncanonical} ;;
2402 *) target_noncanonical=${target_alias} ;;
2403 esac
2404
2405
2406
2407
2408 test "$host_noncanonical" = "$target_noncanonical" &&
2409 test "$program_prefix$program_suffix$program_transform_name" = \
2410 NONENONEs,x,x, &&
2411 program_transform_name=s,y,y,
2412
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2414 $as_echo_n "checking host system type... " >&6; }
2415 if ${ac_cv_host+:} false; then :
2416 $as_echo_n "(cached) " >&6
2417 else
2418 if test "x$host_alias" = x; then
2419 ac_cv_host=$ac_cv_build
2420 else
2421 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2422 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2423 fi
2424
2425 fi
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2427 $as_echo "$ac_cv_host" >&6; }
2428 case $ac_cv_host in
2429 *-*-*) ;;
2430 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2431 esac
2432 host=$ac_cv_host
2433 ac_save_IFS=$IFS; IFS='-'
2434 set x $ac_cv_host
2435 shift
2436 host_cpu=$1
2437 host_vendor=$2
2438 shift; shift
2439 # Remember, the first character of IFS is used to create $*,
2440 # except with old shells:
2441 host_os=$*
2442 IFS=$ac_save_IFS
2443 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2444
2445
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2447 $as_echo_n "checking target system type... " >&6; }
2448 if ${ac_cv_target+:} false; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 if test "x$target_alias" = x; then
2452 ac_cv_target=$ac_cv_host
2453 else
2454 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2456 fi
2457
2458 fi
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2460 $as_echo "$ac_cv_target" >&6; }
2461 case $ac_cv_target in
2462 *-*-*) ;;
2463 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2464 esac
2465 target=$ac_cv_target
2466 ac_save_IFS=$IFS; IFS='-'
2467 set x $ac_cv_target
2468 shift
2469 target_cpu=$1
2470 target_vendor=$2
2471 shift; shift
2472 # Remember, the first character of IFS is used to create $*,
2473 # except with old shells:
2474 target_os=$*
2475 IFS=$ac_save_IFS
2476 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2477
2478
2479 # The aliases save the names the user supplied, while $host etc.
2480 # will get canonicalized.
2481 test -n "$target_alias" &&
2482 test "$program_prefix$program_suffix$program_transform_name" = \
2483 NONENONEs,x,x, &&
2484 program_prefix=${target_alias}-
2485
2486 test "$program_prefix" != NONE &&
2487 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2488 # Use a double $ so make ignores it.
2489 test "$program_suffix" != NONE &&
2490 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2491 # Double any \ or $.
2492 # By default was `s,x,x', remove it if useless.
2493 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2494 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2495
2496
2497
2498 # Get 'install' or 'install-sh' and its variants.
2499 # Find a good install program. We prefer a C program (faster),
2500 # so one script is as good as another. But avoid the broken or
2501 # incompatible versions:
2502 # SysV /etc/install, /usr/sbin/install
2503 # SunOS /usr/etc/install
2504 # IRIX /sbin/install
2505 # AIX /bin/install
2506 # AmigaOS /C/install, which installs bootblocks on floppy discs
2507 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2508 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2509 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2510 # OS/2's system install, which has a completely different semantic
2511 # ./install, which can be erroneously created by make from ./install.sh.
2512 # Reject install programs that cannot install multiple files.
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2514 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2515 if test -z "$INSTALL"; then
2516 if ${ac_cv_path_install+:} false; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 for as_dir in $PATH
2521 do
2522 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
2524 # Account for people who put trailing slashes in PATH elements.
2525 case $as_dir/ in #((
2526 ./ | .// | /[cC]/* | \
2527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2528 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2529 /usr/ucb/* ) ;;
2530 *)
2531 # OSF1 and SCO ODT 3.0 have their own names for install.
2532 # Don't use installbsd from OSF since it installs stuff as root
2533 # by default.
2534 for ac_prog in ginstall scoinst install; do
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2537 if test $ac_prog = install &&
2538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539 # AIX install. It has an incompatible calling convention.
2540 :
2541 elif test $ac_prog = install &&
2542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2543 # program-specific install script used by HP pwplus--don't use.
2544 :
2545 else
2546 rm -rf conftest.one conftest.two conftest.dir
2547 echo one > conftest.one
2548 echo two > conftest.two
2549 mkdir conftest.dir
2550 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2551 test -s conftest.one && test -s conftest.two &&
2552 test -s conftest.dir/conftest.one &&
2553 test -s conftest.dir/conftest.two
2554 then
2555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2556 break 3
2557 fi
2558 fi
2559 fi
2560 done
2561 done
2562 ;;
2563 esac
2564
2565 done
2566 IFS=$as_save_IFS
2567
2568 rm -rf conftest.one conftest.two conftest.dir
2569
2570 fi
2571 if test "${ac_cv_path_install+set}" = set; then
2572 INSTALL=$ac_cv_path_install
2573 else
2574 # As a last resort, use the slow shell script. Don't cache a
2575 # value for INSTALL within a source directory, because that will
2576 # break other packages using the cache if that directory is
2577 # removed, or if the value is a relative name.
2578 INSTALL=$ac_install_sh
2579 fi
2580 fi
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2582 $as_echo "$INSTALL" >&6; }
2583
2584 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2585 # It thinks the first close brace ends the variable substitution.
2586 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2587
2588 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2589
2590 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2591
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2593 $as_echo_n "checking whether ln works... " >&6; }
2594 if ${acx_cv_prog_LN+:} false; then :
2595 $as_echo_n "(cached) " >&6
2596 else
2597 rm -f conftestdata_t
2598 echo >conftestdata_f
2599 if ln conftestdata_f conftestdata_t 2>/dev/null
2600 then
2601 acx_cv_prog_LN=ln
2602 else
2603 acx_cv_prog_LN=no
2604 fi
2605 rm -f conftestdata_f conftestdata_t
2606
2607 fi
2608 if test $acx_cv_prog_LN = no; then
2609 LN="cp"
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2611 $as_echo "no, using $LN" >&6; }
2612 else
2613 LN="$acx_cv_prog_LN"
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615 $as_echo "yes" >&6; }
2616 fi
2617
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2619 $as_echo_n "checking whether ln -s works... " >&6; }
2620 LN_S=$as_ln_s
2621 if test "$LN_S" = "ln -s"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2623 $as_echo "yes" >&6; }
2624 else
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2626 $as_echo "no, using $LN_S" >&6; }
2627 fi
2628
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2630 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2631 if ${ac_cv_path_SED+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2635 for ac_i in 1 2 3 4 5 6 7; do
2636 ac_script="$ac_script$as_nl$ac_script"
2637 done
2638 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2639 { ac_script=; unset ac_script;}
2640 if test -z "$SED"; then
2641 ac_path_SED_found=false
2642 # Loop through the user's path and test for each of PROGNAME-LIST
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2645 do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_prog in sed gsed; do
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2651 as_fn_executable_p "$ac_path_SED" || continue
2652 # Check for GNU ac_path_SED and select it if it is found.
2653 # Check for GNU $ac_path_SED
2654 case `"$ac_path_SED" --version 2>&1` in
2655 *GNU*)
2656 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2657 *)
2658 ac_count=0
2659 $as_echo_n 0123456789 >"conftest.in"
2660 while :
2661 do
2662 cat "conftest.in" "conftest.in" >"conftest.tmp"
2663 mv "conftest.tmp" "conftest.in"
2664 cp "conftest.in" "conftest.nl"
2665 $as_echo '' >> "conftest.nl"
2666 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2668 as_fn_arith $ac_count + 1 && ac_count=$as_val
2669 if test $ac_count -gt ${ac_path_SED_max-0}; then
2670 # Best one so far, save it but keep looking for a better one
2671 ac_cv_path_SED="$ac_path_SED"
2672 ac_path_SED_max=$ac_count
2673 fi
2674 # 10*(2^10) chars as input seems more than enough
2675 test $ac_count -gt 10 && break
2676 done
2677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2678 esac
2679
2680 $ac_path_SED_found && break 3
2681 done
2682 done
2683 done
2684 IFS=$as_save_IFS
2685 if test -z "$ac_cv_path_SED"; then
2686 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2687 fi
2688 else
2689 ac_cv_path_SED=$SED
2690 fi
2691
2692 fi
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2694 $as_echo "$ac_cv_path_SED" >&6; }
2695 SED="$ac_cv_path_SED"
2696 rm -f conftest.sed
2697
2698 for ac_prog in gawk mawk nawk awk
2699 do
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701 set dummy $ac_prog; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if ${ac_cv_prog_AWK+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test -n "$AWK"; then
2708 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_AWK="$ac_prog"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 fi
2726 fi
2727 AWK=$ac_cv_prog_AWK
2728 if test -n "$AWK"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2730 $as_echo "$AWK" >&6; }
2731 else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2734 fi
2735
2736
2737 test -n "$AWK" && break
2738 done
2739
2740
2741 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2742
2743 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2744 # a relative path.
2745 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2746 INSTALL="${srcpwd}/install-sh -c"
2747 fi
2748
2749 # Set srcdir to "." if that's what it is.
2750 # This is important for multilib support.
2751 pwd=`${PWDCMD-pwd}`
2752 if test "${pwd}" = "${srcpwd}" ; then
2753 srcdir=.
2754 fi
2755
2756 topsrcdir=$srcpwd
2757
2758 extra_host_args=
2759
2760 ### To add a new directory to the tree, first choose whether it is a target
2761 ### or a host dependent tool. Then put it into the appropriate list
2762 ### (library or tools, host or target), doing a dependency sort.
2763
2764 # Subdirs will be configured in the order listed in build_configdirs,
2765 # configdirs, or target_configdirs; see the serialization section below.
2766
2767 # Dependency sorting is only needed when *configuration* must be done in
2768 # a particular order. In all cases a dependency should be specified in
2769 # the Makefile, whether or not it's implicitly specified here.
2770
2771 # Double entries in build_configdirs, configdirs, or target_configdirs may
2772 # cause circular dependencies and break everything horribly.
2773
2774 # these library is used by various programs built for the build
2775 # environment
2776 #
2777 build_libs="build-libiberty build-libcpp"
2778
2779 # these tools are built for the build environment
2780 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2781
2782 # these libraries are used by various programs built for the host environment
2783 #f
2784 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2785
2786 # these tools are built for the host environment
2787 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2788 # know that we are building the simulator.
2789 # binutils, gas and ld appear in that order because it makes sense to run
2790 # "make check" in that particular order.
2791 # If --enable-gold is used, "gold" may replace "ld".
2792 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"
2793
2794 # these libraries are built for the target environment, and are built after
2795 # the host libraries and the host tools (which may be a cross compiler)
2796 # Note that libiberty is not a target library.
2797 target_libraries="target-libgcc \
2798 target-libbacktrace \
2799 target-libgloss \
2800 target-newlib \
2801 target-libgomp \
2802 target-liboffloadmic \
2803 target-libhsail-rt \
2804 target-libatomic \
2805 target-libitm \
2806 target-libstdc++-v3 \
2807 target-libsanitizer \
2808 target-libvtv \
2809 target-libssp \
2810 target-libquadmath \
2811 target-libgfortran \
2812 target-libffi \
2813 target-libobjc \
2814 target-libada \
2815 target-libgo"
2816
2817 # these tools are built using the target libraries, and are intended to
2818 # run only in the target environment
2819 #
2820 # note: any program that *uses* libraries that are in the "target_libraries"
2821 # list belongs in this list.
2822 #
2823 target_tools="target-rda"
2824
2825 ################################################################################
2826
2827 ## All tools belong in one of the four categories, and are assigned above
2828 ## We assign ${configdirs} this way to remove all embedded newlines. This
2829 ## is important because configure will choke if they ever get through.
2830 ## ${configdirs} is directories we build using the host tools.
2831 ## ${target_configdirs} is directories we build using the target tools.
2832 configdirs=`echo ${host_libs} ${host_tools}`
2833 target_configdirs=`echo ${target_libraries} ${target_tools}`
2834 build_configdirs=`echo ${build_libs} ${build_tools}`
2835
2836
2837
2838 ################################################################################
2839
2840 srcname="gnu development package"
2841
2842 # This gets set non-empty for some net releases of packages.
2843 appdirs=""
2844
2845 # Define is_cross_compiler to save on calls to 'test'.
2846 is_cross_compiler=
2847 if test x"${host}" = x"${target}" ; then
2848 is_cross_compiler=no
2849 else
2850 is_cross_compiler=yes
2851 fi
2852
2853 # Find the build and target subdir names.
2854
2855 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2856 # have matching libraries, they should use host libraries: Makefile.tpl
2857 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2858 # However, they still use the build modules, because the corresponding
2859 # host modules (e.g. bison) are only built for the host when bootstrap
2860 # finishes. So:
2861 # - build_subdir is where we find build modules, and never changes.
2862 # - build_libsubdir is where we find build libraries, and can be overridden.
2863
2864 # Prefix 'build-' so this never conflicts with target_subdir.
2865 build_subdir="build-${build_noncanonical}"
2866
2867 # Check whether --with-build-libsubdir was given.
2868 if test "${with_build_libsubdir+set}" = set; then :
2869 withval=$with_build_libsubdir; build_libsubdir="$withval"
2870 else
2871 build_libsubdir="$build_subdir"
2872 fi
2873
2874 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2875 if ( test $srcdir = . && test -d gcc ) \
2876 || test -d $srcdir/../host-${host_noncanonical}; then
2877 host_subdir="host-${host_noncanonical}"
2878 else
2879 host_subdir=.
2880 fi
2881 # No prefix.
2882 target_subdir=${target_noncanonical}
2883
2884 # Be sure to cover against remnants of an in-tree build.
2885 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2886 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2887 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2888 fi
2889
2890 # Skipdirs are removed silently.
2891 skipdirs=
2892 # Noconfigdirs are removed loudly.
2893 noconfigdirs=""
2894
2895 use_gnu_ld=
2896 # Make sure we don't let GNU ld be added if we didn't want it.
2897 if test x$with_gnu_ld = xno ; then
2898 use_gnu_ld=no
2899 noconfigdirs="$noconfigdirs ld gold"
2900 fi
2901
2902 use_gnu_as=
2903 # Make sure we don't let GNU as be added if we didn't want it.
2904 if test x$with_gnu_as = xno ; then
2905 use_gnu_as=no
2906 noconfigdirs="$noconfigdirs gas"
2907 fi
2908
2909 use_included_zlib=
2910
2911 # Check whether --with-system-zlib was given.
2912 if test "${with_system_zlib+set}" = set; then :
2913 withval=$with_system_zlib;
2914 fi
2915
2916 # Make sure we don't let ZLIB be added if we didn't want it.
2917 if test x$with_system_zlib = xyes ; then
2918 use_included_zlib=no
2919 noconfigdirs="$noconfigdirs zlib"
2920 fi
2921
2922 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2923 # is provided.
2924 if test x$with_system_readline = xyes ; then
2925 noconfigdirs="$noconfigdirs readline"
2926 fi
2927
2928 # some tools are so dependent upon X11 that if we're not building with X,
2929 # it's not even worth trying to configure, much less build, that tool.
2930
2931 case ${with_x} in
2932 yes | "") ;; # the default value for this tree is that X11 is available
2933 no)
2934 skipdirs="${skipdirs} tk itcl libgui"
2935 # We won't be able to build gdbtk without X.
2936 enable_gdbtk=no
2937 ;;
2938 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2939 esac
2940
2941 # Some are only suitable for cross toolchains.
2942 # Remove these if host=target.
2943 cross_only="target-libgloss target-newlib target-opcodes"
2944
2945 case $is_cross_compiler in
2946 no) skipdirs="${skipdirs} ${cross_only}" ;;
2947 esac
2948
2949 # If both --with-headers and --with-libs are specified, default to
2950 # --without-newlib.
2951 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2952 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2953 if test x"${with_newlib}" = x ; then
2954 with_newlib=no
2955 fi
2956 fi
2957
2958 # Recognize --with-newlib/--without-newlib.
2959 case ${with_newlib} in
2960 no) skipdirs="${skipdirs} target-newlib" ;;
2961 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2962 esac
2963
2964 # Check whether --enable-as-accelerator-for was given.
2965 if test "${enable_as_accelerator_for+set}" = set; then :
2966 enableval=$enable_as_accelerator_for;
2967 fi
2968
2969
2970 # Check whether --enable-offload-targets was given.
2971 if test "${enable_offload_targets+set}" = set; then :
2972 enableval=$enable_offload_targets;
2973 if test x"$enable_offload_targets" = x; then
2974 as_fn_error $? "no offload targets specified" "$LINENO" 5
2975 fi
2976
2977 else
2978 enable_offload_targets=
2979 fi
2980
2981
2982 # Handle --enable-gold, --enable-ld.
2983 # --disable-gold [--enable-ld]
2984 # Build only ld. Default option.
2985 # --enable-gold [--enable-ld]
2986 # Build both gold and ld. Install gold as "ld.gold", install ld
2987 # as "ld.bfd" and "ld".
2988 # --enable-gold=default [--enable-ld]
2989 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2990 # install ld as "ld.bfd".
2991 # --enable-gold[=default] --disable-ld
2992 # Build only gold, which is then installed as both "ld.gold" and "ld".
2993 # --enable-gold --enable-ld=default
2994 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2995 # and ld.bfd).
2996 # In other words, ld is default
2997 # --enable-gold=default --enable-ld=default
2998 # Error.
2999
3000 default_ld=
3001 # Check whether --enable-gold was given.
3002 if test "${enable_gold+set}" = set; then :
3003 enableval=$enable_gold; ENABLE_GOLD=$enableval
3004 else
3005 ENABLE_GOLD=no
3006 fi
3007
3008 case "${ENABLE_GOLD}" in
3009 yes|default)
3010 # Check for ELF target.
3011 is_elf=no
3012 case "${target}" in
3013 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3014 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3015 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3016 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3017 case "${target}" in
3018 *-*-linux*aout* | *-*-linux*oldld*)
3019 ;;
3020 *)
3021 is_elf=yes
3022 ;;
3023 esac
3024 esac
3025
3026 if test "$is_elf" = "yes"; then
3027 # Check for target supported by gold.
3028 case "${target}" in
3029 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3030 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3031 configdirs="$configdirs gold"
3032 if test x${ENABLE_GOLD} = xdefault; then
3033 default_ld=gold
3034 fi
3035 ENABLE_GOLD=yes
3036 ;;
3037 esac
3038 fi
3039 ;;
3040 no)
3041 ;;
3042 *)
3043 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3044 ;;
3045 esac
3046
3047 # Check whether --enable-ld was given.
3048 if test "${enable_ld+set}" = set; then :
3049 enableval=$enable_ld; ENABLE_LD=$enableval
3050 else
3051 ENABLE_LD=yes
3052 fi
3053
3054
3055 case "${ENABLE_LD}" in
3056 default)
3057 if test x${default_ld} != x; then
3058 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3059 fi
3060 ;;
3061 yes)
3062 ;;
3063 no)
3064 if test x${ENABLE_GOLD} != xyes; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3066 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3067 fi
3068 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3069 ;;
3070 *)
3071 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3072 ;;
3073 esac
3074
3075 # PR gas/19109
3076 # Decide the default method for compressing debug sections.
3077 # Provide a configure time option to override our default.
3078 # Check whether --enable-compressed_debug_sections was given.
3079 if test "${enable_compressed_debug_sections+set}" = set; then :
3080 enableval=$enable_compressed_debug_sections;
3081 if test x"$enable_compressed_debug_sections" = xyes; then
3082 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3083 fi
3084
3085 else
3086 enable_compressed_debug_sections=
3087 fi
3088
3089
3090 # Configure extra directories which are host specific
3091
3092 case "${host}" in
3093 *-cygwin*)
3094 configdirs="$configdirs libtermcap" ;;
3095 esac
3096
3097 # A target can indicate whether a language isn't supported for some reason.
3098 # Only spaces may be used in this macro; not newlines or tabs.
3099 unsupported_languages=
3100
3101 # Remove more programs from consideration, based on the host or
3102 # target this usually means that a port of the program doesn't
3103 # exist yet.
3104
3105 case "${host}" in
3106 i[3456789]86-*-msdosdjgpp*)
3107 noconfigdirs="$noconfigdirs tcl tk itcl"
3108 ;;
3109 esac
3110
3111
3112 # Check whether --enable-libquadmath was given.
3113 if test "${enable_libquadmath+set}" = set; then :
3114 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3115 else
3116 ENABLE_LIBQUADMATH=yes
3117 fi
3118
3119 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3120 noconfigdirs="$noconfigdirs target-libquadmath"
3121 fi
3122
3123
3124 # Check whether --enable-libquadmath-support was given.
3125 if test "${enable_libquadmath_support+set}" = set; then :
3126 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3127 else
3128 ENABLE_LIBQUADMATH_SUPPORT=yes
3129 fi
3130
3131 enable_libquadmath_support=
3132 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3133 enable_libquadmath_support=no
3134 fi
3135
3136
3137 # Check whether --enable-libada was given.
3138 if test "${enable_libada+set}" = set; then :
3139 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3140 else
3141 ENABLE_LIBADA=yes
3142 fi
3143
3144 if test "${ENABLE_LIBADA}" != "yes" ; then
3145 noconfigdirs="$noconfigdirs gnattools"
3146 fi
3147
3148 # Check whether --enable-libssp was given.
3149 if test "${enable_libssp+set}" = set; then :
3150 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3151 else
3152 ENABLE_LIBSSP=yes
3153 fi
3154
3155
3156 # Check whether --enable-libstdcxx was given.
3157 if test "${enable_libstdcxx+set}" = set; then :
3158 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3159 else
3160 ENABLE_LIBSTDCXX=default
3161 fi
3162
3163 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3164 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3165 fi
3166
3167 # If this is accelerator compiler and its target is intelmic we enable
3168 # target liboffloadmic by default. If this is compiler with offloading
3169 # for intelmic we enable host liboffloadmic by default. Otherwise
3170 # liboffloadmic is disabled by default.
3171 # Check whether --enable-liboffloadmic was given.
3172 if test "${enable_liboffloadmic+set}" = set; then :
3173 enableval=$enable_liboffloadmic; case "$enableval" in
3174 no | host | target)
3175 enable_liboffloadmic=$enableval ;;
3176 *)
3177 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3178 esac
3179 else
3180 if test x"$enable_as_accelerator_for" != x; then
3181 case "${target}" in
3182 *-intelmic-* | *-intelmicemul-*)
3183 enable_liboffloadmic=target
3184 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3185 ;;
3186 *)
3187 enable_liboffloadmic=no
3188 ;;
3189 esac
3190 else
3191 case "${enable_offload_targets}" in
3192 *-intelmic-* | *-intelmicemul-*)
3193 enable_liboffloadmic=host
3194 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3195 ;;
3196 *)
3197 enable_liboffloadmic=no
3198 ;;
3199 esac
3200 fi
3201 fi
3202
3203
3204
3205 # Enable libgomp by default on hosted POSIX systems, and a few others.
3206 if test x$enable_libgomp = x ; then
3207 case "${target}" in
3208 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3209 ;;
3210 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3211 ;;
3212 *-*-solaris2* | *-*-hpux11*)
3213 ;;
3214 *-*-darwin* | *-*-aix*)
3215 ;;
3216 nvptx*-*-*)
3217 ;;
3218 *)
3219 noconfigdirs="$noconfigdirs target-libgomp"
3220 ;;
3221 esac
3222 fi
3223
3224 # Disable libatomic on unsupported systems.
3225 if test -d ${srcdir}/libatomic; then
3226 if test x$enable_libatomic = x; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3228 $as_echo_n "checking for libatomic support... " >&6; }
3229 if (srcdir=${srcdir}/libatomic; \
3230 . ${srcdir}/configure.tgt; \
3231 test -n "$UNSUPPORTED")
3232 then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 noconfigdirs="$noconfigdirs target-libatomic"
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3238 $as_echo "yes" >&6; }
3239 fi
3240 fi
3241 fi
3242
3243 # Disable liboffloadmic on unsupported systems.
3244 if test -d ${srcdir}/liboffloadmic; then
3245 if test x$enable_liboffloadmic != xno; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3247 $as_echo_n "checking for liboffloadmic support... " >&6; }
3248 if (srcdir=${srcdir}/liboffloadmic; \
3249 . ${srcdir}/configure.tgt; \
3250 test -n "$UNSUPPORTED")
3251 then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 noconfigdirs="$noconfigdirs target-liboffloadmic"
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257 $as_echo "yes" >&6; }
3258 fi
3259 fi
3260 fi
3261
3262 # Disable libitm on unsupported systems.
3263 if test -d ${srcdir}/libitm; then
3264 if test x$enable_libitm = x; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3266 $as_echo_n "checking for libitm support... " >&6; }
3267 if (srcdir=${srcdir}/libitm; \
3268 . ${srcdir}/configure.tgt; \
3269 test -n "$UNSUPPORTED")
3270 then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 noconfigdirs="$noconfigdirs target-libitm"
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276 $as_echo "yes" >&6; }
3277 fi
3278 fi
3279 fi
3280
3281 # Disable libsanitizer on unsupported systems.
3282 if test -d ${srcdir}/libsanitizer; then
3283 if test x$enable_libsanitizer = x; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3285 $as_echo_n "checking for libsanitizer support... " >&6; }
3286 if (srcdir=${srcdir}/libsanitizer; \
3287 . ${srcdir}/configure.tgt; \
3288 test -n "$UNSUPPORTED")
3289 then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 noconfigdirs="$noconfigdirs target-libsanitizer"
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295 $as_echo "yes" >&6; }
3296 fi
3297 fi
3298 fi
3299
3300 # Disable libvtv on unsupported systems.
3301 if test -d ${srcdir}/libvtv; then
3302 if test x$enable_libvtv = x; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3304 $as_echo_n "checking for libvtv support... " >&6; }
3305 if (srcdir=${srcdir}/libvtv; \
3306 . ${srcdir}/configure.tgt; \
3307 test "$VTV_SUPPORTED" != "yes")
3308 then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 noconfigdirs="$noconfigdirs target-libvtv"
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314 $as_echo "yes" >&6; }
3315 fi
3316 fi
3317 fi
3318
3319
3320 # Disable libhsail-rt on unsupported systems.
3321 if test -d ${srcdir}/libhsail-rt; then
3322 if test x$enable_libhsail_rt = x; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3324 $as_echo_n "checking for libhsail-rt support... " >&6; }
3325 if (srcdir=${srcdir}/libhsail-rt; \
3326 . ${srcdir}/configure.tgt; \
3327 test -n "$UNSUPPORTED")
3328 then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 unsupported_languages="$unsupported_languages brig"
3332 # This implicitly disables also target-libhsail-rt as it won't
3333 # get added to the build without BRIG FE.
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336 $as_echo "yes" >&6; }
3337 fi
3338 fi
3339 fi
3340
3341
3342 # Disable libquadmath for some systems.
3343 case "${target}" in
3344 avr-*-*)
3345 noconfigdirs="$noconfigdirs target-libquadmath"
3346 ;;
3347 # libquadmath is unused on AIX and libquadmath build process use of
3348 # LD_LIBRARY_PATH can break AIX bootstrap.
3349 powerpc-*-aix* | rs6000-*-aix*)
3350 noconfigdirs="$noconfigdirs target-libquadmath"
3351 ;;
3352 esac
3353
3354 # Disable libssp for some systems.
3355 case "${target}" in
3356 avr-*-*)
3357 # No hosted I/O support.
3358 noconfigdirs="$noconfigdirs target-libssp"
3359 ;;
3360 powerpc-*-aix* | rs6000-*-aix*)
3361 noconfigdirs="$noconfigdirs target-libssp"
3362 ;;
3363 rl78-*-*)
3364 # libssp uses a misaligned load to trigger a fault, but the RL78
3365 # doesn't fault for those - instead, it gives a build-time error
3366 # for explicit misaligned loads.
3367 noconfigdirs="$noconfigdirs target-libssp"
3368 ;;
3369 visium-*-*)
3370 # No hosted I/O support.
3371 noconfigdirs="$noconfigdirs target-libssp"
3372 ;;
3373 esac
3374
3375 # Disable libstdc++-v3 for some systems.
3376 # Allow user to override this if they pass --enable-libstdc++-v3
3377 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3378 case "${target}" in
3379 *-*-vxworks*)
3380 # VxWorks uses the Dinkumware C++ library.
3381 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3382 ;;
3383 arm*-wince-pe*)
3384 # the C++ libraries don't build on top of CE's C libraries
3385 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3386 ;;
3387 avr-*-*)
3388 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3389 ;;
3390 ft32-*-*)
3391 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3392 ;;
3393 esac
3394 fi
3395
3396 # Disable Fortran for some systems.
3397 case "${target}" in
3398 mmix-*-*)
3399 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3400 unsupported_languages="$unsupported_languages fortran"
3401 ;;
3402 esac
3403
3404 # Disable libffi for some systems.
3405 case "${target}" in
3406 powerpc-*-darwin*)
3407 ;;
3408 i[3456789]86-*-darwin*)
3409 ;;
3410 x86_64-*-darwin[912]*)
3411 ;;
3412 *-*-darwin*)
3413 noconfigdirs="$noconfigdirs target-libffi"
3414 ;;
3415 *-*-netware*)
3416 noconfigdirs="$noconfigdirs target-libffi"
3417 ;;
3418 *-*-phoenix*)
3419 noconfigdirs="$noconfigdirs target-libffi"
3420 ;;
3421 *-*-rtems*)
3422 noconfigdirs="$noconfigdirs target-libffi"
3423 ;;
3424 *-*-tpf*)
3425 noconfigdirs="$noconfigdirs target-libffi"
3426 ;;
3427 *-*-uclinux*)
3428 noconfigdirs="$noconfigdirs target-libffi"
3429 ;;
3430 *-*-vxworks*)
3431 noconfigdirs="$noconfigdirs target-libffi"
3432 ;;
3433 aarch64*-*-freebsd*)
3434 noconfigdirs="$noconfigdirs target-libffi"
3435 ;;
3436 alpha*-*-*vms*)
3437 noconfigdirs="$noconfigdirs target-libffi"
3438 ;;
3439 arm*-*-freebsd*)
3440 noconfigdirs="$noconfigdirs target-libffi"
3441 ;;
3442 arm-wince-pe)
3443 noconfigdirs="$noconfigdirs target-libffi"
3444 ;;
3445 cris-*-* | crisv32-*-*)
3446 case "${target}" in
3447 *-*-linux*)
3448 ;;
3449 *) # See PR46792 regarding target-libffi.
3450 noconfigdirs="$noconfigdirs target-libffi";;
3451 esac
3452 ;;
3453 hppa*64*-*-hpux*)
3454 noconfigdirs="$noconfigdirs target-libffi"
3455 ;;
3456 hppa*-hp-hpux11*)
3457 ;;
3458 hppa*-*-hpux*)
3459 noconfigdirs="$noconfigdirs target-libffi"
3460 ;;
3461 ia64*-*-*vms*)
3462 noconfigdirs="$noconfigdirs target-libffi"
3463 ;;
3464 i[3456789]86-w64-mingw*)
3465 noconfigdirs="$noconfigdirs target-libffi"
3466 ;;
3467 i[3456789]86-*-mingw*)
3468 noconfigdirs="$noconfigdirs target-libffi"
3469 ;;
3470 x86_64-*-mingw*)
3471 noconfigdirs="$noconfigdirs target-libffi"
3472 ;;
3473 mmix-*-*)
3474 noconfigdirs="$noconfigdirs target-libffi"
3475 ;;
3476 powerpc-*-aix*)
3477 ;;
3478 rs6000-*-aix*)
3479 ;;
3480 ft32-*-*)
3481 noconfigdirs="$noconfigdirs target-libffi"
3482 ;;
3483 *-*-lynxos*)
3484 noconfigdirs="$noconfigdirs target-libffi"
3485 ;;
3486 esac
3487
3488 # Disable the go frontend on systems where it is known to not work. Please keep
3489 # this in sync with contrib/config-list.mk.
3490 case "${target}" in
3491 *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3492 unsupported_languages="$unsupported_languages go"
3493 ;;
3494 esac
3495
3496 # Only allow gdbserver on some systems.
3497 if test -d ${srcdir}/gdbserver; then
3498 if test x$enable_gdbserver = x; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3500 $as_echo_n "checking for gdbserver support... " >&6; }
3501 if (srcdir=${srcdir}/gdbserver; \
3502 . ${srcdir}/configure.srv; \
3503 test -n "$UNSUPPORTED")
3504 then
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3507 noconfigdirs="$noconfigdirs gdbserver"
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3510 $as_echo "yes" >&6; }
3511 fi
3512 fi
3513 fi
3514
3515 # Disable libgo for some systems where it is known to not work.
3516 # For testing, you can easily override this with --enable-libgo.
3517 if test x$enable_libgo = x; then
3518 case "${target}" in
3519 *-*-darwin*)
3520 # PR 46986
3521 noconfigdirs="$noconfigdirs target-libgo"
3522 ;;
3523 *-*-cygwin* | *-*-mingw*)
3524 noconfigdirs="$noconfigdirs target-libgo"
3525 ;;
3526 esac
3527 fi
3528
3529 # Default libgloss CPU subdirectory.
3530 libgloss_dir="$target_cpu"
3531
3532 case "${target}" in
3533 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3534 libgloss_dir=wince
3535 ;;
3536 aarch64*-*-* )
3537 libgloss_dir=aarch64
3538 ;;
3539 arm*-*-*)
3540 libgloss_dir=arm
3541 ;;
3542 cris-*-* | crisv32-*-*)
3543 libgloss_dir=cris
3544 ;;
3545 hppa*-*-*)
3546 libgloss_dir=pa
3547 ;;
3548 i[3456789]86-*-*)
3549 libgloss_dir=i386
3550 ;;
3551 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3552 libgloss_dir=m68hc11
3553 ;;
3554 m68*-*-* | fido-*-*)
3555 libgloss_dir=m68k
3556 ;;
3557 mips*-*-*)
3558 libgloss_dir=mips
3559 ;;
3560 powerpc*-*-*)
3561 libgloss_dir=rs6000
3562 ;;
3563 sparc*-*-*)
3564 libgloss_dir=sparc
3565 ;;
3566 esac
3567
3568 # Disable newlib and libgloss for various target OSes.
3569 case "${target}" in
3570 alpha*-dec-osf*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 ;;
3573 i[3456789]86-*-linux*)
3574 # This section makes it possible to build newlib natively on linux.
3575 # If we are using a cross compiler then don't configure newlib.
3576 if test x${is_cross_compiler} != xno ; then
3577 noconfigdirs="$noconfigdirs target-newlib"
3578 fi
3579 noconfigdirs="$noconfigdirs target-libgloss"
3580 # If we are not using a cross compiler, do configure newlib.
3581 # Note however, that newlib will only be configured in this situation
3582 # if the --with-newlib option has been given, because otherwise
3583 # 'target-newlib' will appear in skipdirs.
3584 ;;
3585 i[3456789]86-*-rdos*)
3586 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3587 ;;
3588 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3589 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 ;;
3591 sparc-*-sunos4*)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 ;;
3594 *-*-aix*)
3595 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596 ;;
3597 *-*-beos*)
3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599 ;;
3600 *-*-chorusos)
3601 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3602 ;;
3603 *-*-dragonfly*)
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 ;;
3606 *-*-freebsd*)
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608 ;;
3609 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3610 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611 ;;
3612 *-*-lynxos*)
3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3614 ;;
3615 *-*-mingw*)
3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3617 ;;
3618 *-*-netbsd*)
3619 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620 ;;
3621 *-*-netware*)
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 ;;
3624 *-*-tpf*)
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626 ;;
3627 *-*-uclinux*)
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629 ;;
3630 *-*-vxworks*)
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632 ;;
3633 esac
3634
3635 case "${target}" in
3636 *-*-chorusos)
3637 ;;
3638 aarch64-*-darwin*)
3639 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3640 noconfigdirs="$noconfigdirs sim target-rda"
3641 ;;
3642 arm-*-darwin*)
3643 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3644 noconfigdirs="$noconfigdirs sim target-rda"
3645 ;;
3646 powerpc-*-darwin*)
3647 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3648 noconfigdirs="$noconfigdirs sim target-rda"
3649 ;;
3650 i[3456789]86-*-darwin*)
3651 noconfigdirs="$noconfigdirs ld gprof"
3652 noconfigdirs="$noconfigdirs sim target-rda"
3653 ;;
3654 x86_64-*-darwin[912]*)
3655 noconfigdirs="$noconfigdirs ld gas gprof"
3656 noconfigdirs="$noconfigdirs sim target-rda"
3657 ;;
3658 *-*-darwin*)
3659 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3660 noconfigdirs="$noconfigdirs sim target-rda"
3661 ;;
3662 *-*-dragonfly*)
3663 ;;
3664 *-*-freebsd*)
3665 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3666 && test -f /usr/local/include/gmp.h; then
3667 with_gmp=/usr/local
3668 fi
3669 ;;
3670 *-*-kaos*)
3671 # Remove unsupported stuff on all kaOS configurations.
3672 noconfigdirs="$noconfigdirs target-libgloss"
3673 ;;
3674 *-*-netbsd*)
3675 ;;
3676 *-*-netware*)
3677 ;;
3678 *-*-phoenix*)
3679 noconfigdirs="$noconfigdirs target-libgloss"
3680 ;;
3681 *-*-rtems*)
3682 noconfigdirs="$noconfigdirs target-libgloss"
3683 ;;
3684 # The tpf target doesn't support gdb yet.
3685 *-*-tpf*)
3686 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3687 ;;
3688 *-*-uclinux*)
3689 noconfigdirs="$noconfigdirs target-rda"
3690 ;;
3691 *-*-vxworks*)
3692 ;;
3693 alpha*-dec-osf*)
3694 # ld works, but does not support shared libraries.
3695 # gas doesn't generate exception information.
3696 noconfigdirs="$noconfigdirs gas ld"
3697 ;;
3698 alpha*-*-*vms*)
3699 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3700 ;;
3701 alpha*-*-*)
3702 # newlib is not 64 bit ready
3703 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 ;;
3705 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3706 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3707 ;;
3708 arc*-*-*)
3709 noconfigdirs="$noconfigdirs sim"
3710 ;;
3711 arm-*-pe*)
3712 noconfigdirs="$noconfigdirs target-libgloss"
3713 ;;
3714 arm-*-riscix*)
3715 noconfigdirs="$noconfigdirs ld target-libgloss"
3716 ;;
3717 avr-*-*)
3718 if test x${with_avrlibc} != xno; then
3719 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720 fi
3721 ;;
3722 c4x-*-* | tic4x-*-*)
3723 noconfigdirs="$noconfigdirs target-libgloss"
3724 ;;
3725 tic54x-*-*)
3726 noconfigdirs="$noconfigdirs target-libgloss gdb"
3727 ;;
3728 d10v-*-*)
3729 noconfigdirs="$noconfigdirs target-libgloss"
3730 ;;
3731 d30v-*-*)
3732 noconfigdirs="$noconfigdirs gdb"
3733 ;;
3734 fr30-*-elf*)
3735 noconfigdirs="$noconfigdirs gdb"
3736 ;;
3737 ft32-*-*)
3738 noconfigdirs="$noconfigdirs target-rda gprof"
3739 ;;
3740 moxie-*-*)
3741 noconfigdirs="$noconfigdirs"
3742 ;;
3743 h8300*-*-*)
3744 noconfigdirs="$noconfigdirs target-libgloss"
3745 ;;
3746 h8500-*-*)
3747 noconfigdirs="$noconfigdirs target-libgloss"
3748 ;;
3749 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3750 ;;
3751 hppa*64*-*-hpux*)
3752 noconfigdirs="$noconfigdirs gdb"
3753 ;;
3754 hppa*-*-hpux11*)
3755 noconfigdirs="$noconfigdirs gdb ld"
3756 ;;
3757 hppa*64*-*-linux*)
3758 ;;
3759 hppa*-*-linux*)
3760 ;;
3761 hppa*-*-*elf* | \
3762 hppa*-*-lites* | \
3763 hppa*-*-openbsd* | \
3764 hppa*64*-*-*)
3765 ;;
3766 hppa*-*-pro*)
3767 ;;
3768 hppa*-*-*)
3769 noconfigdirs="$noconfigdirs ld"
3770 ;;
3771 i960-*-*)
3772 noconfigdirs="$noconfigdirs gdb"
3773 ;;
3774 ia64*-*-elf*)
3775 # No gdb support yet.
3776 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3777 ;;
3778 ia64*-**-hpux*)
3779 # No ld support yet.
3780 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3781 ;;
3782 ia64*-*-*vms*)
3783 # No ld support yet.
3784 noconfigdirs="$noconfigdirs libgui itcl ld"
3785 ;;
3786 i[3456789]86-w64-mingw*)
3787 ;;
3788 i[3456789]86-*-mingw*)
3789 target_configdirs="$target_configdirs target-winsup"
3790 ;;
3791 *-*-cygwin*)
3792 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3793 noconfigdirs="$noconfigdirs target-libgloss"
3794 # always build newlib if winsup directory is present.
3795 if test -d "$srcdir/winsup/cygwin"; then
3796 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3797 elif test -d "$srcdir/newlib"; then
3798 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3799 fi
3800 ;;
3801 i[3456789]86-*-pe)
3802 noconfigdirs="$noconfigdirs target-libgloss"
3803 ;;
3804 i[3456789]86-*-sco3.2v5*)
3805 # The linker does not yet know about weak symbols in COFF,
3806 # and is not configured to handle mixed ELF and COFF.
3807 noconfigdirs="$noconfigdirs ld target-libgloss"
3808 ;;
3809 i[3456789]86-*-sco*)
3810 noconfigdirs="$noconfigdirs gprof target-libgloss"
3811 ;;
3812 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3813 noconfigdirs="$noconfigdirs target-libgloss"
3814 ;;
3815 i[3456789]86-*-sysv4*)
3816 noconfigdirs="$noconfigdirs target-libgloss"
3817 ;;
3818 i[3456789]86-*-beos*)
3819 noconfigdirs="$noconfigdirs gdb"
3820 ;;
3821 i[3456789]86-*-rdos*)
3822 noconfigdirs="$noconfigdirs gdb"
3823 ;;
3824 mmix-*-*)
3825 noconfigdirs="$noconfigdirs gdb"
3826 ;;
3827 mt-*-*)
3828 noconfigdirs="$noconfigdirs sim"
3829 ;;
3830 nfp-*-*)
3831 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3832 noconfigdirs="$noconfigdirs $target_libraries"
3833 ;;
3834 pdp11-*-*)
3835 noconfigdirs="$noconfigdirs gdb gprof"
3836 ;;
3837 powerpc-*-aix*)
3838 # copied from rs6000-*-* entry
3839 noconfigdirs="$noconfigdirs gprof"
3840 ;;
3841 powerpc*-*-winnt* | powerpc*-*-pe*)
3842 target_configdirs="$target_configdirs target-winsup"
3843 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3844 # always build newlib.
3845 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3846 ;;
3847 # This is temporary until we can link against shared libraries
3848 powerpcle-*-solaris*)
3849 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3850 ;;
3851 powerpc-*-beos*)
3852 noconfigdirs="$noconfigdirs gdb"
3853 ;;
3854 rs6000-*-lynxos*)
3855 noconfigdirs="$noconfigdirs gprof"
3856 ;;
3857 rs6000-*-aix*)
3858 noconfigdirs="$noconfigdirs gprof"
3859 ;;
3860 rs6000-*-*)
3861 noconfigdirs="$noconfigdirs gprof"
3862 ;;
3863 m68k-apollo-*)
3864 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3865 ;;
3866 microblaze*)
3867 noconfigdirs="$noconfigdirs gprof"
3868 ;;
3869 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3870 if test x$with_newlib = xyes; then
3871 noconfigdirs="$noconfigdirs gprof"
3872 fi
3873 ;;
3874 mips*-*-irix5*)
3875 noconfigdirs="$noconfigdirs gprof target-libgloss"
3876 ;;
3877 mips*-*-irix6*)
3878 noconfigdirs="$noconfigdirs gprof target-libgloss"
3879 ;;
3880 mips*-*-bsd*)
3881 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3882 ;;
3883 mips*-*-linux*)
3884 ;;
3885 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3886 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3887 noconfigdirs="$noconfigdirs ld gas gprof"
3888 ;;
3889 mips*-*-*)
3890 noconfigdirs="$noconfigdirs gprof"
3891 ;;
3892 nvptx*-*-*)
3893 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3894 ;;
3895 sh-*-*)
3896 case "${target}" in
3897 sh*-*-elf)
3898 ;;
3899 *)
3900 noconfigdirs="$noconfigdirs target-libgloss" ;;
3901 esac
3902 ;;
3903 sparc-*-sunos4*)
3904 if test x${is_cross_compiler} = xno ; then
3905 use_gnu_ld=no
3906 fi
3907 ;;
3908 tic6x-*-*)
3909 noconfigdirs="$noconfigdirs sim"
3910 ;;
3911 tilepro*-*-* | tilegx*-*-*)
3912 noconfigdirs="$noconfigdirs sim"
3913 ;;
3914 v810-*-*)
3915 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3916 ;;
3917 vax-*-*)
3918 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3919 ;;
3920 wasm32-*-*)
3921 noconfigdirs="$noconfigdirs ld"
3922 ;;
3923 esac
3924
3925 # If we aren't building newlib, then don't build libgloss, since libgloss
3926 # depends upon some newlib header files.
3927 case "${noconfigdirs}" in
3928 *target-libgloss*) ;;
3929 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3930 esac
3931
3932 # Work in distributions that contain no compiler tools, like Autoconf.
3933 host_makefile_frag=/dev/null
3934 if test -d ${srcdir}/config ; then
3935 case "${host}" in
3936 i[3456789]86-*-msdosdjgpp*)
3937 host_makefile_frag="config/mh-djgpp"
3938 ;;
3939 *-cygwin*)
3940
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3942 $as_echo_n "checking to see if cat works as expected... " >&6; }
3943 echo a >cygwin-cat-check
3944 if test `cat cygwin-cat-check` = a ; then
3945 rm cygwin-cat-check
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3947 $as_echo "yes" >&6; }
3948 else
3949 rm cygwin-cat-check
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3952 as_fn_error $? "The cat command does not ignore carriage return characters.
3953 Please either mount the build directory in binary mode or run the following
3954 commands before running any configure script:
3955 set -o igncr
3956 export SHELLOPTS
3957 " "$LINENO" 5
3958 fi
3959
3960 host_makefile_frag="config/mh-cygwin"
3961 ;;
3962 *-mingw*)
3963 host_makefile_frag="config/mh-mingw"
3964 ;;
3965 alpha*-linux*)
3966 host_makefile_frag="config/mh-alpha-linux"
3967 ;;
3968 hppa*-hp-hpux10*)
3969 host_makefile_frag="config/mh-pa-hpux10"
3970 ;;
3971 hppa*-hp-hpux*)
3972 host_makefile_frag="config/mh-pa"
3973 ;;
3974 hppa*-*)
3975 host_makefile_frag="config/mh-pa"
3976 ;;
3977 *-*-darwin*)
3978 host_makefile_frag="config/mh-darwin"
3979 ;;
3980 powerpc-*-aix*)
3981 host_makefile_frag="config/mh-ppc-aix"
3982 ;;
3983 rs6000-*-aix*)
3984 host_makefile_frag="config/mh-ppc-aix"
3985 ;;
3986 esac
3987 fi
3988
3989 if test "${build}" != "${host}" ; then
3990 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3991 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3992 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3993 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3994 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3995 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3996 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3997 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3998 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3999 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4000 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4001 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4002 else
4003 AR_FOR_BUILD="\$(AR)"
4004 AS_FOR_BUILD="\$(AS)"
4005 CC_FOR_BUILD="\$(CC)"
4006 CXX_FOR_BUILD="\$(CXX)"
4007 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4008 GOC_FOR_BUILD="\$(GOC)"
4009 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4010 LD_FOR_BUILD="\$(LD)"
4011 NM_FOR_BUILD="\$(NM)"
4012 RANLIB_FOR_BUILD="\$(RANLIB)"
4013 WINDRES_FOR_BUILD="\$(WINDRES)"
4014 WINDMC_FOR_BUILD="\$(WINDMC)"
4015 fi
4016
4017 ac_ext=c
4018 ac_cpp='$CPP $CPPFLAGS'
4019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022 if test -n "$ac_tool_prefix"; then
4023 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4024 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026 $as_echo_n "checking for $ac_word... " >&6; }
4027 if ${ac_cv_prog_CC+:} false; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 if test -n "$CC"; then
4031 ac_cv_prog_CC="$CC" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4035 do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4043 fi
4044 done
4045 done
4046 IFS=$as_save_IFS
4047
4048 fi
4049 fi
4050 CC=$ac_cv_prog_CC
4051 if test -n "$CC"; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4053 $as_echo "$CC" >&6; }
4054 else
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 $as_echo "no" >&6; }
4057 fi
4058
4059
4060 fi
4061 if test -z "$ac_cv_prog_CC"; then
4062 ac_ct_CC=$CC
4063 # Extract the first word of "gcc", so it can be a program name with args.
4064 set dummy gcc; ac_word=$2
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066 $as_echo_n "checking for $ac_word... " >&6; }
4067 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 if test -n "$ac_ct_CC"; then
4071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4072 else
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4075 do
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4080 ac_cv_prog_ac_ct_CC="gcc"
4081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 break 2
4083 fi
4084 done
4085 done
4086 IFS=$as_save_IFS
4087
4088 fi
4089 fi
4090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4091 if test -n "$ac_ct_CC"; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4093 $as_echo "$ac_ct_CC" >&6; }
4094 else
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 $as_echo "no" >&6; }
4097 fi
4098
4099 if test "x$ac_ct_CC" = x; then
4100 CC=""
4101 else
4102 case $cross_compiling:$ac_tool_warned in
4103 yes:)
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4106 ac_tool_warned=yes ;;
4107 esac
4108 CC=$ac_ct_CC
4109 fi
4110 else
4111 CC="$ac_cv_prog_CC"
4112 fi
4113
4114 if test -z "$CC"; then
4115 if test -n "$ac_tool_prefix"; then
4116 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4117 set dummy ${ac_tool_prefix}cc; ac_word=$2
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119 $as_echo_n "checking for $ac_word... " >&6; }
4120 if ${ac_cv_prog_CC+:} false; then :
4121 $as_echo_n "(cached) " >&6
4122 else
4123 if test -n "$CC"; then
4124 ac_cv_prog_CC="$CC" # Let the user override the test.
4125 else
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133 ac_cv_prog_CC="${ac_tool_prefix}cc"
4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 break 2
4136 fi
4137 done
4138 done
4139 IFS=$as_save_IFS
4140
4141 fi
4142 fi
4143 CC=$ac_cv_prog_CC
4144 if test -n "$CC"; then
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4146 $as_echo "$CC" >&6; }
4147 else
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149 $as_echo "no" >&6; }
4150 fi
4151
4152
4153 fi
4154 fi
4155 if test -z "$CC"; then
4156 # Extract the first word of "cc", so it can be a program name with args.
4157 set dummy cc; ac_word=$2
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159 $as_echo_n "checking for $ac_word... " >&6; }
4160 if ${ac_cv_prog_CC+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 if test -n "$CC"; then
4164 ac_cv_prog_CC="$CC" # Let the user override the test.
4165 else
4166 ac_prog_rejected=no
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4175 ac_prog_rejected=yes
4176 continue
4177 fi
4178 ac_cv_prog_CC="cc"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182 done
4183 done
4184 IFS=$as_save_IFS
4185
4186 if test $ac_prog_rejected = yes; then
4187 # We found a bogon in the path, so make sure we never use it.
4188 set dummy $ac_cv_prog_CC
4189 shift
4190 if test $# != 0; then
4191 # We chose a different compiler from the bogus one.
4192 # However, it has the same basename, so the bogon will be chosen
4193 # first if we set CC to just the basename; use the full file name.
4194 shift
4195 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4196 fi
4197 fi
4198 fi
4199 fi
4200 CC=$ac_cv_prog_CC
4201 if test -n "$CC"; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4203 $as_echo "$CC" >&6; }
4204 else
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 $as_echo "no" >&6; }
4207 fi
4208
4209
4210 fi
4211 if test -z "$CC"; then
4212 if test -n "$ac_tool_prefix"; then
4213 for ac_prog in cl.exe
4214 do
4215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if ${ac_cv_prog_CC+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221 else
4222 if test -n "$CC"; then
4223 ac_cv_prog_CC="$CC" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 break 2
4235 fi
4236 done
4237 done
4238 IFS=$as_save_IFS
4239
4240 fi
4241 fi
4242 CC=$ac_cv_prog_CC
4243 if test -n "$CC"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4245 $as_echo "$CC" >&6; }
4246 else
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4249 fi
4250
4251
4252 test -n "$CC" && break
4253 done
4254 fi
4255 if test -z "$CC"; then
4256 ac_ct_CC=$CC
4257 for ac_prog in cl.exe
4258 do
4259 # Extract the first word of "$ac_prog", so it can be a program name with args.
4260 set dummy $ac_prog; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 if test -n "$ac_ct_CC"; then
4267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4268 else
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4271 do
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4276 ac_cv_prog_ac_ct_CC="$ac_prog"
4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 break 2
4279 fi
4280 done
4281 done
4282 IFS=$as_save_IFS
4283
4284 fi
4285 fi
4286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4287 if test -n "$ac_ct_CC"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4289 $as_echo "$ac_ct_CC" >&6; }
4290 else
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4293 fi
4294
4295
4296 test -n "$ac_ct_CC" && break
4297 done
4298
4299 if test "x$ac_ct_CC" = x; then
4300 CC=""
4301 else
4302 case $cross_compiling:$ac_tool_warned in
4303 yes:)
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4306 ac_tool_warned=yes ;;
4307 esac
4308 CC=$ac_ct_CC
4309 fi
4310 fi
4311
4312 fi
4313
4314
4315 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4317 as_fn_error $? "no acceptable C compiler found in \$PATH
4318 See \`config.log' for more details" "$LINENO" 5; }
4319
4320 # Provide some information about the compiler.
4321 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4322 set X $ac_compile
4323 ac_compiler=$2
4324 for ac_option in --version -v -V -qversion; do
4325 { { ac_try="$ac_compiler $ac_option >&5"
4326 case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329 esac
4330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331 $as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4333 ac_status=$?
4334 if test -s conftest.err; then
4335 sed '10a\
4336 ... rest of stderr output deleted ...
4337 10q' conftest.err >conftest.er1
4338 cat conftest.er1 >&5
4339 fi
4340 rm -f conftest.er1 conftest.err
4341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4342 test $ac_status = 0; }
4343 done
4344
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4347
4348 int
4349 main ()
4350 {
4351
4352 ;
4353 return 0;
4354 }
4355 _ACEOF
4356 ac_clean_files_save=$ac_clean_files
4357 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4358 # Try to create an executable without -o first, disregard a.out.
4359 # It will help us diagnose broken compilers, and finding out an intuition
4360 # of exeext.
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4362 $as_echo_n "checking whether the C compiler works... " >&6; }
4363 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4364
4365 # The possible output files:
4366 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4367
4368 ac_rmfiles=
4369 for ac_file in $ac_files
4370 do
4371 case $ac_file in
4372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4373 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4374 esac
4375 done
4376 rm -f $ac_rmfiles
4377
4378 if { { ac_try="$ac_link_default"
4379 case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382 esac
4383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384 $as_echo "$ac_try_echo"; } >&5
4385 (eval "$ac_link_default") 2>&5
4386 ac_status=$?
4387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388 test $ac_status = 0; }; then :
4389 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4390 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4391 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4392 # so that the user can short-circuit this test for compilers unknown to
4393 # Autoconf.
4394 for ac_file in $ac_files ''
4395 do
4396 test -f "$ac_file" || continue
4397 case $ac_file in
4398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4399 ;;
4400 [ab].out )
4401 # We found the default executable, but exeext='' is most
4402 # certainly right.
4403 break;;
4404 *.* )
4405 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4406 then :; else
4407 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4408 fi
4409 # We set ac_cv_exeext here because the later test for it is not
4410 # safe: cross compilers may not add the suffix if given an `-o'
4411 # argument, so we may need to know it at that point already.
4412 # Even if this section looks crufty: it has the advantage of
4413 # actually working.
4414 break;;
4415 * )
4416 break;;
4417 esac
4418 done
4419 test "$ac_cv_exeext" = no && ac_cv_exeext=
4420
4421 else
4422 ac_file=''
4423 fi
4424 if test -z "$ac_file"; then :
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427 $as_echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4429
4430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4432 as_fn_error 77 "C compiler cannot create executables
4433 See \`config.log' for more details" "$LINENO" 5; }
4434 else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4436 $as_echo "yes" >&6; }
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4439 $as_echo_n "checking for C compiler default output file name... " >&6; }
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4441 $as_echo "$ac_file" >&6; }
4442 ac_exeext=$ac_cv_exeext
4443
4444 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4445 ac_clean_files=$ac_clean_files_save
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4447 $as_echo_n "checking for suffix of executables... " >&6; }
4448 if { { ac_try="$ac_link"
4449 case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4452 esac
4453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4454 $as_echo "$ac_try_echo"; } >&5
4455 (eval "$ac_link") 2>&5
4456 ac_status=$?
4457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; }; then :
4459 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4460 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4461 # work properly (i.e., refer to `conftest.exe'), while it won't with
4462 # `rm'.
4463 for ac_file in conftest.exe conftest conftest.*; do
4464 test -f "$ac_file" || continue
4465 case $ac_file in
4466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4467 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4468 break;;
4469 * ) break;;
4470 esac
4471 done
4472 else
4473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4475 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4476 See \`config.log' for more details" "$LINENO" 5; }
4477 fi
4478 rm -f conftest conftest$ac_cv_exeext
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4480 $as_echo "$ac_cv_exeext" >&6; }
4481
4482 rm -f conftest.$ac_ext
4483 EXEEXT=$ac_cv_exeext
4484 ac_exeext=$EXEEXT
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487 #include <stdio.h>
4488 int
4489 main ()
4490 {
4491 FILE *f = fopen ("conftest.out", "w");
4492 return ferror (f) || fclose (f) != 0;
4493
4494 ;
4495 return 0;
4496 }
4497 _ACEOF
4498 ac_clean_files="$ac_clean_files conftest.out"
4499 # Check that the compiler produces executables we can run. If not, either
4500 # the compiler is broken, or we cross compile.
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4502 $as_echo_n "checking whether we are cross compiling... " >&6; }
4503 if test "$cross_compiling" != yes; then
4504 { { ac_try="$ac_link"
4505 case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508 esac
4509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4510 $as_echo "$ac_try_echo"; } >&5
4511 (eval "$ac_link") 2>&5
4512 ac_status=$?
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }
4515 if { ac_try='./conftest$ac_cv_exeext'
4516 { { case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4519 esac
4520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4521 $as_echo "$ac_try_echo"; } >&5
4522 (eval "$ac_try") 2>&5
4523 ac_status=$?
4524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4525 test $ac_status = 0; }; }; then
4526 cross_compiling=no
4527 else
4528 if test "$cross_compiling" = maybe; then
4529 cross_compiling=yes
4530 else
4531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4533 as_fn_error $? "cannot run C compiled programs.
4534 If you meant to cross compile, use \`--host'.
4535 See \`config.log' for more details" "$LINENO" 5; }
4536 fi
4537 fi
4538 fi
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4540 $as_echo "$cross_compiling" >&6; }
4541
4542 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4543 ac_clean_files=$ac_clean_files_save
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4545 $as_echo_n "checking for suffix of object files... " >&6; }
4546 if ${ac_cv_objext+:} false; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4551
4552 int
4553 main ()
4554 {
4555
4556 ;
4557 return 0;
4558 }
4559 _ACEOF
4560 rm -f conftest.o conftest.obj
4561 if { { ac_try="$ac_compile"
4562 case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4565 esac
4566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4567 $as_echo "$ac_try_echo"; } >&5
4568 (eval "$ac_compile") 2>&5
4569 ac_status=$?
4570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4571 test $ac_status = 0; }; then :
4572 for ac_file in conftest.o conftest.obj conftest.*; do
4573 test -f "$ac_file" || continue;
4574 case $ac_file in
4575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4576 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4577 break;;
4578 esac
4579 done
4580 else
4581 $as_echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4583
4584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4586 as_fn_error $? "cannot compute suffix of object files: cannot compile
4587 See \`config.log' for more details" "$LINENO" 5; }
4588 fi
4589 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4590 fi
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4592 $as_echo "$ac_cv_objext" >&6; }
4593 OBJEXT=$ac_cv_objext
4594 ac_objext=$OBJEXT
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4596 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4597 if ${ac_cv_c_compiler_gnu+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602
4603 int
4604 main ()
4605 {
4606 #ifndef __GNUC__
4607 choke me
4608 #endif
4609
4610 ;
4611 return 0;
4612 }
4613 _ACEOF
4614 if ac_fn_c_try_compile "$LINENO"; then :
4615 ac_compiler_gnu=yes
4616 else
4617 ac_compiler_gnu=no
4618 fi
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4621
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4624 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4625 if test $ac_compiler_gnu = yes; then
4626 GCC=yes
4627 else
4628 GCC=
4629 fi
4630 ac_test_CFLAGS=${CFLAGS+set}
4631 ac_save_CFLAGS=$CFLAGS
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4633 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4634 if ${ac_cv_prog_cc_g+:} false; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 ac_save_c_werror_flag=$ac_c_werror_flag
4638 ac_c_werror_flag=yes
4639 ac_cv_prog_cc_g=no
4640 CFLAGS="-g"
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643
4644 int
4645 main ()
4646 {
4647
4648 ;
4649 return 0;
4650 }
4651 _ACEOF
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_cv_prog_cc_g=yes
4654 else
4655 CFLAGS=""
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658
4659 int
4660 main ()
4661 {
4662
4663 ;
4664 return 0;
4665 }
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"; then :
4668
4669 else
4670 ac_c_werror_flag=$ac_save_c_werror_flag
4671 CFLAGS="-g"
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4674
4675 int
4676 main ()
4677 {
4678
4679 ;
4680 return 0;
4681 }
4682 _ACEOF
4683 if ac_fn_c_try_compile "$LINENO"; then :
4684 ac_cv_prog_cc_g=yes
4685 fi
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687 fi
4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_c_werror_flag=$ac_save_c_werror_flag
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4694 $as_echo "$ac_cv_prog_cc_g" >&6; }
4695 if test "$ac_test_CFLAGS" = set; then
4696 CFLAGS=$ac_save_CFLAGS
4697 elif test $ac_cv_prog_cc_g = yes; then
4698 if test "$GCC" = yes; then
4699 CFLAGS="-g -O2"
4700 else
4701 CFLAGS="-g"
4702 fi
4703 else
4704 if test "$GCC" = yes; then
4705 CFLAGS="-O2"
4706 else
4707 CFLAGS=
4708 fi
4709 fi
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4711 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4712 if ${ac_cv_prog_cc_c89+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 ac_cv_prog_cc_c89=no
4716 ac_save_CC=$CC
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4719 #include <stdarg.h>
4720 #include <stdio.h>
4721 struct stat;
4722 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4723 struct buf { int x; };
4724 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4725 static char *e (p, i)
4726 char **p;
4727 int i;
4728 {
4729 return p[i];
4730 }
4731 static char *f (char * (*g) (char **, int), char **p, ...)
4732 {
4733 char *s;
4734 va_list v;
4735 va_start (v,p);
4736 s = g (p, va_arg (v,int));
4737 va_end (v);
4738 return s;
4739 }
4740
4741 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4742 function prototypes and stuff, but not '\xHH' hex character constants.
4743 These don't provoke an error unfortunately, instead are silently treated
4744 as 'x'. The following induces an error, until -std is added to get
4745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4746 array size at least. It's necessary to write '\x00'==0 to get something
4747 that's true only with -std. */
4748 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4749
4750 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4751 inside strings and character constants. */
4752 #define FOO(x) 'x'
4753 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4754
4755 int test (int i, double x);
4756 struct s1 {int (*f) (int a);};
4757 struct s2 {int (*f) (double a);};
4758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4759 int argc;
4760 char **argv;
4761 int
4762 main ()
4763 {
4764 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4765 ;
4766 return 0;
4767 }
4768 _ACEOF
4769 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4770 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4771 do
4772 CC="$ac_save_CC $ac_arg"
4773 if ac_fn_c_try_compile "$LINENO"; then :
4774 ac_cv_prog_cc_c89=$ac_arg
4775 fi
4776 rm -f core conftest.err conftest.$ac_objext
4777 test "x$ac_cv_prog_cc_c89" != "xno" && break
4778 done
4779 rm -f conftest.$ac_ext
4780 CC=$ac_save_CC
4781
4782 fi
4783 # AC_CACHE_VAL
4784 case "x$ac_cv_prog_cc_c89" in
4785 x)
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4787 $as_echo "none needed" >&6; } ;;
4788 xno)
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4790 $as_echo "unsupported" >&6; } ;;
4791 *)
4792 CC="$CC $ac_cv_prog_cc_c89"
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4794 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4795 esac
4796 if test "x$ac_cv_prog_cc_c89" != xno; then :
4797
4798 fi
4799
4800 ac_ext=c
4801 ac_cpp='$CPP $CPPFLAGS'
4802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4807 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4808 if ${ac_cv_prog_cc_c99+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 ac_cv_prog_cc_c99=no
4812 ac_save_CC=$CC
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4815 #include <stdarg.h>
4816 #include <stdbool.h>
4817 #include <stdlib.h>
4818 #include <wchar.h>
4819 #include <stdio.h>
4820
4821 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4822 #define debug(...) fprintf (stderr, __VA_ARGS__)
4823 #define showlist(...) puts (#__VA_ARGS__)
4824 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4825 static void
4826 test_varargs_macros (void)
4827 {
4828 int x = 1234;
4829 int y = 5678;
4830 debug ("Flag");
4831 debug ("X = %d\n", x);
4832 showlist (The first, second, and third items.);
4833 report (x>y, "x is %d but y is %d", x, y);
4834 }
4835
4836 // Check long long types.
4837 #define BIG64 18446744073709551615ull
4838 #define BIG32 4294967295ul
4839 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4840 #if !BIG_OK
4841 your preprocessor is broken;
4842 #endif
4843 #if BIG_OK
4844 #else
4845 your preprocessor is broken;
4846 #endif
4847 static long long int bignum = -9223372036854775807LL;
4848 static unsigned long long int ubignum = BIG64;
4849
4850 struct incomplete_array
4851 {
4852 int datasize;
4853 double data[];
4854 };
4855
4856 struct named_init {
4857 int number;
4858 const wchar_t *name;
4859 double average;
4860 };
4861
4862 typedef const char *ccp;
4863
4864 static inline int
4865 test_restrict (ccp restrict text)
4866 {
4867 // See if C++-style comments work.
4868 // Iterate through items via the restricted pointer.
4869 // Also check for declarations in for loops.
4870 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4871 continue;
4872 return 0;
4873 }
4874
4875 // Check varargs and va_copy.
4876 static void
4877 test_varargs (const char *format, ...)
4878 {
4879 va_list args;
4880 va_start (args, format);
4881 va_list args_copy;
4882 va_copy (args_copy, args);
4883
4884 const char *str;
4885 int number;
4886 float fnumber;
4887
4888 while (*format)
4889 {
4890 switch (*format++)
4891 {
4892 case 's': // string
4893 str = va_arg (args_copy, const char *);
4894 break;
4895 case 'd': // int
4896 number = va_arg (args_copy, int);
4897 break;
4898 case 'f': // float
4899 fnumber = va_arg (args_copy, double);
4900 break;
4901 default:
4902 break;
4903 }
4904 }
4905 va_end (args_copy);
4906 va_end (args);
4907 }
4908
4909 int
4910 main ()
4911 {
4912
4913 // Check bool.
4914 _Bool success = false;
4915
4916 // Check restrict.
4917 if (test_restrict ("String literal") == 0)
4918 success = true;
4919 char *restrict newvar = "Another string";
4920
4921 // Check varargs.
4922 test_varargs ("s, d' f .", "string", 65, 34.234);
4923 test_varargs_macros ();
4924
4925 // Check flexible array members.
4926 struct incomplete_array *ia =
4927 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4928 ia->datasize = 10;
4929 for (int i = 0; i < ia->datasize; ++i)
4930 ia->data[i] = i * 1.234;
4931
4932 // Check named initializers.
4933 struct named_init ni = {
4934 .number = 34,
4935 .name = L"Test wide string",
4936 .average = 543.34343,
4937 };
4938
4939 ni.number = 58;
4940
4941 int dynamic_array[ni.number];
4942 dynamic_array[ni.number - 1] = 543;
4943
4944 // work around unused variable warnings
4945 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4946 || dynamic_array[ni.number - 1] != 543);
4947
4948 ;
4949 return 0;
4950 }
4951 _ACEOF
4952 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4953 do
4954 CC="$ac_save_CC $ac_arg"
4955 if ac_fn_c_try_compile "$LINENO"; then :
4956 ac_cv_prog_cc_c99=$ac_arg
4957 fi
4958 rm -f core conftest.err conftest.$ac_objext
4959 test "x$ac_cv_prog_cc_c99" != "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_c99" 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_c99"
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4976 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4977 esac
4978 if test "x$ac_cv_prog_cc_c99" != xno; then :
4979
4980 fi
4981
4982
4983 ac_ext=cpp
4984 ac_cpp='$CXXCPP $CPPFLAGS'
4985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4988 if test -z "$CXX"; then
4989 if test -n "$CCC"; then
4990 CXX=$CCC
4991 else
4992 if test -n "$ac_tool_prefix"; then
4993 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4994 do
4995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4996 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if ${ac_cv_prog_CXX+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 if test -n "$CXX"; then
5003 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5004 else
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5007 do
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 break 2
5015 fi
5016 done
5017 done
5018 IFS=$as_save_IFS
5019
5020 fi
5021 fi
5022 CXX=$ac_cv_prog_CXX
5023 if test -n "$CXX"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5025 $as_echo "$CXX" >&6; }
5026 else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5029 fi
5030
5031
5032 test -n "$CXX" && break
5033 done
5034 fi
5035 if test -z "$CXX"; then
5036 ac_ct_CXX=$CXX
5037 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5038 do
5039 # Extract the first word of "$ac_prog", so it can be a program name with args.
5040 set dummy $ac_prog; ac_word=$2
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$ac_ct_CXX"; then
5047 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5056 ac_cv_prog_ac_ct_CXX="$ac_prog"
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5059 fi
5060 done
5061 done
5062 IFS=$as_save_IFS
5063
5064 fi
5065 fi
5066 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5067 if test -n "$ac_ct_CXX"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5069 $as_echo "$ac_ct_CXX" >&6; }
5070 else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5073 fi
5074
5075
5076 test -n "$ac_ct_CXX" && break
5077 done
5078
5079 if test "x$ac_ct_CXX" = x; then
5080 CXX="g++"
5081 else
5082 case $cross_compiling:$ac_tool_warned in
5083 yes:)
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5086 ac_tool_warned=yes ;;
5087 esac
5088 CXX=$ac_ct_CXX
5089 fi
5090 fi
5091
5092 fi
5093 fi
5094 # Provide some information about the compiler.
5095 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5096 set X $ac_compile
5097 ac_compiler=$2
5098 for ac_option in --version -v -V -qversion; do
5099 { { ac_try="$ac_compiler $ac_option >&5"
5100 case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103 esac
5104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5105 $as_echo "$ac_try_echo"; } >&5
5106 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5107 ac_status=$?
5108 if test -s conftest.err; then
5109 sed '10a\
5110 ... rest of stderr output deleted ...
5111 10q' conftest.err >conftest.er1
5112 cat conftest.er1 >&5
5113 fi
5114 rm -f conftest.er1 conftest.err
5115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5116 test $ac_status = 0; }
5117 done
5118
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5120 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5121 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5126
5127 int
5128 main ()
5129 {
5130 #ifndef __GNUC__
5131 choke me
5132 #endif
5133
5134 ;
5135 return 0;
5136 }
5137 _ACEOF
5138 if ac_fn_cxx_try_compile "$LINENO"; then :
5139 ac_compiler_gnu=yes
5140 else
5141 ac_compiler_gnu=no
5142 fi
5143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5145
5146 fi
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5148 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5149 if test $ac_compiler_gnu = yes; then
5150 GXX=yes
5151 else
5152 GXX=
5153 fi
5154 ac_test_CXXFLAGS=${CXXFLAGS+set}
5155 ac_save_CXXFLAGS=$CXXFLAGS
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5157 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5158 if ${ac_cv_prog_cxx_g+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5162 ac_cxx_werror_flag=yes
5163 ac_cv_prog_cxx_g=no
5164 CXXFLAGS="-g"
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5167
5168 int
5169 main ()
5170 {
5171
5172 ;
5173 return 0;
5174 }
5175 _ACEOF
5176 if ac_fn_cxx_try_compile "$LINENO"; then :
5177 ac_cv_prog_cxx_g=yes
5178 else
5179 CXXFLAGS=""
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5182
5183 int
5184 main ()
5185 {
5186
5187 ;
5188 return 0;
5189 }
5190 _ACEOF
5191 if ac_fn_cxx_try_compile "$LINENO"; then :
5192
5193 else
5194 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5195 CXXFLAGS="-g"
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198
5199 int
5200 main ()
5201 {
5202
5203 ;
5204 return 0;
5205 }
5206 _ACEOF
5207 if ac_fn_cxx_try_compile "$LINENO"; then :
5208 ac_cv_prog_cxx_g=yes
5209 fi
5210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211 fi
5212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213 fi
5214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5215 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5216 fi
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5218 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5219 if test "$ac_test_CXXFLAGS" = set; then
5220 CXXFLAGS=$ac_save_CXXFLAGS
5221 elif test $ac_cv_prog_cxx_g = yes; then
5222 if test "$GXX" = yes; then
5223 CXXFLAGS="-g -O2"
5224 else
5225 CXXFLAGS="-g"
5226 fi
5227 else
5228 if test "$GXX" = yes; then
5229 CXXFLAGS="-O2"
5230 else
5231 CXXFLAGS=
5232 fi
5233 fi
5234 ac_ext=c
5235 ac_cpp='$CPP $CPPFLAGS'
5236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239
5240
5241 # We must set the default linker to the linker used by gcc for the correct
5242 # operation of libtool. If LD is not defined and we are using gcc, try to
5243 # set the LD default to the ld used by gcc.
5244 if test -z "$LD"; then
5245 if test "$GCC" = yes; then
5246 case $build in
5247 *-*-mingw*)
5248 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5249 *)
5250 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5251 esac
5252 case $gcc_prog_ld in
5253 # Accept absolute paths.
5254 [\\/]* | [A-Za-z]:[\\/]*)
5255 LD="$gcc_prog_ld" ;;
5256 esac
5257 fi
5258 fi
5259
5260 # Check whether -static-libstdc++ -static-libgcc is supported.
5261 have_static_libs=no
5262 if test "$GCC" = yes; then
5263 saved_LDFLAGS="$LDFLAGS"
5264
5265 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5267 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5268 ac_ext=cpp
5269 ac_cpp='$CXXCPP $CPPFLAGS'
5270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5273
5274
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277
5278 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5279 #error -static-libstdc++ not implemented
5280 #endif
5281 int main() {}
5282 _ACEOF
5283 if ac_fn_cxx_try_link "$LINENO"; then :
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5285 $as_echo "yes" >&6; }; have_static_libs=yes
5286 else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5289 fi
5290 rm -f core conftest.err conftest.$ac_objext \
5291 conftest$ac_exeext conftest.$ac_ext
5292 ac_ext=c
5293 ac_cpp='$CPP $CPPFLAGS'
5294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5297
5298
5299 LDFLAGS="$saved_LDFLAGS"
5300 fi
5301
5302
5303
5304
5305 if test -n "$ac_tool_prefix"; then
5306 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5307 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if ${ac_cv_prog_GNATBIND+:} false; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 if test -n "$GNATBIND"; then
5314 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5315 else
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH
5318 do
5319 IFS=$as_save_IFS
5320 test -z "$as_dir" && as_dir=.
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 break 2
5326 fi
5327 done
5328 done
5329 IFS=$as_save_IFS
5330
5331 fi
5332 fi
5333 GNATBIND=$ac_cv_prog_GNATBIND
5334 if test -n "$GNATBIND"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5336 $as_echo "$GNATBIND" >&6; }
5337 else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5340 fi
5341
5342
5343 fi
5344 if test -z "$ac_cv_prog_GNATBIND"; then
5345 ac_ct_GNATBIND=$GNATBIND
5346 # Extract the first word of "gnatbind", so it can be a program name with args.
5347 set dummy gnatbind; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 if test -n "$ac_ct_GNATBIND"; then
5354 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5355 else
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5358 do
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5366 fi
5367 done
5368 done
5369 IFS=$as_save_IFS
5370
5371 fi
5372 fi
5373 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5374 if test -n "$ac_ct_GNATBIND"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5376 $as_echo "$ac_ct_GNATBIND" >&6; }
5377 else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5380 fi
5381
5382 if test "x$ac_ct_GNATBIND" = x; then
5383 GNATBIND="no"
5384 else
5385 case $cross_compiling:$ac_tool_warned in
5386 yes:)
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5389 ac_tool_warned=yes ;;
5390 esac
5391 GNATBIND=$ac_ct_GNATBIND
5392 fi
5393 else
5394 GNATBIND="$ac_cv_prog_GNATBIND"
5395 fi
5396
5397 if test -n "$ac_tool_prefix"; then
5398 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5399 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if ${ac_cv_prog_GNATMAKE+:} false; then :
5403 $as_echo_n "(cached) " >&6
5404 else
5405 if test -n "$GNATMAKE"; then
5406 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5407 else
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 for as_dir in $PATH
5410 do
5411 IFS=$as_save_IFS
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5415 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 break 2
5418 fi
5419 done
5420 done
5421 IFS=$as_save_IFS
5422
5423 fi
5424 fi
5425 GNATMAKE=$ac_cv_prog_GNATMAKE
5426 if test -n "$GNATMAKE"; then
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5428 $as_echo "$GNATMAKE" >&6; }
5429 else
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431 $as_echo "no" >&6; }
5432 fi
5433
5434
5435 fi
5436 if test -z "$ac_cv_prog_GNATMAKE"; then
5437 ac_ct_GNATMAKE=$GNATMAKE
5438 # Extract the first word of "gnatmake", so it can be a program name with args.
5439 set dummy gnatmake; ac_word=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 if test -n "$ac_ct_GNATMAKE"; then
5446 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5447 else
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 for as_dir in $PATH
5450 do
5451 IFS=$as_save_IFS
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5455 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 break 2
5458 fi
5459 done
5460 done
5461 IFS=$as_save_IFS
5462
5463 fi
5464 fi
5465 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5466 if test -n "$ac_ct_GNATMAKE"; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5468 $as_echo "$ac_ct_GNATMAKE" >&6; }
5469 else
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471 $as_echo "no" >&6; }
5472 fi
5473
5474 if test "x$ac_ct_GNATMAKE" = x; then
5475 GNATMAKE="no"
5476 else
5477 case $cross_compiling:$ac_tool_warned in
5478 yes:)
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5481 ac_tool_warned=yes ;;
5482 esac
5483 GNATMAKE=$ac_ct_GNATMAKE
5484 fi
5485 else
5486 GNATMAKE="$ac_cv_prog_GNATMAKE"
5487 fi
5488
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5490 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5491 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 cat >conftest.adb <<EOF
5495 procedure conftest is begin null; end conftest;
5496 EOF
5497 acx_cv_cc_gcc_supports_ada=no
5498 # There is a bug in old released versions of GCC which causes the
5499 # driver to exit successfully when the appropriate language module
5500 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5501 # Therefore we must check for the error message as well as an
5502 # unsuccessful exit.
5503 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5504 # given a .adb file, but produce no object file. So we must check
5505 # if an object file was really produced to guard against this.
5506 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5507 if test x"$errors" = x && test -f conftest.$ac_objext; then
5508 acx_cv_cc_gcc_supports_ada=yes
5509 fi
5510 rm -f conftest.*
5511 fi
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5513 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5514
5515 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5516 have_gnat=yes
5517 else
5518 have_gnat=no
5519 fi
5520
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5522 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5523 if ${gcc_cv_prog_cmp_skip+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 echo abfoo >t1
5527 echo cdfoo >t2
5528 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5529 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5530 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5531 :
5532 else
5533 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5534 fi
5535 fi
5536 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5537 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5538 :
5539 else
5540 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5541 fi
5542 fi
5543 rm t1 t2
5544
5545 fi
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5547 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5548 do_compare="$gcc_cv_prog_cmp_skip"
5549
5550
5551
5552 # Check whether --enable-bootstrap was given.
5553 if test "${enable_bootstrap+set}" = set; then :
5554 enableval=$enable_bootstrap;
5555 else
5556 enable_bootstrap=default
5557 fi
5558
5559
5560 # Issue errors and warnings for invalid/strange bootstrap combinations.
5561 if test -r $srcdir/gcc/configure; then
5562 have_compiler=yes
5563 else
5564 have_compiler=no
5565 fi
5566
5567 case "$have_compiler:$host:$target:$enable_bootstrap" in
5568 *:*:*:no) ;;
5569
5570 # Default behavior. Enable bootstrap if we have a compiler
5571 # and we are in a native configuration.
5572 yes:$build:$build:default)
5573 enable_bootstrap=yes ;;
5574
5575 *:*:*:default)
5576 enable_bootstrap=no ;;
5577
5578 # We have a compiler and we are in a native configuration, bootstrap is ok
5579 yes:$build:$build:yes)
5580 ;;
5581
5582 # Other configurations, but we have a compiler. Assume the user knows
5583 # what he's doing.
5584 yes:*:*:yes)
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5586 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5587 ;;
5588
5589 # No compiler: if they passed --enable-bootstrap explicitly, fail
5590 no:*:*:yes)
5591 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5592
5593 # Fail if wrong command line
5594 *)
5595 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5596 ;;
5597 esac
5598
5599 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5600 # C++98 compiler can still start the bootstrap.
5601 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5602 CXX="$CXX -std=gnu++98"
5603 fi
5604
5605 # Check whether --enable-pgo-build was given.
5606 if test "${enable_pgo_build+set}" = set; then :
5607 enableval=$enable_pgo_build; enable_pgo_build=$enableval
5608 else
5609 enable_pgo_build=no
5610 fi
5611
5612
5613 # Issue errors and warnings for invalid/strange PGO build combinations.
5614 case "$have_compiler:$host:$target:$enable_pgo_build" in
5615 *:*:*:no) ;;
5616
5617 # Allow the PGO build only if we aren't building a compiler and
5618 # we are in a native configuration.
5619 no:$build:$build:yes | no:$build:$build:lto) ;;
5620
5621 # Disallow the PGO bootstrap if we are building a compiler.
5622 yes:*:*:yes | yes:*:*:lto)
5623 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
5624
5625 *)
5626 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
5627 ;;
5628 esac
5629
5630 if test "$enable_pgo_build" != "no"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
5632 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
5633 old_CFLAGS="$CFLAGS"
5634 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
5635 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
5636
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639 int foo;
5640 _ACEOF
5641 if ac_fn_c_try_compile "$LINENO"; then :
5642
5643 else
5644 PGO_BUILD_GEN_CFLAGS=
5645 fi
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 CFLAGS="$old_CFLAGS"
5648 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5650 $as_echo "yes" >&6; }
5651 PGO_BUILD_USE_CFLAGS="-fprofile-use"
5652 else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5655 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
5656 fi
5657
5658 if test "$enable_pgo_build" = "lto"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
5660 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
5661 old_CFLAGS="$CFLAGS"
5662 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
5663 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5666 int foo;
5667 _ACEOF
5668 if ac_fn_c_try_compile "$LINENO"; then :
5669
5670 else
5671 PGO_BUILD_LTO_CFLAGS=
5672 fi
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 CFLAGS="$old_CFLAGS"
5675 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5677 $as_echo "yes" >&6; }
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
5682 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
5683 fi
5684 fi
5685 fi
5686
5687
5688
5689
5690 # Used for setting $lt_cv_objdir
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5692 $as_echo_n "checking for objdir... " >&6; }
5693 if ${lt_cv_objdir+:} false; then :
5694 $as_echo_n "(cached) " >&6
5695 else
5696 rm -f .libs 2>/dev/null
5697 mkdir .libs 2>/dev/null
5698 if test -d .libs; then
5699 lt_cv_objdir=.libs
5700 else
5701 # MS-DOS does not allow filenames that begin with a dot.
5702 lt_cv_objdir=_libs
5703 fi
5704 rmdir .libs 2>/dev/null
5705 fi
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5707 $as_echo "$lt_cv_objdir" >&6; }
5708 objdir=$lt_cv_objdir
5709
5710
5711
5712
5713
5714 cat >>confdefs.h <<_ACEOF
5715 #define LT_OBJDIR "$lt_cv_objdir/"
5716 _ACEOF
5717
5718
5719
5720 # Check for GMP, MPFR and MPC
5721 gmplibs="-lmpc -lmpfr -lgmp"
5722 gmpinc=
5723 have_gmp=no
5724
5725 # Specify a location for mpc
5726 # check for this first so it ends up on the link line before mpfr.
5727
5728 # Check whether --with-mpc was given.
5729 if test "${with_mpc+set}" = set; then :
5730 withval=$with_mpc;
5731 fi
5732
5733
5734 # Check whether --with-mpc-include was given.
5735 if test "${with_mpc_include+set}" = set; then :
5736 withval=$with_mpc_include;
5737 fi
5738
5739
5740 # Check whether --with-mpc-lib was given.
5741 if test "${with_mpc_lib+set}" = set; then :
5742 withval=$with_mpc_lib;
5743 fi
5744
5745
5746 if test "x$with_mpc" != x; then
5747 gmplibs="-L$with_mpc/lib $gmplibs"
5748 gmpinc="-I$with_mpc/include $gmpinc"
5749 fi
5750 if test "x$with_mpc_include" != x; then
5751 gmpinc="-I$with_mpc_include $gmpinc"
5752 fi
5753 if test "x$with_mpc_lib" != x; then
5754 gmplibs="-L$with_mpc_lib $gmplibs"
5755 fi
5756 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5757 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5758 gmpinc='-I$$s/mpc/src '"$gmpinc"
5759 # Do not test the mpc version. Assume that it is sufficient, since
5760 # it is in the source tree, and the library has not been built yet
5761 # but it would be included on the link line in the version check below
5762 # hence making the test fail.
5763 have_gmp=yes
5764 fi
5765
5766 # Specify a location for mpfr
5767 # check for this first so it ends up on the link line before gmp.
5768
5769 # Check whether --with-mpfr-dir was given.
5770 if test "${with_mpfr_dir+set}" = set; then :
5771 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5772 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5773 fi
5774
5775
5776
5777 # Check whether --with-mpfr was given.
5778 if test "${with_mpfr+set}" = set; then :
5779 withval=$with_mpfr;
5780 fi
5781
5782
5783 # Check whether --with-mpfr-include was given.
5784 if test "${with_mpfr_include+set}" = set; then :
5785 withval=$with_mpfr_include;
5786 fi
5787
5788
5789 # Check whether --with-mpfr-lib was given.
5790 if test "${with_mpfr_lib+set}" = set; then :
5791 withval=$with_mpfr_lib;
5792 fi
5793
5794
5795 if test "x$with_mpfr" != x; then
5796 gmplibs="-L$with_mpfr/lib $gmplibs"
5797 gmpinc="-I$with_mpfr/include $gmpinc"
5798 fi
5799 if test "x$with_mpfr_include" != x; then
5800 gmpinc="-I$with_mpfr_include $gmpinc"
5801 fi
5802 if test "x$with_mpfr_lib" != x; then
5803 gmplibs="-L$with_mpfr_lib $gmplibs"
5804 fi
5805 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5806 # MPFR v3.1.0 moved the sources into a src sub-directory.
5807 if ! test -d ${srcdir}/mpfr/src; then
5808 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5809 fi
5810 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5811 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5812 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5813 # Do not test the mpfr version. Assume that it is sufficient, since
5814 # it is in the source tree, and the library has not been built yet
5815 # but it would be included on the link line in the version check below
5816 # hence making the test fail.
5817 have_gmp=yes
5818 fi
5819
5820 # Specify a location for gmp
5821
5822 # Check whether --with-gmp-dir was given.
5823 if test "${with_gmp_dir+set}" = set; then :
5824 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5825 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5826 fi
5827
5828
5829
5830 # Check whether --with-gmp was given.
5831 if test "${with_gmp+set}" = set; then :
5832 withval=$with_gmp;
5833 fi
5834
5835
5836 # Check whether --with-gmp-include was given.
5837 if test "${with_gmp_include+set}" = set; then :
5838 withval=$with_gmp_include;
5839 fi
5840
5841
5842 # Check whether --with-gmp-lib was given.
5843 if test "${with_gmp_lib+set}" = set; then :
5844 withval=$with_gmp_lib;
5845 fi
5846
5847
5848
5849 if test "x$with_gmp" != x; then
5850 gmplibs="-L$with_gmp/lib $gmplibs"
5851 gmpinc="-I$with_gmp/include $gmpinc"
5852 fi
5853 if test "x$with_gmp_include" != x; then
5854 gmpinc="-I$with_gmp_include $gmpinc"
5855 fi
5856 if test "x$with_gmp_lib" != x; then
5857 gmplibs="-L$with_gmp_lib $gmplibs"
5858 fi
5859 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5860 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5861 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5862 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5863 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5864 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5865 # Do not test the gmp version. Assume that it is sufficient, since
5866 # it is in the source tree, and the library has not been built yet
5867 # but it would be included on the link line in the version check below
5868 # hence making the test fail.
5869 have_gmp=yes
5870 fi
5871
5872 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5873 have_gmp=yes
5874 saved_CFLAGS="$CFLAGS"
5875 CFLAGS="$CFLAGS $gmpinc"
5876 # Check for the recommended and required versions of GMP.
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5878 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881 #include "gmp.h"
5882 int
5883 main ()
5884 {
5885
5886 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5887 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5888 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5889 choke me
5890 #endif
5891
5892 ;
5893 return 0;
5894 }
5895 _ACEOF
5896 if ac_fn_c_try_compile "$LINENO"; then :
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5899 #include <gmp.h>
5900 int
5901 main ()
5902 {
5903
5904 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5905 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5906 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5907 choke me
5908 #endif
5909
5910 ;
5911 return 0;
5912 }
5913 _ACEOF
5914 if ac_fn_c_try_compile "$LINENO"; then :
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5916 $as_echo "yes" >&6; }
5917 else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5919 $as_echo "buggy but acceptable" >&6; }
5920 fi
5921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 else
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }; have_gmp=no
5925 fi
5926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927
5928 # If we have GMP, check the MPFR version.
5929 if test x"$have_gmp" = xyes; then
5930 # Check for the recommended and required versions of MPFR.
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5932 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5935 #include <gmp.h>
5936 #include <mpfr.h>
5937 int
5938 main ()
5939 {
5940
5941 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5942 choke me
5943 #endif
5944
5945 ;
5946 return 0;
5947 }
5948 _ACEOF
5949 if ac_fn_c_try_compile "$LINENO"; then :
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 #include <gmp.h>
5953 #include <mpfr.h>
5954 int
5955 main ()
5956 {
5957
5958 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5959 choke me
5960 #endif
5961
5962 ;
5963 return 0;
5964 }
5965 _ACEOF
5966 if ac_fn_c_try_compile "$LINENO"; then :
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5968 $as_echo "yes" >&6; }
5969 else
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5971 $as_echo "buggy but acceptable" >&6; }
5972 fi
5973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974 else
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }; have_gmp=no
5977 fi
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 fi
5980
5981 # Check for the MPC header version.
5982 if test x"$have_gmp" = xyes ; then
5983 # Check for the recommended and required versions of MPC.
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5985 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988 #include <mpc.h>
5989 int
5990 main ()
5991 {
5992
5993 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5994 choke me
5995 #endif
5996
5997 ;
5998 return 0;
5999 }
6000 _ACEOF
6001 if ac_fn_c_try_compile "$LINENO"; then :
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004 #include <mpc.h>
6005 int
6006 main ()
6007 {
6008
6009 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
6010 choke me
6011 #endif
6012
6013 ;
6014 return 0;
6015 }
6016 _ACEOF
6017 if ac_fn_c_try_compile "$LINENO"; then :
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6019 $as_echo "yes" >&6; }
6020 else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6022 $as_echo "buggy but acceptable" >&6; }
6023 fi
6024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025 else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }; have_gmp=no
6028 fi
6029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030 fi
6031
6032 # Now check the MPFR library.
6033 if test x"$have_gmp" = xyes; then
6034 saved_LIBS="$LIBS"
6035 LIBS="$LIBS $gmplibs"
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
6037 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6040 #include <mpc.h>
6041 int
6042 main ()
6043 {
6044
6045 mpfr_t n;
6046 mpfr_t x;
6047 mpc_t c;
6048 int t;
6049 mpfr_init (n);
6050 mpfr_init (x);
6051 mpfr_atan2 (n, n, x, GMP_RNDN);
6052 mpfr_erfc (n, x, GMP_RNDN);
6053 mpfr_subnormalize (x, t, GMP_RNDN);
6054 mpfr_clear(n);
6055 mpfr_clear(x);
6056 mpc_init2 (c, 53);
6057 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
6058 mpc_cosh (c, c, MPC_RNDNN);
6059 mpc_pow (c, c, c, MPC_RNDNN);
6060 mpc_acosh (c, c, MPC_RNDNN);
6061 mpc_clear (c);
6062
6063 ;
6064 return 0;
6065 }
6066 _ACEOF
6067 if ac_fn_c_try_link "$LINENO"; then :
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6069 $as_echo "yes" >&6; }
6070 else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }; have_gmp=no
6073 fi
6074 rm -f core conftest.err conftest.$ac_objext \
6075 conftest$ac_exeext conftest.$ac_ext
6076 LIBS="$saved_LIBS"
6077 fi
6078
6079 CFLAGS="$saved_CFLAGS"
6080
6081 # The library versions listed in the error message below should match
6082 # the HARD-minimums enforced above.
6083 if test x$have_gmp != xyes; then
6084 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
6085 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
6086 their locations. Source code for these libraries can be found at
6087 their respective hosting sites as well as at
6088 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
6089 http://gcc.gnu.org/install/prerequisites.html for additional info. If
6090 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
6091 make sure that you have installed both the libraries and the header
6092 files. They may be located in separate packages." "$LINENO" 5
6093 fi
6094 fi
6095
6096 # Flags needed for both GMP, MPFR and/or MPC.
6097
6098
6099
6100
6101
6102
6103
6104 # Libraries to use for stage1 or when not bootstrapping.
6105
6106 # Check whether --with-stage1-libs was given.
6107 if test "${with_stage1_libs+set}" = set; then :
6108 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6109 stage1_libs=
6110 else
6111 stage1_libs=$withval
6112 fi
6113 else
6114 stage1_libs=
6115 fi
6116
6117
6118
6119 # Whether or not to use -static-libstdc++ and -static-libgcc. The
6120 # default is yes if gcc is being built; no otherwise. The reason for
6121 # this default is that gdb is sometimes linked against GNU Source
6122 # Highlight, which is a shared library that uses C++ exceptions. In
6123 # this case, -static-libstdc++ will cause crashes.
6124
6125 # Check whether --with-static-standard-libraries was given.
6126 if test "${with_static_standard_libraries+set}" = set; then :
6127 withval=$with_static_standard_libraries;
6128 else
6129 with_static_standard_libraries=auto
6130 fi
6131
6132 if test "$with_static_standard_libraries" = auto; then
6133 with_static_standard_libraries=$have_compiler
6134 fi
6135
6136 # Linker flags to use for stage1 or when not bootstrapping.
6137
6138 # Check whether --with-stage1-ldflags was given.
6139 if test "${with_stage1_ldflags+set}" = set; then :
6140 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6141 stage1_ldflags=
6142 else
6143 stage1_ldflags=$withval
6144 fi
6145 else
6146 stage1_ldflags=
6147 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
6148 # if supported. But if the user explicitly specified the libraries to use,
6149 # trust that they are doing what they want.
6150 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
6151 -a "$have_static_libs" = yes; then
6152 stage1_ldflags="-static-libstdc++ -static-libgcc"
6153 fi
6154 fi
6155
6156
6157
6158 # Libraries to use for stage2 and later builds.
6159
6160 # Check whether --with-boot-libs was given.
6161 if test "${with_boot_libs+set}" = set; then :
6162 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6163 poststage1_libs=
6164 else
6165 poststage1_libs=$withval
6166 fi
6167 else
6168 poststage1_libs=
6169 fi
6170
6171
6172
6173 # Linker flags to use for stage2 and later builds.
6174
6175 # Check whether --with-boot-ldflags was given.
6176 if test "${with_boot_ldflags+set}" = set; then :
6177 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6178 poststage1_ldflags=
6179 else
6180 poststage1_ldflags=$withval
6181 fi
6182 else
6183 poststage1_ldflags=
6184 # In stages 2 and 3, default to linking libstdc++ and libgcc
6185 # statically. But if the user explicitly specified the libraries to
6186 # use, trust that they are doing what they want.
6187 if test "$poststage1_libs" = ""; then
6188 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6189 fi
6190 fi
6191
6192
6193
6194 # GCC GRAPHITE dependency isl.
6195 # Basic setup is inlined here, actual checks are in config/isl.m4
6196
6197
6198 # Check whether --with-isl was given.
6199 if test "${with_isl+set}" = set; then :
6200 withval=$with_isl;
6201 fi
6202
6203
6204 # Treat --without-isl as a request to disable
6205 # GRAPHITE support and skip all following checks.
6206 if test "x$with_isl" != "xno"; then
6207 # Check for isl
6208
6209
6210 # Check whether --with-isl-include was given.
6211 if test "${with_isl_include+set}" = set; then :
6212 withval=$with_isl_include;
6213 fi
6214
6215
6216 # Check whether --with-isl-lib was given.
6217 if test "${with_isl_lib+set}" = set; then :
6218 withval=$with_isl_lib;
6219 fi
6220
6221
6222 # Check whether --enable-isl-version-check was given.
6223 if test "${enable_isl_version_check+set}" = set; then :
6224 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6225 else
6226 ENABLE_ISL_CHECK=yes
6227 fi
6228
6229
6230 # Initialize isllibs and islinc.
6231 case $with_isl in
6232 no)
6233 isllibs=
6234 islinc=
6235 ;;
6236 "" | yes)
6237 ;;
6238 *)
6239 isllibs="-L$with_isl/lib"
6240 islinc="-I$with_isl/include"
6241 ;;
6242 esac
6243 if test "x${with_isl_include}" != x ; then
6244 islinc="-I$with_isl_include"
6245 fi
6246 if test "x${with_isl_lib}" != x; then
6247 isllibs="-L$with_isl_lib"
6248 fi
6249 if test "x${islinc}" = x && test "x${isllibs}" = x \
6250 && test -d ${srcdir}/isl; then
6251 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6252 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6253 ENABLE_ISL_CHECK=no
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6255 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6256 fi
6257
6258 isllibs="${isllibs} -lisl"
6259
6260
6261
6262 if test "${ENABLE_ISL_CHECK}" = yes ; then
6263 _isl_saved_CFLAGS=$CFLAGS
6264 _isl_saved_LDFLAGS=$LDFLAGS
6265 _isl_saved_LIBS=$LIBS
6266
6267 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6268 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6269 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6270
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6272 $as_echo_n "checking for isl 0.15 or later... " >&6; }
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6275 #include <isl/schedule.h>
6276 int
6277 main ()
6278 {
6279 isl_options_set_schedule_serialize_sccs (NULL, 0);
6280 ;
6281 return 0;
6282 }
6283 _ACEOF
6284 if ac_fn_c_try_link "$LINENO"; then :
6285 gcc_cv_isl=yes
6286 else
6287 gcc_cv_isl=no
6288 fi
6289 rm -f core conftest.err conftest.$ac_objext \
6290 conftest$ac_exeext conftest.$ac_ext
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6292 $as_echo "$gcc_cv_isl" >&6; }
6293
6294 if test "${gcc_cv_isl}" = no ; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6296 $as_echo "required isl version is 0.15 or later" >&6; }
6297 fi
6298
6299 CFLAGS=$_isl_saved_CFLAGS
6300 LDFLAGS=$_isl_saved_LDFLAGS
6301 LIBS=$_isl_saved_LIBS
6302 fi
6303
6304
6305
6306
6307
6308
6309 if test "x${with_isl}" = xno; then
6310 graphite_requested=no
6311 elif test "x${with_isl}" != x \
6312 || test "x${with_isl_include}" != x \
6313 || test "x${with_isl_lib}" != x ; then
6314 graphite_requested=yes
6315 else
6316 graphite_requested=no
6317 fi
6318
6319
6320
6321 if test "${gcc_cv_isl}" = no ; then
6322 isllibs=
6323 islinc=
6324 fi
6325
6326 if test "${graphite_requested}" = yes \
6327 && test "x${isllibs}" = x \
6328 && test "x${islinc}" = x ; then
6329
6330 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6331 fi
6332
6333
6334 fi
6335
6336 # If the isl check failed, disable builds of in-tree variant of isl
6337 if test "x$with_isl" = xno ||
6338 test "x$gcc_cv_isl" = xno; then
6339 noconfigdirs="$noconfigdirs isl"
6340 islinc=
6341 fi
6342
6343
6344
6345
6346 # Check for LTO support.
6347 # Check whether --enable-lto was given.
6348 if test "${enable_lto+set}" = set; then :
6349 enableval=$enable_lto; enable_lto=$enableval
6350 else
6351 enable_lto=yes; default_enable_lto=yes
6352 fi
6353
6354
6355
6356
6357
6358 target_elf=no
6359 case $target in
6360 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6361 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6362 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6363 nvptx-*-none)
6364 target_elf=no
6365 ;;
6366 *)
6367 target_elf=yes
6368 ;;
6369 esac
6370
6371 if test $target_elf = yes; then :
6372 # ELF platforms build the lto-plugin always.
6373 build_lto_plugin=yes
6374
6375 else
6376 if test x"$default_enable_lto" = x"yes" ; then
6377 case $target in
6378 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6379 # On other non-ELF platforms, LTO has yet to be validated.
6380 *) enable_lto=no ;;
6381 esac
6382 else
6383 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6384 # It would also be nice to check the binutils support, but we don't
6385 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6386 # warn during gcc/ subconfigure; unless you're bootstrapping with
6387 # -flto it won't be needed until after installation anyway.
6388 case $target in
6389 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6390 *) if test x"$enable_lto" = x"yes"; then
6391 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6392 fi
6393 ;;
6394 esac
6395 fi
6396 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6397 # Build it unless LTO was explicitly disabled.
6398 case $target in
6399 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6400 *) ;;
6401 esac
6402
6403 fi
6404
6405
6406 # Check whether --enable-linker-plugin-configure-flags was given.
6407 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6408 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6409 else
6410 extra_linker_plugin_configure_flags=
6411 fi
6412
6413
6414 # Check whether --enable-linker-plugin-flags was given.
6415 if test "${enable_linker_plugin_flags+set}" = set; then :
6416 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6417 else
6418 extra_linker_plugin_flags=
6419 fi
6420
6421
6422
6423 # Enable --enable-host-shared.
6424 # Checked early to determine whether jit is an 'all' language
6425 # Check whether --enable-host-shared was given.
6426 if test "${enable_host_shared+set}" = set; then :
6427 enableval=$enable_host_shared; host_shared=$enableval
6428 else
6429 host_shared=no
6430 fi
6431
6432
6433
6434 # By default, C and C++ are the only stage 1 languages.
6435 stage1_languages=,c,
6436
6437 # Target libraries that we bootstrap.
6438 bootstrap_target_libs=,target-libgcc,
6439
6440 # Figure out what language subdirectories are present.
6441 # Look if the user specified --enable-languages="..."; if not, use
6442 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6443 # go away some day.
6444 # NB: embedded tabs in this IF block -- do not untabify
6445 if test -d ${srcdir}/gcc; then
6446 if test x"${enable_languages+set}" != xset; then
6447 if test x"${LANGUAGES+set}" = xset; then
6448 enable_languages="${LANGUAGES}"
6449 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6450 else
6451 enable_languages=default
6452 fi
6453 else
6454 if test x"${enable_languages}" = x ||
6455 test x"${enable_languages}" = xyes;
6456 then
6457 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6458 exit 1
6459 fi
6460 fi
6461 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6462
6463 # 'f95' is the old name for the 'fortran' language. We issue a warning
6464 # and make the substitution.
6465 case ,${enable_languages}, in
6466 *,f95,*)
6467 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6468 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6469 ;;
6470 esac
6471
6472 # If bootstrapping, C++ must be enabled.
6473 case ",$enable_languages,:$enable_bootstrap" in
6474 *,c++,*:*) ;;
6475 *:yes)
6476 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6477 enable_languages="${enable_languages},c++"
6478 else
6479 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6480 fi
6481 ;;
6482 esac
6483
6484 # First scan to see if an enabled language requires some other language.
6485 # We assume that a given config-lang.in will list all the language
6486 # front ends it requires, even if some are required indirectly.
6487 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6488 case ${lang_frag} in
6489 ..) ;;
6490 # The odd quoting in the next line works around
6491 # an apparent bug in bash 1.12 on linux.
6492 ${srcdir}/gcc/[*]/config-lang.in) ;;
6493 *)
6494 # From the config-lang.in, get $language, $lang_requires, and
6495 # $lang_requires_boot_languages.
6496 language=
6497 lang_requires=
6498 lang_requires_boot_languages=
6499 # set srcdir during sourcing lang_frag to the gcc dir.
6500 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6501 # polutes this shell
6502 saved_srcdir=${srcdir}
6503 srcdir=${srcdir}/gcc . ${lang_frag}
6504 srcdir=${saved_srcdir}
6505 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6506 case ,${enable_languages}, in
6507 *,$other,*) ;;
6508 *,default,*) ;;
6509 *,all,*) ;;
6510 *,$language,*)
6511 echo " \`$other' language required by \`$language'; enabling" 1>&2
6512 enable_languages="${enable_languages},${other}"
6513 ;;
6514 esac
6515 done
6516 for other in ${lang_requires_boot_languages} ; do
6517 if test "$other" != "c"; then
6518 case ,${enable_stage1_languages}, in
6519 *,$other,*) ;;
6520 *,default,*) ;;
6521 *,all,*) ;;
6522 *)
6523 case ,${enable_languages}, in
6524 *,$language,*)
6525 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6526 enable_stage1_languages="$enable_stage1_languages,${other}"
6527 ;;
6528 esac
6529 ;;
6530 esac
6531 fi
6532 done
6533 ;;
6534 esac
6535 done
6536
6537 new_enable_languages=,c,
6538
6539 # If LTO is enabled, add the LTO front end.
6540 if test "$enable_lto" = "yes" ; then
6541 case ,${enable_languages}, in
6542 *,lto,*) ;;
6543 *) enable_languages="${enable_languages},lto" ;;
6544 esac
6545 if test "${build_lto_plugin}" = "yes" ; then
6546 configdirs="$configdirs lto-plugin"
6547 fi
6548 fi
6549
6550 # If we're building an offloading compiler, add the LTO front end.
6551 if test x"$enable_as_accelerator_for" != x ; then
6552 case ,${enable_languages}, in
6553 *,lto,*) ;;
6554 *) enable_languages="${enable_languages},lto" ;;
6555 esac
6556 fi
6557
6558 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6559 potential_languages=,c,
6560
6561 enabled_target_libs=
6562 disabled_target_libs=
6563
6564 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6565 case ${lang_frag} in
6566 ..) ;;
6567 # The odd quoting in the next line works around
6568 # an apparent bug in bash 1.12 on linux.
6569 ${srcdir}/gcc/[*]/config-lang.in) ;;
6570 *)
6571 # From the config-lang.in, get $language, $target_libs,
6572 # $lang_dirs, $boot_language, and $build_by_default
6573 language=
6574 target_libs=
6575 lang_dirs=
6576 subdir_requires=
6577 boot_language=no
6578 build_by_default=yes
6579 # set srcdir during sourcing. See above about save & restore
6580 saved_srcdir=${srcdir}
6581 srcdir=${srcdir}/gcc . ${lang_frag}
6582 srcdir=${saved_srcdir}
6583 if test x${language} = x; then
6584 echo "${lang_frag} doesn't set \$language." 1>&2
6585 exit 1
6586 fi
6587
6588 if test "$language" = "c++"; then
6589 boot_language=yes
6590 fi
6591
6592 add_this_lang=no
6593 # C is always enabled, so no need to add it again
6594 if test "$language" != "c"; then
6595 case ,${enable_languages}, in
6596 *,${language},*)
6597 # Language was explicitly selected; include it
6598 add_this_lang=yes
6599 ;;
6600 *,all,*)
6601 # All languages are enabled
6602 add_this_lang=all
6603 ;;
6604 *,default,*)
6605 # 'default' was selected, select it if it is a default language
6606 add_this_lang=${build_by_default}
6607 ;;
6608 esac
6609 fi
6610
6611 # Disable languages that need other directories if these aren't available.
6612 for i in $subdir_requires; do
6613 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6614 case ${add_this_lang} in
6615 yes)
6616 # Specifically requested language; tell them.
6617 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6618 ;;
6619 all)
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6621 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6622 add_this_lang=unsupported
6623 ;;
6624 *)
6625 # Silently disable.
6626 add_this_lang=unsupported
6627 ;;
6628 esac
6629 done
6630
6631 # Disable Ada if no preexisting GNAT is available.
6632 case ${add_this_lang}:${language}:${have_gnat} in
6633 yes:ada:no)
6634 # Specifically requested language; tell them.
6635 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6636 ;;
6637 all:ada:no)
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6639 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6640 add_this_lang=unsupported
6641 ;;
6642 *:ada:no)
6643 # Silently disable.
6644 add_this_lang=unsupported
6645 ;;
6646 esac
6647
6648 # Disable jit if -enable-host-shared not specified
6649 case ${add_this_lang}:${language}:${host_shared} in
6650 yes:jit:no)
6651 # PR jit/64780: explicitly specify --enable-host-shared
6652 as_fn_error $? "
6653 Enabling language \"jit\" requires --enable-host-shared.
6654
6655 --enable-host-shared typically slows the rest of the compiler down by
6656 a few %, so you must explicitly enable it.
6657
6658 If you want to build both the jit and the regular compiler, it is often
6659 best to do this via two separate configure/builds, in separate
6660 directories, to avoid imposing the performance cost of
6661 --enable-host-shared on the regular compiler." "$LINENO" 5
6662 ;;
6663 all:jit:no)
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6665 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6666 add_this_lang=unsupported
6667 ;;
6668 *:jit:no)
6669 # Silently disable.
6670 add_this_lang=unsupported
6671 ;;
6672 esac
6673
6674 # Disable a language that is unsupported by the target.
6675 case "${add_this_lang}: $unsupported_languages " in
6676 no:*) ;;
6677 unsupported:*) ;;
6678 *:*" $language "*)
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6680 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6681 add_this_lang=unsupported
6682 ;;
6683 esac
6684
6685 case $add_this_lang in
6686 unsupported)
6687 # Remove language-dependent dirs.
6688 disabled_target_libs="$disabled_target_libs $target_libs"
6689 noconfigdirs="$noconfigdirs $lang_dirs"
6690 ;;
6691 no)
6692 # Remove language-dependent dirs; still show language as supported.
6693 disabled_target_libs="$disabled_target_libs $target_libs"
6694 noconfigdirs="$noconfigdirs $lang_dirs"
6695 potential_languages="${potential_languages}${language},"
6696 ;;
6697 all|yes)
6698 new_enable_languages="${new_enable_languages}${language},"
6699 potential_languages="${potential_languages}${language},"
6700 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6701 enabled_target_libs="$enabled_target_libs $target_libs"
6702 case "${boot_language}:,$enable_stage1_languages," in
6703 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6704 # Add to (comma-separated) list of stage 1 languages.
6705 case ",$stage1_languages," in
6706 *,$language,* | ,yes, | ,all,) ;;
6707 *) stage1_languages="${stage1_languages}${language}," ;;
6708 esac
6709 # We need to bootstrap any supporting libraries.
6710 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6711 ;;
6712 esac
6713 ;;
6714 esac
6715 ;;
6716 esac
6717 done
6718
6719 # Add target libraries which are only needed for disabled languages
6720 # to noconfigdirs.
6721 if test -n "$disabled_target_libs"; then
6722 for dir in $disabled_target_libs; do
6723 case " $enabled_target_libs " in
6724 *" ${dir} "*) ;;
6725 *) noconfigdirs="$noconfigdirs $dir" ;;
6726 esac
6727 done
6728 fi
6729
6730 # Check whether --enable-stage1-languages was given.
6731 if test "${enable_stage1_languages+set}" = set; then :
6732 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6733 ,no,|,,)
6734 # Set it to something that will have no effect in the loop below
6735 enable_stage1_languages=c ;;
6736 ,yes,)
6737 enable_stage1_languages=`echo $new_enable_languages | \
6738 sed -e "s/^,//" -e "s/,$//" ` ;;
6739 *,all,*)
6740 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6741 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6742 esac
6743
6744 # Add "good" languages from enable_stage1_languages to stage1_languages,
6745 # while "bad" languages go in missing_languages. Leave no duplicates.
6746 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6747 case $potential_languages in
6748 *,$i,*)
6749 case $stage1_languages in
6750 *,$i,*) ;;
6751 *) stage1_languages="$stage1_languages$i," ;;
6752 esac ;;
6753 *)
6754 case $missing_languages in
6755 *,$i,*) ;;
6756 *) missing_languages="$missing_languages$i," ;;
6757 esac ;;
6758 esac
6759 done
6760 fi
6761
6762
6763 # Remove leading/trailing commas that were added for simplicity
6764 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6765 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6766 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6767 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6768
6769 if test "x$missing_languages" != x; then
6770 as_fn_error $? "
6771 The following requested languages could not be built: ${missing_languages}
6772 Supported languages are: ${potential_languages}" "$LINENO" 5
6773 fi
6774 if test "x$new_enable_languages" != "x$enable_languages"; then
6775 echo The following languages will be built: ${new_enable_languages}
6776 enable_languages="$new_enable_languages"
6777 fi
6778
6779
6780 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6781 fi
6782
6783 # Handle --disable-<component> generically.
6784 for dir in $configdirs $build_configdirs $target_configdirs ; do
6785 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6786 varname=`echo $dirname | sed -e s/+/_/g`
6787 if eval test x\${enable_${varname}} "=" xno ; then
6788 noconfigdirs="$noconfigdirs $dir"
6789 fi
6790 done
6791
6792 # Check for Boehm's garbage collector
6793 # Check whether --enable-objc-gc was given.
6794 if test "${enable_objc_gc+set}" = set; then :
6795 enableval=$enable_objc_gc;
6796 fi
6797
6798
6799 # Check whether --with-target-bdw-gc was given.
6800 if test "${with_target_bdw_gc+set}" = set; then :
6801 withval=$with_target_bdw_gc;
6802 fi
6803
6804
6805 # Check whether --with-target-bdw-gc-include was given.
6806 if test "${with_target_bdw_gc_include+set}" = set; then :
6807 withval=$with_target_bdw_gc_include;
6808 fi
6809
6810
6811 # Check whether --with-target-bdw-gc-lib was given.
6812 if test "${with_target_bdw_gc_lib+set}" = set; then :
6813 withval=$with_target_bdw_gc_lib;
6814 fi
6815
6816
6817 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6819 $as_echo_n "checking for bdw garbage collector... " >&6; }
6820 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6822 $as_echo "using bdw-gc in default locations" >&6; }
6823 else
6824 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6825 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6826 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6827 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6828 else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6830 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6831 fi
6832 fi
6833 esac
6834
6835 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6836 case ,${enable_languages}, in
6837 *,c++,*)
6838 # Disable libitm, libsanitizer if we're not building libstdc++
6839 case "${noconfigdirs}" in
6840 *target-libstdc++-v3*)
6841 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6842 ;;
6843 *) ;;
6844 esac
6845 ;;
6846 *)
6847 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6848 ;;
6849 esac
6850
6851 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6852 # $build_configdirs and $target_configdirs.
6853 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6854
6855 notsupp=""
6856 for dir in . $skipdirs $noconfigdirs ; do
6857 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6858 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6859 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6860 if test -r $srcdir/$dirname/configure ; then
6861 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6862 true
6863 else
6864 notsupp="$notsupp $dir"
6865 fi
6866 fi
6867 fi
6868 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6869 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6870 if test -r $srcdir/$dirname/configure ; then
6871 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6872 true
6873 else
6874 notsupp="$notsupp $dir"
6875 fi
6876 fi
6877 fi
6878 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6879 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6880 if test -r $srcdir/$dirname/configure ; then
6881 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6882 true
6883 else
6884 notsupp="$notsupp $dir"
6885 fi
6886 fi
6887 fi
6888 done
6889
6890 # Quietly strip out all directories which aren't configurable in this tree.
6891 # This relies on all configurable subdirectories being autoconfiscated, which
6892 # is now the case.
6893 build_configdirs_all="$build_configdirs"
6894 build_configdirs=
6895 for i in ${build_configdirs_all} ; do
6896 j=`echo $i | sed -e s/build-//g`
6897 if test -f ${srcdir}/$j/configure ; then
6898 build_configdirs="${build_configdirs} $i"
6899 fi
6900 done
6901
6902 configdirs_all="$configdirs"
6903 configdirs=
6904 for i in ${configdirs_all} ; do
6905 if test -f ${srcdir}/$i/configure ; then
6906 configdirs="${configdirs} $i"
6907 fi
6908 done
6909
6910 target_configdirs_all="$target_configdirs"
6911 target_configdirs=
6912 for i in ${target_configdirs_all} ; do
6913 j=`echo $i | sed -e s/target-//g`
6914 if test -f ${srcdir}/$j/configure ; then
6915 target_configdirs="${target_configdirs} $i"
6916 fi
6917 done
6918
6919 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6920 # so we have to add it after the preceding checks.
6921 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6922 then
6923 case " $configdirs " in
6924 *" libiberty "*)
6925 # If we can build libiberty, we can also build libiberty-linker-plugin.
6926 configdirs="$configdirs libiberty-linker-plugin"
6927 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6928 --with-libiberty=../libiberty-linker-plugin";;
6929 *)
6930 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6931 esac
6932 fi
6933
6934 # Sometimes we have special requirements for the host libiberty.
6935 extra_host_libiberty_configure_flags=
6936 extra_host_zlib_configure_flags=
6937 case " $configdirs " in
6938 *" lto-plugin "* | *" libcc1 "*)
6939 # When these are to be built as shared libraries, the same applies to
6940 # libiberty.
6941 extra_host_libiberty_configure_flags=--enable-shared
6942 ;;
6943 *" bfd "*)
6944 # When bfd is to be built as a shared library, the same applies to
6945 # zlib.
6946 if test "$enable_shared" = "yes"; then
6947 extra_host_zlib_configure_flags=--enable-host-shared
6948 fi
6949 ;;
6950 esac
6951
6952
6953
6954 # Produce a warning message for the subdirs we can't configure.
6955 # This isn't especially interesting in the Cygnus tree, but in the individual
6956 # FSF releases, it's important to let people know when their machine isn't
6957 # supported by the one or two programs in a package.
6958
6959 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6960 # If $appdirs is non-empty, at least one of those directories must still
6961 # be configured, or we error out. (E.g., if the gas release supports a
6962 # specified target in some subdirs but not the gas subdir, we shouldn't
6963 # pretend that all is well.)
6964 if test -n "$appdirs" ; then
6965 for dir in $appdirs ; do
6966 if test -r $dir/Makefile.in ; then
6967 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6968 appdirs=""
6969 break
6970 fi
6971 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6972 appdirs=""
6973 break
6974 fi
6975 fi
6976 done
6977 if test -n "$appdirs" ; then
6978 echo "*** This configuration is not supported by this package." 1>&2
6979 exit 1
6980 fi
6981 fi
6982 # Okay, some application will build, or we don't care to check. Still
6983 # notify of subdirs not getting built.
6984 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6985 echo " ${notsupp}" 1>&2
6986 echo " (Any other directories should still work fine.)" 1>&2
6987 fi
6988
6989 case "$host" in
6990 *msdosdjgpp*)
6991 enable_gdbtk=no ;;
6992 esac
6993
6994 # To find our prefix, in gcc_cv_tool_prefix.
6995
6996 # The user is always right.
6997 if test "${PATH_SEPARATOR+set}" != set; then
6998 echo "#! /bin/sh" >conf$$.sh
6999 echo "exit 0" >>conf$$.sh
7000 chmod +x conf$$.sh
7001 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7002 PATH_SEPARATOR=';'
7003 else
7004 PATH_SEPARATOR=:
7005 fi
7006 rm -f conf$$.sh
7007 fi
7008
7009
7010 get_gcc_base_ver="cat"
7011
7012 # Check whether --with-gcc-major-version-only was given.
7013 if test "${with_gcc_major_version_only+set}" = set; then :
7014 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
7015 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
7016 fi
7017
7018 fi
7019
7020
7021
7022
7023
7024
7025 if test "x$exec_prefix" = xNONE; then
7026 if test "x$prefix" = xNONE; then
7027 gcc_cv_tool_prefix=$ac_default_prefix
7028 else
7029 gcc_cv_tool_prefix=$prefix
7030 fi
7031 else
7032 gcc_cv_tool_prefix=$exec_prefix
7033 fi
7034
7035 # If there is no compiler in the tree, use the PATH only. In any
7036 # case, if there is no compiler in the tree nobody should use
7037 # AS_FOR_TARGET and LD_FOR_TARGET.
7038 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7039 if test x$with_gcc_major_version_only = xyes ; then
7040 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
7041 else
7042 gcc_version=`cat $srcdir/gcc/BASE-VER`
7043 fi
7044 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7045 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7046 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7047 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7048 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7049 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7050 else
7051 gcc_cv_tool_dirs=
7052 fi
7053
7054 if test x$build = x$target && test -n "$md_exec_prefix"; then
7055 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7056 fi
7057
7058
7059
7060 copy_dirs=
7061
7062
7063 # Check whether --with-build-sysroot was given.
7064 if test "${with_build_sysroot+set}" = set; then :
7065 withval=$with_build_sysroot; if test x"$withval" != x ; then
7066 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7067 fi
7068 else
7069 SYSROOT_CFLAGS_FOR_TARGET=
7070 fi
7071
7072
7073
7074
7075 # Check whether --with-debug-prefix-map was given.
7076 if test "${with_debug_prefix_map+set}" = set; then :
7077 withval=$with_debug_prefix_map; if test x"$withval" != x; then
7078 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7079 for debug_map in $withval; do
7080 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7081 done
7082 fi
7083 else
7084 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7085 fi
7086
7087
7088
7089 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7090 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7091 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7092 # We want to ensure that TARGET libraries (which we know are built with
7093 # gcc) are built with "-O2 -g", so include those options when setting
7094 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7095 if test "x$CFLAGS_FOR_TARGET" = x; then
7096 if test "x${is_cross_compiler}" = xyes; then
7097 CFLAGS_FOR_TARGET="-g -O2"
7098 else
7099 CFLAGS_FOR_TARGET=$CFLAGS
7100 case " $CFLAGS " in
7101 *" -O2 "*) ;;
7102 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7103 esac
7104 case " $CFLAGS " in
7105 *" -g "* | *" -g3 "*) ;;
7106 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7107 esac
7108 fi
7109 fi
7110
7111
7112 if test "x$CXXFLAGS_FOR_TARGET" = x; then
7113 if test "x${is_cross_compiler}" = xyes; then
7114 CXXFLAGS_FOR_TARGET="-g -O2"
7115 else
7116 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7117 case " $CXXFLAGS " in
7118 *" -O2 "*) ;;
7119 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7120 esac
7121 case " $CXXFLAGS " in
7122 *" -g "* | *" -g3 "*) ;;
7123 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7124 esac
7125 fi
7126 fi
7127
7128
7129
7130
7131 # Handle --with-headers=XXX. If the value is not "yes", the contents of
7132 # the named directory are copied to $(tooldir)/sys-include.
7133 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7134 if test x${is_cross_compiler} = xno ; then
7135 echo 1>&2 '***' --with-headers is only supported when cross compiling
7136 exit 1
7137 fi
7138 if test x"${with_headers}" != xyes ; then
7139 x=${gcc_cv_tool_prefix}
7140 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
7141 fi
7142 fi
7143
7144 # Handle --with-libs=XXX. If the value is not "yes", the contents of
7145 # the name directories are copied to $(tooldir)/lib. Multiple directories
7146 # are permitted.
7147 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7148 if test x${is_cross_compiler} = xno ; then
7149 echo 1>&2 '***' --with-libs is only supported when cross compiling
7150 exit 1
7151 fi
7152 if test x"${with_libs}" != xyes ; then
7153 # Copy the libraries in reverse order, so that files in the first named
7154 # library override files in subsequent libraries.
7155 x=${gcc_cv_tool_prefix}
7156 for l in ${with_libs}; do
7157 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7158 done
7159 fi
7160 fi
7161
7162 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7163 #
7164 # This is done by determining whether or not the appropriate directory
7165 # is available, and by checking whether or not specific configurations
7166 # have requested that this magic not happen.
7167 #
7168 # The command line options always override the explicit settings in
7169 # configure.ac, and the settings in configure.ac override this magic.
7170 #
7171 # If the default for a toolchain is to use GNU as and ld, and you don't
7172 # want to do that, then you should use the --without-gnu-as and
7173 # --without-gnu-ld options for the configure script. Similarly, if
7174 # the default is to use the included zlib and you don't want to do that,
7175 # you should use the --with-system-zlib option for the configure script.
7176
7177 if test x${use_gnu_as} = x &&
7178 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7179 with_gnu_as=yes
7180 extra_host_args="$extra_host_args --with-gnu-as"
7181 fi
7182
7183 if test x${use_gnu_ld} = x &&
7184 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7185 with_gnu_ld=yes
7186 extra_host_args="$extra_host_args --with-gnu-ld"
7187 fi
7188
7189 if test x${use_included_zlib} = x &&
7190 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7191 :
7192 else
7193 with_system_zlib=yes
7194 extra_host_args="$extra_host_args --with-system-zlib"
7195 fi
7196
7197 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7198 # can detect this case.
7199
7200 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7201 with_newlib=yes
7202 extra_host_args="$extra_host_args --with-newlib"
7203 fi
7204
7205 # Handle ${copy_dirs}
7206 set fnord ${copy_dirs}
7207 shift
7208 while test $# != 0 ; do
7209 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7210 :
7211 else
7212 echo Copying $1 to $2
7213
7214 # Use the install script to create the directory and all required
7215 # parent directories.
7216 if test -d $2 ; then
7217 :
7218 else
7219 echo >config.temp
7220 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7221 fi
7222
7223 # Copy the directory, assuming we have tar.
7224 # FIXME: Should we use B in the second tar? Not all systems support it.
7225 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7226
7227 # It is the responsibility of the user to correctly adjust all
7228 # symlinks. If somebody can figure out how to handle them correctly
7229 # here, feel free to add the code.
7230
7231 echo $1 > $2/COPIED
7232 fi
7233 shift; shift
7234 done
7235
7236 # Determine a target-dependent exec_prefix that the installed
7237 # gcc will search in. Keep this list sorted by triplet, with
7238 # the *-*-osname triplets last.
7239 md_exec_prefix=
7240 case "${target}" in
7241 i[34567]86-pc-msdosdjgpp*)
7242 md_exec_prefix=/dev/env/DJDIR/bin
7243 ;;
7244 *-*-hpux* | \
7245 *-*-nto-qnx* | \
7246 *-*-solaris2*)
7247 md_exec_prefix=/usr/ccs/bin
7248 ;;
7249 esac
7250
7251 extra_arflags_for_target=
7252 extra_nmflags_for_target=
7253 extra_ranlibflags_for_target=
7254 target_makefile_frag=/dev/null
7255 case "${target}" in
7256 spu-*-*)
7257 target_makefile_frag="config/mt-spu"
7258 ;;
7259 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
7260 target_makefile_frag="config/mt-sde"
7261 ;;
7262 mipsisa*-*-elfoabi*)
7263 target_makefile_frag="config/mt-mips-elfoabi"
7264 ;;
7265 mips*-*-*linux* | mips*-*-gnu*)
7266 target_makefile_frag="config/mt-mips-gnu"
7267 ;;
7268 nios2-*-elf*)
7269 target_makefile_frag="config/mt-nios2-elf"
7270 ;;
7271 *-*-linux-android*)
7272 target_makefile_frag="config/mt-android"
7273 ;;
7274 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7275 target_makefile_frag="config/mt-gnu"
7276 ;;
7277 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7278 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7279 # commands to handle both 32-bit and 64-bit objects. These flags are
7280 # harmless if we're using GNU nm or ar.
7281 extra_arflags_for_target=" -X32_64"
7282 extra_nmflags_for_target=" -B -X32_64"
7283 ;;
7284 esac
7285
7286 alphaieee_frag=/dev/null
7287 case $target in
7288 alpha*-*-*)
7289 # This just makes sure to use the -mieee option to build target libs.
7290 # This should probably be set individually by each library.
7291 alphaieee_frag="config/mt-alphaieee"
7292 ;;
7293 esac
7294
7295 # If --enable-target-optspace always use -Os instead of -O2 to build
7296 # the target libraries, similarly if it is not specified, use -Os
7297 # on selected platforms.
7298 ospace_frag=/dev/null
7299 case "${enable_target_optspace}:${target}" in
7300 yes:*)
7301 ospace_frag="config/mt-ospace"
7302 ;;
7303 :d30v-*)
7304 ospace_frag="config/mt-d30v"
7305 ;;
7306 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7307 ospace_frag="config/mt-ospace"
7308 ;;
7309 no:* | :*)
7310 ;;
7311 *)
7312 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7313 ;;
7314 esac
7315
7316 # Some systems (e.g., one of the i386-aix systems the gas testers are
7317 # using) don't handle "\$" correctly, so don't use it here.
7318 tooldir='${exec_prefix}'/${target_noncanonical}
7319 build_tooldir=${tooldir}
7320
7321 # Create a .gdbinit file which runs the one in srcdir
7322 # and tells GDB to look there for source files.
7323
7324 if test -r ${srcdir}/.gdbinit ; then
7325 case ${srcdir} in
7326 .) ;;
7327 *) cat > ./.gdbinit <<EOF
7328 # ${NO_EDIT}
7329 dir ${srcdir}
7330 dir .
7331 source ${srcdir}/.gdbinit
7332 EOF
7333 ;;
7334 esac
7335 fi
7336
7337 # Make sure that the compiler is able to generate an executable. If it
7338 # can't, we are probably in trouble. We don't care whether we can run the
7339 # executable--we might be using a cross compiler--we only care whether it
7340 # can be created. At this point the main configure script has set CC.
7341 we_are_ok=no
7342 echo "int main () { return 0; }" > conftest.c
7343 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7344 if test $? = 0 ; then
7345 if test -s conftest || test -s conftest.exe ; then
7346 we_are_ok=yes
7347 fi
7348 fi
7349 case $we_are_ok in
7350 no)
7351 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7352 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7353 rm -f conftest*
7354 exit 1
7355 ;;
7356 esac
7357 rm -f conftest*
7358
7359 # Decide which environment variable is used to find dynamic libraries.
7360 case "${host}" in
7361 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7362 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7363 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7364 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7365 esac
7366
7367 # On systems where the dynamic library environment variable is PATH,
7368 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7369 # built executables to PATH.
7370 if test "$RPATH_ENVVAR" = PATH; then
7371 GCC_SHLIB_SUBDIR=/shlib
7372 else
7373 GCC_SHLIB_SUBDIR=
7374 fi
7375
7376 # Adjust the toplevel makefile according to whether bootstrap was selected.
7377 case $enable_bootstrap in
7378 yes)
7379 bootstrap_suffix=bootstrap
7380 BUILD_CONFIG=bootstrap-debug
7381 ;;
7382 no)
7383 bootstrap_suffix=no-bootstrap
7384 BUILD_CONFIG=
7385 ;;
7386 esac
7387
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7389 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7390
7391
7392 # Check whether --with-build-config was given.
7393 if test "${with_build_config+set}" = set; then :
7394 withval=$with_build_config; case $with_build_config in
7395 yes) with_build_config= ;;
7396 no) with_build_config= BUILD_CONFIG= ;;
7397 esac
7398 fi
7399
7400
7401 if test "x${with_build_config}" != x; then
7402 BUILD_CONFIG=$with_build_config
7403 else
7404 case $BUILD_CONFIG in
7405 bootstrap-debug)
7406 if echo "int f (void) { return 0; }" > conftest.c &&
7407 ${CC} -c conftest.c &&
7408 mv conftest.o conftest.o.g0 &&
7409 ${CC} -c -g conftest.c &&
7410 mv conftest.o conftest.o.g &&
7411 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7412 :
7413 else
7414 BUILD_CONFIG=
7415 fi
7416 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7417 ;;
7418 esac
7419 fi
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7421 $as_echo "$BUILD_CONFIG" >&6; }
7422
7423
7424 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7426 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7427 # Check whether --enable-vtable-verify was given.
7428 if test "${enable_vtable_verify+set}" = set; then :
7429 enableval=$enable_vtable_verify; case "$enableval" in
7430 yes) enable_vtable_verify=yes ;;
7431 no) enable_vtable_verify=no ;;
7432 *) enable_vtable_verify=no;;
7433 esac
7434 else
7435 enable_vtable_verify=no
7436 fi
7437
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7439 $as_echo "$enable_vtable_verify" >&6; }
7440
7441 # Record target_configdirs and the configure arguments for target and
7442 # build configuration in Makefile.
7443 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7444 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7445 bootstrap_fixincludes=no
7446
7447 # If we are building libgomp, bootstrap it.
7448 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7449 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7450 fi
7451
7452 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7453 # or bootstrap-ubsan, bootstrap it.
7454 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7455 case "$BUILD_CONFIG" in
7456 *bootstrap-asan* | *bootstrap-ubsan* )
7457 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7458 bootstrap_fixincludes=yes
7459 ;;
7460 esac
7461 fi
7462
7463 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7464 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7465 test "$enable_vtable_verify" != no; then
7466 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7467 fi
7468
7469 # Determine whether gdb needs tk/tcl or not.
7470 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7471 # and in that case we want gdb to be built without tk. Ugh!
7472 # In fact I believe gdb is the *only* package directly dependent on tk,
7473 # so we should be able to put the 'maybe's in unconditionally and
7474 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7475 # 100% sure that that's safe though.
7476
7477 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7478 case "$enable_gdbtk" in
7479 no)
7480 GDB_TK="" ;;
7481 yes)
7482 GDB_TK="${gdb_tk}" ;;
7483 *)
7484 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7485 # distro. Eventually someone will fix this and move Insight, nee
7486 # gdbtk to a separate directory.
7487 if test -d ${srcdir}/gdb/gdbtk ; then
7488 GDB_TK="${gdb_tk}"
7489 else
7490 GDB_TK=""
7491 fi
7492 ;;
7493 esac
7494 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7495 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7496
7497 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7498 # else does, only include them if one of these is built. The Makefile
7499 # provides the ordering, so it's enough here to add to the list.
7500 case " ${configdirs} " in
7501 *\ gdb\ *)
7502 configdirs="${configdirs} gnulib gdbsupport"
7503 ;;
7504 *\ gdbserver\ *)
7505 configdirs="${configdirs} gnulib gdbsupport"
7506 ;;
7507 esac
7508
7509 # Strip out unwanted targets.
7510
7511 # While at that, we remove Makefiles if we were started for recursive
7512 # configuration, so that the top-level Makefile reconfigures them,
7513 # like we used to do when configure itself was recursive.
7514
7515 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7516 # but now we're fixing up the Makefile ourselves with the additional
7517 # commands passed to AC_CONFIG_FILES. Use separate variables
7518 # extrasub-{build,host,target} not because there is any reason to split
7519 # the substitutions up that way, but only to remain below the limit of
7520 # 99 commands in a script, for HP-UX sed.
7521
7522 # Do not nest @if/@endif or @unless/@endunless pairs, because
7523 # configure will not warn you at all.
7524
7525 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7526 yes:yes:*\ gold\ *:*,c++,*) ;;
7527 yes:yes:*\ gold\ *:*)
7528 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7529 ;;
7530 esac
7531
7532 extrasub_build=
7533 for module in ${build_configdirs} ; do
7534 if test -z "${no_recursion}" \
7535 && test -f ${build_subdir}/${module}/Makefile; then
7536 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7537 rm -f ${build_subdir}/${module}/Makefile
7538 fi
7539 extrasub_build="$extrasub_build
7540 /^@if build-$module\$/d
7541 /^@endif build-$module\$/d
7542 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7543 /^@if build-$module-$bootstrap_suffix\$/d
7544 /^@endif build-$module-$bootstrap_suffix\$/d
7545 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7546 done
7547 extrasub_host=
7548 for module in ${configdirs} ; do
7549 if test -z "${no_recursion}"; then
7550 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7551 if test -f ${file}; then
7552 echo 1>&2 "*** removing ${file} to force reconfigure"
7553 rm -f ${file}
7554 fi
7555 done
7556 fi
7557 case ${module},${bootstrap_fixincludes} in
7558 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7559 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7560 esac
7561 extrasub_host="$extrasub_host
7562 /^@if $module\$/d
7563 /^@endif $module\$/d
7564 /^@unless $module\$/,/^@endunless $module\$/d
7565 /^@if $module-$host_bootstrap_suffix\$/d
7566 /^@endif $module-$host_bootstrap_suffix\$/d
7567 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7568 done
7569 extrasub_target=
7570 for module in ${target_configdirs} ; do
7571 if test -z "${no_recursion}" \
7572 && test -f ${target_subdir}/${module}/Makefile; then
7573 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7574 rm -f ${target_subdir}/${module}/Makefile
7575 fi
7576
7577 # We only bootstrap target libraries listed in bootstrap_target_libs.
7578 case $bootstrap_target_libs in
7579 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7580 *) target_bootstrap_suffix=no-bootstrap ;;
7581 esac
7582
7583 extrasub_target="$extrasub_target
7584 /^@if target-$module\$/d
7585 /^@endif target-$module\$/d
7586 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7587 /^@if target-$module-$target_bootstrap_suffix\$/d
7588 /^@endif target-$module-$target_bootstrap_suffix\$/d
7589 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7590 done
7591
7592 # Do the final fixup along with target modules.
7593 extrasub_target="$extrasub_target
7594 /^@if /,/^@endif /d
7595 /^@unless /d
7596 /^@endunless /d"
7597
7598 if test "$enable_pgo_build" != "no"; then
7599 extrasub_build="$extrasub_build
7600 /^@if pgo-build\$/d
7601 /^@endif pgo-build\$/d"
7602 fi
7603
7604 # Create the serialization dependencies. This uses a temporary file.
7605
7606 # Check whether --enable-serial-configure was given.
7607 if test "${enable_serial_configure+set}" = set; then :
7608 enableval=$enable_serial_configure;
7609 fi
7610
7611
7612 case ${enable_serial_configure} in
7613 yes)
7614 enable_serial_build_configure=yes
7615 enable_serial_host_configure=yes
7616 enable_serial_target_configure=yes
7617 ;;
7618 esac
7619
7620 # These force 'configure's to be done one at a time, to avoid problems
7621 # with contention over a shared config.cache.
7622 rm -f serdep.tmp
7623 echo '# serdep.tmp' > serdep.tmp
7624 olditem=
7625 test "x${enable_serial_build_configure}" = xyes &&
7626 for item in ${build_configdirs} ; do
7627 case ${olditem} in
7628 "") ;;
7629 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7630 esac
7631 olditem=${item}
7632 done
7633 olditem=
7634 test "x${enable_serial_host_configure}" = xyes &&
7635 for item in ${configdirs} ; do
7636 case ${olditem} in
7637 "") ;;
7638 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7639 esac
7640 olditem=${item}
7641 done
7642 olditem=
7643 test "x${enable_serial_target_configure}" = xyes &&
7644 for item in ${target_configdirs} ; do
7645 case ${olditem} in
7646 "") ;;
7647 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7648 esac
7649 olditem=${item}
7650 done
7651 serialization_dependencies=serdep.tmp
7652
7653
7654 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7655 # target, nonopt, and variable assignments. These are the ones we
7656 # might not want to pass down to subconfigures. The exception being
7657 # --cache-file=/dev/null, which is used to turn off the use of cache
7658 # files altogether, and which should be passed on to subconfigures.
7659 # Also strip program-prefix, program-suffix, and program-transform-name,
7660 # so that we can pass down a consistent program-transform-name.
7661 baseargs=
7662 tbaseargs=
7663 keep_next=no
7664 skip_next=no
7665 eval "set -- $ac_configure_args"
7666 for ac_arg
7667 do
7668 if test X"$skip_next" = X"yes"; then
7669 skip_next=no
7670 continue
7671 fi
7672 if test X"$keep_next" = X"yes"; then
7673 case $ac_arg in
7674 *\'*)
7675 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7676 esac
7677 baseargs="$baseargs '$ac_arg'"
7678 tbaseargs="$tbaseargs '$ac_arg'"
7679 keep_next=no
7680 continue
7681 fi
7682
7683 # Handle separated arguments. Based on the logic generated by
7684 # autoconf 2.59.
7685 case $ac_arg in
7686 *=* | --config-cache | -C | -disable-* | --disable-* \
7687 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7688 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7689 | -with-* | --with-* | -without-* | --without-* | --x)
7690 separate_arg=no
7691 ;;
7692 -*)
7693 separate_arg=yes
7694 ;;
7695 *)
7696 separate_arg=no
7697 ;;
7698 esac
7699
7700 skip_targ=no
7701 case $ac_arg in
7702
7703 --with-* | --without-*)
7704 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7705
7706 case $libopt in
7707 *[-_]include)
7708 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7709 ;;
7710 *[-_]lib)
7711 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7712 ;;
7713 *)
7714 lib=$libopt
7715 ;;
7716 esac
7717
7718
7719 case $lib in
7720 mpc | mpfr | gmp | isl)
7721 # If we're processing --with-$lib, --with-$lib-include or
7722 # --with-$lib-lib, for one of the libs above, and target is
7723 # different from host, don't pass the current argument to any
7724 # target library's configure.
7725 if test x$is_cross_compiler = xyes; then
7726 skip_targ=yes
7727 fi
7728 ;;
7729 esac
7730 ;;
7731 esac
7732
7733 case "$ac_arg" in
7734 --cache-file=/dev/null | \
7735 -cache-file=/dev/null )
7736 # Handled here to avoid the test to skip args below.
7737 baseargs="$baseargs '$ac_arg'"
7738 tbaseargs="$tbaseargs '$ac_arg'"
7739 # Assert: $separate_arg should always be no.
7740 keep_next=$separate_arg
7741 ;;
7742 --no*)
7743 continue
7744 ;;
7745 --c* | \
7746 --sr* | \
7747 --ho* | \
7748 --bu* | \
7749 --t* | \
7750 --program-* | \
7751 -cache_file* | \
7752 -srcdir* | \
7753 -host* | \
7754 -build* | \
7755 -target* | \
7756 -program-prefix* | \
7757 -program-suffix* | \
7758 -program-transform-name* )
7759 skip_next=$separate_arg
7760 continue
7761 ;;
7762 -*)
7763 # An option. Add it.
7764 case $ac_arg in
7765 *\'*)
7766 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7767 esac
7768 baseargs="$baseargs '$ac_arg'"
7769 if test X"$skip_targ" = Xno; then
7770 tbaseargs="$tbaseargs '$ac_arg'"
7771 fi
7772 keep_next=$separate_arg
7773 ;;
7774 *)
7775 # Either a variable assignment, or a nonopt (triplet). Don't
7776 # pass it down; let the Makefile handle this.
7777 continue
7778 ;;
7779 esac
7780 done
7781 # Remove the initial space we just introduced and, as these will be
7782 # expanded by make, quote '$'.
7783 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7784
7785 # Add in --program-transform-name, after --program-prefix and
7786 # --program-suffix have been applied to it. Autoconf has already
7787 # doubled dollar signs and backslashes in program_transform_name; we want
7788 # the backslashes un-doubled, and then the entire thing wrapped in single
7789 # quotes, because this will be expanded first by make and then by the shell.
7790 # Also, because we want to override the logic in subdir configure scripts to
7791 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7792 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7793 ${program_transform_name}
7794 EOF_SED
7795 gcc_transform_name=`cat conftestsed.out`
7796 rm -f conftestsed.out
7797 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7798 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7799 if test "$silent" = yes; then
7800 baseargs="$baseargs --silent"
7801 tbaseargs="$tbaseargs --silent"
7802 fi
7803 baseargs="$baseargs --disable-option-checking"
7804 tbaseargs="$tbaseargs --disable-option-checking"
7805
7806 # Record and document user additions to sub configure arguments.
7807
7808
7809
7810
7811 # For the build-side libraries, we just need to pretend we're native,
7812 # and not use the same cache file. Multilibs are neither needed nor
7813 # desired. We can't even use the same cache file for all build-side
7814 # libraries, as they're compiled differently; some with C, some with
7815 # C++ or with different feature-enabling options.
7816 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7817
7818 # For host modules, accept cache file option, or specification as blank.
7819 case "${cache_file}" in
7820 "") # empty
7821 cache_file_option="" ;;
7822 /* | [A-Za-z]:[\\/]* ) # absolute path
7823 cache_file_option="--cache-file=${cache_file}" ;;
7824 *) # relative path
7825 cache_file_option="--cache-file=../${cache_file}" ;;
7826 esac
7827
7828 # Host dirs don't like to share a cache file either, horribly enough.
7829 # This seems to be due to autoconf 2.5x stupidity.
7830 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7831
7832 target_configargs="$target_configargs ${tbaseargs}"
7833
7834 # Passing a --with-cross-host argument lets the target libraries know
7835 # whether they are being built with a cross-compiler or being built
7836 # native. However, it would be better to use other mechanisms to make the
7837 # sorts of decisions they want to make on this basis. Please consider
7838 # this option to be deprecated. FIXME.
7839 if test x${is_cross_compiler} = xyes ; then
7840 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7841 fi
7842
7843 # Special user-friendly check for native x86_64-linux build, if
7844 # multilib is not explicitly enabled.
7845 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7846 x86_64-*linux*:yes:$build:$build:)
7847 # Make sure we have a development environment that handles 32-bit
7848 dev64=no
7849 echo "int main () { return 0; }" > conftest.c
7850 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7851 if test $? = 0 ; then
7852 if test -s conftest || test -s conftest.exe ; then
7853 dev64=yes
7854 fi
7855 fi
7856 rm -f conftest*
7857 if test x${dev64} != xyes ; then
7858 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
7859 fi
7860 ;;
7861 esac
7862
7863 # Default to --enable-multilib.
7864 if test x${enable_multilib} = x ; then
7865 target_configargs="--enable-multilib ${target_configargs}"
7866 fi
7867
7868 # Pass --with-newlib if appropriate. Note that target_configdirs has
7869 # changed from the earlier setting of with_newlib.
7870 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7871 target_configargs="--with-newlib ${target_configargs}"
7872 fi
7873
7874 # Different target subdirs use different values of certain variables
7875 # (notably CXX). Worse, multilibs use *lots* of different values.
7876 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7877 # it doesn't automatically accept command-line overrides of them.
7878 # This means it's not safe for target subdirs to share a cache file,
7879 # which is disgusting, but there you have it. Hopefully this can be
7880 # fixed in future. It's still worthwhile to use a cache file for each
7881 # directory. I think.
7882
7883 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7884 # We need to pass --target, as newer autoconf's requires consistency
7885 # for target_alias and gcc doesn't manage it consistently.
7886 target_configargs="--cache-file=./config.cache ${target_configargs}"
7887
7888 FLAGS_FOR_TARGET=
7889 case " $target_configdirs " in
7890 *" newlib "*)
7891 case " $target_configargs " in
7892 *" --with-newlib "*)
7893 case "$target" in
7894 *-cygwin*)
7895 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7896 ;;
7897 esac
7898
7899 # If we're not building GCC, don't discard standard headers.
7900 if test -d ${srcdir}/gcc; then
7901 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7902
7903 if test "${build}" != "${host}"; then
7904 # On Canadian crosses, CC_FOR_TARGET will have already been set
7905 # by `configure', so we won't have an opportunity to add -Bgcc/
7906 # to it. This is right: we don't want to search that directory
7907 # for binaries, but we want the header files in there, so add
7908 # them explicitly.
7909 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7910
7911 # Someone might think of using the pre-installed headers on
7912 # Canadian crosses, in case the installed compiler is not fully
7913 # compatible with the compiler being built. In this case, it
7914 # would be better to flag an error than risking having
7915 # incompatible object files being constructed. We can't
7916 # guarantee that an error will be flagged, but let's hope the
7917 # compiler will do it, when presented with incompatible header
7918 # files.
7919 fi
7920 fi
7921
7922 case "${target}-${is_cross_compiler}" in
7923 i[3456789]86-*-linux*-no)
7924 # Here host == target, so we don't need to build gcc,
7925 # so we don't want to discard standard headers.
7926 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7927 ;;
7928 *)
7929 # If we're building newlib, use its generic headers last, but search
7930 # for any libc-related directories first (so make it the last -B
7931 # switch).
7932 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7933
7934 # If we're building libgloss, find the startup file, simulator library
7935 # and linker script.
7936 case " $target_configdirs " in
7937 *" libgloss "*)
7938 # Look for startup file, simulator library and maybe linker script.
7939 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7940 # Look for libnosys.a in case the target needs it.
7941 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7942 # Most targets have the linker script in the source directory.
7943 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7944 ;;
7945 esac
7946 ;;
7947 esac
7948 ;;
7949 esac
7950 ;;
7951 esac
7952
7953 case "$target" in
7954 x86_64-*mingw* | *-w64-mingw*)
7955 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7956 # however, use a symlink named 'mingw' in ${prefix} .
7957 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7958 ;;
7959 *-mingw*)
7960 # MinGW can't be handled as Cygwin above since it does not use newlib.
7961 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'
7962 ;;
7963 esac
7964
7965 # Allow the user to override the flags for
7966 # our build compiler if desired.
7967 if test x"${build}" = x"${host}" ; then
7968 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7969 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7970 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7971 fi
7972
7973 # On Canadian crosses, we'll be searching the right directories for
7974 # the previously-installed cross compiler, so don't bother to add
7975 # flags for directories within the install tree of the compiler
7976 # being built; programs in there won't even run.
7977 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7978 # Search for pre-installed headers if nothing else fits.
7979 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7980 fi
7981
7982 if test "x${use_gnu_ld}" = x &&
7983 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7984 # Arrange for us to find uninstalled linker scripts.
7985 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7986 fi
7987
7988 # Search for other target-specific linker scripts and such.
7989 case "${target}" in
7990 mep*)
7991 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7992 ;;
7993 esac
7994
7995 # Makefile fragments.
7996 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7997 do
7998 eval fragval=\$$frag
7999 if test $fragval != /dev/null; then
8000 eval $frag=${srcdir}/$fragval
8001 fi
8002 done
8003
8004
8005
8006
8007
8008 # Miscellanea: directories, flags, etc.
8009
8010
8011
8012
8013
8014
8015
8016
8017 # Build module lists & subconfigure args.
8018
8019
8020
8021 # Host module lists & subconfigure args.
8022
8023
8024
8025
8026 # Target module lists & subconfigure args.
8027
8028
8029
8030 # Build tools.
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047 # Generate default definitions for YACC, M4, LEX and other programs that run
8048 # on the build machine. These are used if the Makefile can't locate these
8049 # programs in objdir.
8050 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8051
8052 for ac_prog in 'bison -y' byacc yacc
8053 do
8054 # Extract the first word of "$ac_prog", so it can be a program name with args.
8055 set dummy $ac_prog; ac_word=$2
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 $as_echo_n "checking for $ac_word... " >&6; }
8058 if ${ac_cv_prog_YACC+:} false; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 if test -n "$YACC"; then
8062 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8063 else
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8066 do
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071 ac_cv_prog_YACC="$ac_prog"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8074 fi
8075 done
8076 done
8077 IFS=$as_save_IFS
8078
8079 fi
8080 fi
8081 YACC=$ac_cv_prog_YACC
8082 if test -n "$YACC"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8084 $as_echo "$YACC" >&6; }
8085 else
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087 $as_echo "no" >&6; }
8088 fi
8089
8090
8091 test -n "$YACC" && break
8092 done
8093 test -n "$YACC" || YACC="$MISSING bison -y"
8094
8095 case " $build_configdirs " in
8096 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8097 esac
8098
8099 for ac_prog in bison
8100 do
8101 # Extract the first word of "$ac_prog", so it can be a program name with args.
8102 set dummy $ac_prog; ac_word=$2
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8104 $as_echo_n "checking for $ac_word... " >&6; }
8105 if ${ac_cv_prog_BISON+:} false; then :
8106 $as_echo_n "(cached) " >&6
8107 else
8108 if test -n "$BISON"; then
8109 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8110 else
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH
8113 do
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8118 ac_cv_prog_BISON="$ac_prog"
8119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 break 2
8121 fi
8122 done
8123 done
8124 IFS=$as_save_IFS
8125
8126 fi
8127 fi
8128 BISON=$ac_cv_prog_BISON
8129 if test -n "$BISON"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8131 $as_echo "$BISON" >&6; }
8132 else
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134 $as_echo "no" >&6; }
8135 fi
8136
8137
8138 test -n "$BISON" && break
8139 done
8140 test -n "$BISON" || BISON="$MISSING bison"
8141
8142 case " $build_configdirs " in
8143 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8144 esac
8145
8146 for ac_prog in gm4 gnum4 m4
8147 do
8148 # Extract the first word of "$ac_prog", so it can be a program name with args.
8149 set dummy $ac_prog; ac_word=$2
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151 $as_echo_n "checking for $ac_word... " >&6; }
8152 if ${ac_cv_prog_M4+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 if test -n "$M4"; then
8156 ac_cv_prog_M4="$M4" # Let the user override the test.
8157 else
8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159 for as_dir in $PATH
8160 do
8161 IFS=$as_save_IFS
8162 test -z "$as_dir" && as_dir=.
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8165 ac_cv_prog_M4="$ac_prog"
8166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167 break 2
8168 fi
8169 done
8170 done
8171 IFS=$as_save_IFS
8172
8173 fi
8174 fi
8175 M4=$ac_cv_prog_M4
8176 if test -n "$M4"; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8178 $as_echo "$M4" >&6; }
8179 else
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8182 fi
8183
8184
8185 test -n "$M4" && break
8186 done
8187 test -n "$M4" || M4="$MISSING m4"
8188
8189 case " $build_configdirs " in
8190 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8191 esac
8192
8193 for ac_prog in flex lex
8194 do
8195 # Extract the first word of "$ac_prog", so it can be a program name with args.
8196 set dummy $ac_prog; ac_word=$2
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198 $as_echo_n "checking for $ac_word... " >&6; }
8199 if ${ac_cv_prog_LEX+:} false; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 if test -n "$LEX"; then
8203 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8204 else
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in $PATH
8207 do
8208 IFS=$as_save_IFS
8209 test -z "$as_dir" && as_dir=.
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8212 ac_cv_prog_LEX="$ac_prog"
8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8214 break 2
8215 fi
8216 done
8217 done
8218 IFS=$as_save_IFS
8219
8220 fi
8221 fi
8222 LEX=$ac_cv_prog_LEX
8223 if test -n "$LEX"; then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8225 $as_echo "$LEX" >&6; }
8226 else
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8229 fi
8230
8231
8232 test -n "$LEX" && break
8233 done
8234 test -n "$LEX" || LEX="$MISSING flex"
8235
8236 case " $build_configdirs " in
8237 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8238 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8239 esac
8240
8241 for ac_prog in flex
8242 do
8243 # Extract the first word of "$ac_prog", so it can be a program name with args.
8244 set dummy $ac_prog; ac_word=$2
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8246 $as_echo_n "checking for $ac_word... " >&6; }
8247 if ${ac_cv_prog_FLEX+:} false; then :
8248 $as_echo_n "(cached) " >&6
8249 else
8250 if test -n "$FLEX"; then
8251 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8252 else
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 for as_dir in $PATH
8255 do
8256 IFS=$as_save_IFS
8257 test -z "$as_dir" && as_dir=.
8258 for ac_exec_ext in '' $ac_executable_extensions; do
8259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8260 ac_cv_prog_FLEX="$ac_prog"
8261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262 break 2
8263 fi
8264 done
8265 done
8266 IFS=$as_save_IFS
8267
8268 fi
8269 fi
8270 FLEX=$ac_cv_prog_FLEX
8271 if test -n "$FLEX"; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8273 $as_echo "$FLEX" >&6; }
8274 else
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276 $as_echo "no" >&6; }
8277 fi
8278
8279
8280 test -n "$FLEX" && break
8281 done
8282 test -n "$FLEX" || FLEX="$MISSING flex"
8283
8284 case " $build_configdirs " in
8285 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8286 esac
8287
8288 for ac_prog in makeinfo
8289 do
8290 # Extract the first word of "$ac_prog", so it can be a program name with args.
8291 set dummy $ac_prog; ac_word=$2
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293 $as_echo_n "checking for $ac_word... " >&6; }
8294 if ${ac_cv_prog_MAKEINFO+:} false; then :
8295 $as_echo_n "(cached) " >&6
8296 else
8297 if test -n "$MAKEINFO"; then
8298 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8299 else
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8302 do
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8307 ac_cv_prog_MAKEINFO="$ac_prog"
8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8310 fi
8311 done
8312 done
8313 IFS=$as_save_IFS
8314
8315 fi
8316 fi
8317 MAKEINFO=$ac_cv_prog_MAKEINFO
8318 if test -n "$MAKEINFO"; then
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8320 $as_echo "$MAKEINFO" >&6; }
8321 else
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323 $as_echo "no" >&6; }
8324 fi
8325
8326
8327 test -n "$MAKEINFO" && break
8328 done
8329 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8330
8331 case " $build_configdirs " in
8332 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8333 *)
8334
8335 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8336 # higher, else we use the "missing" dummy.
8337 if ${MAKEINFO} --version \
8338 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8339 :
8340 else
8341 MAKEINFO="$MISSING makeinfo"
8342 fi
8343 ;;
8344
8345 esac
8346
8347 # FIXME: expect and dejagnu may become build tools?
8348
8349 for ac_prog in expect
8350 do
8351 # Extract the first word of "$ac_prog", so it can be a program name with args.
8352 set dummy $ac_prog; ac_word=$2
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354 $as_echo_n "checking for $ac_word... " >&6; }
8355 if ${ac_cv_prog_EXPECT+:} false; then :
8356 $as_echo_n "(cached) " >&6
8357 else
8358 if test -n "$EXPECT"; then
8359 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8360 else
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 for as_dir in $PATH
8363 do
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8368 ac_cv_prog_EXPECT="$ac_prog"
8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 break 2
8371 fi
8372 done
8373 done
8374 IFS=$as_save_IFS
8375
8376 fi
8377 fi
8378 EXPECT=$ac_cv_prog_EXPECT
8379 if test -n "$EXPECT"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8381 $as_echo "$EXPECT" >&6; }
8382 else
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8385 fi
8386
8387
8388 test -n "$EXPECT" && break
8389 done
8390 test -n "$EXPECT" || EXPECT="expect"
8391
8392 case " $configdirs " in
8393 *" expect "*)
8394 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8395 ;;
8396 esac
8397
8398 for ac_prog in runtest
8399 do
8400 # Extract the first word of "$ac_prog", so it can be a program name with args.
8401 set dummy $ac_prog; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if ${ac_cv_prog_RUNTEST+:} false; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 if test -n "$RUNTEST"; then
8408 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8417 ac_cv_prog_RUNTEST="$ac_prog"
8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 break 2
8420 fi
8421 done
8422 done
8423 IFS=$as_save_IFS
8424
8425 fi
8426 fi
8427 RUNTEST=$ac_cv_prog_RUNTEST
8428 if test -n "$RUNTEST"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8430 $as_echo "$RUNTEST" >&6; }
8431 else
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8434 fi
8435
8436
8437 test -n "$RUNTEST" && break
8438 done
8439 test -n "$RUNTEST" || RUNTEST="runtest"
8440
8441 case " $configdirs " in
8442 *" dejagnu "*)
8443 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8444 ;;
8445 esac
8446
8447
8448 # Host tools.
8449 ncn_tool_prefix=
8450 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8451 ncn_target_tool_prefix=
8452 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8453
8454
8455
8456 if test -n "$AR"; then
8457 ac_cv_prog_AR=$AR
8458 elif test -n "$ac_cv_prog_AR"; then
8459 AR=$ac_cv_prog_AR
8460 fi
8461
8462 if test -n "$ac_cv_prog_AR"; then
8463 for ncn_progname in ar; do
8464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8465 set dummy ${ncn_progname}; ac_word=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if ${ac_cv_prog_AR+:} false; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 if test -n "$AR"; then
8472 ac_cv_prog_AR="$AR" # Let the user override the test.
8473 else
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 for as_dir in $PATH
8476 do
8477 IFS=$as_save_IFS
8478 test -z "$as_dir" && as_dir=.
8479 for ac_exec_ext in '' $ac_executable_extensions; do
8480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8481 ac_cv_prog_AR="${ncn_progname}"
8482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8483 break 2
8484 fi
8485 done
8486 done
8487 IFS=$as_save_IFS
8488
8489 fi
8490 fi
8491 AR=$ac_cv_prog_AR
8492 if test -n "$AR"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8494 $as_echo "$AR" >&6; }
8495 else
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8498 fi
8499
8500
8501 done
8502 fi
8503
8504 for ncn_progname in ar; do
8505 if test -n "$ncn_tool_prefix"; then
8506 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8507 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509 $as_echo_n "checking for $ac_word... " >&6; }
8510 if ${ac_cv_prog_AR+:} false; then :
8511 $as_echo_n "(cached) " >&6
8512 else
8513 if test -n "$AR"; then
8514 ac_cv_prog_AR="$AR" # Let the user override the test.
8515 else
8516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8517 for as_dir in $PATH
8518 do
8519 IFS=$as_save_IFS
8520 test -z "$as_dir" && as_dir=.
8521 for ac_exec_ext in '' $ac_executable_extensions; do
8522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8523 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 break 2
8526 fi
8527 done
8528 done
8529 IFS=$as_save_IFS
8530
8531 fi
8532 fi
8533 AR=$ac_cv_prog_AR
8534 if test -n "$AR"; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8536 $as_echo "$AR" >&6; }
8537 else
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539 $as_echo "no" >&6; }
8540 fi
8541
8542
8543 fi
8544 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8546 set dummy ${ncn_progname}; ac_word=$2
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548 $as_echo_n "checking for $ac_word... " >&6; }
8549 if ${ac_cv_prog_AR+:} false; then :
8550 $as_echo_n "(cached) " >&6
8551 else
8552 if test -n "$AR"; then
8553 ac_cv_prog_AR="$AR" # Let the user override the test.
8554 else
8555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556 for as_dir in $PATH
8557 do
8558 IFS=$as_save_IFS
8559 test -z "$as_dir" && as_dir=.
8560 for ac_exec_ext in '' $ac_executable_extensions; do
8561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8562 ac_cv_prog_AR="${ncn_progname}"
8563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8564 break 2
8565 fi
8566 done
8567 done
8568 IFS=$as_save_IFS
8569
8570 fi
8571 fi
8572 AR=$ac_cv_prog_AR
8573 if test -n "$AR"; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8575 $as_echo "$AR" >&6; }
8576 else
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578 $as_echo "no" >&6; }
8579 fi
8580
8581
8582 fi
8583 test -n "$ac_cv_prog_AR" && break
8584 done
8585
8586 if test -z "$ac_cv_prog_AR" ; then
8587 set dummy ar
8588 if test $build = $host ; then
8589 AR="$2"
8590 else
8591 AR="${ncn_tool_prefix}$2"
8592 fi
8593 fi
8594
8595
8596
8597 if test -n "$AS"; then
8598 ac_cv_prog_AS=$AS
8599 elif test -n "$ac_cv_prog_AS"; then
8600 AS=$ac_cv_prog_AS
8601 fi
8602
8603 if test -n "$ac_cv_prog_AS"; then
8604 for ncn_progname in as; do
8605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8606 set dummy ${ncn_progname}; ac_word=$2
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608 $as_echo_n "checking for $ac_word... " >&6; }
8609 if ${ac_cv_prog_AS+:} false; then :
8610 $as_echo_n "(cached) " >&6
8611 else
8612 if test -n "$AS"; then
8613 ac_cv_prog_AS="$AS" # Let the user override the test.
8614 else
8615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616 for as_dir in $PATH
8617 do
8618 IFS=$as_save_IFS
8619 test -z "$as_dir" && as_dir=.
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8622 ac_cv_prog_AS="${ncn_progname}"
8623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 break 2
8625 fi
8626 done
8627 done
8628 IFS=$as_save_IFS
8629
8630 fi
8631 fi
8632 AS=$ac_cv_prog_AS
8633 if test -n "$AS"; then
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8635 $as_echo "$AS" >&6; }
8636 else
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638 $as_echo "no" >&6; }
8639 fi
8640
8641
8642 done
8643 fi
8644
8645 for ncn_progname in as; do
8646 if test -n "$ncn_tool_prefix"; then
8647 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8648 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 $as_echo_n "checking for $ac_word... " >&6; }
8651 if ${ac_cv_prog_AS+:} false; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 if test -n "$AS"; then
8655 ac_cv_prog_AS="$AS" # Let the user override the test.
8656 else
8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658 for as_dir in $PATH
8659 do
8660 IFS=$as_save_IFS
8661 test -z "$as_dir" && as_dir=.
8662 for ac_exec_ext in '' $ac_executable_extensions; do
8663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8664 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8666 break 2
8667 fi
8668 done
8669 done
8670 IFS=$as_save_IFS
8671
8672 fi
8673 fi
8674 AS=$ac_cv_prog_AS
8675 if test -n "$AS"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8677 $as_echo "$AS" >&6; }
8678 else
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8681 fi
8682
8683
8684 fi
8685 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8687 set dummy ${ncn_progname}; ac_word=$2
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 $as_echo_n "checking for $ac_word... " >&6; }
8690 if ${ac_cv_prog_AS+:} false; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 if test -n "$AS"; then
8694 ac_cv_prog_AS="$AS" # Let the user override the test.
8695 else
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697 for as_dir in $PATH
8698 do
8699 IFS=$as_save_IFS
8700 test -z "$as_dir" && as_dir=.
8701 for ac_exec_ext in '' $ac_executable_extensions; do
8702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8703 ac_cv_prog_AS="${ncn_progname}"
8704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8705 break 2
8706 fi
8707 done
8708 done
8709 IFS=$as_save_IFS
8710
8711 fi
8712 fi
8713 AS=$ac_cv_prog_AS
8714 if test -n "$AS"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8716 $as_echo "$AS" >&6; }
8717 else
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8720 fi
8721
8722
8723 fi
8724 test -n "$ac_cv_prog_AS" && break
8725 done
8726
8727 if test -z "$ac_cv_prog_AS" ; then
8728 set dummy as
8729 if test $build = $host ; then
8730 AS="$2"
8731 else
8732 AS="${ncn_tool_prefix}$2"
8733 fi
8734 fi
8735
8736
8737
8738 if test -n "$DLLTOOL"; then
8739 ac_cv_prog_DLLTOOL=$DLLTOOL
8740 elif test -n "$ac_cv_prog_DLLTOOL"; then
8741 DLLTOOL=$ac_cv_prog_DLLTOOL
8742 fi
8743
8744 if test -n "$ac_cv_prog_DLLTOOL"; then
8745 for ncn_progname in dlltool; do
8746 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8747 set dummy ${ncn_progname}; ac_word=$2
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749 $as_echo_n "checking for $ac_word... " >&6; }
8750 if ${ac_cv_prog_DLLTOOL+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 if test -n "$DLLTOOL"; then
8754 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8755 else
8756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757 for as_dir in $PATH
8758 do
8759 IFS=$as_save_IFS
8760 test -z "$as_dir" && as_dir=.
8761 for ac_exec_ext in '' $ac_executable_extensions; do
8762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763 ac_cv_prog_DLLTOOL="${ncn_progname}"
8764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 break 2
8766 fi
8767 done
8768 done
8769 IFS=$as_save_IFS
8770
8771 fi
8772 fi
8773 DLLTOOL=$ac_cv_prog_DLLTOOL
8774 if test -n "$DLLTOOL"; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8776 $as_echo "$DLLTOOL" >&6; }
8777 else
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 $as_echo "no" >&6; }
8780 fi
8781
8782
8783 done
8784 fi
8785
8786 for ncn_progname in dlltool; do
8787 if test -n "$ncn_tool_prefix"; then
8788 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8789 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8791 $as_echo_n "checking for $ac_word... " >&6; }
8792 if ${ac_cv_prog_DLLTOOL+:} false; then :
8793 $as_echo_n "(cached) " >&6
8794 else
8795 if test -n "$DLLTOOL"; then
8796 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8797 else
8798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799 for as_dir in $PATH
8800 do
8801 IFS=$as_save_IFS
8802 test -z "$as_dir" && as_dir=.
8803 for ac_exec_ext in '' $ac_executable_extensions; do
8804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8805 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8807 break 2
8808 fi
8809 done
8810 done
8811 IFS=$as_save_IFS
8812
8813 fi
8814 fi
8815 DLLTOOL=$ac_cv_prog_DLLTOOL
8816 if test -n "$DLLTOOL"; then
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8818 $as_echo "$DLLTOOL" >&6; }
8819 else
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8821 $as_echo "no" >&6; }
8822 fi
8823
8824
8825 fi
8826 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8828 set dummy ${ncn_progname}; ac_word=$2
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8830 $as_echo_n "checking for $ac_word... " >&6; }
8831 if ${ac_cv_prog_DLLTOOL+:} false; then :
8832 $as_echo_n "(cached) " >&6
8833 else
8834 if test -n "$DLLTOOL"; then
8835 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8836 else
8837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838 for as_dir in $PATH
8839 do
8840 IFS=$as_save_IFS
8841 test -z "$as_dir" && as_dir=.
8842 for ac_exec_ext in '' $ac_executable_extensions; do
8843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8844 ac_cv_prog_DLLTOOL="${ncn_progname}"
8845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8846 break 2
8847 fi
8848 done
8849 done
8850 IFS=$as_save_IFS
8851
8852 fi
8853 fi
8854 DLLTOOL=$ac_cv_prog_DLLTOOL
8855 if test -n "$DLLTOOL"; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8857 $as_echo "$DLLTOOL" >&6; }
8858 else
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860 $as_echo "no" >&6; }
8861 fi
8862
8863
8864 fi
8865 test -n "$ac_cv_prog_DLLTOOL" && break
8866 done
8867
8868 if test -z "$ac_cv_prog_DLLTOOL" ; then
8869 set dummy dlltool
8870 if test $build = $host ; then
8871 DLLTOOL="$2"
8872 else
8873 DLLTOOL="${ncn_tool_prefix}$2"
8874 fi
8875 fi
8876
8877
8878
8879 if test -n "$LD"; then
8880 ac_cv_prog_LD=$LD
8881 elif test -n "$ac_cv_prog_LD"; then
8882 LD=$ac_cv_prog_LD
8883 fi
8884
8885 if test -n "$ac_cv_prog_LD"; then
8886 for ncn_progname in ld; do
8887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8888 set dummy ${ncn_progname}; ac_word=$2
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8890 $as_echo_n "checking for $ac_word... " >&6; }
8891 if ${ac_cv_prog_LD+:} false; then :
8892 $as_echo_n "(cached) " >&6
8893 else
8894 if test -n "$LD"; then
8895 ac_cv_prog_LD="$LD" # Let the user override the test.
8896 else
8897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8898 for as_dir in $PATH
8899 do
8900 IFS=$as_save_IFS
8901 test -z "$as_dir" && as_dir=.
8902 for ac_exec_ext in '' $ac_executable_extensions; do
8903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8904 ac_cv_prog_LD="${ncn_progname}"
8905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8906 break 2
8907 fi
8908 done
8909 done
8910 IFS=$as_save_IFS
8911
8912 fi
8913 fi
8914 LD=$ac_cv_prog_LD
8915 if test -n "$LD"; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8917 $as_echo "$LD" >&6; }
8918 else
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920 $as_echo "no" >&6; }
8921 fi
8922
8923
8924 done
8925 fi
8926
8927 for ncn_progname in ld; do
8928 if test -n "$ncn_tool_prefix"; then
8929 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8930 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8932 $as_echo_n "checking for $ac_word... " >&6; }
8933 if ${ac_cv_prog_LD+:} false; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 if test -n "$LD"; then
8937 ac_cv_prog_LD="$LD" # Let the user override the test.
8938 else
8939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8940 for as_dir in $PATH
8941 do
8942 IFS=$as_save_IFS
8943 test -z "$as_dir" && as_dir=.
8944 for ac_exec_ext in '' $ac_executable_extensions; do
8945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8946 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8948 break 2
8949 fi
8950 done
8951 done
8952 IFS=$as_save_IFS
8953
8954 fi
8955 fi
8956 LD=$ac_cv_prog_LD
8957 if test -n "$LD"; then
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8959 $as_echo "$LD" >&6; }
8960 else
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962 $as_echo "no" >&6; }
8963 fi
8964
8965
8966 fi
8967 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8969 set dummy ${ncn_progname}; ac_word=$2
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8971 $as_echo_n "checking for $ac_word... " >&6; }
8972 if ${ac_cv_prog_LD+:} false; then :
8973 $as_echo_n "(cached) " >&6
8974 else
8975 if test -n "$LD"; then
8976 ac_cv_prog_LD="$LD" # Let the user override the test.
8977 else
8978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979 for as_dir in $PATH
8980 do
8981 IFS=$as_save_IFS
8982 test -z "$as_dir" && as_dir=.
8983 for ac_exec_ext in '' $ac_executable_extensions; do
8984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8985 ac_cv_prog_LD="${ncn_progname}"
8986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8987 break 2
8988 fi
8989 done
8990 done
8991 IFS=$as_save_IFS
8992
8993 fi
8994 fi
8995 LD=$ac_cv_prog_LD
8996 if test -n "$LD"; then
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8998 $as_echo "$LD" >&6; }
8999 else
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001 $as_echo "no" >&6; }
9002 fi
9003
9004
9005 fi
9006 test -n "$ac_cv_prog_LD" && break
9007 done
9008
9009 if test -z "$ac_cv_prog_LD" ; then
9010 set dummy ld
9011 if test $build = $host ; then
9012 LD="$2"
9013 else
9014 LD="${ncn_tool_prefix}$2"
9015 fi
9016 fi
9017
9018
9019
9020 if test -n "$LIPO"; then
9021 ac_cv_prog_LIPO=$LIPO
9022 elif test -n "$ac_cv_prog_LIPO"; then
9023 LIPO=$ac_cv_prog_LIPO
9024 fi
9025
9026 if test -n "$ac_cv_prog_LIPO"; then
9027 for ncn_progname in lipo; do
9028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9029 set dummy ${ncn_progname}; ac_word=$2
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031 $as_echo_n "checking for $ac_word... " >&6; }
9032 if ${ac_cv_prog_LIPO+:} false; then :
9033 $as_echo_n "(cached) " >&6
9034 else
9035 if test -n "$LIPO"; then
9036 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9037 else
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039 for as_dir in $PATH
9040 do
9041 IFS=$as_save_IFS
9042 test -z "$as_dir" && as_dir=.
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9045 ac_cv_prog_LIPO="${ncn_progname}"
9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9047 break 2
9048 fi
9049 done
9050 done
9051 IFS=$as_save_IFS
9052
9053 fi
9054 fi
9055 LIPO=$ac_cv_prog_LIPO
9056 if test -n "$LIPO"; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9058 $as_echo "$LIPO" >&6; }
9059 else
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061 $as_echo "no" >&6; }
9062 fi
9063
9064
9065 done
9066 fi
9067
9068 for ncn_progname in lipo; do
9069 if test -n "$ncn_tool_prefix"; then
9070 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9071 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9073 $as_echo_n "checking for $ac_word... " >&6; }
9074 if ${ac_cv_prog_LIPO+:} false; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 if test -n "$LIPO"; then
9078 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9079 else
9080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 for as_dir in $PATH
9082 do
9083 IFS=$as_save_IFS
9084 test -z "$as_dir" && as_dir=.
9085 for ac_exec_ext in '' $ac_executable_extensions; do
9086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9087 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
9088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9089 break 2
9090 fi
9091 done
9092 done
9093 IFS=$as_save_IFS
9094
9095 fi
9096 fi
9097 LIPO=$ac_cv_prog_LIPO
9098 if test -n "$LIPO"; then
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9100 $as_echo "$LIPO" >&6; }
9101 else
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103 $as_echo "no" >&6; }
9104 fi
9105
9106
9107 fi
9108 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9110 set dummy ${ncn_progname}; ac_word=$2
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112 $as_echo_n "checking for $ac_word... " >&6; }
9113 if ${ac_cv_prog_LIPO+:} false; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 if test -n "$LIPO"; then
9117 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9118 else
9119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120 for as_dir in $PATH
9121 do
9122 IFS=$as_save_IFS
9123 test -z "$as_dir" && as_dir=.
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9126 ac_cv_prog_LIPO="${ncn_progname}"
9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 break 2
9129 fi
9130 done
9131 done
9132 IFS=$as_save_IFS
9133
9134 fi
9135 fi
9136 LIPO=$ac_cv_prog_LIPO
9137 if test -n "$LIPO"; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9139 $as_echo "$LIPO" >&6; }
9140 else
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 $as_echo "no" >&6; }
9143 fi
9144
9145
9146 fi
9147 test -n "$ac_cv_prog_LIPO" && break
9148 done
9149
9150 if test -z "$ac_cv_prog_LIPO" ; then
9151 set dummy lipo
9152 if test $build = $host ; then
9153 LIPO="$2"
9154 else
9155 LIPO="${ncn_tool_prefix}$2"
9156 fi
9157 fi
9158
9159
9160
9161 if test -n "$NM"; then
9162 ac_cv_prog_NM=$NM
9163 elif test -n "$ac_cv_prog_NM"; then
9164 NM=$ac_cv_prog_NM
9165 fi
9166
9167 if test -n "$ac_cv_prog_NM"; then
9168 for ncn_progname in nm; do
9169 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9170 set dummy ${ncn_progname}; ac_word=$2
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9172 $as_echo_n "checking for $ac_word... " >&6; }
9173 if ${ac_cv_prog_NM+:} false; then :
9174 $as_echo_n "(cached) " >&6
9175 else
9176 if test -n "$NM"; then
9177 ac_cv_prog_NM="$NM" # Let the user override the test.
9178 else
9179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9180 for as_dir in $PATH
9181 do
9182 IFS=$as_save_IFS
9183 test -z "$as_dir" && as_dir=.
9184 for ac_exec_ext in '' $ac_executable_extensions; do
9185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9186 ac_cv_prog_NM="${ncn_progname}"
9187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9188 break 2
9189 fi
9190 done
9191 done
9192 IFS=$as_save_IFS
9193
9194 fi
9195 fi
9196 NM=$ac_cv_prog_NM
9197 if test -n "$NM"; then
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9199 $as_echo "$NM" >&6; }
9200 else
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9202 $as_echo "no" >&6; }
9203 fi
9204
9205
9206 done
9207 fi
9208
9209 for ncn_progname in nm; do
9210 if test -n "$ncn_tool_prefix"; then
9211 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9212 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9214 $as_echo_n "checking for $ac_word... " >&6; }
9215 if ${ac_cv_prog_NM+:} false; then :
9216 $as_echo_n "(cached) " >&6
9217 else
9218 if test -n "$NM"; then
9219 ac_cv_prog_NM="$NM" # Let the user override the test.
9220 else
9221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222 for as_dir in $PATH
9223 do
9224 IFS=$as_save_IFS
9225 test -z "$as_dir" && as_dir=.
9226 for ac_exec_ext in '' $ac_executable_extensions; do
9227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9228 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9230 break 2
9231 fi
9232 done
9233 done
9234 IFS=$as_save_IFS
9235
9236 fi
9237 fi
9238 NM=$ac_cv_prog_NM
9239 if test -n "$NM"; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9241 $as_echo "$NM" >&6; }
9242 else
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244 $as_echo "no" >&6; }
9245 fi
9246
9247
9248 fi
9249 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9251 set dummy ${ncn_progname}; ac_word=$2
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9253 $as_echo_n "checking for $ac_word... " >&6; }
9254 if ${ac_cv_prog_NM+:} false; then :
9255 $as_echo_n "(cached) " >&6
9256 else
9257 if test -n "$NM"; then
9258 ac_cv_prog_NM="$NM" # Let the user override the test.
9259 else
9260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9261 for as_dir in $PATH
9262 do
9263 IFS=$as_save_IFS
9264 test -z "$as_dir" && as_dir=.
9265 for ac_exec_ext in '' $ac_executable_extensions; do
9266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9267 ac_cv_prog_NM="${ncn_progname}"
9268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9269 break 2
9270 fi
9271 done
9272 done
9273 IFS=$as_save_IFS
9274
9275 fi
9276 fi
9277 NM=$ac_cv_prog_NM
9278 if test -n "$NM"; then
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9280 $as_echo "$NM" >&6; }
9281 else
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283 $as_echo "no" >&6; }
9284 fi
9285
9286
9287 fi
9288 test -n "$ac_cv_prog_NM" && break
9289 done
9290
9291 if test -z "$ac_cv_prog_NM" ; then
9292 set dummy nm
9293 if test $build = $host ; then
9294 NM="$2"
9295 else
9296 NM="${ncn_tool_prefix}$2"
9297 fi
9298 fi
9299
9300
9301
9302 if test -n "$RANLIB"; then
9303 ac_cv_prog_RANLIB=$RANLIB
9304 elif test -n "$ac_cv_prog_RANLIB"; then
9305 RANLIB=$ac_cv_prog_RANLIB
9306 fi
9307
9308 if test -n "$ac_cv_prog_RANLIB"; then
9309 for ncn_progname in ranlib; do
9310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9311 set dummy ${ncn_progname}; ac_word=$2
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313 $as_echo_n "checking for $ac_word... " >&6; }
9314 if ${ac_cv_prog_RANLIB+:} false; then :
9315 $as_echo_n "(cached) " >&6
9316 else
9317 if test -n "$RANLIB"; then
9318 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9319 else
9320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9321 for as_dir in $PATH
9322 do
9323 IFS=$as_save_IFS
9324 test -z "$as_dir" && as_dir=.
9325 for ac_exec_ext in '' $ac_executable_extensions; do
9326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9327 ac_cv_prog_RANLIB="${ncn_progname}"
9328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9329 break 2
9330 fi
9331 done
9332 done
9333 IFS=$as_save_IFS
9334
9335 fi
9336 fi
9337 RANLIB=$ac_cv_prog_RANLIB
9338 if test -n "$RANLIB"; then
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9340 $as_echo "$RANLIB" >&6; }
9341 else
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343 $as_echo "no" >&6; }
9344 fi
9345
9346
9347 done
9348 fi
9349
9350 for ncn_progname in ranlib; do
9351 if test -n "$ncn_tool_prefix"; then
9352 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9353 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9355 $as_echo_n "checking for $ac_word... " >&6; }
9356 if ${ac_cv_prog_RANLIB+:} false; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 if test -n "$RANLIB"; then
9360 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9361 else
9362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9363 for as_dir in $PATH
9364 do
9365 IFS=$as_save_IFS
9366 test -z "$as_dir" && as_dir=.
9367 for ac_exec_ext in '' $ac_executable_extensions; do
9368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9369 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9371 break 2
9372 fi
9373 done
9374 done
9375 IFS=$as_save_IFS
9376
9377 fi
9378 fi
9379 RANLIB=$ac_cv_prog_RANLIB
9380 if test -n "$RANLIB"; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9382 $as_echo "$RANLIB" >&6; }
9383 else
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9385 $as_echo "no" >&6; }
9386 fi
9387
9388
9389 fi
9390 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9392 set dummy ${ncn_progname}; ac_word=$2
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9394 $as_echo_n "checking for $ac_word... " >&6; }
9395 if ${ac_cv_prog_RANLIB+:} false; then :
9396 $as_echo_n "(cached) " >&6
9397 else
9398 if test -n "$RANLIB"; then
9399 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9400 else
9401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9402 for as_dir in $PATH
9403 do
9404 IFS=$as_save_IFS
9405 test -z "$as_dir" && as_dir=.
9406 for ac_exec_ext in '' $ac_executable_extensions; do
9407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9408 ac_cv_prog_RANLIB="${ncn_progname}"
9409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9410 break 2
9411 fi
9412 done
9413 done
9414 IFS=$as_save_IFS
9415
9416 fi
9417 fi
9418 RANLIB=$ac_cv_prog_RANLIB
9419 if test -n "$RANLIB"; then
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9421 $as_echo "$RANLIB" >&6; }
9422 else
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9424 $as_echo "no" >&6; }
9425 fi
9426
9427
9428 fi
9429 test -n "$ac_cv_prog_RANLIB" && break
9430 done
9431
9432 if test -z "$ac_cv_prog_RANLIB" ; then
9433 RANLIB="true"
9434 fi
9435
9436
9437
9438 if test -n "$STRIP"; then
9439 ac_cv_prog_STRIP=$STRIP
9440 elif test -n "$ac_cv_prog_STRIP"; then
9441 STRIP=$ac_cv_prog_STRIP
9442 fi
9443
9444 if test -n "$ac_cv_prog_STRIP"; then
9445 for ncn_progname in strip; do
9446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9447 set dummy ${ncn_progname}; ac_word=$2
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9449 $as_echo_n "checking for $ac_word... " >&6; }
9450 if ${ac_cv_prog_STRIP+:} false; then :
9451 $as_echo_n "(cached) " >&6
9452 else
9453 if test -n "$STRIP"; then
9454 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9455 else
9456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457 for as_dir in $PATH
9458 do
9459 IFS=$as_save_IFS
9460 test -z "$as_dir" && as_dir=.
9461 for ac_exec_ext in '' $ac_executable_extensions; do
9462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9463 ac_cv_prog_STRIP="${ncn_progname}"
9464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9465 break 2
9466 fi
9467 done
9468 done
9469 IFS=$as_save_IFS
9470
9471 fi
9472 fi
9473 STRIP=$ac_cv_prog_STRIP
9474 if test -n "$STRIP"; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9476 $as_echo "$STRIP" >&6; }
9477 else
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479 $as_echo "no" >&6; }
9480 fi
9481
9482
9483 done
9484 fi
9485
9486 for ncn_progname in strip; do
9487 if test -n "$ncn_tool_prefix"; then
9488 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9489 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9491 $as_echo_n "checking for $ac_word... " >&6; }
9492 if ${ac_cv_prog_STRIP+:} false; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 if test -n "$STRIP"; then
9496 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9497 else
9498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9499 for as_dir in $PATH
9500 do
9501 IFS=$as_save_IFS
9502 test -z "$as_dir" && as_dir=.
9503 for ac_exec_ext in '' $ac_executable_extensions; do
9504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9505 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9507 break 2
9508 fi
9509 done
9510 done
9511 IFS=$as_save_IFS
9512
9513 fi
9514 fi
9515 STRIP=$ac_cv_prog_STRIP
9516 if test -n "$STRIP"; then
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9518 $as_echo "$STRIP" >&6; }
9519 else
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521 $as_echo "no" >&6; }
9522 fi
9523
9524
9525 fi
9526 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9527 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9528 set dummy ${ncn_progname}; ac_word=$2
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530 $as_echo_n "checking for $ac_word... " >&6; }
9531 if ${ac_cv_prog_STRIP+:} false; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 if test -n "$STRIP"; then
9535 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9536 else
9537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538 for as_dir in $PATH
9539 do
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9544 ac_cv_prog_STRIP="${ncn_progname}"
9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9546 break 2
9547 fi
9548 done
9549 done
9550 IFS=$as_save_IFS
9551
9552 fi
9553 fi
9554 STRIP=$ac_cv_prog_STRIP
9555 if test -n "$STRIP"; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9557 $as_echo "$STRIP" >&6; }
9558 else
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560 $as_echo "no" >&6; }
9561 fi
9562
9563
9564 fi
9565 test -n "$ac_cv_prog_STRIP" && break
9566 done
9567
9568 if test -z "$ac_cv_prog_STRIP" ; then
9569 STRIP="true"
9570 fi
9571
9572
9573
9574 if test -n "$WINDRES"; then
9575 ac_cv_prog_WINDRES=$WINDRES
9576 elif test -n "$ac_cv_prog_WINDRES"; then
9577 WINDRES=$ac_cv_prog_WINDRES
9578 fi
9579
9580 if test -n "$ac_cv_prog_WINDRES"; then
9581 for ncn_progname in windres; do
9582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9583 set dummy ${ncn_progname}; ac_word=$2
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585 $as_echo_n "checking for $ac_word... " >&6; }
9586 if ${ac_cv_prog_WINDRES+:} false; then :
9587 $as_echo_n "(cached) " >&6
9588 else
9589 if test -n "$WINDRES"; then
9590 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9591 else
9592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9593 for as_dir in $PATH
9594 do
9595 IFS=$as_save_IFS
9596 test -z "$as_dir" && as_dir=.
9597 for ac_exec_ext in '' $ac_executable_extensions; do
9598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9599 ac_cv_prog_WINDRES="${ncn_progname}"
9600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9601 break 2
9602 fi
9603 done
9604 done
9605 IFS=$as_save_IFS
9606
9607 fi
9608 fi
9609 WINDRES=$ac_cv_prog_WINDRES
9610 if test -n "$WINDRES"; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9612 $as_echo "$WINDRES" >&6; }
9613 else
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 $as_echo "no" >&6; }
9616 fi
9617
9618
9619 done
9620 fi
9621
9622 for ncn_progname in windres; do
9623 if test -n "$ncn_tool_prefix"; then
9624 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9625 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9627 $as_echo_n "checking for $ac_word... " >&6; }
9628 if ${ac_cv_prog_WINDRES+:} false; then :
9629 $as_echo_n "(cached) " >&6
9630 else
9631 if test -n "$WINDRES"; then
9632 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9633 else
9634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9635 for as_dir in $PATH
9636 do
9637 IFS=$as_save_IFS
9638 test -z "$as_dir" && as_dir=.
9639 for ac_exec_ext in '' $ac_executable_extensions; do
9640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9641 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9643 break 2
9644 fi
9645 done
9646 done
9647 IFS=$as_save_IFS
9648
9649 fi
9650 fi
9651 WINDRES=$ac_cv_prog_WINDRES
9652 if test -n "$WINDRES"; then
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9654 $as_echo "$WINDRES" >&6; }
9655 else
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9657 $as_echo "no" >&6; }
9658 fi
9659
9660
9661 fi
9662 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9664 set dummy ${ncn_progname}; ac_word=$2
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9666 $as_echo_n "checking for $ac_word... " >&6; }
9667 if ${ac_cv_prog_WINDRES+:} false; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 if test -n "$WINDRES"; then
9671 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9672 else
9673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9674 for as_dir in $PATH
9675 do
9676 IFS=$as_save_IFS
9677 test -z "$as_dir" && as_dir=.
9678 for ac_exec_ext in '' $ac_executable_extensions; do
9679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9680 ac_cv_prog_WINDRES="${ncn_progname}"
9681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9682 break 2
9683 fi
9684 done
9685 done
9686 IFS=$as_save_IFS
9687
9688 fi
9689 fi
9690 WINDRES=$ac_cv_prog_WINDRES
9691 if test -n "$WINDRES"; then
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9693 $as_echo "$WINDRES" >&6; }
9694 else
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9696 $as_echo "no" >&6; }
9697 fi
9698
9699
9700 fi
9701 test -n "$ac_cv_prog_WINDRES" && break
9702 done
9703
9704 if test -z "$ac_cv_prog_WINDRES" ; then
9705 set dummy windres
9706 if test $build = $host ; then
9707 WINDRES="$2"
9708 else
9709 WINDRES="${ncn_tool_prefix}$2"
9710 fi
9711 fi
9712
9713
9714
9715 if test -n "$WINDMC"; then
9716 ac_cv_prog_WINDMC=$WINDMC
9717 elif test -n "$ac_cv_prog_WINDMC"; then
9718 WINDMC=$ac_cv_prog_WINDMC
9719 fi
9720
9721 if test -n "$ac_cv_prog_WINDMC"; then
9722 for ncn_progname in windmc; do
9723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9724 set dummy ${ncn_progname}; ac_word=$2
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9726 $as_echo_n "checking for $ac_word... " >&6; }
9727 if ${ac_cv_prog_WINDMC+:} false; then :
9728 $as_echo_n "(cached) " >&6
9729 else
9730 if test -n "$WINDMC"; then
9731 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9732 else
9733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9734 for as_dir in $PATH
9735 do
9736 IFS=$as_save_IFS
9737 test -z "$as_dir" && as_dir=.
9738 for ac_exec_ext in '' $ac_executable_extensions; do
9739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9740 ac_cv_prog_WINDMC="${ncn_progname}"
9741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9742 break 2
9743 fi
9744 done
9745 done
9746 IFS=$as_save_IFS
9747
9748 fi
9749 fi
9750 WINDMC=$ac_cv_prog_WINDMC
9751 if test -n "$WINDMC"; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9753 $as_echo "$WINDMC" >&6; }
9754 else
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756 $as_echo "no" >&6; }
9757 fi
9758
9759
9760 done
9761 fi
9762
9763 for ncn_progname in windmc; do
9764 if test -n "$ncn_tool_prefix"; then
9765 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9766 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9768 $as_echo_n "checking for $ac_word... " >&6; }
9769 if ${ac_cv_prog_WINDMC+:} false; then :
9770 $as_echo_n "(cached) " >&6
9771 else
9772 if test -n "$WINDMC"; then
9773 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9774 else
9775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9776 for as_dir in $PATH
9777 do
9778 IFS=$as_save_IFS
9779 test -z "$as_dir" && as_dir=.
9780 for ac_exec_ext in '' $ac_executable_extensions; do
9781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9782 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9784 break 2
9785 fi
9786 done
9787 done
9788 IFS=$as_save_IFS
9789
9790 fi
9791 fi
9792 WINDMC=$ac_cv_prog_WINDMC
9793 if test -n "$WINDMC"; then
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9795 $as_echo "$WINDMC" >&6; }
9796 else
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798 $as_echo "no" >&6; }
9799 fi
9800
9801
9802 fi
9803 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9805 set dummy ${ncn_progname}; ac_word=$2
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9807 $as_echo_n "checking for $ac_word... " >&6; }
9808 if ${ac_cv_prog_WINDMC+:} false; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 if test -n "$WINDMC"; then
9812 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9813 else
9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815 for as_dir in $PATH
9816 do
9817 IFS=$as_save_IFS
9818 test -z "$as_dir" && as_dir=.
9819 for ac_exec_ext in '' $ac_executable_extensions; do
9820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9821 ac_cv_prog_WINDMC="${ncn_progname}"
9822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9823 break 2
9824 fi
9825 done
9826 done
9827 IFS=$as_save_IFS
9828
9829 fi
9830 fi
9831 WINDMC=$ac_cv_prog_WINDMC
9832 if test -n "$WINDMC"; then
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9834 $as_echo "$WINDMC" >&6; }
9835 else
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837 $as_echo "no" >&6; }
9838 fi
9839
9840
9841 fi
9842 test -n "$ac_cv_prog_WINDMC" && break
9843 done
9844
9845 if test -z "$ac_cv_prog_WINDMC" ; then
9846 set dummy windmc
9847 if test $build = $host ; then
9848 WINDMC="$2"
9849 else
9850 WINDMC="${ncn_tool_prefix}$2"
9851 fi
9852 fi
9853
9854
9855
9856 if test -n "$OBJCOPY"; then
9857 ac_cv_prog_OBJCOPY=$OBJCOPY
9858 elif test -n "$ac_cv_prog_OBJCOPY"; then
9859 OBJCOPY=$ac_cv_prog_OBJCOPY
9860 fi
9861
9862 if test -n "$ac_cv_prog_OBJCOPY"; then
9863 for ncn_progname in objcopy; do
9864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9865 set dummy ${ncn_progname}; ac_word=$2
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867 $as_echo_n "checking for $ac_word... " >&6; }
9868 if ${ac_cv_prog_OBJCOPY+:} false; then :
9869 $as_echo_n "(cached) " >&6
9870 else
9871 if test -n "$OBJCOPY"; then
9872 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9873 else
9874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875 for as_dir in $PATH
9876 do
9877 IFS=$as_save_IFS
9878 test -z "$as_dir" && as_dir=.
9879 for ac_exec_ext in '' $ac_executable_extensions; do
9880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9881 ac_cv_prog_OBJCOPY="${ncn_progname}"
9882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9883 break 2
9884 fi
9885 done
9886 done
9887 IFS=$as_save_IFS
9888
9889 fi
9890 fi
9891 OBJCOPY=$ac_cv_prog_OBJCOPY
9892 if test -n "$OBJCOPY"; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9894 $as_echo "$OBJCOPY" >&6; }
9895 else
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897 $as_echo "no" >&6; }
9898 fi
9899
9900
9901 done
9902 fi
9903
9904 for ncn_progname in objcopy; do
9905 if test -n "$ncn_tool_prefix"; then
9906 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9907 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9909 $as_echo_n "checking for $ac_word... " >&6; }
9910 if ${ac_cv_prog_OBJCOPY+:} false; then :
9911 $as_echo_n "(cached) " >&6
9912 else
9913 if test -n "$OBJCOPY"; then
9914 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9915 else
9916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917 for as_dir in $PATH
9918 do
9919 IFS=$as_save_IFS
9920 test -z "$as_dir" && as_dir=.
9921 for ac_exec_ext in '' $ac_executable_extensions; do
9922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9923 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9925 break 2
9926 fi
9927 done
9928 done
9929 IFS=$as_save_IFS
9930
9931 fi
9932 fi
9933 OBJCOPY=$ac_cv_prog_OBJCOPY
9934 if test -n "$OBJCOPY"; then
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9936 $as_echo "$OBJCOPY" >&6; }
9937 else
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9939 $as_echo "no" >&6; }
9940 fi
9941
9942
9943 fi
9944 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9946 set dummy ${ncn_progname}; ac_word=$2
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9948 $as_echo_n "checking for $ac_word... " >&6; }
9949 if ${ac_cv_prog_OBJCOPY+:} false; then :
9950 $as_echo_n "(cached) " >&6
9951 else
9952 if test -n "$OBJCOPY"; then
9953 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9954 else
9955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956 for as_dir in $PATH
9957 do
9958 IFS=$as_save_IFS
9959 test -z "$as_dir" && as_dir=.
9960 for ac_exec_ext in '' $ac_executable_extensions; do
9961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9962 ac_cv_prog_OBJCOPY="${ncn_progname}"
9963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9964 break 2
9965 fi
9966 done
9967 done
9968 IFS=$as_save_IFS
9969
9970 fi
9971 fi
9972 OBJCOPY=$ac_cv_prog_OBJCOPY
9973 if test -n "$OBJCOPY"; then
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9975 $as_echo "$OBJCOPY" >&6; }
9976 else
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9978 $as_echo "no" >&6; }
9979 fi
9980
9981
9982 fi
9983 test -n "$ac_cv_prog_OBJCOPY" && break
9984 done
9985
9986 if test -z "$ac_cv_prog_OBJCOPY" ; then
9987 set dummy objcopy
9988 if test $build = $host ; then
9989 OBJCOPY="$2"
9990 else
9991 OBJCOPY="${ncn_tool_prefix}$2"
9992 fi
9993 fi
9994
9995
9996
9997 if test -n "$OBJDUMP"; then
9998 ac_cv_prog_OBJDUMP=$OBJDUMP
9999 elif test -n "$ac_cv_prog_OBJDUMP"; then
10000 OBJDUMP=$ac_cv_prog_OBJDUMP
10001 fi
10002
10003 if test -n "$ac_cv_prog_OBJDUMP"; then
10004 for ncn_progname in objdump; do
10005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10006 set dummy ${ncn_progname}; ac_word=$2
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10008 $as_echo_n "checking for $ac_word... " >&6; }
10009 if ${ac_cv_prog_OBJDUMP+:} false; then :
10010 $as_echo_n "(cached) " >&6
10011 else
10012 if test -n "$OBJDUMP"; then
10013 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10014 else
10015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10016 for as_dir in $PATH
10017 do
10018 IFS=$as_save_IFS
10019 test -z "$as_dir" && as_dir=.
10020 for ac_exec_ext in '' $ac_executable_extensions; do
10021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10022 ac_cv_prog_OBJDUMP="${ncn_progname}"
10023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10024 break 2
10025 fi
10026 done
10027 done
10028 IFS=$as_save_IFS
10029
10030 fi
10031 fi
10032 OBJDUMP=$ac_cv_prog_OBJDUMP
10033 if test -n "$OBJDUMP"; then
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10035 $as_echo "$OBJDUMP" >&6; }
10036 else
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 $as_echo "no" >&6; }
10039 fi
10040
10041
10042 done
10043 fi
10044
10045 for ncn_progname in objdump; do
10046 if test -n "$ncn_tool_prefix"; then
10047 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10048 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10050 $as_echo_n "checking for $ac_word... " >&6; }
10051 if ${ac_cv_prog_OBJDUMP+:} false; then :
10052 $as_echo_n "(cached) " >&6
10053 else
10054 if test -n "$OBJDUMP"; then
10055 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10056 else
10057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058 for as_dir in $PATH
10059 do
10060 IFS=$as_save_IFS
10061 test -z "$as_dir" && as_dir=.
10062 for ac_exec_ext in '' $ac_executable_extensions; do
10063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10064 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
10065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10066 break 2
10067 fi
10068 done
10069 done
10070 IFS=$as_save_IFS
10071
10072 fi
10073 fi
10074 OBJDUMP=$ac_cv_prog_OBJDUMP
10075 if test -n "$OBJDUMP"; then
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10077 $as_echo "$OBJDUMP" >&6; }
10078 else
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080 $as_echo "no" >&6; }
10081 fi
10082
10083
10084 fi
10085 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10087 set dummy ${ncn_progname}; ac_word=$2
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089 $as_echo_n "checking for $ac_word... " >&6; }
10090 if ${ac_cv_prog_OBJDUMP+:} false; then :
10091 $as_echo_n "(cached) " >&6
10092 else
10093 if test -n "$OBJDUMP"; then
10094 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10095 else
10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 for as_dir in $PATH
10098 do
10099 IFS=$as_save_IFS
10100 test -z "$as_dir" && as_dir=.
10101 for ac_exec_ext in '' $ac_executable_extensions; do
10102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10103 ac_cv_prog_OBJDUMP="${ncn_progname}"
10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105 break 2
10106 fi
10107 done
10108 done
10109 IFS=$as_save_IFS
10110
10111 fi
10112 fi
10113 OBJDUMP=$ac_cv_prog_OBJDUMP
10114 if test -n "$OBJDUMP"; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10116 $as_echo "$OBJDUMP" >&6; }
10117 else
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10120 fi
10121
10122
10123 fi
10124 test -n "$ac_cv_prog_OBJDUMP" && break
10125 done
10126
10127 if test -z "$ac_cv_prog_OBJDUMP" ; then
10128 set dummy objdump
10129 if test $build = $host ; then
10130 OBJDUMP="$2"
10131 else
10132 OBJDUMP="${ncn_tool_prefix}$2"
10133 fi
10134 fi
10135
10136
10137
10138 if test -n "$READELF"; then
10139 ac_cv_prog_READELF=$READELF
10140 elif test -n "$ac_cv_prog_READELF"; then
10141 READELF=$ac_cv_prog_READELF
10142 fi
10143
10144 if test -n "$ac_cv_prog_READELF"; then
10145 for ncn_progname in readelf; do
10146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10147 set dummy ${ncn_progname}; ac_word=$2
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10149 $as_echo_n "checking for $ac_word... " >&6; }
10150 if ${ac_cv_prog_READELF+:} false; then :
10151 $as_echo_n "(cached) " >&6
10152 else
10153 if test -n "$READELF"; then
10154 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10155 else
10156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157 for as_dir in $PATH
10158 do
10159 IFS=$as_save_IFS
10160 test -z "$as_dir" && as_dir=.
10161 for ac_exec_ext in '' $ac_executable_extensions; do
10162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10163 ac_cv_prog_READELF="${ncn_progname}"
10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10165 break 2
10166 fi
10167 done
10168 done
10169 IFS=$as_save_IFS
10170
10171 fi
10172 fi
10173 READELF=$ac_cv_prog_READELF
10174 if test -n "$READELF"; then
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10176 $as_echo "$READELF" >&6; }
10177 else
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179 $as_echo "no" >&6; }
10180 fi
10181
10182
10183 done
10184 fi
10185
10186 for ncn_progname in readelf; do
10187 if test -n "$ncn_tool_prefix"; then
10188 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10189 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10191 $as_echo_n "checking for $ac_word... " >&6; }
10192 if ${ac_cv_prog_READELF+:} false; then :
10193 $as_echo_n "(cached) " >&6
10194 else
10195 if test -n "$READELF"; then
10196 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10197 else
10198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10199 for as_dir in $PATH
10200 do
10201 IFS=$as_save_IFS
10202 test -z "$as_dir" && as_dir=.
10203 for ac_exec_ext in '' $ac_executable_extensions; do
10204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10205 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10207 break 2
10208 fi
10209 done
10210 done
10211 IFS=$as_save_IFS
10212
10213 fi
10214 fi
10215 READELF=$ac_cv_prog_READELF
10216 if test -n "$READELF"; then
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10218 $as_echo "$READELF" >&6; }
10219 else
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221 $as_echo "no" >&6; }
10222 fi
10223
10224
10225 fi
10226 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10227 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10228 set dummy ${ncn_progname}; ac_word=$2
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10230 $as_echo_n "checking for $ac_word... " >&6; }
10231 if ${ac_cv_prog_READELF+:} false; then :
10232 $as_echo_n "(cached) " >&6
10233 else
10234 if test -n "$READELF"; then
10235 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10236 else
10237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238 for as_dir in $PATH
10239 do
10240 IFS=$as_save_IFS
10241 test -z "$as_dir" && as_dir=.
10242 for ac_exec_ext in '' $ac_executable_extensions; do
10243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10244 ac_cv_prog_READELF="${ncn_progname}"
10245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10246 break 2
10247 fi
10248 done
10249 done
10250 IFS=$as_save_IFS
10251
10252 fi
10253 fi
10254 READELF=$ac_cv_prog_READELF
10255 if test -n "$READELF"; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10257 $as_echo "$READELF" >&6; }
10258 else
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260 $as_echo "no" >&6; }
10261 fi
10262
10263
10264 fi
10265 test -n "$ac_cv_prog_READELF" && break
10266 done
10267
10268 if test -z "$ac_cv_prog_READELF" ; then
10269 set dummy readelf
10270 if test $build = $host ; then
10271 READELF="$2"
10272 else
10273 READELF="${ncn_tool_prefix}$2"
10274 fi
10275 fi
10276
10277
10278
10279
10280
10281
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10283 $as_echo_n "checking for -plugin option... " >&6; }
10284
10285 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10286 plugin_option=
10287 for plugin in $plugin_names; do
10288 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10289 if test x$plugin_so = x$plugin; then
10290 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10291 fi
10292 if test x$plugin_so != x$plugin; then
10293 plugin_option="--plugin $plugin_so"
10294 break
10295 fi
10296 done
10297 if test -n "$ac_tool_prefix"; then
10298 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10299 set dummy ${ac_tool_prefix}ar; ac_word=$2
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10301 $as_echo_n "checking for $ac_word... " >&6; }
10302 if ${ac_cv_prog_AR+:} false; then :
10303 $as_echo_n "(cached) " >&6
10304 else
10305 if test -n "$AR"; then
10306 ac_cv_prog_AR="$AR" # Let the user override the test.
10307 else
10308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309 for as_dir in $PATH
10310 do
10311 IFS=$as_save_IFS
10312 test -z "$as_dir" && as_dir=.
10313 for ac_exec_ext in '' $ac_executable_extensions; do
10314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10315 ac_cv_prog_AR="${ac_tool_prefix}ar"
10316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10317 break 2
10318 fi
10319 done
10320 done
10321 IFS=$as_save_IFS
10322
10323 fi
10324 fi
10325 AR=$ac_cv_prog_AR
10326 if test -n "$AR"; then
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10328 $as_echo "$AR" >&6; }
10329 else
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331 $as_echo "no" >&6; }
10332 fi
10333
10334
10335 fi
10336 if test -z "$ac_cv_prog_AR"; then
10337 ac_ct_AR=$AR
10338 # Extract the first word of "ar", so it can be a program name with args.
10339 set dummy ar; ac_word=$2
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10341 $as_echo_n "checking for $ac_word... " >&6; }
10342 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10343 $as_echo_n "(cached) " >&6
10344 else
10345 if test -n "$ac_ct_AR"; then
10346 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10347 else
10348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349 for as_dir in $PATH
10350 do
10351 IFS=$as_save_IFS
10352 test -z "$as_dir" && as_dir=.
10353 for ac_exec_ext in '' $ac_executable_extensions; do
10354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10355 ac_cv_prog_ac_ct_AR="ar"
10356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10357 break 2
10358 fi
10359 done
10360 done
10361 IFS=$as_save_IFS
10362
10363 fi
10364 fi
10365 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10366 if test -n "$ac_ct_AR"; then
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10368 $as_echo "$ac_ct_AR" >&6; }
10369 else
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10371 $as_echo "no" >&6; }
10372 fi
10373
10374 if test "x$ac_ct_AR" = x; then
10375 AR=""
10376 else
10377 case $cross_compiling:$ac_tool_warned in
10378 yes:)
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10381 ac_tool_warned=yes ;;
10382 esac
10383 AR=$ac_ct_AR
10384 fi
10385 else
10386 AR="$ac_cv_prog_AR"
10387 fi
10388
10389 if test "${AR}" = "" ; then
10390 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
10391 fi
10392 touch conftest.c
10393 ${AR} $plugin_option rc conftest.a conftest.c
10394 if test "$?" != 0; then
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10396 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10397 plugin_option=
10398 fi
10399 rm -f conftest.*
10400 if test -n "$plugin_option"; then
10401 PLUGIN_OPTION="$plugin_option"
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10403 $as_echo "$plugin_option" >&6; }
10404 else
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10406 $as_echo "no" >&6; }
10407 fi
10408
10409 AR_PLUGIN_OPTION=
10410 RANLIB_PLUGIN_OPTION=
10411 if test -n "$PLUGIN_OPTION"; then
10412 if $AR --help 2>&1 | grep -q "\--plugin"; then
10413 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10414 fi
10415 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10416 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10417 fi
10418 else
10419 if test "$enable_pgo_build" != "no"; then
10420 as_fn_error $? "AR with --plugin and rc is required for LTO build" "$LINENO" 5
10421 fi
10422 fi
10423
10424
10425
10426 # Target tools.
10427
10428 # Check whether --with-build-time-tools was given.
10429 if test "${with_build_time_tools+set}" = set; then :
10430 withval=$with_build_time_tools; case x"$withval" in
10431 x/*) ;;
10432 *)
10433 with_build_time_tools=
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10435 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10436 ;;
10437 esac
10438 else
10439 with_build_time_tools=
10440 fi
10441
10442
10443
10444
10445 if test -n "$CC_FOR_TARGET"; then
10446 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10447 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10448 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10449 fi
10450
10451 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10452 for ncn_progname in cc gcc; do
10453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10454 set dummy ${ncn_progname}; ac_word=$2
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10456 $as_echo_n "checking for $ac_word... " >&6; }
10457 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10458 $as_echo_n "(cached) " >&6
10459 else
10460 if test -n "$CC_FOR_TARGET"; then
10461 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10462 else
10463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10464 for as_dir in $PATH
10465 do
10466 IFS=$as_save_IFS
10467 test -z "$as_dir" && as_dir=.
10468 for ac_exec_ext in '' $ac_executable_extensions; do
10469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10470 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10472 break 2
10473 fi
10474 done
10475 done
10476 IFS=$as_save_IFS
10477
10478 fi
10479 fi
10480 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10481 if test -n "$CC_FOR_TARGET"; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10483 $as_echo "$CC_FOR_TARGET" >&6; }
10484 else
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486 $as_echo "no" >&6; }
10487 fi
10488
10489
10490 done
10491 fi
10492
10493 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10494 for ncn_progname in cc gcc; do
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10496 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10497 if test -x $with_build_time_tools/${ncn_progname}; then
10498 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10500 $as_echo "yes" >&6; }
10501 break
10502 else
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; }
10505 fi
10506 done
10507 fi
10508
10509 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10510 for ncn_progname in cc gcc; do
10511 if test -n "$ncn_target_tool_prefix"; then
10512 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10513 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515 $as_echo_n "checking for $ac_word... " >&6; }
10516 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 if test -n "$CC_FOR_TARGET"; then
10520 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10521 else
10522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10523 for as_dir in $PATH
10524 do
10525 IFS=$as_save_IFS
10526 test -z "$as_dir" && as_dir=.
10527 for ac_exec_ext in '' $ac_executable_extensions; do
10528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10529 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10531 break 2
10532 fi
10533 done
10534 done
10535 IFS=$as_save_IFS
10536
10537 fi
10538 fi
10539 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10540 if test -n "$CC_FOR_TARGET"; then
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10542 $as_echo "$CC_FOR_TARGET" >&6; }
10543 else
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10546 fi
10547
10548
10549 fi
10550 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10552 set dummy ${ncn_progname}; ac_word=$2
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10554 $as_echo_n "checking for $ac_word... " >&6; }
10555 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10556 $as_echo_n "(cached) " >&6
10557 else
10558 if test -n "$CC_FOR_TARGET"; then
10559 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10560 else
10561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562 for as_dir in $PATH
10563 do
10564 IFS=$as_save_IFS
10565 test -z "$as_dir" && as_dir=.
10566 for ac_exec_ext in '' $ac_executable_extensions; do
10567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10568 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10570 break 2
10571 fi
10572 done
10573 done
10574 IFS=$as_save_IFS
10575
10576 fi
10577 fi
10578 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10579 if test -n "$CC_FOR_TARGET"; then
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10581 $as_echo "$CC_FOR_TARGET" >&6; }
10582 else
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10585 fi
10586
10587
10588 fi
10589 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10590 done
10591 fi
10592
10593 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10594 set dummy cc gcc
10595 if test $build = $target ; then
10596 CC_FOR_TARGET="$2"
10597 else
10598 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10599 fi
10600 else
10601 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10602 fi
10603
10604
10605
10606 if test -n "$CXX_FOR_TARGET"; then
10607 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10608 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10609 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10610 fi
10611
10612 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10613 for ncn_progname in c++ g++ cxx gxx; do
10614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10615 set dummy ${ncn_progname}; ac_word=$2
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10617 $as_echo_n "checking for $ac_word... " >&6; }
10618 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10619 $as_echo_n "(cached) " >&6
10620 else
10621 if test -n "$CXX_FOR_TARGET"; then
10622 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10623 else
10624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625 for as_dir in $PATH
10626 do
10627 IFS=$as_save_IFS
10628 test -z "$as_dir" && as_dir=.
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10631 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10633 break 2
10634 fi
10635 done
10636 done
10637 IFS=$as_save_IFS
10638
10639 fi
10640 fi
10641 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10642 if test -n "$CXX_FOR_TARGET"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10644 $as_echo "$CXX_FOR_TARGET" >&6; }
10645 else
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647 $as_echo "no" >&6; }
10648 fi
10649
10650
10651 done
10652 fi
10653
10654 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10655 for ncn_progname in c++ g++ cxx gxx; do
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10657 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10658 if test -x $with_build_time_tools/${ncn_progname}; then
10659 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10661 $as_echo "yes" >&6; }
10662 break
10663 else
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665 $as_echo "no" >&6; }
10666 fi
10667 done
10668 fi
10669
10670 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10671 for ncn_progname in c++ g++ cxx gxx; do
10672 if test -n "$ncn_target_tool_prefix"; then
10673 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10674 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676 $as_echo_n "checking for $ac_word... " >&6; }
10677 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10678 $as_echo_n "(cached) " >&6
10679 else
10680 if test -n "$CXX_FOR_TARGET"; then
10681 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10682 else
10683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684 for as_dir in $PATH
10685 do
10686 IFS=$as_save_IFS
10687 test -z "$as_dir" && as_dir=.
10688 for ac_exec_ext in '' $ac_executable_extensions; do
10689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10690 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10692 break 2
10693 fi
10694 done
10695 done
10696 IFS=$as_save_IFS
10697
10698 fi
10699 fi
10700 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10701 if test -n "$CXX_FOR_TARGET"; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10703 $as_echo "$CXX_FOR_TARGET" >&6; }
10704 else
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706 $as_echo "no" >&6; }
10707 fi
10708
10709
10710 fi
10711 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10713 set dummy ${ncn_progname}; ac_word=$2
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10715 $as_echo_n "checking for $ac_word... " >&6; }
10716 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 if test -n "$CXX_FOR_TARGET"; then
10720 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10721 else
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723 for as_dir in $PATH
10724 do
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10729 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10731 break 2
10732 fi
10733 done
10734 done
10735 IFS=$as_save_IFS
10736
10737 fi
10738 fi
10739 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10740 if test -n "$CXX_FOR_TARGET"; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10742 $as_echo "$CXX_FOR_TARGET" >&6; }
10743 else
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745 $as_echo "no" >&6; }
10746 fi
10747
10748
10749 fi
10750 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10751 done
10752 fi
10753
10754 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10755 set dummy c++ g++ cxx gxx
10756 if test $build = $target ; then
10757 CXX_FOR_TARGET="$2"
10758 else
10759 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10760 fi
10761 else
10762 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10763 fi
10764
10765
10766
10767 if test -n "$GCC_FOR_TARGET"; then
10768 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10769 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10770 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10771 fi
10772
10773 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10774 for ncn_progname in gcc; do
10775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10776 set dummy ${ncn_progname}; ac_word=$2
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10778 $as_echo_n "checking for $ac_word... " >&6; }
10779 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10780 $as_echo_n "(cached) " >&6
10781 else
10782 if test -n "$GCC_FOR_TARGET"; then
10783 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10784 else
10785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786 for as_dir in $PATH
10787 do
10788 IFS=$as_save_IFS
10789 test -z "$as_dir" && as_dir=.
10790 for ac_exec_ext in '' $ac_executable_extensions; do
10791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10792 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10794 break 2
10795 fi
10796 done
10797 done
10798 IFS=$as_save_IFS
10799
10800 fi
10801 fi
10802 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10803 if test -n "$GCC_FOR_TARGET"; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10805 $as_echo "$GCC_FOR_TARGET" >&6; }
10806 else
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808 $as_echo "no" >&6; }
10809 fi
10810
10811
10812 done
10813 fi
10814
10815 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10816 for ncn_progname in gcc; do
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10818 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10819 if test -x $with_build_time_tools/${ncn_progname}; then
10820 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10822 $as_echo "yes" >&6; }
10823 break
10824 else
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826 $as_echo "no" >&6; }
10827 fi
10828 done
10829 fi
10830
10831 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10832 for ncn_progname in gcc; do
10833 if test -n "$ncn_target_tool_prefix"; then
10834 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10835 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10837 $as_echo_n "checking for $ac_word... " >&6; }
10838 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10841 if test -n "$GCC_FOR_TARGET"; then
10842 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10843 else
10844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845 for as_dir in $PATH
10846 do
10847 IFS=$as_save_IFS
10848 test -z "$as_dir" && as_dir=.
10849 for ac_exec_ext in '' $ac_executable_extensions; do
10850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10851 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10853 break 2
10854 fi
10855 done
10856 done
10857 IFS=$as_save_IFS
10858
10859 fi
10860 fi
10861 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10862 if test -n "$GCC_FOR_TARGET"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10864 $as_echo "$GCC_FOR_TARGET" >&6; }
10865 else
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 $as_echo "no" >&6; }
10868 fi
10869
10870
10871 fi
10872 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10874 set dummy ${ncn_progname}; ac_word=$2
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876 $as_echo_n "checking for $ac_word... " >&6; }
10877 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10878 $as_echo_n "(cached) " >&6
10879 else
10880 if test -n "$GCC_FOR_TARGET"; then
10881 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10882 else
10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884 for as_dir in $PATH
10885 do
10886 IFS=$as_save_IFS
10887 test -z "$as_dir" && as_dir=.
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10890 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 break 2
10893 fi
10894 done
10895 done
10896 IFS=$as_save_IFS
10897
10898 fi
10899 fi
10900 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10901 if test -n "$GCC_FOR_TARGET"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10903 $as_echo "$GCC_FOR_TARGET" >&6; }
10904 else
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906 $as_echo "no" >&6; }
10907 fi
10908
10909
10910 fi
10911 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10912 done
10913 fi
10914
10915 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10916 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10917 else
10918 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10919 fi
10920
10921
10922
10923 if test -n "$GFORTRAN_FOR_TARGET"; then
10924 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10925 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10926 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10927 fi
10928
10929 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10930 for ncn_progname in gfortran; do
10931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10932 set dummy ${ncn_progname}; ac_word=$2
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10934 $as_echo_n "checking for $ac_word... " >&6; }
10935 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 if test -n "$GFORTRAN_FOR_TARGET"; then
10939 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10940 else
10941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10942 for as_dir in $PATH
10943 do
10944 IFS=$as_save_IFS
10945 test -z "$as_dir" && as_dir=.
10946 for ac_exec_ext in '' $ac_executable_extensions; do
10947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10948 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10950 break 2
10951 fi
10952 done
10953 done
10954 IFS=$as_save_IFS
10955
10956 fi
10957 fi
10958 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10959 if test -n "$GFORTRAN_FOR_TARGET"; then
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10961 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10962 else
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964 $as_echo "no" >&6; }
10965 fi
10966
10967
10968 done
10969 fi
10970
10971 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10972 for ncn_progname in gfortran; do
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10974 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10975 if test -x $with_build_time_tools/${ncn_progname}; then
10976 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10978 $as_echo "yes" >&6; }
10979 break
10980 else
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10982 $as_echo "no" >&6; }
10983 fi
10984 done
10985 fi
10986
10987 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10988 for ncn_progname in gfortran; do
10989 if test -n "$ncn_target_tool_prefix"; then
10990 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10991 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993 $as_echo_n "checking for $ac_word... " >&6; }
10994 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 if test -n "$GFORTRAN_FOR_TARGET"; then
10998 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10999 else
11000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11002 do
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11007 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11009 break 2
11010 fi
11011 done
11012 done
11013 IFS=$as_save_IFS
11014
11015 fi
11016 fi
11017 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11018 if test -n "$GFORTRAN_FOR_TARGET"; then
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11020 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11021 else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023 $as_echo "no" >&6; }
11024 fi
11025
11026
11027 fi
11028 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11030 set dummy ${ncn_progname}; ac_word=$2
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032 $as_echo_n "checking for $ac_word... " >&6; }
11033 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11034 $as_echo_n "(cached) " >&6
11035 else
11036 if test -n "$GFORTRAN_FOR_TARGET"; then
11037 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11038 else
11039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040 for as_dir in $PATH
11041 do
11042 IFS=$as_save_IFS
11043 test -z "$as_dir" && as_dir=.
11044 for ac_exec_ext in '' $ac_executable_extensions; do
11045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11046 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11048 break 2
11049 fi
11050 done
11051 done
11052 IFS=$as_save_IFS
11053
11054 fi
11055 fi
11056 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11057 if test -n "$GFORTRAN_FOR_TARGET"; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11059 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11060 else
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062 $as_echo "no" >&6; }
11063 fi
11064
11065
11066 fi
11067 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11068 done
11069 fi
11070
11071 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11072 set dummy gfortran
11073 if test $build = $target ; then
11074 GFORTRAN_FOR_TARGET="$2"
11075 else
11076 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11077 fi
11078 else
11079 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
11080 fi
11081
11082
11083
11084 if test -n "$GOC_FOR_TARGET"; then
11085 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11086 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11087 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11088 fi
11089
11090 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11091 for ncn_progname in gccgo; do
11092 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11093 set dummy ${ncn_progname}; ac_word=$2
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11095 $as_echo_n "checking for $ac_word... " >&6; }
11096 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11097 $as_echo_n "(cached) " >&6
11098 else
11099 if test -n "$GOC_FOR_TARGET"; then
11100 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11101 else
11102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103 for as_dir in $PATH
11104 do
11105 IFS=$as_save_IFS
11106 test -z "$as_dir" && as_dir=.
11107 for ac_exec_ext in '' $ac_executable_extensions; do
11108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11109 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11111 break 2
11112 fi
11113 done
11114 done
11115 IFS=$as_save_IFS
11116
11117 fi
11118 fi
11119 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11120 if test -n "$GOC_FOR_TARGET"; then
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11122 $as_echo "$GOC_FOR_TARGET" >&6; }
11123 else
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125 $as_echo "no" >&6; }
11126 fi
11127
11128
11129 done
11130 fi
11131
11132 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11133 for ncn_progname in gccgo; do
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11135 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11136 if test -x $with_build_time_tools/${ncn_progname}; then
11137 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11139 $as_echo "yes" >&6; }
11140 break
11141 else
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11143 $as_echo "no" >&6; }
11144 fi
11145 done
11146 fi
11147
11148 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11149 for ncn_progname in gccgo; do
11150 if test -n "$ncn_target_tool_prefix"; then
11151 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11152 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154 $as_echo_n "checking for $ac_word... " >&6; }
11155 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11156 $as_echo_n "(cached) " >&6
11157 else
11158 if test -n "$GOC_FOR_TARGET"; then
11159 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11160 else
11161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162 for as_dir in $PATH
11163 do
11164 IFS=$as_save_IFS
11165 test -z "$as_dir" && as_dir=.
11166 for ac_exec_ext in '' $ac_executable_extensions; do
11167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11168 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11170 break 2
11171 fi
11172 done
11173 done
11174 IFS=$as_save_IFS
11175
11176 fi
11177 fi
11178 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11179 if test -n "$GOC_FOR_TARGET"; then
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11181 $as_echo "$GOC_FOR_TARGET" >&6; }
11182 else
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184 $as_echo "no" >&6; }
11185 fi
11186
11187
11188 fi
11189 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11191 set dummy ${ncn_progname}; ac_word=$2
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11193 $as_echo_n "checking for $ac_word... " >&6; }
11194 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11195 $as_echo_n "(cached) " >&6
11196 else
11197 if test -n "$GOC_FOR_TARGET"; then
11198 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11199 else
11200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201 for as_dir in $PATH
11202 do
11203 IFS=$as_save_IFS
11204 test -z "$as_dir" && as_dir=.
11205 for ac_exec_ext in '' $ac_executable_extensions; do
11206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11207 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11209 break 2
11210 fi
11211 done
11212 done
11213 IFS=$as_save_IFS
11214
11215 fi
11216 fi
11217 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11218 if test -n "$GOC_FOR_TARGET"; then
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11220 $as_echo "$GOC_FOR_TARGET" >&6; }
11221 else
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223 $as_echo "no" >&6; }
11224 fi
11225
11226
11227 fi
11228 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11229 done
11230 fi
11231
11232 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11233 set dummy gccgo
11234 if test $build = $target ; then
11235 GOC_FOR_TARGET="$2"
11236 else
11237 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11238 fi
11239 else
11240 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11241 fi
11242
11243
11244
11245 cat > conftest.c << \EOF
11246 #ifdef __GNUC__
11247 gcc_yay;
11248 #endif
11249 EOF
11250 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11251 have_gcc_for_target=yes
11252 else
11253 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11254 have_gcc_for_target=no
11255 fi
11256 rm conftest.c
11257
11258
11259
11260
11261 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11262 if test -n "$with_build_time_tools"; then
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11264 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11265 if test -x $with_build_time_tools/ar; then
11266 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11267 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11269 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11270 else
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11272 $as_echo "no" >&6; }
11273 fi
11274 elif test $build != $host && test $have_gcc_for_target = yes; then
11275 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11276 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11277 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11278 fi
11279 fi
11280 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11281 # Extract the first word of "ar", so it can be a program name with args.
11282 set dummy ar; ac_word=$2
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284 $as_echo_n "checking for $ac_word... " >&6; }
11285 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11288 case $AR_FOR_TARGET in
11289 [\\/]* | ?:[\\/]*)
11290 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11291 ;;
11292 *)
11293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294 for as_dir in $gcc_cv_tool_dirs
11295 do
11296 IFS=$as_save_IFS
11297 test -z "$as_dir" && as_dir=.
11298 for ac_exec_ext in '' $ac_executable_extensions; do
11299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11300 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11302 break 2
11303 fi
11304 done
11305 done
11306 IFS=$as_save_IFS
11307
11308 ;;
11309 esac
11310 fi
11311 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11312 if test -n "$AR_FOR_TARGET"; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11314 $as_echo "$AR_FOR_TARGET" >&6; }
11315 else
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11317 $as_echo "no" >&6; }
11318 fi
11319
11320
11321 fi
11322 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11323
11324
11325 if test -n "$AR_FOR_TARGET"; then
11326 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11327 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11328 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11329 fi
11330
11331 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11332 for ncn_progname in ar; do
11333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11334 set dummy ${ncn_progname}; ac_word=$2
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11336 $as_echo_n "checking for $ac_word... " >&6; }
11337 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11338 $as_echo_n "(cached) " >&6
11339 else
11340 if test -n "$AR_FOR_TARGET"; then
11341 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11342 else
11343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344 for as_dir in $PATH
11345 do
11346 IFS=$as_save_IFS
11347 test -z "$as_dir" && as_dir=.
11348 for ac_exec_ext in '' $ac_executable_extensions; do
11349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11350 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11352 break 2
11353 fi
11354 done
11355 done
11356 IFS=$as_save_IFS
11357
11358 fi
11359 fi
11360 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11361 if test -n "$AR_FOR_TARGET"; then
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11363 $as_echo "$AR_FOR_TARGET" >&6; }
11364 else
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366 $as_echo "no" >&6; }
11367 fi
11368
11369
11370 done
11371 fi
11372
11373 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11374 for ncn_progname in ar; do
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11376 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11377 if test -x $with_build_time_tools/${ncn_progname}; then
11378 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11380 $as_echo "yes" >&6; }
11381 break
11382 else
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384 $as_echo "no" >&6; }
11385 fi
11386 done
11387 fi
11388
11389 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11390 for ncn_progname in ar; do
11391 if test -n "$ncn_target_tool_prefix"; then
11392 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11393 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11395 $as_echo_n "checking for $ac_word... " >&6; }
11396 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 if test -n "$AR_FOR_TARGET"; then
11400 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11401 else
11402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403 for as_dir in $PATH
11404 do
11405 IFS=$as_save_IFS
11406 test -z "$as_dir" && as_dir=.
11407 for ac_exec_ext in '' $ac_executable_extensions; do
11408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11409 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11411 break 2
11412 fi
11413 done
11414 done
11415 IFS=$as_save_IFS
11416
11417 fi
11418 fi
11419 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11420 if test -n "$AR_FOR_TARGET"; then
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11422 $as_echo "$AR_FOR_TARGET" >&6; }
11423 else
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425 $as_echo "no" >&6; }
11426 fi
11427
11428
11429 fi
11430 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11432 set dummy ${ncn_progname}; ac_word=$2
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11434 $as_echo_n "checking for $ac_word... " >&6; }
11435 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11436 $as_echo_n "(cached) " >&6
11437 else
11438 if test -n "$AR_FOR_TARGET"; then
11439 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11440 else
11441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442 for as_dir in $PATH
11443 do
11444 IFS=$as_save_IFS
11445 test -z "$as_dir" && as_dir=.
11446 for ac_exec_ext in '' $ac_executable_extensions; do
11447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11448 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11450 break 2
11451 fi
11452 done
11453 done
11454 IFS=$as_save_IFS
11455
11456 fi
11457 fi
11458 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11459 if test -n "$AR_FOR_TARGET"; then
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11461 $as_echo "$AR_FOR_TARGET" >&6; }
11462 else
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11464 $as_echo "no" >&6; }
11465 fi
11466
11467
11468 fi
11469 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11470 done
11471 fi
11472
11473 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11474 set dummy ar
11475 if test $build = $target ; then
11476 AR_FOR_TARGET="$2"
11477 else
11478 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11479 fi
11480 else
11481 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11482 fi
11483
11484 else
11485 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11486 fi
11487
11488
11489
11490
11491 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11492 if test -n "$with_build_time_tools"; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11494 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11495 if test -x $with_build_time_tools/as; then
11496 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11497 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11499 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11500 else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11503 fi
11504 elif test $build != $host && test $have_gcc_for_target = yes; then
11505 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11506 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11507 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11508 fi
11509 fi
11510 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11511 # Extract the first word of "as", so it can be a program name with args.
11512 set dummy as; ac_word=$2
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11514 $as_echo_n "checking for $ac_word... " >&6; }
11515 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11516 $as_echo_n "(cached) " >&6
11517 else
11518 case $AS_FOR_TARGET in
11519 [\\/]* | ?:[\\/]*)
11520 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11521 ;;
11522 *)
11523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524 for as_dir in $gcc_cv_tool_dirs
11525 do
11526 IFS=$as_save_IFS
11527 test -z "$as_dir" && as_dir=.
11528 for ac_exec_ext in '' $ac_executable_extensions; do
11529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11530 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11532 break 2
11533 fi
11534 done
11535 done
11536 IFS=$as_save_IFS
11537
11538 ;;
11539 esac
11540 fi
11541 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11542 if test -n "$AS_FOR_TARGET"; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11544 $as_echo "$AS_FOR_TARGET" >&6; }
11545 else
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547 $as_echo "no" >&6; }
11548 fi
11549
11550
11551 fi
11552 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11553
11554
11555 if test -n "$AS_FOR_TARGET"; then
11556 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11557 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11558 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11559 fi
11560
11561 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11562 for ncn_progname in as; do
11563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11564 set dummy ${ncn_progname}; ac_word=$2
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11566 $as_echo_n "checking for $ac_word... " >&6; }
11567 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11568 $as_echo_n "(cached) " >&6
11569 else
11570 if test -n "$AS_FOR_TARGET"; then
11571 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11572 else
11573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11574 for as_dir in $PATH
11575 do
11576 IFS=$as_save_IFS
11577 test -z "$as_dir" && as_dir=.
11578 for ac_exec_ext in '' $ac_executable_extensions; do
11579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11580 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11582 break 2
11583 fi
11584 done
11585 done
11586 IFS=$as_save_IFS
11587
11588 fi
11589 fi
11590 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11591 if test -n "$AS_FOR_TARGET"; then
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11593 $as_echo "$AS_FOR_TARGET" >&6; }
11594 else
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 $as_echo "no" >&6; }
11597 fi
11598
11599
11600 done
11601 fi
11602
11603 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11604 for ncn_progname in as; do
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11606 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11607 if test -x $with_build_time_tools/${ncn_progname}; then
11608 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11610 $as_echo "yes" >&6; }
11611 break
11612 else
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11615 fi
11616 done
11617 fi
11618
11619 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11620 for ncn_progname in as; do
11621 if test -n "$ncn_target_tool_prefix"; then
11622 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11623 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625 $as_echo_n "checking for $ac_word... " >&6; }
11626 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 if test -n "$AS_FOR_TARGET"; then
11630 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11631 else
11632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
11634 do
11635 IFS=$as_save_IFS
11636 test -z "$as_dir" && as_dir=.
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11639 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11641 break 2
11642 fi
11643 done
11644 done
11645 IFS=$as_save_IFS
11646
11647 fi
11648 fi
11649 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11650 if test -n "$AS_FOR_TARGET"; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11652 $as_echo "$AS_FOR_TARGET" >&6; }
11653 else
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11656 fi
11657
11658
11659 fi
11660 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11662 set dummy ${ncn_progname}; ac_word=$2
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 $as_echo_n "checking for $ac_word... " >&6; }
11665 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11666 $as_echo_n "(cached) " >&6
11667 else
11668 if test -n "$AS_FOR_TARGET"; then
11669 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11670 else
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11673 do
11674 IFS=$as_save_IFS
11675 test -z "$as_dir" && as_dir=.
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11678 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11680 break 2
11681 fi
11682 done
11683 done
11684 IFS=$as_save_IFS
11685
11686 fi
11687 fi
11688 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11689 if test -n "$AS_FOR_TARGET"; then
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11691 $as_echo "$AS_FOR_TARGET" >&6; }
11692 else
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694 $as_echo "no" >&6; }
11695 fi
11696
11697
11698 fi
11699 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11700 done
11701 fi
11702
11703 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11704 set dummy as
11705 if test $build = $target ; then
11706 AS_FOR_TARGET="$2"
11707 else
11708 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11709 fi
11710 else
11711 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11712 fi
11713
11714 else
11715 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11716 fi
11717
11718
11719
11720
11721 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11722 if test -n "$with_build_time_tools"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11724 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11725 if test -x $with_build_time_tools/dlltool; then
11726 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11727 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11729 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11730 else
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11733 fi
11734 elif test $build != $host && test $have_gcc_for_target = yes; then
11735 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11736 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11737 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11738 fi
11739 fi
11740 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11741 # Extract the first word of "dlltool", so it can be a program name with args.
11742 set dummy dlltool; ac_word=$2
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744 $as_echo_n "checking for $ac_word... " >&6; }
11745 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748 case $DLLTOOL_FOR_TARGET in
11749 [\\/]* | ?:[\\/]*)
11750 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11751 ;;
11752 *)
11753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11754 for as_dir in $gcc_cv_tool_dirs
11755 do
11756 IFS=$as_save_IFS
11757 test -z "$as_dir" && as_dir=.
11758 for ac_exec_ext in '' $ac_executable_extensions; do
11759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11760 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11762 break 2
11763 fi
11764 done
11765 done
11766 IFS=$as_save_IFS
11767
11768 ;;
11769 esac
11770 fi
11771 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11772 if test -n "$DLLTOOL_FOR_TARGET"; then
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11774 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11775 else
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777 $as_echo "no" >&6; }
11778 fi
11779
11780
11781 fi
11782 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11783
11784
11785 if test -n "$DLLTOOL_FOR_TARGET"; then
11786 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11787 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11788 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11789 fi
11790
11791 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11792 for ncn_progname in dlltool; do
11793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11794 set dummy ${ncn_progname}; ac_word=$2
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11796 $as_echo_n "checking for $ac_word... " >&6; }
11797 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11798 $as_echo_n "(cached) " >&6
11799 else
11800 if test -n "$DLLTOOL_FOR_TARGET"; then
11801 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11802 else
11803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11804 for as_dir in $PATH
11805 do
11806 IFS=$as_save_IFS
11807 test -z "$as_dir" && as_dir=.
11808 for ac_exec_ext in '' $ac_executable_extensions; do
11809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11810 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11812 break 2
11813 fi
11814 done
11815 done
11816 IFS=$as_save_IFS
11817
11818 fi
11819 fi
11820 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11821 if test -n "$DLLTOOL_FOR_TARGET"; then
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11823 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11824 else
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826 $as_echo "no" >&6; }
11827 fi
11828
11829
11830 done
11831 fi
11832
11833 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11834 for ncn_progname in dlltool; do
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11836 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11837 if test -x $with_build_time_tools/${ncn_progname}; then
11838 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11840 $as_echo "yes" >&6; }
11841 break
11842 else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844 $as_echo "no" >&6; }
11845 fi
11846 done
11847 fi
11848
11849 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11850 for ncn_progname in dlltool; do
11851 if test -n "$ncn_target_tool_prefix"; then
11852 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11853 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855 $as_echo_n "checking for $ac_word... " >&6; }
11856 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 if test -n "$DLLTOOL_FOR_TARGET"; then
11860 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11861 else
11862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863 for as_dir in $PATH
11864 do
11865 IFS=$as_save_IFS
11866 test -z "$as_dir" && as_dir=.
11867 for ac_exec_ext in '' $ac_executable_extensions; do
11868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11869 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11871 break 2
11872 fi
11873 done
11874 done
11875 IFS=$as_save_IFS
11876
11877 fi
11878 fi
11879 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11880 if test -n "$DLLTOOL_FOR_TARGET"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11882 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11883 else
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11886 fi
11887
11888
11889 fi
11890 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11892 set dummy ${ncn_progname}; ac_word=$2
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11894 $as_echo_n "checking for $ac_word... " >&6; }
11895 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11896 $as_echo_n "(cached) " >&6
11897 else
11898 if test -n "$DLLTOOL_FOR_TARGET"; then
11899 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11900 else
11901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902 for as_dir in $PATH
11903 do
11904 IFS=$as_save_IFS
11905 test -z "$as_dir" && as_dir=.
11906 for ac_exec_ext in '' $ac_executable_extensions; do
11907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11908 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11910 break 2
11911 fi
11912 done
11913 done
11914 IFS=$as_save_IFS
11915
11916 fi
11917 fi
11918 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11919 if test -n "$DLLTOOL_FOR_TARGET"; then
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11921 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11922 else
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924 $as_echo "no" >&6; }
11925 fi
11926
11927
11928 fi
11929 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11930 done
11931 fi
11932
11933 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11934 set dummy dlltool
11935 if test $build = $target ; then
11936 DLLTOOL_FOR_TARGET="$2"
11937 else
11938 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11939 fi
11940 else
11941 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11942 fi
11943
11944 else
11945 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11946 fi
11947
11948
11949
11950
11951 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11952 if test -n "$with_build_time_tools"; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11954 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11955 if test -x $with_build_time_tools/ld; then
11956 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11957 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11959 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11960 else
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962 $as_echo "no" >&6; }
11963 fi
11964 elif test $build != $host && test $have_gcc_for_target = yes; then
11965 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11966 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11967 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11968 fi
11969 fi
11970 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11971 # Extract the first word of "ld", so it can be a program name with args.
11972 set dummy ld; ac_word=$2
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11974 $as_echo_n "checking for $ac_word... " >&6; }
11975 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
11976 $as_echo_n "(cached) " >&6
11977 else
11978 case $LD_FOR_TARGET in
11979 [\\/]* | ?:[\\/]*)
11980 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11981 ;;
11982 *)
11983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11984 for as_dir in $gcc_cv_tool_dirs
11985 do
11986 IFS=$as_save_IFS
11987 test -z "$as_dir" && as_dir=.
11988 for ac_exec_ext in '' $ac_executable_extensions; do
11989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11990 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11992 break 2
11993 fi
11994 done
11995 done
11996 IFS=$as_save_IFS
11997
11998 ;;
11999 esac
12000 fi
12001 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12002 if test -n "$LD_FOR_TARGET"; then
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12004 $as_echo "$LD_FOR_TARGET" >&6; }
12005 else
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007 $as_echo "no" >&6; }
12008 fi
12009
12010
12011 fi
12012 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12013
12014
12015 if test -n "$LD_FOR_TARGET"; then
12016 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12017 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12018 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12019 fi
12020
12021 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12022 for ncn_progname in ld; do
12023 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12024 set dummy ${ncn_progname}; ac_word=$2
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12026 $as_echo_n "checking for $ac_word... " >&6; }
12027 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12028 $as_echo_n "(cached) " >&6
12029 else
12030 if test -n "$LD_FOR_TARGET"; then
12031 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12032 else
12033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12034 for as_dir in $PATH
12035 do
12036 IFS=$as_save_IFS
12037 test -z "$as_dir" && as_dir=.
12038 for ac_exec_ext in '' $ac_executable_extensions; do
12039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12040 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12042 break 2
12043 fi
12044 done
12045 done
12046 IFS=$as_save_IFS
12047
12048 fi
12049 fi
12050 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12051 if test -n "$LD_FOR_TARGET"; then
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12053 $as_echo "$LD_FOR_TARGET" >&6; }
12054 else
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056 $as_echo "no" >&6; }
12057 fi
12058
12059
12060 done
12061 fi
12062
12063 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
12064 for ncn_progname in ld; do
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12066 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12067 if test -x $with_build_time_tools/${ncn_progname}; then
12068 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12070 $as_echo "yes" >&6; }
12071 break
12072 else
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12075 fi
12076 done
12077 fi
12078
12079 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12080 for ncn_progname in ld; do
12081 if test -n "$ncn_target_tool_prefix"; then
12082 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12083 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12085 $as_echo_n "checking for $ac_word... " >&6; }
12086 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12087 $as_echo_n "(cached) " >&6
12088 else
12089 if test -n "$LD_FOR_TARGET"; then
12090 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12091 else
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in $PATH
12094 do
12095 IFS=$as_save_IFS
12096 test -z "$as_dir" && as_dir=.
12097 for ac_exec_ext in '' $ac_executable_extensions; do
12098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12099 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12101 break 2
12102 fi
12103 done
12104 done
12105 IFS=$as_save_IFS
12106
12107 fi
12108 fi
12109 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12110 if test -n "$LD_FOR_TARGET"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12112 $as_echo "$LD_FOR_TARGET" >&6; }
12113 else
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115 $as_echo "no" >&6; }
12116 fi
12117
12118
12119 fi
12120 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12122 set dummy ${ncn_progname}; ac_word=$2
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124 $as_echo_n "checking for $ac_word... " >&6; }
12125 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12126 $as_echo_n "(cached) " >&6
12127 else
12128 if test -n "$LD_FOR_TARGET"; then
12129 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12130 else
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH
12133 do
12134 IFS=$as_save_IFS
12135 test -z "$as_dir" && as_dir=.
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12138 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12140 break 2
12141 fi
12142 done
12143 done
12144 IFS=$as_save_IFS
12145
12146 fi
12147 fi
12148 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12149 if test -n "$LD_FOR_TARGET"; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12151 $as_echo "$LD_FOR_TARGET" >&6; }
12152 else
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12155 fi
12156
12157
12158 fi
12159 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12160 done
12161 fi
12162
12163 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12164 set dummy ld
12165 if test $build = $target ; then
12166 LD_FOR_TARGET="$2"
12167 else
12168 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12169 fi
12170 else
12171 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12172 fi
12173
12174 else
12175 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12176 fi
12177
12178
12179
12180
12181 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12182 if test -n "$with_build_time_tools"; then
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12184 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12185 if test -x $with_build_time_tools/lipo; then
12186 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12187 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12189 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12190 else
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192 $as_echo "no" >&6; }
12193 fi
12194 elif test $build != $host && test $have_gcc_for_target = yes; then
12195 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12196 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12197 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12198 fi
12199 fi
12200 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12201 # Extract the first word of "lipo", so it can be a program name with args.
12202 set dummy lipo; ac_word=$2
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204 $as_echo_n "checking for $ac_word... " >&6; }
12205 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 case $LIPO_FOR_TARGET in
12209 [\\/]* | ?:[\\/]*)
12210 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12211 ;;
12212 *)
12213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12214 for as_dir in $gcc_cv_tool_dirs
12215 do
12216 IFS=$as_save_IFS
12217 test -z "$as_dir" && as_dir=.
12218 for ac_exec_ext in '' $ac_executable_extensions; do
12219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12220 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12222 break 2
12223 fi
12224 done
12225 done
12226 IFS=$as_save_IFS
12227
12228 ;;
12229 esac
12230 fi
12231 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12232 if test -n "$LIPO_FOR_TARGET"; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12234 $as_echo "$LIPO_FOR_TARGET" >&6; }
12235 else
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12237 $as_echo "no" >&6; }
12238 fi
12239
12240
12241 fi
12242 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12243
12244
12245 if test -n "$LIPO_FOR_TARGET"; then
12246 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12247 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12248 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12249 fi
12250
12251 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12252 for ncn_progname in lipo; do
12253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12254 set dummy ${ncn_progname}; ac_word=$2
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12256 $as_echo_n "checking for $ac_word... " >&6; }
12257 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12258 $as_echo_n "(cached) " >&6
12259 else
12260 if test -n "$LIPO_FOR_TARGET"; then
12261 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12262 else
12263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12264 for as_dir in $PATH
12265 do
12266 IFS=$as_save_IFS
12267 test -z "$as_dir" && as_dir=.
12268 for ac_exec_ext in '' $ac_executable_extensions; do
12269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12270 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12272 break 2
12273 fi
12274 done
12275 done
12276 IFS=$as_save_IFS
12277
12278 fi
12279 fi
12280 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12281 if test -n "$LIPO_FOR_TARGET"; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12283 $as_echo "$LIPO_FOR_TARGET" >&6; }
12284 else
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12287 fi
12288
12289
12290 done
12291 fi
12292
12293 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12294 for ncn_progname in lipo; do
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12296 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12297 if test -x $with_build_time_tools/${ncn_progname}; then
12298 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12300 $as_echo "yes" >&6; }
12301 break
12302 else
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304 $as_echo "no" >&6; }
12305 fi
12306 done
12307 fi
12308
12309 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12310 for ncn_progname in lipo; do
12311 if test -n "$ncn_target_tool_prefix"; then
12312 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12313 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12315 $as_echo_n "checking for $ac_word... " >&6; }
12316 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12317 $as_echo_n "(cached) " >&6
12318 else
12319 if test -n "$LIPO_FOR_TARGET"; then
12320 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12321 else
12322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323 for as_dir in $PATH
12324 do
12325 IFS=$as_save_IFS
12326 test -z "$as_dir" && as_dir=.
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12329 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331 break 2
12332 fi
12333 done
12334 done
12335 IFS=$as_save_IFS
12336
12337 fi
12338 fi
12339 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12340 if test -n "$LIPO_FOR_TARGET"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12342 $as_echo "$LIPO_FOR_TARGET" >&6; }
12343 else
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345 $as_echo "no" >&6; }
12346 fi
12347
12348
12349 fi
12350 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12352 set dummy ${ncn_progname}; ac_word=$2
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354 $as_echo_n "checking for $ac_word... " >&6; }
12355 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12356 $as_echo_n "(cached) " >&6
12357 else
12358 if test -n "$LIPO_FOR_TARGET"; then
12359 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12360 else
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $PATH
12363 do
12364 IFS=$as_save_IFS
12365 test -z "$as_dir" && as_dir=.
12366 for ac_exec_ext in '' $ac_executable_extensions; do
12367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12368 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12370 break 2
12371 fi
12372 done
12373 done
12374 IFS=$as_save_IFS
12375
12376 fi
12377 fi
12378 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12379 if test -n "$LIPO_FOR_TARGET"; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12381 $as_echo "$LIPO_FOR_TARGET" >&6; }
12382 else
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384 $as_echo "no" >&6; }
12385 fi
12386
12387
12388 fi
12389 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12390 done
12391 fi
12392
12393 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12394 set dummy lipo
12395 if test $build = $target ; then
12396 LIPO_FOR_TARGET="$2"
12397 else
12398 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12399 fi
12400 else
12401 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12402 fi
12403
12404 else
12405 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12406 fi
12407
12408
12409
12410
12411 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12412 if test -n "$with_build_time_tools"; then
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12414 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12415 if test -x $with_build_time_tools/nm; then
12416 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12417 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12419 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12420 else
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 $as_echo "no" >&6; }
12423 fi
12424 elif test $build != $host && test $have_gcc_for_target = yes; then
12425 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12426 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12427 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12428 fi
12429 fi
12430 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12431 # Extract the first word of "nm", so it can be a program name with args.
12432 set dummy nm; 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_path_NM_FOR_TARGET+:} false; then :
12436 $as_echo_n "(cached) " >&6
12437 else
12438 case $NM_FOR_TARGET in
12439 [\\/]* | ?:[\\/]*)
12440 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12441 ;;
12442 *)
12443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12444 for as_dir in $gcc_cv_tool_dirs
12445 do
12446 IFS=$as_save_IFS
12447 test -z "$as_dir" && as_dir=.
12448 for ac_exec_ext in '' $ac_executable_extensions; do
12449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12450 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12452 break 2
12453 fi
12454 done
12455 done
12456 IFS=$as_save_IFS
12457
12458 ;;
12459 esac
12460 fi
12461 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12462 if test -n "$NM_FOR_TARGET"; then
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12464 $as_echo "$NM_FOR_TARGET" >&6; }
12465 else
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467 $as_echo "no" >&6; }
12468 fi
12469
12470
12471 fi
12472 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12473
12474
12475 if test -n "$NM_FOR_TARGET"; then
12476 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12477 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12478 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12479 fi
12480
12481 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12482 for ncn_progname in nm; do
12483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12484 set dummy ${ncn_progname}; ac_word=$2
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12486 $as_echo_n "checking for $ac_word... " >&6; }
12487 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12488 $as_echo_n "(cached) " >&6
12489 else
12490 if test -n "$NM_FOR_TARGET"; then
12491 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12492 else
12493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12494 for as_dir in $PATH
12495 do
12496 IFS=$as_save_IFS
12497 test -z "$as_dir" && as_dir=.
12498 for ac_exec_ext in '' $ac_executable_extensions; do
12499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12500 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12502 break 2
12503 fi
12504 done
12505 done
12506 IFS=$as_save_IFS
12507
12508 fi
12509 fi
12510 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12511 if test -n "$NM_FOR_TARGET"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12513 $as_echo "$NM_FOR_TARGET" >&6; }
12514 else
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516 $as_echo "no" >&6; }
12517 fi
12518
12519
12520 done
12521 fi
12522
12523 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12524 for ncn_progname in nm; do
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12526 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12527 if test -x $with_build_time_tools/${ncn_progname}; then
12528 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12530 $as_echo "yes" >&6; }
12531 break
12532 else
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534 $as_echo "no" >&6; }
12535 fi
12536 done
12537 fi
12538
12539 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12540 for ncn_progname in nm; do
12541 if test -n "$ncn_target_tool_prefix"; then
12542 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12543 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12545 $as_echo_n "checking for $ac_word... " >&6; }
12546 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12549 if test -n "$NM_FOR_TARGET"; then
12550 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12551 else
12552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12553 for as_dir in $PATH
12554 do
12555 IFS=$as_save_IFS
12556 test -z "$as_dir" && as_dir=.
12557 for ac_exec_ext in '' $ac_executable_extensions; do
12558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12559 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12561 break 2
12562 fi
12563 done
12564 done
12565 IFS=$as_save_IFS
12566
12567 fi
12568 fi
12569 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12570 if test -n "$NM_FOR_TARGET"; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12572 $as_echo "$NM_FOR_TARGET" >&6; }
12573 else
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12576 fi
12577
12578
12579 fi
12580 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12582 set dummy ${ncn_progname}; ac_word=$2
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584 $as_echo_n "checking for $ac_word... " >&6; }
12585 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12586 $as_echo_n "(cached) " >&6
12587 else
12588 if test -n "$NM_FOR_TARGET"; then
12589 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12590 else
12591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592 for as_dir in $PATH
12593 do
12594 IFS=$as_save_IFS
12595 test -z "$as_dir" && as_dir=.
12596 for ac_exec_ext in '' $ac_executable_extensions; do
12597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12598 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12600 break 2
12601 fi
12602 done
12603 done
12604 IFS=$as_save_IFS
12605
12606 fi
12607 fi
12608 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12609 if test -n "$NM_FOR_TARGET"; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12611 $as_echo "$NM_FOR_TARGET" >&6; }
12612 else
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614 $as_echo "no" >&6; }
12615 fi
12616
12617
12618 fi
12619 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12620 done
12621 fi
12622
12623 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12624 set dummy nm
12625 if test $build = $target ; then
12626 NM_FOR_TARGET="$2"
12627 else
12628 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12629 fi
12630 else
12631 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12632 fi
12633
12634 else
12635 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12636 fi
12637
12638
12639
12640
12641 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12642 if test -n "$with_build_time_tools"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12644 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12645 if test -x $with_build_time_tools/objcopy; then
12646 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12647 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12649 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12650 else
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12653 fi
12654 elif test $build != $host && test $have_gcc_for_target = yes; then
12655 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12656 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12657 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12658 fi
12659 fi
12660 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12661 # Extract the first word of "objcopy", so it can be a program name with args.
12662 set dummy objcopy; ac_word=$2
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12664 $as_echo_n "checking for $ac_word... " >&6; }
12665 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12666 $as_echo_n "(cached) " >&6
12667 else
12668 case $OBJCOPY_FOR_TARGET in
12669 [\\/]* | ?:[\\/]*)
12670 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12671 ;;
12672 *)
12673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12674 for as_dir in $gcc_cv_tool_dirs
12675 do
12676 IFS=$as_save_IFS
12677 test -z "$as_dir" && as_dir=.
12678 for ac_exec_ext in '' $ac_executable_extensions; do
12679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12680 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12682 break 2
12683 fi
12684 done
12685 done
12686 IFS=$as_save_IFS
12687
12688 ;;
12689 esac
12690 fi
12691 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12692 if test -n "$OBJCOPY_FOR_TARGET"; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12694 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12695 else
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12697 $as_echo "no" >&6; }
12698 fi
12699
12700
12701 fi
12702 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12703
12704
12705 if test -n "$OBJCOPY_FOR_TARGET"; then
12706 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12707 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12708 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12709 fi
12710
12711 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12712 for ncn_progname in objcopy; 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_OBJCOPY_FOR_TARGET+:} false; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 if test -n "$OBJCOPY_FOR_TARGET"; then
12721 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # 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_OBJCOPY_FOR_TARGET="${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 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12741 if test -n "$OBJCOPY_FOR_TARGET"; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12743 $as_echo "$OBJCOPY_FOR_TARGET" >&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 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12754 for ncn_progname in objcopy; do
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12756 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12757 if test -x $with_build_time_tools/${ncn_progname}; then
12758 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12760 $as_echo "yes" >&6; }
12761 break
12762 else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12765 fi
12766 done
12767 fi
12768
12769 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12770 for ncn_progname in objcopy; do
12771 if test -n "$ncn_target_tool_prefix"; then
12772 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12773 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775 $as_echo_n "checking for $ac_word... " >&6; }
12776 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 if test -n "$OBJCOPY_FOR_TARGET"; then
12780 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12781 else
12782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783 for as_dir in $PATH
12784 do
12785 IFS=$as_save_IFS
12786 test -z "$as_dir" && as_dir=.
12787 for ac_exec_ext in '' $ac_executable_extensions; do
12788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12789 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12791 break 2
12792 fi
12793 done
12794 done
12795 IFS=$as_save_IFS
12796
12797 fi
12798 fi
12799 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12800 if test -n "$OBJCOPY_FOR_TARGET"; then
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12802 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12803 else
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805 $as_echo "no" >&6; }
12806 fi
12807
12808
12809 fi
12810 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12812 set dummy ${ncn_progname}; ac_word=$2
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814 $as_echo_n "checking for $ac_word... " >&6; }
12815 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 if test -n "$OBJCOPY_FOR_TARGET"; then
12819 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12820 else
12821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822 for as_dir in $PATH
12823 do
12824 IFS=$as_save_IFS
12825 test -z "$as_dir" && as_dir=.
12826 for ac_exec_ext in '' $ac_executable_extensions; do
12827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12828 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12830 break 2
12831 fi
12832 done
12833 done
12834 IFS=$as_save_IFS
12835
12836 fi
12837 fi
12838 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12839 if test -n "$OBJCOPY_FOR_TARGET"; then
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12841 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12842 else
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 $as_echo "no" >&6; }
12845 fi
12846
12847
12848 fi
12849 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12850 done
12851 fi
12852
12853 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12854 set dummy objcopy
12855 if test $build = $target ; then
12856 OBJCOPY_FOR_TARGET="$2"
12857 else
12858 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12859 fi
12860 else
12861 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12862 fi
12863
12864 else
12865 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12866 fi
12867
12868
12869
12870
12871 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12872 if test -n "$with_build_time_tools"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12874 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12875 if test -x $with_build_time_tools/objdump; then
12876 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12877 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12879 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12880 else
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12883 fi
12884 elif test $build != $host && test $have_gcc_for_target = yes; then
12885 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12886 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12887 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12888 fi
12889 fi
12890 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12891 # Extract the first word of "objdump", so it can be a program name with args.
12892 set dummy objdump; ac_word=$2
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12894 $as_echo_n "checking for $ac_word... " >&6; }
12895 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12896 $as_echo_n "(cached) " >&6
12897 else
12898 case $OBJDUMP_FOR_TARGET in
12899 [\\/]* | ?:[\\/]*)
12900 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12901 ;;
12902 *)
12903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12904 for as_dir in $gcc_cv_tool_dirs
12905 do
12906 IFS=$as_save_IFS
12907 test -z "$as_dir" && as_dir=.
12908 for ac_exec_ext in '' $ac_executable_extensions; do
12909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12910 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12912 break 2
12913 fi
12914 done
12915 done
12916 IFS=$as_save_IFS
12917
12918 ;;
12919 esac
12920 fi
12921 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12922 if test -n "$OBJDUMP_FOR_TARGET"; then
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12924 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12925 else
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927 $as_echo "no" >&6; }
12928 fi
12929
12930
12931 fi
12932 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12933
12934
12935 if test -n "$OBJDUMP_FOR_TARGET"; then
12936 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12937 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12938 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12939 fi
12940
12941 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12942 for ncn_progname in objdump; do
12943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12944 set dummy ${ncn_progname}; ac_word=$2
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12946 $as_echo_n "checking for $ac_word... " >&6; }
12947 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12948 $as_echo_n "(cached) " >&6
12949 else
12950 if test -n "$OBJDUMP_FOR_TARGET"; then
12951 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12952 else
12953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12954 for as_dir in $PATH
12955 do
12956 IFS=$as_save_IFS
12957 test -z "$as_dir" && as_dir=.
12958 for ac_exec_ext in '' $ac_executable_extensions; do
12959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12960 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12962 break 2
12963 fi
12964 done
12965 done
12966 IFS=$as_save_IFS
12967
12968 fi
12969 fi
12970 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12971 if test -n "$OBJDUMP_FOR_TARGET"; then
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12973 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12974 else
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976 $as_echo "no" >&6; }
12977 fi
12978
12979
12980 done
12981 fi
12982
12983 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12984 for ncn_progname in objdump; do
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12986 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12987 if test -x $with_build_time_tools/${ncn_progname}; then
12988 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12990 $as_echo "yes" >&6; }
12991 break
12992 else
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994 $as_echo "no" >&6; }
12995 fi
12996 done
12997 fi
12998
12999 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13000 for ncn_progname in objdump; do
13001 if test -n "$ncn_target_tool_prefix"; then
13002 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13003 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13005 $as_echo_n "checking for $ac_word... " >&6; }
13006 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 if test -n "$OBJDUMP_FOR_TARGET"; then
13010 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13011 else
13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013 for as_dir in $PATH
13014 do
13015 IFS=$as_save_IFS
13016 test -z "$as_dir" && as_dir=.
13017 for ac_exec_ext in '' $ac_executable_extensions; do
13018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13019 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13021 break 2
13022 fi
13023 done
13024 done
13025 IFS=$as_save_IFS
13026
13027 fi
13028 fi
13029 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13030 if test -n "$OBJDUMP_FOR_TARGET"; then
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13032 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13033 else
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035 $as_echo "no" >&6; }
13036 fi
13037
13038
13039 fi
13040 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13042 set dummy ${ncn_progname}; ac_word=$2
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044 $as_echo_n "checking for $ac_word... " >&6; }
13045 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13046 $as_echo_n "(cached) " >&6
13047 else
13048 if test -n "$OBJDUMP_FOR_TARGET"; then
13049 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13050 else
13051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052 for as_dir in $PATH
13053 do
13054 IFS=$as_save_IFS
13055 test -z "$as_dir" && as_dir=.
13056 for ac_exec_ext in '' $ac_executable_extensions; do
13057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13058 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13060 break 2
13061 fi
13062 done
13063 done
13064 IFS=$as_save_IFS
13065
13066 fi
13067 fi
13068 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13069 if test -n "$OBJDUMP_FOR_TARGET"; then
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13071 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13072 else
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074 $as_echo "no" >&6; }
13075 fi
13076
13077
13078 fi
13079 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13080 done
13081 fi
13082
13083 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13084 set dummy objdump
13085 if test $build = $target ; then
13086 OBJDUMP_FOR_TARGET="$2"
13087 else
13088 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13089 fi
13090 else
13091 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
13092 fi
13093
13094 else
13095 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
13096 fi
13097
13098
13099
13100
13101 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13102 if test -n "$with_build_time_tools"; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13104 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
13105 if test -x $with_build_time_tools/ranlib; then
13106 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13107 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13109 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
13110 else
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112 $as_echo "no" >&6; }
13113 fi
13114 elif test $build != $host && test $have_gcc_for_target = yes; then
13115 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
13116 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13117 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13118 fi
13119 fi
13120 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13121 # Extract the first word of "ranlib", so it can be a program name with args.
13122 set dummy ranlib; ac_word=$2
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13124 $as_echo_n "checking for $ac_word... " >&6; }
13125 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
13126 $as_echo_n "(cached) " >&6
13127 else
13128 case $RANLIB_FOR_TARGET in
13129 [\\/]* | ?:[\\/]*)
13130 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13131 ;;
13132 *)
13133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13134 for as_dir in $gcc_cv_tool_dirs
13135 do
13136 IFS=$as_save_IFS
13137 test -z "$as_dir" && as_dir=.
13138 for ac_exec_ext in '' $ac_executable_extensions; do
13139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13140 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13142 break 2
13143 fi
13144 done
13145 done
13146 IFS=$as_save_IFS
13147
13148 ;;
13149 esac
13150 fi
13151 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13152 if test -n "$RANLIB_FOR_TARGET"; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13154 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13155 else
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157 $as_echo "no" >&6; }
13158 fi
13159
13160
13161 fi
13162 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13163
13164
13165 if test -n "$RANLIB_FOR_TARGET"; then
13166 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13167 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13168 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13169 fi
13170
13171 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13172 for ncn_progname in ranlib; do
13173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13174 set dummy ${ncn_progname}; ac_word=$2
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13176 $as_echo_n "checking for $ac_word... " >&6; }
13177 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13178 $as_echo_n "(cached) " >&6
13179 else
13180 if test -n "$RANLIB_FOR_TARGET"; then
13181 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13182 else
13183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13184 for as_dir in $PATH
13185 do
13186 IFS=$as_save_IFS
13187 test -z "$as_dir" && as_dir=.
13188 for ac_exec_ext in '' $ac_executable_extensions; do
13189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13190 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13192 break 2
13193 fi
13194 done
13195 done
13196 IFS=$as_save_IFS
13197
13198 fi
13199 fi
13200 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13201 if test -n "$RANLIB_FOR_TARGET"; then
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13203 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13204 else
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13206 $as_echo "no" >&6; }
13207 fi
13208
13209
13210 done
13211 fi
13212
13213 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13214 for ncn_progname in ranlib; do
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13216 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13217 if test -x $with_build_time_tools/${ncn_progname}; then
13218 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13220 $as_echo "yes" >&6; }
13221 break
13222 else
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224 $as_echo "no" >&6; }
13225 fi
13226 done
13227 fi
13228
13229 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13230 for ncn_progname in ranlib; do
13231 if test -n "$ncn_target_tool_prefix"; then
13232 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13233 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13235 $as_echo_n "checking for $ac_word... " >&6; }
13236 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13237 $as_echo_n "(cached) " >&6
13238 else
13239 if test -n "$RANLIB_FOR_TARGET"; then
13240 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13241 else
13242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243 for as_dir in $PATH
13244 do
13245 IFS=$as_save_IFS
13246 test -z "$as_dir" && as_dir=.
13247 for ac_exec_ext in '' $ac_executable_extensions; do
13248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13249 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13251 break 2
13252 fi
13253 done
13254 done
13255 IFS=$as_save_IFS
13256
13257 fi
13258 fi
13259 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13260 if test -n "$RANLIB_FOR_TARGET"; then
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13262 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13263 else
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 $as_echo "no" >&6; }
13266 fi
13267
13268
13269 fi
13270 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13272 set dummy ${ncn_progname}; ac_word=$2
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13274 $as_echo_n "checking for $ac_word... " >&6; }
13275 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13276 $as_echo_n "(cached) " >&6
13277 else
13278 if test -n "$RANLIB_FOR_TARGET"; then
13279 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13280 else
13281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282 for as_dir in $PATH
13283 do
13284 IFS=$as_save_IFS
13285 test -z "$as_dir" && as_dir=.
13286 for ac_exec_ext in '' $ac_executable_extensions; do
13287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13288 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13290 break 2
13291 fi
13292 done
13293 done
13294 IFS=$as_save_IFS
13295
13296 fi
13297 fi
13298 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13299 if test -n "$RANLIB_FOR_TARGET"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13301 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13302 else
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13305 fi
13306
13307
13308 fi
13309 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13310 done
13311 fi
13312
13313 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13314 set dummy ranlib
13315 if test $build = $target ; then
13316 RANLIB_FOR_TARGET="$2"
13317 else
13318 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13319 fi
13320 else
13321 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13322 fi
13323
13324 else
13325 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13326 fi
13327
13328
13329
13330
13331 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13332 if test -n "$with_build_time_tools"; then
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13334 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13335 if test -x $with_build_time_tools/readelf; then
13336 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13337 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13339 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13340 else
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342 $as_echo "no" >&6; }
13343 fi
13344 elif test $build != $host && test $have_gcc_for_target = yes; then
13345 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13346 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13347 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13348 fi
13349 fi
13350 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13351 # Extract the first word of "readelf", so it can be a program name with args.
13352 set dummy readelf; ac_word=$2
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13354 $as_echo_n "checking for $ac_word... " >&6; }
13355 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13356 $as_echo_n "(cached) " >&6
13357 else
13358 case $READELF_FOR_TARGET in
13359 [\\/]* | ?:[\\/]*)
13360 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13361 ;;
13362 *)
13363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13364 for as_dir in $gcc_cv_tool_dirs
13365 do
13366 IFS=$as_save_IFS
13367 test -z "$as_dir" && as_dir=.
13368 for ac_exec_ext in '' $ac_executable_extensions; do
13369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13370 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13372 break 2
13373 fi
13374 done
13375 done
13376 IFS=$as_save_IFS
13377
13378 ;;
13379 esac
13380 fi
13381 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13382 if test -n "$READELF_FOR_TARGET"; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13384 $as_echo "$READELF_FOR_TARGET" >&6; }
13385 else
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387 $as_echo "no" >&6; }
13388 fi
13389
13390
13391 fi
13392 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13393
13394
13395 if test -n "$READELF_FOR_TARGET"; then
13396 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13397 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13398 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13399 fi
13400
13401 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13402 for ncn_progname in readelf; do
13403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13404 set dummy ${ncn_progname}; ac_word=$2
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13406 $as_echo_n "checking for $ac_word... " >&6; }
13407 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13408 $as_echo_n "(cached) " >&6
13409 else
13410 if test -n "$READELF_FOR_TARGET"; then
13411 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13412 else
13413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13414 for as_dir in $PATH
13415 do
13416 IFS=$as_save_IFS
13417 test -z "$as_dir" && as_dir=.
13418 for ac_exec_ext in '' $ac_executable_extensions; do
13419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13420 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13422 break 2
13423 fi
13424 done
13425 done
13426 IFS=$as_save_IFS
13427
13428 fi
13429 fi
13430 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13431 if test -n "$READELF_FOR_TARGET"; then
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13433 $as_echo "$READELF_FOR_TARGET" >&6; }
13434 else
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13436 $as_echo "no" >&6; }
13437 fi
13438
13439
13440 done
13441 fi
13442
13443 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13444 for ncn_progname in readelf; do
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13446 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13447 if test -x $with_build_time_tools/${ncn_progname}; then
13448 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13450 $as_echo "yes" >&6; }
13451 break
13452 else
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454 $as_echo "no" >&6; }
13455 fi
13456 done
13457 fi
13458
13459 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13460 for ncn_progname in readelf; do
13461 if test -n "$ncn_target_tool_prefix"; then
13462 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13463 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13465 $as_echo_n "checking for $ac_word... " >&6; }
13466 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13467 $as_echo_n "(cached) " >&6
13468 else
13469 if test -n "$READELF_FOR_TARGET"; then
13470 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13471 else
13472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13473 for as_dir in $PATH
13474 do
13475 IFS=$as_save_IFS
13476 test -z "$as_dir" && as_dir=.
13477 for ac_exec_ext in '' $ac_executable_extensions; do
13478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13479 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13481 break 2
13482 fi
13483 done
13484 done
13485 IFS=$as_save_IFS
13486
13487 fi
13488 fi
13489 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13490 if test -n "$READELF_FOR_TARGET"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13492 $as_echo "$READELF_FOR_TARGET" >&6; }
13493 else
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495 $as_echo "no" >&6; }
13496 fi
13497
13498
13499 fi
13500 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13502 set dummy ${ncn_progname}; ac_word=$2
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13504 $as_echo_n "checking for $ac_word... " >&6; }
13505 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13506 $as_echo_n "(cached) " >&6
13507 else
13508 if test -n "$READELF_FOR_TARGET"; then
13509 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13510 else
13511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13512 for as_dir in $PATH
13513 do
13514 IFS=$as_save_IFS
13515 test -z "$as_dir" && as_dir=.
13516 for ac_exec_ext in '' $ac_executable_extensions; do
13517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13518 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13520 break 2
13521 fi
13522 done
13523 done
13524 IFS=$as_save_IFS
13525
13526 fi
13527 fi
13528 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13529 if test -n "$READELF_FOR_TARGET"; then
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13531 $as_echo "$READELF_FOR_TARGET" >&6; }
13532 else
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534 $as_echo "no" >&6; }
13535 fi
13536
13537
13538 fi
13539 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13540 done
13541 fi
13542
13543 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13544 set dummy readelf
13545 if test $build = $target ; then
13546 READELF_FOR_TARGET="$2"
13547 else
13548 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13549 fi
13550 else
13551 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13552 fi
13553
13554 else
13555 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13556 fi
13557
13558
13559
13560
13561 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13562 if test -n "$with_build_time_tools"; then
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13564 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13565 if test -x $with_build_time_tools/strip; then
13566 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13567 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13569 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13570 else
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13572 $as_echo "no" >&6; }
13573 fi
13574 elif test $build != $host && test $have_gcc_for_target = yes; then
13575 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13576 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13577 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13578 fi
13579 fi
13580 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13581 # Extract the first word of "strip", so it can be a program name with args.
13582 set dummy strip; ac_word=$2
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13584 $as_echo_n "checking for $ac_word... " >&6; }
13585 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13586 $as_echo_n "(cached) " >&6
13587 else
13588 case $STRIP_FOR_TARGET in
13589 [\\/]* | ?:[\\/]*)
13590 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13591 ;;
13592 *)
13593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13594 for as_dir in $gcc_cv_tool_dirs
13595 do
13596 IFS=$as_save_IFS
13597 test -z "$as_dir" && as_dir=.
13598 for ac_exec_ext in '' $ac_executable_extensions; do
13599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13600 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13602 break 2
13603 fi
13604 done
13605 done
13606 IFS=$as_save_IFS
13607
13608 ;;
13609 esac
13610 fi
13611 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13612 if test -n "$STRIP_FOR_TARGET"; then
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13614 $as_echo "$STRIP_FOR_TARGET" >&6; }
13615 else
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13617 $as_echo "no" >&6; }
13618 fi
13619
13620
13621 fi
13622 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13623
13624
13625 if test -n "$STRIP_FOR_TARGET"; then
13626 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13627 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13628 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13629 fi
13630
13631 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13632 for ncn_progname in strip; do
13633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13634 set dummy ${ncn_progname}; ac_word=$2
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13636 $as_echo_n "checking for $ac_word... " >&6; }
13637 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13638 $as_echo_n "(cached) " >&6
13639 else
13640 if test -n "$STRIP_FOR_TARGET"; then
13641 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13642 else
13643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13644 for as_dir in $PATH
13645 do
13646 IFS=$as_save_IFS
13647 test -z "$as_dir" && as_dir=.
13648 for ac_exec_ext in '' $ac_executable_extensions; do
13649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13650 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13652 break 2
13653 fi
13654 done
13655 done
13656 IFS=$as_save_IFS
13657
13658 fi
13659 fi
13660 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13661 if test -n "$STRIP_FOR_TARGET"; then
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13663 $as_echo "$STRIP_FOR_TARGET" >&6; }
13664 else
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13666 $as_echo "no" >&6; }
13667 fi
13668
13669
13670 done
13671 fi
13672
13673 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13674 for ncn_progname in strip; do
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13676 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13677 if test -x $with_build_time_tools/${ncn_progname}; then
13678 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13680 $as_echo "yes" >&6; }
13681 break
13682 else
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684 $as_echo "no" >&6; }
13685 fi
13686 done
13687 fi
13688
13689 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13690 for ncn_progname in strip; do
13691 if test -n "$ncn_target_tool_prefix"; then
13692 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13693 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13695 $as_echo_n "checking for $ac_word... " >&6; }
13696 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13697 $as_echo_n "(cached) " >&6
13698 else
13699 if test -n "$STRIP_FOR_TARGET"; then
13700 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13701 else
13702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13703 for as_dir in $PATH
13704 do
13705 IFS=$as_save_IFS
13706 test -z "$as_dir" && as_dir=.
13707 for ac_exec_ext in '' $ac_executable_extensions; do
13708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13709 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13711 break 2
13712 fi
13713 done
13714 done
13715 IFS=$as_save_IFS
13716
13717 fi
13718 fi
13719 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13720 if test -n "$STRIP_FOR_TARGET"; then
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13722 $as_echo "$STRIP_FOR_TARGET" >&6; }
13723 else
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13725 $as_echo "no" >&6; }
13726 fi
13727
13728
13729 fi
13730 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13732 set dummy ${ncn_progname}; ac_word=$2
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13734 $as_echo_n "checking for $ac_word... " >&6; }
13735 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13736 $as_echo_n "(cached) " >&6
13737 else
13738 if test -n "$STRIP_FOR_TARGET"; then
13739 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13740 else
13741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742 for as_dir in $PATH
13743 do
13744 IFS=$as_save_IFS
13745 test -z "$as_dir" && as_dir=.
13746 for ac_exec_ext in '' $ac_executable_extensions; do
13747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13748 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13750 break 2
13751 fi
13752 done
13753 done
13754 IFS=$as_save_IFS
13755
13756 fi
13757 fi
13758 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13759 if test -n "$STRIP_FOR_TARGET"; then
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13761 $as_echo "$STRIP_FOR_TARGET" >&6; }
13762 else
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13764 $as_echo "no" >&6; }
13765 fi
13766
13767
13768 fi
13769 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13770 done
13771 fi
13772
13773 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13774 set dummy strip
13775 if test $build = $target ; then
13776 STRIP_FOR_TARGET="$2"
13777 else
13778 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13779 fi
13780 else
13781 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13782 fi
13783
13784 else
13785 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13786 fi
13787
13788
13789
13790
13791 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13792 if test -n "$with_build_time_tools"; then
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13794 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13795 if test -x $with_build_time_tools/windres; then
13796 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13797 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13799 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13800 else
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13802 $as_echo "no" >&6; }
13803 fi
13804 elif test $build != $host && test $have_gcc_for_target = yes; then
13805 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13806 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13807 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13808 fi
13809 fi
13810 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13811 # Extract the first word of "windres", so it can be a program name with args.
13812 set dummy windres; ac_word=$2
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13814 $as_echo_n "checking for $ac_word... " >&6; }
13815 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13816 $as_echo_n "(cached) " >&6
13817 else
13818 case $WINDRES_FOR_TARGET in
13819 [\\/]* | ?:[\\/]*)
13820 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13821 ;;
13822 *)
13823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824 for as_dir in $gcc_cv_tool_dirs
13825 do
13826 IFS=$as_save_IFS
13827 test -z "$as_dir" && as_dir=.
13828 for ac_exec_ext in '' $ac_executable_extensions; do
13829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13830 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13832 break 2
13833 fi
13834 done
13835 done
13836 IFS=$as_save_IFS
13837
13838 ;;
13839 esac
13840 fi
13841 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13842 if test -n "$WINDRES_FOR_TARGET"; then
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13844 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13845 else
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847 $as_echo "no" >&6; }
13848 fi
13849
13850
13851 fi
13852 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13853
13854
13855 if test -n "$WINDRES_FOR_TARGET"; then
13856 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13857 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13858 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13859 fi
13860
13861 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13862 for ncn_progname in windres; do
13863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13864 set dummy ${ncn_progname}; ac_word=$2
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13866 $as_echo_n "checking for $ac_word... " >&6; }
13867 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13868 $as_echo_n "(cached) " >&6
13869 else
13870 if test -n "$WINDRES_FOR_TARGET"; then
13871 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13872 else
13873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13874 for as_dir in $PATH
13875 do
13876 IFS=$as_save_IFS
13877 test -z "$as_dir" && as_dir=.
13878 for ac_exec_ext in '' $ac_executable_extensions; do
13879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13880 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13882 break 2
13883 fi
13884 done
13885 done
13886 IFS=$as_save_IFS
13887
13888 fi
13889 fi
13890 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13891 if test -n "$WINDRES_FOR_TARGET"; then
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13893 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13894 else
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13896 $as_echo "no" >&6; }
13897 fi
13898
13899
13900 done
13901 fi
13902
13903 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13904 for ncn_progname in windres; do
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13906 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13907 if test -x $with_build_time_tools/${ncn_progname}; then
13908 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13910 $as_echo "yes" >&6; }
13911 break
13912 else
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914 $as_echo "no" >&6; }
13915 fi
13916 done
13917 fi
13918
13919 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13920 for ncn_progname in windres; do
13921 if test -n "$ncn_target_tool_prefix"; then
13922 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13923 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13925 $as_echo_n "checking for $ac_word... " >&6; }
13926 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13927 $as_echo_n "(cached) " >&6
13928 else
13929 if test -n "$WINDRES_FOR_TARGET"; then
13930 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13931 else
13932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13933 for as_dir in $PATH
13934 do
13935 IFS=$as_save_IFS
13936 test -z "$as_dir" && as_dir=.
13937 for ac_exec_ext in '' $ac_executable_extensions; do
13938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13939 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13941 break 2
13942 fi
13943 done
13944 done
13945 IFS=$as_save_IFS
13946
13947 fi
13948 fi
13949 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13950 if test -n "$WINDRES_FOR_TARGET"; then
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13952 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13953 else
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13955 $as_echo "no" >&6; }
13956 fi
13957
13958
13959 fi
13960 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13962 set dummy ${ncn_progname}; ac_word=$2
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13964 $as_echo_n "checking for $ac_word... " >&6; }
13965 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13966 $as_echo_n "(cached) " >&6
13967 else
13968 if test -n "$WINDRES_FOR_TARGET"; then
13969 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13970 else
13971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13972 for as_dir in $PATH
13973 do
13974 IFS=$as_save_IFS
13975 test -z "$as_dir" && as_dir=.
13976 for ac_exec_ext in '' $ac_executable_extensions; do
13977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13978 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13980 break 2
13981 fi
13982 done
13983 done
13984 IFS=$as_save_IFS
13985
13986 fi
13987 fi
13988 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13989 if test -n "$WINDRES_FOR_TARGET"; then
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13991 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13992 else
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13994 $as_echo "no" >&6; }
13995 fi
13996
13997
13998 fi
13999 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14000 done
14001 fi
14002
14003 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14004 set dummy windres
14005 if test $build = $target ; then
14006 WINDRES_FOR_TARGET="$2"
14007 else
14008 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
14009 fi
14010 else
14011 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
14012 fi
14013
14014 else
14015 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
14016 fi
14017
14018
14019
14020
14021 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14022 if test -n "$with_build_time_tools"; then
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14024 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
14025 if test -x $with_build_time_tools/windmc; then
14026 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14027 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14029 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
14030 else
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14032 $as_echo "no" >&6; }
14033 fi
14034 elif test $build != $host && test $have_gcc_for_target = yes; then
14035 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
14036 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14037 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14038 fi
14039 fi
14040 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14041 # Extract the first word of "windmc", so it can be a program name with args.
14042 set dummy windmc; ac_word=$2
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14044 $as_echo_n "checking for $ac_word... " >&6; }
14045 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
14046 $as_echo_n "(cached) " >&6
14047 else
14048 case $WINDMC_FOR_TARGET in
14049 [\\/]* | ?:[\\/]*)
14050 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14051 ;;
14052 *)
14053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054 for as_dir in $gcc_cv_tool_dirs
14055 do
14056 IFS=$as_save_IFS
14057 test -z "$as_dir" && as_dir=.
14058 for ac_exec_ext in '' $ac_executable_extensions; do
14059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14060 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14062 break 2
14063 fi
14064 done
14065 done
14066 IFS=$as_save_IFS
14067
14068 ;;
14069 esac
14070 fi
14071 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14072 if test -n "$WINDMC_FOR_TARGET"; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14074 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14075 else
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14077 $as_echo "no" >&6; }
14078 fi
14079
14080
14081 fi
14082 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14083
14084
14085 if test -n "$WINDMC_FOR_TARGET"; then
14086 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14087 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14088 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14089 fi
14090
14091 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14092 for ncn_progname in windmc; do
14093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14094 set dummy ${ncn_progname}; ac_word=$2
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14096 $as_echo_n "checking for $ac_word... " >&6; }
14097 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14098 $as_echo_n "(cached) " >&6
14099 else
14100 if test -n "$WINDMC_FOR_TARGET"; then
14101 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14102 else
14103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in $PATH
14105 do
14106 IFS=$as_save_IFS
14107 test -z "$as_dir" && as_dir=.
14108 for ac_exec_ext in '' $ac_executable_extensions; do
14109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14110 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14112 break 2
14113 fi
14114 done
14115 done
14116 IFS=$as_save_IFS
14117
14118 fi
14119 fi
14120 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14121 if test -n "$WINDMC_FOR_TARGET"; then
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14123 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14124 else
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14126 $as_echo "no" >&6; }
14127 fi
14128
14129
14130 done
14131 fi
14132
14133 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14134 for ncn_progname in windmc; do
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14136 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14137 if test -x $with_build_time_tools/${ncn_progname}; then
14138 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14140 $as_echo "yes" >&6; }
14141 break
14142 else
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14144 $as_echo "no" >&6; }
14145 fi
14146 done
14147 fi
14148
14149 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14150 for ncn_progname in windmc; do
14151 if test -n "$ncn_target_tool_prefix"; then
14152 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14153 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14155 $as_echo_n "checking for $ac_word... " >&6; }
14156 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14157 $as_echo_n "(cached) " >&6
14158 else
14159 if test -n "$WINDMC_FOR_TARGET"; then
14160 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14161 else
14162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14163 for as_dir in $PATH
14164 do
14165 IFS=$as_save_IFS
14166 test -z "$as_dir" && as_dir=.
14167 for ac_exec_ext in '' $ac_executable_extensions; do
14168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14169 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14171 break 2
14172 fi
14173 done
14174 done
14175 IFS=$as_save_IFS
14176
14177 fi
14178 fi
14179 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14180 if test -n "$WINDMC_FOR_TARGET"; then
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14182 $as_echo "$WINDMC_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_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14192 set dummy ${ncn_progname}; ac_word=$2
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14194 $as_echo_n "checking for $ac_word... " >&6; }
14195 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14196 $as_echo_n "(cached) " >&6
14197 else
14198 if test -n "$WINDMC_FOR_TARGET"; then
14199 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14200 else
14201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14202 for as_dir in $PATH
14203 do
14204 IFS=$as_save_IFS
14205 test -z "$as_dir" && as_dir=.
14206 for ac_exec_ext in '' $ac_executable_extensions; do
14207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14208 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14210 break 2
14211 fi
14212 done
14213 done
14214 IFS=$as_save_IFS
14215
14216 fi
14217 fi
14218 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14219 if test -n "$WINDMC_FOR_TARGET"; then
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14221 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14222 else
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14224 $as_echo "no" >&6; }
14225 fi
14226
14227
14228 fi
14229 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14230 done
14231 fi
14232
14233 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14234 set dummy windmc
14235 if test $build = $target ; then
14236 WINDMC_FOR_TARGET="$2"
14237 else
14238 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14239 fi
14240 else
14241 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14242 fi
14243
14244 else
14245 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14246 fi
14247
14248
14249 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14250
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14252 $as_echo_n "checking where to find the target ar... " >&6; }
14253 if test "x${build}" != "x${host}" ; then
14254 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
14256 ac_dir=`dirname $AR_FOR_TARGET`
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258 $as_echo "pre-installed in $ac_dir" >&6; }
14259 else
14260 # Canadian cross, just use what we found
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14262 $as_echo "pre-installed" >&6; }
14263 fi
14264 else
14265 ok=yes
14266 case " ${configdirs} " in
14267 *" binutils "*) ;;
14268 *) ok=no ;;
14269 esac
14270
14271 if test $ok = yes; then
14272 # An in-tree tool is available and we can use it
14273 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14275 $as_echo "just compiled" >&6; }
14276 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14277 # We already found the complete path
14278 ac_dir=`dirname $AR_FOR_TARGET`
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14280 $as_echo "pre-installed in $ac_dir" >&6; }
14281 elif test "x$target" = "x$host"; then
14282 # We can use an host tool
14283 AR_FOR_TARGET='$(AR)'
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14285 $as_echo "host tool" >&6; }
14286 else
14287 # We need a cross tool
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289 $as_echo "pre-installed" >&6; }
14290 fi
14291 fi
14292
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14294 $as_echo_n "checking where to find the target as... " >&6; }
14295 if test "x${build}" != "x${host}" ; then
14296 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
14298 ac_dir=`dirname $AS_FOR_TARGET`
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300 $as_echo "pre-installed in $ac_dir" >&6; }
14301 else
14302 # Canadian cross, just use what we found
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14304 $as_echo "pre-installed" >&6; }
14305 fi
14306 else
14307 ok=yes
14308 case " ${configdirs} " in
14309 *" gas "*) ;;
14310 *) ok=no ;;
14311 esac
14312
14313 if test $ok = yes; then
14314 # An in-tree tool is available and we can use it
14315 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14317 $as_echo "just compiled" >&6; }
14318 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14319 # We already found the complete path
14320 ac_dir=`dirname $AS_FOR_TARGET`
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14322 $as_echo "pre-installed in $ac_dir" >&6; }
14323 elif test "x$target" = "x$host"; then
14324 # We can use an host tool
14325 AS_FOR_TARGET='$(AS)'
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14327 $as_echo "host tool" >&6; }
14328 else
14329 # We need a cross tool
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14331 $as_echo "pre-installed" >&6; }
14332 fi
14333 fi
14334
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14336 $as_echo_n "checking where to find the target cc... " >&6; }
14337 if test "x${build}" != "x${host}" ; then
14338 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
14340 ac_dir=`dirname $CC_FOR_TARGET`
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342 $as_echo "pre-installed in $ac_dir" >&6; }
14343 else
14344 # Canadian cross, just use what we found
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14346 $as_echo "pre-installed" >&6; }
14347 fi
14348 else
14349 ok=yes
14350 case " ${configdirs} " in
14351 *" gcc "*) ;;
14352 *) ok=no ;;
14353 esac
14354
14355 if test $ok = yes; then
14356 # An in-tree tool is available and we can use it
14357 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14359 $as_echo "just compiled" >&6; }
14360 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14361 # We already found the complete path
14362 ac_dir=`dirname $CC_FOR_TARGET`
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14364 $as_echo "pre-installed in $ac_dir" >&6; }
14365 elif test "x$target" = "x$host"; then
14366 # We can use an host tool
14367 CC_FOR_TARGET='$(CC)'
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14369 $as_echo "host tool" >&6; }
14370 else
14371 # We need a cross tool
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14373 $as_echo "pre-installed" >&6; }
14374 fi
14375 fi
14376
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14378 $as_echo_n "checking where to find the target c++... " >&6; }
14379 if test "x${build}" != "x${host}" ; then
14380 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14381 # We already found the complete path
14382 ac_dir=`dirname $CXX_FOR_TARGET`
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14384 $as_echo "pre-installed in $ac_dir" >&6; }
14385 else
14386 # Canadian cross, just use what we found
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14388 $as_echo "pre-installed" >&6; }
14389 fi
14390 else
14391 ok=yes
14392 case " ${configdirs} " in
14393 *" gcc "*) ;;
14394 *) ok=no ;;
14395 esac
14396 case ,${enable_languages}, in
14397 *,c++,*) ;;
14398 *) ok=no ;;
14399 esac
14400 if test $ok = yes; then
14401 # An in-tree tool is available and we can use it
14402 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'
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14404 $as_echo "just compiled" >&6; }
14405 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14406 # We already found the complete path
14407 ac_dir=`dirname $CXX_FOR_TARGET`
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14409 $as_echo "pre-installed in $ac_dir" >&6; }
14410 elif test "x$target" = "x$host"; then
14411 # We can use an host tool
14412 CXX_FOR_TARGET='$(CXX)'
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14414 $as_echo "host tool" >&6; }
14415 else
14416 # We need a cross tool
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14418 $as_echo "pre-installed" >&6; }
14419 fi
14420 fi
14421
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14423 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14424 if test "x${build}" != "x${host}" ; then
14425 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14426 # We already found the complete path
14427 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14429 $as_echo "pre-installed in $ac_dir" >&6; }
14430 else
14431 # Canadian cross, just use what we found
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14433 $as_echo "pre-installed" >&6; }
14434 fi
14435 else
14436 ok=yes
14437 case " ${configdirs} " in
14438 *" gcc "*) ;;
14439 *) ok=no ;;
14440 esac
14441 case ,${enable_languages}, in
14442 *,c++,*) ;;
14443 *) ok=no ;;
14444 esac
14445 if test $ok = yes; then
14446 # An in-tree tool is available and we can use it
14447 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'
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14449 $as_echo "just compiled" >&6; }
14450 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14451 # We already found the complete path
14452 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14454 $as_echo "pre-installed in $ac_dir" >&6; }
14455 elif test "x$target" = "x$host"; then
14456 # We can use an host tool
14457 RAW_CXX_FOR_TARGET='$(CXX)'
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14459 $as_echo "host tool" >&6; }
14460 else
14461 # We need a cross tool
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14463 $as_echo "pre-installed" >&6; }
14464 fi
14465 fi
14466
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14468 $as_echo_n "checking where to find the target dlltool... " >&6; }
14469 if test "x${build}" != "x${host}" ; then
14470 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14471 # We already found the complete path
14472 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14474 $as_echo "pre-installed in $ac_dir" >&6; }
14475 else
14476 # Canadian cross, just use what we found
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14478 $as_echo "pre-installed" >&6; }
14479 fi
14480 else
14481 ok=yes
14482 case " ${configdirs} " in
14483 *" binutils "*) ;;
14484 *) ok=no ;;
14485 esac
14486
14487 if test $ok = yes; then
14488 # An in-tree tool is available and we can use it
14489 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14491 $as_echo "just compiled" >&6; }
14492 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14493 # We already found the complete path
14494 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14496 $as_echo "pre-installed in $ac_dir" >&6; }
14497 elif test "x$target" = "x$host"; then
14498 # We can use an host tool
14499 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14501 $as_echo "host tool" >&6; }
14502 else
14503 # We need a cross tool
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14505 $as_echo "pre-installed" >&6; }
14506 fi
14507 fi
14508
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14510 $as_echo_n "checking where to find the target gcc... " >&6; }
14511 if test "x${build}" != "x${host}" ; then
14512 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14513 # We already found the complete path
14514 ac_dir=`dirname $GCC_FOR_TARGET`
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14516 $as_echo "pre-installed in $ac_dir" >&6; }
14517 else
14518 # Canadian cross, just use what we found
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14520 $as_echo "pre-installed" >&6; }
14521 fi
14522 else
14523 ok=yes
14524 case " ${configdirs} " in
14525 *" gcc "*) ;;
14526 *) ok=no ;;
14527 esac
14528
14529 if test $ok = yes; then
14530 # An in-tree tool is available and we can use it
14531 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14533 $as_echo "just compiled" >&6; }
14534 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14535 # We already found the complete path
14536 ac_dir=`dirname $GCC_FOR_TARGET`
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14538 $as_echo "pre-installed in $ac_dir" >&6; }
14539 elif test "x$target" = "x$host"; then
14540 # We can use an host tool
14541 GCC_FOR_TARGET='$()'
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14543 $as_echo "host tool" >&6; }
14544 else
14545 # We need a cross tool
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14547 $as_echo "pre-installed" >&6; }
14548 fi
14549 fi
14550
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14552 $as_echo_n "checking where to find the target gfortran... " >&6; }
14553 if test "x${build}" != "x${host}" ; then
14554 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14555 # We already found the complete path
14556 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14558 $as_echo "pre-installed in $ac_dir" >&6; }
14559 else
14560 # Canadian cross, just use what we found
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14562 $as_echo "pre-installed" >&6; }
14563 fi
14564 else
14565 ok=yes
14566 case " ${configdirs} " in
14567 *" gcc "*) ;;
14568 *) ok=no ;;
14569 esac
14570 case ,${enable_languages}, in
14571 *,fortran,*) ;;
14572 *) ok=no ;;
14573 esac
14574 if test $ok = yes; then
14575 # An in-tree tool is available and we can use it
14576 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14578 $as_echo "just compiled" >&6; }
14579 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14580 # We already found the complete path
14581 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14583 $as_echo "pre-installed in $ac_dir" >&6; }
14584 elif test "x$target" = "x$host"; then
14585 # We can use an host tool
14586 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14588 $as_echo "host tool" >&6; }
14589 else
14590 # We need a cross tool
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14592 $as_echo "pre-installed" >&6; }
14593 fi
14594 fi
14595
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14597 $as_echo_n "checking where to find the target gccgo... " >&6; }
14598 if test "x${build}" != "x${host}" ; then
14599 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14600 # We already found the complete path
14601 ac_dir=`dirname $GOC_FOR_TARGET`
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14603 $as_echo "pre-installed in $ac_dir" >&6; }
14604 else
14605 # Canadian cross, just use what we found
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14607 $as_echo "pre-installed" >&6; }
14608 fi
14609 else
14610 ok=yes
14611 case " ${configdirs} " in
14612 *" gcc "*) ;;
14613 *) ok=no ;;
14614 esac
14615 case ,${enable_languages}, in
14616 *,go,*) ;;
14617 *) ok=no ;;
14618 esac
14619 if test $ok = yes; then
14620 # An in-tree tool is available and we can use it
14621 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14623 $as_echo "just compiled" >&6; }
14624 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14625 # We already found the complete path
14626 ac_dir=`dirname $GOC_FOR_TARGET`
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14628 $as_echo "pre-installed in $ac_dir" >&6; }
14629 elif test "x$target" = "x$host"; then
14630 # We can use an host tool
14631 GOC_FOR_TARGET='$(GOC)'
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14633 $as_echo "host tool" >&6; }
14634 else
14635 # We need a cross tool
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14637 $as_echo "pre-installed" >&6; }
14638 fi
14639 fi
14640
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14642 $as_echo_n "checking where to find the target ld... " >&6; }
14643 if test "x${build}" != "x${host}" ; then
14644 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14645 # We already found the complete path
14646 ac_dir=`dirname $LD_FOR_TARGET`
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14648 $as_echo "pre-installed in $ac_dir" >&6; }
14649 else
14650 # Canadian cross, just use what we found
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14652 $as_echo "pre-installed" >&6; }
14653 fi
14654 else
14655 ok=yes
14656 case " ${configdirs} " in
14657 *" ld "*) ;;
14658 *) ok=no ;;
14659 esac
14660
14661 if test $ok = yes; then
14662 # An in-tree tool is available and we can use it
14663 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14665 $as_echo "just compiled" >&6; }
14666 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14667 # We already found the complete path
14668 ac_dir=`dirname $LD_FOR_TARGET`
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14670 $as_echo "pre-installed in $ac_dir" >&6; }
14671 elif test "x$target" = "x$host"; then
14672 # We can use an host tool
14673 LD_FOR_TARGET='$(LD)'
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14675 $as_echo "host tool" >&6; }
14676 else
14677 # We need a cross tool
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14679 $as_echo "pre-installed" >&6; }
14680 fi
14681 fi
14682
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14684 $as_echo_n "checking where to find the target lipo... " >&6; }
14685 if test "x${build}" != "x${host}" ; then
14686 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14687 # We already found the complete path
14688 ac_dir=`dirname $LIPO_FOR_TARGET`
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14690 $as_echo "pre-installed in $ac_dir" >&6; }
14691 else
14692 # Canadian cross, just use what we found
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14694 $as_echo "pre-installed" >&6; }
14695 fi
14696 else
14697 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14698 # We already found the complete path
14699 ac_dir=`dirname $LIPO_FOR_TARGET`
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14701 $as_echo "pre-installed in $ac_dir" >&6; }
14702 elif test "x$target" = "x$host"; then
14703 # We can use an host tool
14704 LIPO_FOR_TARGET='$(LIPO)'
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14706 $as_echo "host tool" >&6; }
14707 else
14708 # We need a cross tool
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14710 $as_echo "pre-installed" >&6; }
14711 fi
14712 fi
14713
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14715 $as_echo_n "checking where to find the target nm... " >&6; }
14716 if test "x${build}" != "x${host}" ; then
14717 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14718 # We already found the complete path
14719 ac_dir=`dirname $NM_FOR_TARGET`
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14721 $as_echo "pre-installed in $ac_dir" >&6; }
14722 else
14723 # Canadian cross, just use what we found
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14725 $as_echo "pre-installed" >&6; }
14726 fi
14727 else
14728 ok=yes
14729 case " ${configdirs} " in
14730 *" binutils "*) ;;
14731 *) ok=no ;;
14732 esac
14733
14734 if test $ok = yes; then
14735 # An in-tree tool is available and we can use it
14736 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14738 $as_echo "just compiled" >&6; }
14739 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14740 # We already found the complete path
14741 ac_dir=`dirname $NM_FOR_TARGET`
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14743 $as_echo "pre-installed in $ac_dir" >&6; }
14744 elif test "x$target" = "x$host"; then
14745 # We can use an host tool
14746 NM_FOR_TARGET='$(NM)'
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14748 $as_echo "host tool" >&6; }
14749 else
14750 # We need a cross tool
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14752 $as_echo "pre-installed" >&6; }
14753 fi
14754 fi
14755
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14757 $as_echo_n "checking where to find the target objcopy... " >&6; }
14758 if test "x${build}" != "x${host}" ; then
14759 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14760 # We already found the complete path
14761 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14763 $as_echo "pre-installed in $ac_dir" >&6; }
14764 else
14765 # Canadian cross, just use what we found
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14767 $as_echo "pre-installed" >&6; }
14768 fi
14769 else
14770 ok=yes
14771 case " ${configdirs} " in
14772 *" binutils "*) ;;
14773 *) ok=no ;;
14774 esac
14775
14776 if test $ok = yes; then
14777 # An in-tree tool is available and we can use it
14778 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14780 $as_echo "just compiled" >&6; }
14781 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14782 # We already found the complete path
14783 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14785 $as_echo "pre-installed in $ac_dir" >&6; }
14786 elif test "x$target" = "x$host"; then
14787 # We can use an host tool
14788 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14790 $as_echo "host tool" >&6; }
14791 else
14792 # We need a cross tool
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14794 $as_echo "pre-installed" >&6; }
14795 fi
14796 fi
14797
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14799 $as_echo_n "checking where to find the target objdump... " >&6; }
14800 if test "x${build}" != "x${host}" ; then
14801 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14802 # We already found the complete path
14803 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14805 $as_echo "pre-installed in $ac_dir" >&6; }
14806 else
14807 # Canadian cross, just use what we found
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14809 $as_echo "pre-installed" >&6; }
14810 fi
14811 else
14812 ok=yes
14813 case " ${configdirs} " in
14814 *" binutils "*) ;;
14815 *) ok=no ;;
14816 esac
14817
14818 if test $ok = yes; then
14819 # An in-tree tool is available and we can use it
14820 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14822 $as_echo "just compiled" >&6; }
14823 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14824 # We already found the complete path
14825 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14827 $as_echo "pre-installed in $ac_dir" >&6; }
14828 elif test "x$target" = "x$host"; then
14829 # We can use an host tool
14830 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14832 $as_echo "host tool" >&6; }
14833 else
14834 # We need a cross tool
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14836 $as_echo "pre-installed" >&6; }
14837 fi
14838 fi
14839
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14841 $as_echo_n "checking where to find the target ranlib... " >&6; }
14842 if test "x${build}" != "x${host}" ; then
14843 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14844 # We already found the complete path
14845 ac_dir=`dirname $RANLIB_FOR_TARGET`
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14847 $as_echo "pre-installed in $ac_dir" >&6; }
14848 else
14849 # Canadian cross, just use what we found
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14851 $as_echo "pre-installed" >&6; }
14852 fi
14853 else
14854 ok=yes
14855 case " ${configdirs} " in
14856 *" binutils "*) ;;
14857 *) ok=no ;;
14858 esac
14859
14860 if test $ok = yes; then
14861 # An in-tree tool is available and we can use it
14862 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14864 $as_echo "just compiled" >&6; }
14865 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14866 # We already found the complete path
14867 ac_dir=`dirname $RANLIB_FOR_TARGET`
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14869 $as_echo "pre-installed in $ac_dir" >&6; }
14870 elif test "x$target" = "x$host"; then
14871 # We can use an host tool
14872 RANLIB_FOR_TARGET='$(RANLIB)'
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14874 $as_echo "host tool" >&6; }
14875 else
14876 # We need a cross tool
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14878 $as_echo "pre-installed" >&6; }
14879 fi
14880 fi
14881
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14883 $as_echo_n "checking where to find the target readelf... " >&6; }
14884 if test "x${build}" != "x${host}" ; then
14885 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14886 # We already found the complete path
14887 ac_dir=`dirname $READELF_FOR_TARGET`
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14889 $as_echo "pre-installed in $ac_dir" >&6; }
14890 else
14891 # Canadian cross, just use what we found
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14893 $as_echo "pre-installed" >&6; }
14894 fi
14895 else
14896 ok=yes
14897 case " ${configdirs} " in
14898 *" binutils "*) ;;
14899 *) ok=no ;;
14900 esac
14901
14902 if test $ok = yes; then
14903 # An in-tree tool is available and we can use it
14904 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14906 $as_echo "just compiled" >&6; }
14907 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14908 # We already found the complete path
14909 ac_dir=`dirname $READELF_FOR_TARGET`
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14911 $as_echo "pre-installed in $ac_dir" >&6; }
14912 elif test "x$target" = "x$host"; then
14913 # We can use an host tool
14914 READELF_FOR_TARGET='$(READELF)'
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14916 $as_echo "host tool" >&6; }
14917 else
14918 # We need a cross tool
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14920 $as_echo "pre-installed" >&6; }
14921 fi
14922 fi
14923
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14925 $as_echo_n "checking where to find the target strip... " >&6; }
14926 if test "x${build}" != "x${host}" ; then
14927 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14928 # We already found the complete path
14929 ac_dir=`dirname $STRIP_FOR_TARGET`
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14931 $as_echo "pre-installed in $ac_dir" >&6; }
14932 else
14933 # Canadian cross, just use what we found
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14935 $as_echo "pre-installed" >&6; }
14936 fi
14937 else
14938 ok=yes
14939 case " ${configdirs} " in
14940 *" binutils "*) ;;
14941 *) ok=no ;;
14942 esac
14943
14944 if test $ok = yes; then
14945 # An in-tree tool is available and we can use it
14946 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14948 $as_echo "just compiled" >&6; }
14949 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14950 # We already found the complete path
14951 ac_dir=`dirname $STRIP_FOR_TARGET`
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14953 $as_echo "pre-installed in $ac_dir" >&6; }
14954 elif test "x$target" = "x$host"; then
14955 # We can use an host tool
14956 STRIP_FOR_TARGET='$(STRIP)'
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14958 $as_echo "host tool" >&6; }
14959 else
14960 # We need a cross tool
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14962 $as_echo "pre-installed" >&6; }
14963 fi
14964 fi
14965
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14967 $as_echo_n "checking where to find the target windres... " >&6; }
14968 if test "x${build}" != "x${host}" ; then
14969 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14970 # We already found the complete path
14971 ac_dir=`dirname $WINDRES_FOR_TARGET`
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14973 $as_echo "pre-installed in $ac_dir" >&6; }
14974 else
14975 # Canadian cross, just use what we found
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14977 $as_echo "pre-installed" >&6; }
14978 fi
14979 else
14980 ok=yes
14981 case " ${configdirs} " in
14982 *" binutils "*) ;;
14983 *) ok=no ;;
14984 esac
14985
14986 if test $ok = yes; then
14987 # An in-tree tool is available and we can use it
14988 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14990 $as_echo "just compiled" >&6; }
14991 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14992 # We already found the complete path
14993 ac_dir=`dirname $WINDRES_FOR_TARGET`
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14995 $as_echo "pre-installed in $ac_dir" >&6; }
14996 elif test "x$target" = "x$host"; then
14997 # We can use an host tool
14998 WINDRES_FOR_TARGET='$(WINDRES)'
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15000 $as_echo "host tool" >&6; }
15001 else
15002 # We need a cross tool
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15004 $as_echo "pre-installed" >&6; }
15005 fi
15006 fi
15007
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15009 $as_echo_n "checking where to find the target windmc... " >&6; }
15010 if test "x${build}" != "x${host}" ; then
15011 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15012 # We already found the complete path
15013 ac_dir=`dirname $WINDMC_FOR_TARGET`
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15015 $as_echo "pre-installed in $ac_dir" >&6; }
15016 else
15017 # Canadian cross, just use what we found
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15019 $as_echo "pre-installed" >&6; }
15020 fi
15021 else
15022 ok=yes
15023 case " ${configdirs} " in
15024 *" binutils "*) ;;
15025 *) ok=no ;;
15026 esac
15027
15028 if test $ok = yes; then
15029 # An in-tree tool is available and we can use it
15030 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15032 $as_echo "just compiled" >&6; }
15033 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15034 # We already found the complete path
15035 ac_dir=`dirname $WINDMC_FOR_TARGET`
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15037 $as_echo "pre-installed in $ac_dir" >&6; }
15038 elif test "x$target" = "x$host"; then
15039 # We can use an host tool
15040 WINDMC_FOR_TARGET='$(WINDMC)'
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15042 $as_echo "host tool" >&6; }
15043 else
15044 # We need a cross tool
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15046 $as_echo "pre-installed" >&6; }
15047 fi
15048 fi
15049
15050
15051
15052
15053
15054 # Certain tools may need extra flags.
15055 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15056 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15057 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15058
15059 # When building target libraries, except in a Canadian cross, we use
15060 # the same toolchain as the compiler we just built.
15061 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15062 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15063 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15064 if test $host = $build; then
15065 case " $configdirs " in
15066 *" gcc "*)
15067 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15068 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15069 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15070 ;;
15071 esac
15072 fi
15073
15074
15075
15076
15077
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15079 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15080 # Check whether --enable-maintainer-mode was given.
15081 if test "${enable_maintainer_mode+set}" = set; then :
15082 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15083 else
15084 USE_MAINTAINER_MODE=no
15085 fi
15086
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15088 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15089
15090
15091 if test "$USE_MAINTAINER_MODE" = yes; then
15092 MAINTAINER_MODE_TRUE=
15093 MAINTAINER_MODE_FALSE='#'
15094 else
15095 MAINTAINER_MODE_TRUE='#'
15096 MAINTAINER_MODE_FALSE=
15097 fi
15098 MAINT=$MAINTAINER_MODE_TRUE
15099
15100 # ---------------------
15101 # GCC bootstrap support
15102 # ---------------------
15103
15104 # Stage specific cflags for build.
15105 stage1_cflags="-g"
15106 case $build in
15107 vax-*-*)
15108 case ${GCC} in
15109 yes) stage1_cflags="-g -Wa,-J" ;;
15110 *) stage1_cflags="-g -J" ;;
15111 esac ;;
15112 esac
15113
15114
15115
15116 # Enable --enable-checking in stage1 of the compiler.
15117 # Check whether --enable-stage1-checking was given.
15118 if test "${enable_stage1_checking+set}" = set; then :
15119 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15120 else
15121 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
15122 # For --disable-checking or implicit --enable-checking=release, avoid
15123 # setting --enable-checking=gc in the default stage1 checking for LTO
15124 # bootstraps. See PR62077.
15125 case $BUILD_CONFIG in
15126 *lto*)
15127 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15128 *)
15129 stage1_checking=--enable-checking=yes,types;;
15130 esac
15131 if test "x$enable_checking" = x && \
15132 test -d ${srcdir}/gcc && \
15133 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15134 stage1_checking=--enable-checking=yes,types,extra
15135 fi
15136 else
15137 stage1_checking=--enable-checking=$enable_checking,types
15138 fi
15139 fi
15140
15141
15142
15143 # Enable -Werror in bootstrap stage2 and later.
15144 # Check whether --enable-werror was given.
15145 if test "${enable_werror+set}" = set; then :
15146 enableval=$enable_werror;
15147 case ${enable_werror} in
15148 yes) stage2_werror_flag="--enable-werror-always" ;;
15149 *) stage2_werror_flag="" ;;
15150 esac
15151
15152 else
15153
15154 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15155 case $BUILD_CONFIG in
15156 bootstrap-debug)
15157 stage2_werror_flag="--enable-werror-always" ;;
15158 "")
15159 stage2_werror_flag="--enable-werror-always" ;;
15160 esac
15161 fi
15162
15163 fi
15164
15165
15166
15167
15168 # Specify what files to not compare during bootstrap.
15169
15170 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15171 case "$target" in
15172 hppa*64*-*-hpux*) ;;
15173 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
15174 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
15175 esac
15176
15177
15178 ac_config_files="$ac_config_files Makefile"
15179
15180 cat >confcache <<\_ACEOF
15181 # This file is a shell script that caches the results of configure
15182 # tests run on this system so they can be shared between configure
15183 # scripts and configure runs, see configure's option --config-cache.
15184 # It is not useful on other systems. If it contains results you don't
15185 # want to keep, you may remove or edit it.
15186 #
15187 # config.status only pays attention to the cache file if you give it
15188 # the --recheck option to rerun configure.
15189 #
15190 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15191 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15192 # following values.
15193
15194 _ACEOF
15195
15196 # The following way of writing the cache mishandles newlines in values,
15197 # but we know of no workaround that is simple, portable, and efficient.
15198 # So, we kill variables containing newlines.
15199 # Ultrix sh set writes to stderr and can't be redirected directly,
15200 # and sets the high bit in the cache file unless we assign to the vars.
15201 (
15202 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15203 eval ac_val=\$$ac_var
15204 case $ac_val in #(
15205 *${as_nl}*)
15206 case $ac_var in #(
15207 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15208 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15209 esac
15210 case $ac_var in #(
15211 _ | IFS | as_nl) ;; #(
15212 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15213 *) { eval $ac_var=; unset $ac_var;} ;;
15214 esac ;;
15215 esac
15216 done
15217
15218 (set) 2>&1 |
15219 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15220 *${as_nl}ac_space=\ *)
15221 # `set' does not quote correctly, so add quotes: double-quote
15222 # substitution turns \\\\ into \\, and sed turns \\ into \.
15223 sed -n \
15224 "s/'/'\\\\''/g;
15225 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15226 ;; #(
15227 *)
15228 # `set' quotes correctly as required by POSIX, so do not add quotes.
15229 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15230 ;;
15231 esac |
15232 sort
15233 ) |
15234 sed '
15235 /^ac_cv_env_/b end
15236 t clear
15237 :clear
15238 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15239 t end
15240 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15241 :end' >>confcache
15242 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15243 if test -w "$cache_file"; then
15244 if test "x$cache_file" != "x/dev/null"; then
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15246 $as_echo "$as_me: updating cache $cache_file" >&6;}
15247 if test ! -f "$cache_file" || test -h "$cache_file"; then
15248 cat confcache >"$cache_file"
15249 else
15250 case $cache_file in #(
15251 */* | ?:*)
15252 mv -f confcache "$cache_file"$$ &&
15253 mv -f "$cache_file"$$ "$cache_file" ;; #(
15254 *)
15255 mv -f confcache "$cache_file" ;;
15256 esac
15257 fi
15258 fi
15259 else
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15261 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15262 fi
15263 fi
15264 rm -f confcache
15265
15266 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15267 # Let make expand exec_prefix.
15268 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15269
15270 # Transform confdefs.h into DEFS.
15271 # Protect against shell expansion while executing Makefile rules.
15272 # Protect against Makefile macro expansion.
15273 #
15274 # If the first sed substitution is executed (which looks for macros that
15275 # take arguments), then branch to the quote section. Otherwise,
15276 # look for a macro that doesn't take arguments.
15277 ac_script='
15278 :mline
15279 /\\$/{
15280 N
15281 s,\\\n,,
15282 b mline
15283 }
15284 t clear
15285 :clear
15286 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15287 t quote
15288 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15289 t quote
15290 b any
15291 :quote
15292 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15293 s/\[/\\&/g
15294 s/\]/\\&/g
15295 s/\$/$$/g
15296 H
15297 :any
15298 ${
15299 g
15300 s/^\n//
15301 s/\n/ /g
15302 p
15303 }
15304 '
15305 DEFS=`sed -n "$ac_script" confdefs.h`
15306
15307
15308 ac_libobjs=
15309 ac_ltlibobjs=
15310 U=
15311 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15312 # 1. Remove the extension, and $U if already installed.
15313 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15314 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15315 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15316 # will be set to the directory where LIBOBJS objects are built.
15317 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15318 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15319 done
15320 LIBOBJS=$ac_libobjs
15321
15322 LTLIBOBJS=$ac_ltlibobjs
15323
15324
15325
15326 : "${CONFIG_STATUS=./config.status}"
15327 ac_write_fail=0
15328 ac_clean_files_save=$ac_clean_files
15329 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15331 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15332 as_write_fail=0
15333 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15334 #! $SHELL
15335 # Generated by $as_me.
15336 # Run this file to recreate the current configuration.
15337 # Compiler output produced by configure, useful for debugging
15338 # configure, is in config.log if it exists.
15339
15340 debug=false
15341 ac_cs_recheck=false
15342 ac_cs_silent=false
15343
15344 SHELL=\${CONFIG_SHELL-$SHELL}
15345 export SHELL
15346 _ASEOF
15347 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15348 ## -------------------- ##
15349 ## M4sh Initialization. ##
15350 ## -------------------- ##
15351
15352 # Be more Bourne compatible
15353 DUALCASE=1; export DUALCASE # for MKS sh
15354 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15355 emulate sh
15356 NULLCMD=:
15357 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15358 # is contrary to our usage. Disable this feature.
15359 alias -g '${1+"$@"}'='"$@"'
15360 setopt NO_GLOB_SUBST
15361 else
15362 case `(set -o) 2>/dev/null` in #(
15363 *posix*) :
15364 set -o posix ;; #(
15365 *) :
15366 ;;
15367 esac
15368 fi
15369
15370
15371 as_nl='
15372 '
15373 export as_nl
15374 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15375 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15376 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15377 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15378 # Prefer a ksh shell builtin over an external printf program on Solaris,
15379 # but without wasting forks for bash or zsh.
15380 if test -z "$BASH_VERSION$ZSH_VERSION" \
15381 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15382 as_echo='print -r --'
15383 as_echo_n='print -rn --'
15384 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15385 as_echo='printf %s\n'
15386 as_echo_n='printf %s'
15387 else
15388 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15389 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15390 as_echo_n='/usr/ucb/echo -n'
15391 else
15392 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15393 as_echo_n_body='eval
15394 arg=$1;
15395 case $arg in #(
15396 *"$as_nl"*)
15397 expr "X$arg" : "X\\(.*\\)$as_nl";
15398 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15399 esac;
15400 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15401 '
15402 export as_echo_n_body
15403 as_echo_n='sh -c $as_echo_n_body as_echo'
15404 fi
15405 export as_echo_body
15406 as_echo='sh -c $as_echo_body as_echo'
15407 fi
15408
15409 # The user is always right.
15410 if test "${PATH_SEPARATOR+set}" != set; then
15411 PATH_SEPARATOR=:
15412 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15413 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15414 PATH_SEPARATOR=';'
15415 }
15416 fi
15417
15418
15419 # IFS
15420 # We need space, tab and new line, in precisely that order. Quoting is
15421 # there to prevent editors from complaining about space-tab.
15422 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15423 # splitting by setting IFS to empty value.)
15424 IFS=" "" $as_nl"
15425
15426 # Find who we are. Look in the path if we contain no directory separator.
15427 as_myself=
15428 case $0 in #((
15429 *[\\/]* ) as_myself=$0 ;;
15430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15431 for as_dir in $PATH
15432 do
15433 IFS=$as_save_IFS
15434 test -z "$as_dir" && as_dir=.
15435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15436 done
15437 IFS=$as_save_IFS
15438
15439 ;;
15440 esac
15441 # We did not find ourselves, most probably we were run as `sh COMMAND'
15442 # in which case we are not to be found in the path.
15443 if test "x$as_myself" = x; then
15444 as_myself=$0
15445 fi
15446 if test ! -f "$as_myself"; then
15447 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15448 exit 1
15449 fi
15450
15451 # Unset variables that we do not need and which cause bugs (e.g. in
15452 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15453 # suppresses any "Segmentation fault" message there. '((' could
15454 # trigger a bug in pdksh 5.2.14.
15455 for as_var in BASH_ENV ENV MAIL MAILPATH
15456 do eval test x\${$as_var+set} = xset \
15457 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15458 done
15459 PS1='$ '
15460 PS2='> '
15461 PS4='+ '
15462
15463 # NLS nuisances.
15464 LC_ALL=C
15465 export LC_ALL
15466 LANGUAGE=C
15467 export LANGUAGE
15468
15469 # CDPATH.
15470 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15471
15472
15473 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15474 # ----------------------------------------
15475 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15476 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15477 # script with STATUS, using 1 if that was 0.
15478 as_fn_error ()
15479 {
15480 as_status=$1; test $as_status -eq 0 && as_status=1
15481 if test "$4"; then
15482 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15483 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15484 fi
15485 $as_echo "$as_me: error: $2" >&2
15486 as_fn_exit $as_status
15487 } # as_fn_error
15488
15489
15490 # as_fn_set_status STATUS
15491 # -----------------------
15492 # Set $? to STATUS, without forking.
15493 as_fn_set_status ()
15494 {
15495 return $1
15496 } # as_fn_set_status
15497
15498 # as_fn_exit STATUS
15499 # -----------------
15500 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15501 as_fn_exit ()
15502 {
15503 set +e
15504 as_fn_set_status $1
15505 exit $1
15506 } # as_fn_exit
15507
15508 # as_fn_unset VAR
15509 # ---------------
15510 # Portably unset VAR.
15511 as_fn_unset ()
15512 {
15513 { eval $1=; unset $1;}
15514 }
15515 as_unset=as_fn_unset
15516 # as_fn_append VAR VALUE
15517 # ----------------------
15518 # Append the text in VALUE to the end of the definition contained in VAR. Take
15519 # advantage of any shell optimizations that allow amortized linear growth over
15520 # repeated appends, instead of the typical quadratic growth present in naive
15521 # implementations.
15522 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15523 eval 'as_fn_append ()
15524 {
15525 eval $1+=\$2
15526 }'
15527 else
15528 as_fn_append ()
15529 {
15530 eval $1=\$$1\$2
15531 }
15532 fi # as_fn_append
15533
15534 # as_fn_arith ARG...
15535 # ------------------
15536 # Perform arithmetic evaluation on the ARGs, and store the result in the
15537 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15538 # must be portable across $(()) and expr.
15539 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15540 eval 'as_fn_arith ()
15541 {
15542 as_val=$(( $* ))
15543 }'
15544 else
15545 as_fn_arith ()
15546 {
15547 as_val=`expr "$@" || test $? -eq 1`
15548 }
15549 fi # as_fn_arith
15550
15551
15552 if expr a : '\(a\)' >/dev/null 2>&1 &&
15553 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15554 as_expr=expr
15555 else
15556 as_expr=false
15557 fi
15558
15559 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15560 as_basename=basename
15561 else
15562 as_basename=false
15563 fi
15564
15565 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15566 as_dirname=dirname
15567 else
15568 as_dirname=false
15569 fi
15570
15571 as_me=`$as_basename -- "$0" ||
15572 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15573 X"$0" : 'X\(//\)$' \| \
15574 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15575 $as_echo X/"$0" |
15576 sed '/^.*\/\([^/][^/]*\)\/*$/{
15577 s//\1/
15578 q
15579 }
15580 /^X\/\(\/\/\)$/{
15581 s//\1/
15582 q
15583 }
15584 /^X\/\(\/\).*/{
15585 s//\1/
15586 q
15587 }
15588 s/.*/./; q'`
15589
15590 # Avoid depending upon Character Ranges.
15591 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15592 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15593 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15594 as_cr_digits='0123456789'
15595 as_cr_alnum=$as_cr_Letters$as_cr_digits
15596
15597 ECHO_C= ECHO_N= ECHO_T=
15598 case `echo -n x` in #(((((
15599 -n*)
15600 case `echo 'xy\c'` in
15601 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15602 xy) ECHO_C='\c';;
15603 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15604 ECHO_T=' ';;
15605 esac;;
15606 *)
15607 ECHO_N='-n';;
15608 esac
15609
15610 rm -f conf$$ conf$$.exe conf$$.file
15611 if test -d conf$$.dir; then
15612 rm -f conf$$.dir/conf$$.file
15613 else
15614 rm -f conf$$.dir
15615 mkdir conf$$.dir 2>/dev/null
15616 fi
15617 if (echo >conf$$.file) 2>/dev/null; then
15618 if ln -s conf$$.file conf$$ 2>/dev/null; then
15619 as_ln_s='ln -s'
15620 # ... but there are two gotchas:
15621 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15622 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15623 # In both cases, we have to default to `cp -pR'.
15624 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15625 as_ln_s='cp -pR'
15626 elif ln conf$$.file conf$$ 2>/dev/null; then
15627 as_ln_s=ln
15628 else
15629 as_ln_s='cp -pR'
15630 fi
15631 else
15632 as_ln_s='cp -pR'
15633 fi
15634 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15635 rmdir conf$$.dir 2>/dev/null
15636
15637
15638 # as_fn_mkdir_p
15639 # -------------
15640 # Create "$as_dir" as a directory, including parents if necessary.
15641 as_fn_mkdir_p ()
15642 {
15643
15644 case $as_dir in #(
15645 -*) as_dir=./$as_dir;;
15646 esac
15647 test -d "$as_dir" || eval $as_mkdir_p || {
15648 as_dirs=
15649 while :; do
15650 case $as_dir in #(
15651 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15652 *) as_qdir=$as_dir;;
15653 esac
15654 as_dirs="'$as_qdir' $as_dirs"
15655 as_dir=`$as_dirname -- "$as_dir" ||
15656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15657 X"$as_dir" : 'X\(//\)[^/]' \| \
15658 X"$as_dir" : 'X\(//\)$' \| \
15659 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15660 $as_echo X"$as_dir" |
15661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15662 s//\1/
15663 q
15664 }
15665 /^X\(\/\/\)[^/].*/{
15666 s//\1/
15667 q
15668 }
15669 /^X\(\/\/\)$/{
15670 s//\1/
15671 q
15672 }
15673 /^X\(\/\).*/{
15674 s//\1/
15675 q
15676 }
15677 s/.*/./; q'`
15678 test -d "$as_dir" && break
15679 done
15680 test -z "$as_dirs" || eval "mkdir $as_dirs"
15681 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15682
15683
15684 } # as_fn_mkdir_p
15685 if mkdir -p . 2>/dev/null; then
15686 as_mkdir_p='mkdir -p "$as_dir"'
15687 else
15688 test -d ./-p && rmdir ./-p
15689 as_mkdir_p=false
15690 fi
15691
15692
15693 # as_fn_executable_p FILE
15694 # -----------------------
15695 # Test if FILE is an executable regular file.
15696 as_fn_executable_p ()
15697 {
15698 test -f "$1" && test -x "$1"
15699 } # as_fn_executable_p
15700 as_test_x='test -x'
15701 as_executable_p=as_fn_executable_p
15702
15703 # Sed expression to map a string onto a valid CPP name.
15704 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15705
15706 # Sed expression to map a string onto a valid variable name.
15707 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15708
15709
15710 exec 6>&1
15711 ## ----------------------------------- ##
15712 ## Main body of $CONFIG_STATUS script. ##
15713 ## ----------------------------------- ##
15714 _ASEOF
15715 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15716
15717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15718 # Save the log message, to keep $0 and so on meaningful, and to
15719 # report actual input values of CONFIG_FILES etc. instead of their
15720 # values after options handling.
15721 ac_log="
15722 This file was extended by $as_me, which was
15723 generated by GNU Autoconf 2.69. Invocation command line was
15724
15725 CONFIG_FILES = $CONFIG_FILES
15726 CONFIG_HEADERS = $CONFIG_HEADERS
15727 CONFIG_LINKS = $CONFIG_LINKS
15728 CONFIG_COMMANDS = $CONFIG_COMMANDS
15729 $ $0 $@
15730
15731 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15732 "
15733
15734 _ACEOF
15735
15736 case $ac_config_files in *"
15737 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15738 esac
15739
15740
15741
15742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15743 # Files that config.status was made for.
15744 config_files="$ac_config_files"
15745
15746 _ACEOF
15747
15748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15749 ac_cs_usage="\
15750 \`$as_me' instantiates files and other configuration actions
15751 from templates according to the current configuration. Unless the files
15752 and actions are specified as TAGs, all are instantiated by default.
15753
15754 Usage: $0 [OPTION]... [TAG]...
15755
15756 -h, --help print this help, then exit
15757 -V, --version print version number and configuration settings, then exit
15758 --config print configuration, then exit
15759 -q, --quiet, --silent
15760 do not print progress messages
15761 -d, --debug don't remove temporary files
15762 --recheck update $as_me by reconfiguring in the same conditions
15763 --file=FILE[:TEMPLATE]
15764 instantiate the configuration file FILE
15765
15766 Configuration files:
15767 $config_files
15768
15769 Report bugs to the package provider."
15770
15771 _ACEOF
15772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15773 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15774 ac_cs_version="\\
15775 config.status
15776 configured by $0, generated by GNU Autoconf 2.69,
15777 with options \\"\$ac_cs_config\\"
15778
15779 Copyright (C) 2012 Free Software Foundation, Inc.
15780 This config.status script is free software; the Free Software Foundation
15781 gives unlimited permission to copy, distribute and modify it."
15782
15783 ac_pwd='$ac_pwd'
15784 srcdir='$srcdir'
15785 INSTALL='$INSTALL'
15786 AWK='$AWK'
15787 test -n "\$AWK" || AWK=awk
15788 _ACEOF
15789
15790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15791 # The default lists apply if the user does not specify any file.
15792 ac_need_defaults=:
15793 while test $# != 0
15794 do
15795 case $1 in
15796 --*=?*)
15797 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15798 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15799 ac_shift=:
15800 ;;
15801 --*=)
15802 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15803 ac_optarg=
15804 ac_shift=:
15805 ;;
15806 *)
15807 ac_option=$1
15808 ac_optarg=$2
15809 ac_shift=shift
15810 ;;
15811 esac
15812
15813 case $ac_option in
15814 # Handling of the options.
15815 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15816 ac_cs_recheck=: ;;
15817 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15818 $as_echo "$ac_cs_version"; exit ;;
15819 --config | --confi | --conf | --con | --co | --c )
15820 $as_echo "$ac_cs_config"; exit ;;
15821 --debug | --debu | --deb | --de | --d | -d )
15822 debug=: ;;
15823 --file | --fil | --fi | --f )
15824 $ac_shift
15825 case $ac_optarg in
15826 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15827 '') as_fn_error $? "missing file argument" ;;
15828 esac
15829 as_fn_append CONFIG_FILES " '$ac_optarg'"
15830 ac_need_defaults=false;;
15831 --he | --h | --help | --hel | -h )
15832 $as_echo "$ac_cs_usage"; exit ;;
15833 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15834 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15835 ac_cs_silent=: ;;
15836
15837 # This is an error.
15838 -*) as_fn_error $? "unrecognized option: \`$1'
15839 Try \`$0 --help' for more information." ;;
15840
15841 *) as_fn_append ac_config_targets " $1"
15842 ac_need_defaults=false ;;
15843
15844 esac
15845 shift
15846 done
15847
15848 ac_configure_extra_args=
15849
15850 if $ac_cs_silent; then
15851 exec 6>/dev/null
15852 ac_configure_extra_args="$ac_configure_extra_args --silent"
15853 fi
15854
15855 _ACEOF
15856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15857 if \$ac_cs_recheck; then
15858 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15859 shift
15860 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15861 CONFIG_SHELL='$SHELL'
15862 export CONFIG_SHELL
15863 exec "\$@"
15864 fi
15865
15866 _ACEOF
15867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15868 exec 5>>config.log
15869 {
15870 echo
15871 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15872 ## Running $as_me. ##
15873 _ASBOX
15874 $as_echo "$ac_log"
15875 } >&5
15876
15877 _ACEOF
15878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15879 #
15880 # INIT-COMMANDS
15881 #
15882 extrasub_build="$extrasub_build"
15883 extrasub_host="$extrasub_host"
15884 extrasub_target="$extrasub_target"
15885
15886 _ACEOF
15887
15888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15889
15890 # Handling of arguments.
15891 for ac_config_target in $ac_config_targets
15892 do
15893 case $ac_config_target in
15894 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15895
15896 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15897 esac
15898 done
15899
15900
15901 # If the user did not use the arguments to specify the items to instantiate,
15902 # then the envvar interface is used. Set only those that are not.
15903 # We use the long form for the default assignment because of an extremely
15904 # bizarre bug on SunOS 4.1.3.
15905 if $ac_need_defaults; then
15906 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15907 fi
15908
15909 # Have a temporary directory for convenience. Make it in the build tree
15910 # simply because there is no reason against having it here, and in addition,
15911 # creating and moving files from /tmp can sometimes cause problems.
15912 # Hook for its removal unless debugging.
15913 # Note that there is a small window in which the directory will not be cleaned:
15914 # after its creation but before its name has been assigned to `$tmp'.
15915 $debug ||
15916 {
15917 tmp= ac_tmp=
15918 trap 'exit_status=$?
15919 : "${ac_tmp:=$tmp}"
15920 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15921 ' 0
15922 trap 'as_fn_exit 1' 1 2 13 15
15923 }
15924 # Create a (secure) tmp directory for tmp files.
15925
15926 {
15927 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15928 test -d "$tmp"
15929 } ||
15930 {
15931 tmp=./conf$$-$RANDOM
15932 (umask 077 && mkdir "$tmp")
15933 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15934 ac_tmp=$tmp
15935
15936 # Set up the scripts for CONFIG_FILES section.
15937 # No need to generate them if there are no CONFIG_FILES.
15938 # This happens for instance with `./config.status config.h'.
15939 if test -n "$CONFIG_FILES"; then
15940
15941 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15942 ac_cs_awk_getline=:
15943 ac_cs_awk_pipe_init=
15944 ac_cs_awk_read_file='
15945 while ((getline aline < (F[key])) > 0)
15946 print(aline)
15947 close(F[key])'
15948 ac_cs_awk_pipe_fini=
15949 else
15950 ac_cs_awk_getline=false
15951 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15952 ac_cs_awk_read_file='
15953 print "|#_!!_#|"
15954 print "cat " F[key] " &&"
15955 '$ac_cs_awk_pipe_init
15956 # The final `:' finishes the AND list.
15957 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15958 fi
15959 ac_cr=`echo X | tr X '\015'`
15960 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15961 # But we know of no other shell where ac_cr would be empty at this
15962 # point, so we can use a bashism as a fallback.
15963 if test "x$ac_cr" = x; then
15964 eval ac_cr=\$\'\\r\'
15965 fi
15966 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15967 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15968 ac_cs_awk_cr='\\r'
15969 else
15970 ac_cs_awk_cr=$ac_cr
15971 fi
15972
15973 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15974 _ACEOF
15975
15976 # Create commands to substitute file output variables.
15977 {
15978 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15979 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15980 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15981 echo "_ACAWK" &&
15982 echo "_ACEOF"
15983 } >conf$$files.sh &&
15984 . ./conf$$files.sh ||
15985 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15986 rm -f conf$$files.sh
15987
15988 {
15989 echo "cat >conf$$subs.awk <<_ACEOF" &&
15990 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15991 echo "_ACEOF"
15992 } >conf$$subs.sh ||
15993 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15994 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15995 ac_delim='%!_!# '
15996 for ac_last_try in false false false false false :; do
15997 . ./conf$$subs.sh ||
15998 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15999
16000 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16001 if test $ac_delim_n = $ac_delim_num; then
16002 break
16003 elif $ac_last_try; then
16004 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16005 else
16006 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16007 fi
16008 done
16009 rm -f conf$$subs.sh
16010
16011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16012 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16013 _ACEOF
16014 sed -n '
16015 h
16016 s/^/S["/; s/!.*/"]=/
16017 p
16018 g
16019 s/^[^!]*!//
16020 :repl
16021 t repl
16022 s/'"$ac_delim"'$//
16023 t delim
16024 :nl
16025 h
16026 s/\(.\{148\}\)..*/\1/
16027 t more1
16028 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16029 p
16030 n
16031 b repl
16032 :more1
16033 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16034 p
16035 g
16036 s/.\{148\}//
16037 t nl
16038 :delim
16039 h
16040 s/\(.\{148\}\)..*/\1/
16041 t more2
16042 s/["\\]/\\&/g; s/^/"/; s/$/"/
16043 p
16044 b
16045 :more2
16046 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16047 p
16048 g
16049 s/.\{148\}//
16050 t delim
16051 ' <conf$$subs.awk | sed '
16052 /^[^""]/{
16053 N
16054 s/\n//
16055 }
16056 ' >>$CONFIG_STATUS || ac_write_fail=1
16057 rm -f conf$$subs.awk
16058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16059 _ACAWK
16060 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16061 for (key in S) S_is_set[key] = 1
16062 FS = "\a"
16063 \$ac_cs_awk_pipe_init
16064 }
16065 {
16066 line = $ 0
16067 nfields = split(line, field, "@")
16068 substed = 0
16069 len = length(field[1])
16070 for (i = 2; i < nfields; i++) {
16071 key = field[i]
16072 keylen = length(key)
16073 if (S_is_set[key]) {
16074 value = S[key]
16075 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16076 len += length(value) + length(field[++i])
16077 substed = 1
16078 } else
16079 len += 1 + keylen
16080 }
16081 if (nfields == 3 && !substed) {
16082 key = field[2]
16083 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16084 \$ac_cs_awk_read_file
16085 next
16086 }
16087 }
16088 print line
16089 }
16090 \$ac_cs_awk_pipe_fini
16091 _ACAWK
16092 _ACEOF
16093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16094 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16095 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16096 else
16097 cat
16098 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16099 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16100 _ACEOF
16101
16102 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16103 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16104 # trailing colons and then remove the whole line if VPATH becomes empty
16105 # (actually we leave an empty line to preserve line numbers).
16106 if test "x$srcdir" = x.; then
16107 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16108 h
16109 s///
16110 s/^/:/
16111 s/[ ]*$/:/
16112 s/:\$(srcdir):/:/g
16113 s/:\${srcdir}:/:/g
16114 s/:@srcdir@:/:/g
16115 s/^:*//
16116 s/:*$//
16117 x
16118 s/\(=[ ]*\).*/\1/
16119 G
16120 s/\n//
16121 s/^[^=]*=[ ]*$//
16122 }'
16123 fi
16124
16125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16126 fi # test -n "$CONFIG_FILES"
16127
16128
16129 eval set X " :F $CONFIG_FILES "
16130 shift
16131 for ac_tag
16132 do
16133 case $ac_tag in
16134 :[FHLC]) ac_mode=$ac_tag; continue;;
16135 esac
16136 case $ac_mode$ac_tag in
16137 :[FHL]*:*);;
16138 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16139 :[FH]-) ac_tag=-:-;;
16140 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16141 esac
16142 ac_save_IFS=$IFS
16143 IFS=:
16144 set x $ac_tag
16145 IFS=$ac_save_IFS
16146 shift
16147 ac_file=$1
16148 shift
16149
16150 case $ac_mode in
16151 :L) ac_source=$1;;
16152 :[FH])
16153 ac_file_inputs=
16154 for ac_f
16155 do
16156 case $ac_f in
16157 -) ac_f="$ac_tmp/stdin";;
16158 *) # Look for the file first in the build tree, then in the source tree
16159 # (if the path is not absolute). The absolute path cannot be DOS-style,
16160 # because $ac_f cannot contain `:'.
16161 test -f "$ac_f" ||
16162 case $ac_f in
16163 [\\/$]*) false;;
16164 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16165 esac ||
16166 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16167 esac
16168 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16169 as_fn_append ac_file_inputs " '$ac_f'"
16170 done
16171
16172 # Let's still pretend it is `configure' which instantiates (i.e., don't
16173 # use $as_me), people would be surprised to read:
16174 # /* config.h. Generated by config.status. */
16175 configure_input='Generated from '`
16176 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16177 `' by configure.'
16178 if test x"$ac_file" != x-; then
16179 configure_input="$ac_file. $configure_input"
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16181 $as_echo "$as_me: creating $ac_file" >&6;}
16182 fi
16183 # Neutralize special characters interpreted by sed in replacement strings.
16184 case $configure_input in #(
16185 *\&* | *\|* | *\\* )
16186 ac_sed_conf_input=`$as_echo "$configure_input" |
16187 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16188 *) ac_sed_conf_input=$configure_input;;
16189 esac
16190
16191 case $ac_tag in
16192 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16193 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16194 esac
16195 ;;
16196 esac
16197
16198 ac_dir=`$as_dirname -- "$ac_file" ||
16199 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16200 X"$ac_file" : 'X\(//\)[^/]' \| \
16201 X"$ac_file" : 'X\(//\)$' \| \
16202 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16203 $as_echo X"$ac_file" |
16204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16205 s//\1/
16206 q
16207 }
16208 /^X\(\/\/\)[^/].*/{
16209 s//\1/
16210 q
16211 }
16212 /^X\(\/\/\)$/{
16213 s//\1/
16214 q
16215 }
16216 /^X\(\/\).*/{
16217 s//\1/
16218 q
16219 }
16220 s/.*/./; q'`
16221 as_dir="$ac_dir"; as_fn_mkdir_p
16222 ac_builddir=.
16223
16224 case "$ac_dir" in
16225 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16226 *)
16227 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16228 # A ".." for each directory in $ac_dir_suffix.
16229 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16230 case $ac_top_builddir_sub in
16231 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16232 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16233 esac ;;
16234 esac
16235 ac_abs_top_builddir=$ac_pwd
16236 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16237 # for backward compatibility:
16238 ac_top_builddir=$ac_top_build_prefix
16239
16240 case $srcdir in
16241 .) # We are building in place.
16242 ac_srcdir=.
16243 ac_top_srcdir=$ac_top_builddir_sub
16244 ac_abs_top_srcdir=$ac_pwd ;;
16245 [\\/]* | ?:[\\/]* ) # Absolute name.
16246 ac_srcdir=$srcdir$ac_dir_suffix;
16247 ac_top_srcdir=$srcdir
16248 ac_abs_top_srcdir=$srcdir ;;
16249 *) # Relative name.
16250 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16251 ac_top_srcdir=$ac_top_build_prefix$srcdir
16252 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16253 esac
16254 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16255
16256
16257 case $ac_mode in
16258 :F)
16259 #
16260 # CONFIG_FILE
16261 #
16262
16263 case $INSTALL in
16264 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16265 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16266 esac
16267 _ACEOF
16268
16269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16270 # If the template does not know about datarootdir, expand it.
16271 # FIXME: This hack should be removed a few years after 2.60.
16272 ac_datarootdir_hack=; ac_datarootdir_seen=
16273 ac_sed_dataroot='
16274 /datarootdir/ {
16275 p
16276 q
16277 }
16278 /@datadir@/p
16279 /@docdir@/p
16280 /@infodir@/p
16281 /@localedir@/p
16282 /@mandir@/p'
16283 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16284 *datarootdir*) ac_datarootdir_seen=yes;;
16285 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16287 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16288 _ACEOF
16289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16290 ac_datarootdir_hack='
16291 s&@datadir@&$datadir&g
16292 s&@docdir@&$docdir&g
16293 s&@infodir@&$infodir&g
16294 s&@localedir@&$localedir&g
16295 s&@mandir@&$mandir&g
16296 s&\\\${datarootdir}&$datarootdir&g' ;;
16297 esac
16298 _ACEOF
16299
16300 # Neutralize VPATH when `$srcdir' = `.'.
16301 # Shell code in configure.ac might set extrasub.
16302 # FIXME: do we really want to maintain this feature?
16303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16304 ac_sed_extra="$ac_vpsub
16305 $extrasub
16306 _ACEOF
16307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16308 :t
16309 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16310 s|@configure_input@|$ac_sed_conf_input|;t t
16311 s&@top_builddir@&$ac_top_builddir_sub&;t t
16312 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16313 s&@srcdir@&$ac_srcdir&;t t
16314 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16315 s&@top_srcdir@&$ac_top_srcdir&;t t
16316 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16317 s&@builddir@&$ac_builddir&;t t
16318 s&@abs_builddir@&$ac_abs_builddir&;t t
16319 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16320 s&@INSTALL@&$ac_INSTALL&;t t
16321 $ac_datarootdir_hack
16322 "
16323 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16324 if $ac_cs_awk_getline; then
16325 $AWK -f "$ac_tmp/subs.awk"
16326 else
16327 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16328 fi \
16329 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16330
16331 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16332 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16333 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16334 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16336 which seems to be undefined. Please make sure it is defined" >&5
16337 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16338 which seems to be undefined. Please make sure it is defined" >&2;}
16339
16340 rm -f "$ac_tmp/stdin"
16341 case $ac_file in
16342 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16343 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16344 esac \
16345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16346 ;;
16347
16348
16349
16350 esac
16351
16352
16353 case $ac_file$ac_mode in
16354 "Makefile":F) sed "$extrasub_build" Makefile |
16355 sed "$extrasub_host" |
16356 sed "$extrasub_target" > mf$$
16357 mv -f mf$$ Makefile ;;
16358
16359 esac
16360 done # for ac_tag
16361
16362
16363 as_fn_exit 0
16364 _ACEOF
16365 ac_clean_files=$ac_clean_files_save
16366
16367 test $ac_write_fail = 0 ||
16368 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16369
16370
16371 # configure is writing to config.log, and then calls config.status.
16372 # config.status does its own redirection, appending to config.log.
16373 # Unfortunately, on DOS this fails, as config.log is still kept open
16374 # by configure, so config.status won't be able to write to it; its
16375 # output is simply discarded. So we exec the FD to /dev/null,
16376 # effectively closing config.log, so it can be properly (re)opened and
16377 # appended to by config.status. When coming back to configure, we
16378 # need to make the FD available again.
16379 if test "$no_create" != yes; then
16380 ac_cs_success=:
16381 ac_config_status_args=
16382 test "$silent" = yes &&
16383 ac_config_status_args="$ac_config_status_args --quiet"
16384 exec 5>/dev/null
16385 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16386 exec 5>>config.log
16387 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16388 # would make configure fail if this is the last instruction.
16389 $ac_cs_success || as_fn_exit 1
16390 fi
16391 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16393 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16394 fi
16395