binutils, gdb: support zstd compressed debug sections
[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 PKG_CONFIG_PATH
622 READELF
623 OBJDUMP
624 OBJCOPY
625 WINDMC
626 WINDRES
627 STRIP
628 RANLIB
629 NM
630 LIPO
631 LD
632 DLLTOOL
633 AS
634 AR
635 RUNTEST
636 EXPECT
637 MAKEINFO
638 FLEX
639 LEX
640 M4
641 BISON
642 YACC
643 WINDRES_FOR_BUILD
644 WINDMC_FOR_BUILD
645 RANLIB_FOR_BUILD
646 NM_FOR_BUILD
647 LD_FOR_BUILD
648 LDFLAGS_FOR_BUILD
649 GOC_FOR_BUILD
650 GFORTRAN_FOR_BUILD
651 DLLTOOL_FOR_BUILD
652 CXX_FOR_BUILD
653 CXXFLAGS_FOR_BUILD
654 CPPFLAGS_FOR_BUILD
655 CFLAGS_FOR_BUILD
656 CC_FOR_BUILD
657 AS_FOR_BUILD
658 AR_FOR_BUILD
659 target_configdirs
660 configdirs
661 build_configdirs
662 INSTALL_GDB_TK
663 GDB_TK
664 CONFIGURE_GDB_TK
665 build_tooldir
666 tooldir
667 GCC_SHLIB_SUBDIR
668 RPATH_ENVVAR
669 target_configargs
670 host_configargs
671 build_configargs
672 BUILD_CONFIG
673 LDFLAGS_FOR_TARGET
674 CXXFLAGS_FOR_TARGET
675 CFLAGS_FOR_TARGET
676 DEBUG_PREFIX_CFLAGS_FOR_TARGET
677 SYSROOT_CFLAGS_FOR_TARGET
678 get_gcc_base_ver
679 extra_host_zlib_configure_flags
680 extra_host_libiberty_configure_flags
681 stage1_languages
682 host_shared
683 extra_linker_plugin_flags
684 extra_linker_plugin_configure_flags
685 islinc
686 isllibs
687 poststage1_ldflags
688 poststage1_libs
689 stage1_ldflags
690 stage1_libs
691 extra_isl_gmp_configure_flags
692 extra_mpc_mpfr_configure_flags
693 extra_mpc_gmp_configure_flags
694 extra_mpfr_configure_flags
695 gmpinc
696 gmplibs
697 PGO_BUILD_LTO_CFLAGS
698 PGO_BUILD_USE_CFLAGS
699 PGO_BUILD_GEN_CFLAGS
700 do_compare
701 GNATMAKE
702 GNATBIND
703 ac_ct_CXX
704 CXXFLAGS
705 CXX
706 OBJEXT
707 EXEEXT
708 ac_ct_CC
709 CPPFLAGS
710 LDFLAGS
711 CFLAGS
712 CC
713 extra_liboffloadmic_configure_flags
714 target_subdir
715 host_subdir
716 build_subdir
717 build_libsubdir
718 AWK
719 SED
720 LN_S
721 LN
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 target_os
726 target_vendor
727 target_cpu
728 target
729 host_os
730 host_vendor
731 host_cpu
732 host
733 target_noncanonical
734 host_noncanonical
735 build_noncanonical
736 build_os
737 build_vendor
738 build_cpu
739 build
740 TOPLEVEL_CONFIGURE_ARGUMENTS
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL'
779 ac_subst_files='serialization_dependencies
780 host_makefile_frag
781 target_makefile_frag
782 alphaieee_frag
783 ospace_frag'
784 ac_user_opts='
785 enable_option_checking
786 with_build_libsubdir
787 with_system_zlib
788 with_zstd
789 enable_as_accelerator_for
790 enable_offload_targets
791 enable_gold
792 enable_ld
793 enable_gprofng
794 enable_compressed_debug_sections
795 enable_year2038
796 enable_libquadmath
797 enable_libquadmath_support
798 enable_libada
799 enable_libssp
800 enable_libstdcxx
801 enable_liboffloadmic
802 enable_bootstrap
803 enable_pgo_build
804 with_mpc
805 with_mpc_include
806 with_mpc_lib
807 with_mpfr_dir
808 with_mpfr
809 with_mpfr_include
810 with_mpfr_lib
811 with_gmp_dir
812 with_gmp
813 with_gmp_include
814 with_gmp_lib
815 with_stage1_libs
816 with_static_standard_libraries
817 with_stage1_ldflags
818 with_boot_libs
819 with_boot_ldflags
820 with_isl
821 with_isl_include
822 with_isl_lib
823 enable_isl_version_check
824 enable_lto
825 enable_linker_plugin_configure_flags
826 enable_linker_plugin_flags
827 enable_host_shared
828 enable_stage1_languages
829 enable_objc_gc
830 with_target_bdw_gc
831 with_target_bdw_gc_include
832 with_target_bdw_gc_lib
833 with_gcc_major_version_only
834 with_build_sysroot
835 with_debug_prefix_map
836 with_build_config
837 enable_vtable_verify
838 enable_serial_configure
839 with_build_time_tools
840 enable_maintainer_mode
841 enable_stage1_checking
842 enable_werror
843 '
844 ac_precious_vars='build_alias
845 host_alias
846 target_alias
847 CC
848 CFLAGS
849 LDFLAGS
850 LIBS
851 CPPFLAGS
852 CXX
853 CXXFLAGS
854 CCC
855 build_configargs
856 host_configargs
857 target_configargs
858 AR
859 AS
860 DLLTOOL
861 LD
862 LIPO
863 NM
864 RANLIB
865 STRIP
866 WINDRES
867 WINDMC
868 OBJCOPY
869 OBJDUMP
870 READELF
871 CC_FOR_TARGET
872 CXX_FOR_TARGET
873 GCC_FOR_TARGET
874 GFORTRAN_FOR_TARGET
875 GOC_FOR_TARGET
876 AR_FOR_TARGET
877 AS_FOR_TARGET
878 DLLTOOL_FOR_TARGET
879 LD_FOR_TARGET
880 LIPO_FOR_TARGET
881 NM_FOR_TARGET
882 OBJCOPY_FOR_TARGET
883 OBJDUMP_FOR_TARGET
884 RANLIB_FOR_TARGET
885 READELF_FOR_TARGET
886 STRIP_FOR_TARGET
887 WINDRES_FOR_TARGET
888 WINDMC_FOR_TARGET'
889
890
891 # Initialize some variables set by options.
892 ac_init_help=
893 ac_init_version=false
894 ac_unrecognized_opts=
895 ac_unrecognized_sep=
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
912
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE}'
930 infodir='${datarootdir}/info'
931 htmldir='${docdir}'
932 dvidir='${docdir}'
933 pdfdir='${docdir}'
934 psdir='${docdir}'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
938
939 ac_prev=
940 ac_dashdash=
941 for ac_option
942 do
943 # If the previous option needs an argument, assign it.
944 if test -n "$ac_prev"; then
945 eval $ac_prev=\$ac_option
946 ac_prev=
947 continue
948 fi
949
950 case $ac_option in
951 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952 *=) ac_optarg= ;;
953 *) ac_optarg=yes ;;
954 esac
955
956 # Accept the important Cygnus configure options, so we can diagnose typos.
957
958 case $ac_dashdash$ac_option in
959 --)
960 ac_dashdash=yes ;;
961
962 -bindir | --bindir | --bindi | --bind | --bin | --bi)
963 ac_prev=bindir ;;
964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965 bindir=$ac_optarg ;;
966
967 -build | --build | --buil | --bui | --bu)
968 ac_prev=build_alias ;;
969 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970 build_alias=$ac_optarg ;;
971
972 -cache-file | --cache-file | --cache-fil | --cache-fi \
973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974 ac_prev=cache_file ;;
975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977 cache_file=$ac_optarg ;;
978
979 --config-cache | -C)
980 cache_file=config.cache ;;
981
982 -datadir | --datadir | --datadi | --datad)
983 ac_prev=datadir ;;
984 -datadir=* | --datadir=* | --datadi=* | --datad=*)
985 datadir=$ac_optarg ;;
986
987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988 | --dataroo | --dataro | --datar)
989 ac_prev=datarootdir ;;
990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992 datarootdir=$ac_optarg ;;
993
994 -disable-* | --disable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 as_fn_error $? "invalid feature name: $ac_useropt"
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1002 *"
1003 "enable_$ac_useropt"
1004 "*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=no ;;
1009
1010 -docdir | --docdir | --docdi | --doc | --do)
1011 ac_prev=docdir ;;
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013 docdir=$ac_optarg ;;
1014
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016 ac_prev=dvidir ;;
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018 dvidir=$ac_optarg ;;
1019
1020 -enable-* | --enable-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error $? "invalid feature name: $ac_useropt"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1028 *"
1029 "enable_$ac_useropt"
1030 "*) ;;
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1033 esac
1034 eval enable_$ac_useropt=\$ac_optarg ;;
1035
1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038 | --exec | --exe | --ex)
1039 ac_prev=exec_prefix ;;
1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042 | --exec=* | --exe=* | --ex=*)
1043 exec_prefix=$ac_optarg ;;
1044
1045 -gas | --gas | --ga | --g)
1046 # Obsolete; use --with-gas.
1047 with_gas=yes ;;
1048
1049 -help | --help | --hel | --he | -h)
1050 ac_init_help=long ;;
1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052 ac_init_help=recursive ;;
1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054 ac_init_help=short ;;
1055
1056 -host | --host | --hos | --ho)
1057 ac_prev=host_alias ;;
1058 -host=* | --host=* | --hos=* | --ho=*)
1059 host_alias=$ac_optarg ;;
1060
1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 ac_prev=htmldir ;;
1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 | --ht=*)
1065 htmldir=$ac_optarg ;;
1066
1067 -includedir | --includedir | --includedi | --included | --include \
1068 | --includ | --inclu | --incl | --inc)
1069 ac_prev=includedir ;;
1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071 | --includ=* | --inclu=* | --incl=* | --inc=*)
1072 includedir=$ac_optarg ;;
1073
1074 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 ac_prev=infodir ;;
1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077 infodir=$ac_optarg ;;
1078
1079 -libdir | --libdir | --libdi | --libd)
1080 ac_prev=libdir ;;
1081 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082 libdir=$ac_optarg ;;
1083
1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085 | --libexe | --libex | --libe)
1086 ac_prev=libexecdir ;;
1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088 | --libexe=* | --libex=* | --libe=*)
1089 libexecdir=$ac_optarg ;;
1090
1091 -localedir | --localedir | --localedi | --localed | --locale)
1092 ac_prev=localedir ;;
1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094 localedir=$ac_optarg ;;
1095
1096 -localstatedir | --localstatedir | --localstatedi | --localstated \
1097 | --localstate | --localstat | --localsta | --localst | --locals)
1098 ac_prev=localstatedir ;;
1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101 localstatedir=$ac_optarg ;;
1102
1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 ac_prev=mandir ;;
1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106 mandir=$ac_optarg ;;
1107
1108 -nfp | --nfp | --nf)
1109 # Obsolete; use --without-fp.
1110 with_fp=no ;;
1111
1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113 | --no-cr | --no-c | -n)
1114 no_create=yes ;;
1115
1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118 no_recursion=yes ;;
1119
1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122 | --oldin | --oldi | --old | --ol | --o)
1123 ac_prev=oldincludedir ;;
1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127 oldincludedir=$ac_optarg ;;
1128
1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 ac_prev=prefix ;;
1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132 prefix=$ac_optarg ;;
1133
1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135 | --program-pre | --program-pr | --program-p)
1136 ac_prev=program_prefix ;;
1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139 program_prefix=$ac_optarg ;;
1140
1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142 | --program-suf | --program-su | --program-s)
1143 ac_prev=program_suffix ;;
1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146 program_suffix=$ac_optarg ;;
1147
1148 -program-transform-name | --program-transform-name \
1149 | --program-transform-nam | --program-transform-na \
1150 | --program-transform-n | --program-transform- \
1151 | --program-transform | --program-transfor \
1152 | --program-transfo | --program-transf \
1153 | --program-trans | --program-tran \
1154 | --progr-tra | --program-tr | --program-t)
1155 ac_prev=program_transform_name ;;
1156 -program-transform-name=* | --program-transform-name=* \
1157 | --program-transform-nam=* | --program-transform-na=* \
1158 | --program-transform-n=* | --program-transform-=* \
1159 | --program-transform=* | --program-transfor=* \
1160 | --program-transfo=* | --program-transf=* \
1161 | --program-trans=* | --program-tran=* \
1162 | --progr-tra=* | --program-tr=* | --program-t=*)
1163 program_transform_name=$ac_optarg ;;
1164
1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 ac_prev=pdfdir ;;
1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168 pdfdir=$ac_optarg ;;
1169
1170 -psdir | --psdir | --psdi | --psd | --ps)
1171 ac_prev=psdir ;;
1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173 psdir=$ac_optarg ;;
1174
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1177 silent=yes ;;
1178
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 ac_prev=sbindir ;;
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 | --sbi=* | --sb=*)
1183 sbindir=$ac_optarg ;;
1184
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1188 | --sha | --sh)
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 | --sha=* | --sh=*)
1194 sharedstatedir=$ac_optarg ;;
1195
1196 -site | --site | --sit)
1197 ac_prev=site ;;
1198 -site=* | --site=* | --sit=*)
1199 site=$ac_optarg ;;
1200
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 ac_prev=srcdir ;;
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204 srcdir=$ac_optarg ;;
1205
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211 sysconfdir=$ac_optarg ;;
1212
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
1214 ac_prev=target_alias ;;
1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216 target_alias=$ac_optarg ;;
1217
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219 verbose=yes ;;
1220
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
1223
1224 -with-* | --with-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: $ac_useropt"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1232 *"
1233 "with_$ac_useropt"
1234 "*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=\$ac_optarg ;;
1239
1240 -without-* | --without-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error $? "invalid package name: $ac_useropt"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249 "with_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=no ;;
1255
1256 --x)
1257 # Obsolete; use --with-x.
1258 with_x=yes ;;
1259
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265 x_includes=$ac_optarg ;;
1266
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272 x_libraries=$ac_optarg ;;
1273
1274 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1275 Try \`$0 --help' for more information"
1276 ;;
1277
1278 *=*)
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
1281 case $ac_envvar in #(
1282 '' | [0-9]* | *[!_$as_cr_alnum]* )
1283 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1284 esac
1285 eval $ac_envvar=\$ac_optarg
1286 export $ac_envvar ;;
1287
1288 *)
1289 # FIXME: should be removed in autoconf 3.0.
1290 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1294 ;;
1295
1296 esac
1297 done
1298
1299 if test -n "$ac_prev"; then
1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301 as_fn_error $? "missing argument to $ac_option"
1302 fi
1303
1304 if test -n "$ac_unrecognized_opts"; then
1305 case $enable_option_checking in
1306 no) ;;
1307 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1308 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 esac
1310 fi
1311
1312 # Check all directory arguments for consistency.
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1317 do
1318 eval ac_val=\$$ac_var
1319 # Remove trailing slashes.
1320 case $ac_val in
1321 */ )
1322 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323 eval $ac_var=\$ac_val;;
1324 esac
1325 # Be sure to have absolute directory names.
1326 case $ac_val in
1327 [\\/$]* | ?:[\\/]* ) continue;;
1328 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1329 esac
1330 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1331 done
1332
1333 # There might be people who depend on the old broken behavior: `$host'
1334 # used to hold the argument of --host etc.
1335 # FIXME: To remove some day.
1336 build=$build_alias
1337 host=$host_alias
1338 target=$target_alias
1339
1340 # FIXME: To remove some day.
1341 if test "x$host_alias" != x; then
1342 if test "x$build_alias" = x; then
1343 cross_compiling=maybe
1344 elif test "x$build_alias" != "x$host_alias"; then
1345 cross_compiling=yes
1346 fi
1347 fi
1348
1349 ac_tool_prefix=
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351
1352 test "$silent" = yes && exec 6>/dev/null
1353
1354
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358 as_fn_error $? "working directory cannot be determined"
1359 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360 as_fn_error $? "pwd does not report name of working directory"
1361
1362
1363 # Find the source files, if location was not specified.
1364 if test -z "$srcdir"; then
1365 ac_srcdir_defaulted=yes
1366 # Try the directory containing this script, then the parent directory.
1367 ac_confdir=`$as_dirname -- "$as_myself" ||
1368 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1369 X"$as_myself" : 'X\(//\)[^/]' \| \
1370 X"$as_myself" : 'X\(//\)$' \| \
1371 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1372 $as_echo X"$as_myself" |
1373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\/\)[^/].*/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\/\)$/{
1382 s//\1/
1383 q
1384 }
1385 /^X\(\/\).*/{
1386 s//\1/
1387 q
1388 }
1389 s/.*/./; q'`
1390 srcdir=$ac_confdir
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392 srcdir=..
1393 fi
1394 else
1395 ac_srcdir_defaulted=no
1396 fi
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1399 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1400 fi
1401 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 ac_abs_confdir=`(
1403 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1404 pwd)`
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407 srcdir=.
1408 fi
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1412 case $srcdir in
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 esac
1415 case $srcdir in
1416 *" "*)
1417 as_fn_error $? "path to source, $srcdir, contains spaces"
1418 ;;
1419 esac
1420 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1421
1422 for ac_var in $ac_precious_vars; do
1423 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_${ac_var}_value=\$${ac_var}
1425 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427 done
1428
1429 #
1430 # Report the --help message.
1431 #
1432 if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1435 cat <<_ACEOF
1436 \`configure' configures this package to adapt to many kinds of systems.
1437
1438 Usage: $0 [OPTION]... [VAR=VALUE]...
1439
1440 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441 VAR=VALUE. See below for descriptions of some of the useful variables.
1442
1443 Defaults for the options are specified in brackets.
1444
1445 Configuration:
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
1450 -q, --quiet, --silent do not print \`checking ...' messages
1451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for \`--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455
1456 Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
1458 [$ac_default_prefix]
1459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1460 [PREFIX]
1461
1462 By default, \`make install' will install all the files in
1463 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1464 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465 for instance \`--prefix=\$HOME'.
1466
1467 For better control, use the options below.
1468
1469 Fine tuning of the installation directories:
1470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --libdir=DIR object code libraries [EPREFIX/lib]
1477 --includedir=DIR C header files [PREFIX/include]
1478 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1479 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1480 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1481 --infodir=DIR info documentation [DATAROOTDIR/info]
1482 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1483 --mandir=DIR man documentation [DATAROOTDIR/man]
1484 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1485 --htmldir=DIR html documentation [DOCDIR]
1486 --dvidir=DIR dvi documentation [DOCDIR]
1487 --pdfdir=DIR pdf documentation [DOCDIR]
1488 --psdir=DIR ps documentation [DOCDIR]
1489 _ACEOF
1490
1491 cat <<\_ACEOF
1492
1493 Program names:
1494 --program-prefix=PREFIX prepend PREFIX to installed program names
1495 --program-suffix=SUFFIX append SUFFIX to installed program names
1496 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1497
1498 System types:
1499 --build=BUILD configure for building on BUILD [guessed]
1500 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1501 --target=TARGET configure for building compilers for TARGET [HOST]
1502 _ACEOF
1503 fi
1504
1505 if test -n "$ac_init_help"; then
1506
1507 cat <<\_ACEOF
1508
1509 Optional Features:
1510 --disable-option-checking ignore unrecognized --enable/--with options
1511 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1512 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1513 --enable-as-accelerator-for=ARG
1514 build as offload target compiler. Specify offload
1515 host triple by ARG
1516 --enable-offload-targets=LIST
1517 enable offloading to devices from comma-separated
1518 LIST of TARGET[=DIR]. Use optional path to find
1519 offload target compiler during the build
1520 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1521 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1522 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
1523 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1524 Enable compressed debug sections for gas, gold or ld
1525 by default
1526 --enable-year2038 enable support for timestamps past the year 2038
1527 --disable-libquadmath do not build libquadmath directory
1528 --disable-libquadmath-support
1529 disable libquadmath support for Fortran
1530 --enable-libada build libada directory
1531 --enable-libssp build libssp directory
1532 --disable-libstdcxx do not build libstdc++-v3 directory
1533 --enable-liboffloadmic=ARG
1534 build liboffloadmic [ARG={no,host,target}]
1535 --enable-bootstrap enable bootstrapping [yes if native build]
1536 --enable-pgo-build[=lto]
1537 enable the PGO build
1538 --disable-isl-version-check
1539 disable check for isl version
1540 --enable-lto enable link time optimization support
1541 --enable-linker-plugin-configure-flags=FLAGS
1542 additional flags for configuring linker plugins
1543 [none]
1544 --enable-linker-plugin-flags=FLAGS
1545 additional flags for configuring and building linker
1546 plugins [none]
1547 --enable-host-shared build host code as shared libraries
1548 --enable-stage1-languages[=all]
1549 choose additional languages to build during stage1.
1550 Mostly useful for compiler development
1551 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1552 Objective-C runtime
1553 --enable-vtable-verify Enable vtable verification feature
1554 --enable-serial-[{host,target,build}-]configure
1555 force sequential configuration of sub-packages for
1556 the host, target or build machine, or all
1557 sub-packages
1558 --enable-maintainer-mode
1559 enable make rules and dependencies not useful (and
1560 sometimes confusing) to the casual installer
1561 --enable-stage1-checking[=all]
1562 choose additional checking for stage1 of the
1563 compiler
1564 --enable-werror enable -Werror in bootstrap stage2 and later
1565
1566 Optional Packages:
1567 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1568 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1569 --with-build-libsubdir=DIR Directory where to find libraries for build system
1570 --with-system-zlib use installed libz
1571 --with-zstd Support zstd compressed debug sections
1572 (default=auto)
1573 --with-mpc=PATH specify prefix directory for installed MPC package.
1574 Equivalent to --with-mpc-include=PATH/include plus
1575 --with-mpc-lib=PATH/lib
1576 --with-mpc-include=PATH specify directory for installed MPC include files
1577 --with-mpc-lib=PATH specify directory for the installed MPC library
1578 --with-mpfr-dir=PATH this option has been REMOVED
1579 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1580 Equivalent to --with-mpfr-include=PATH/include plus
1581 --with-mpfr-lib=PATH/lib
1582 --with-mpfr-include=PATH
1583 specify directory for installed MPFR include files
1584 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1585 --with-gmp-dir=PATH this option has been REMOVED
1586 --with-gmp=PATH specify prefix directory for the installed GMP
1587 package. Equivalent to
1588 --with-gmp-include=PATH/include plus
1589 --with-gmp-lib=PATH/lib
1590 --with-gmp-include=PATH specify directory for installed GMP include files
1591 --with-gmp-lib=PATH specify directory for the installed GMP library
1592 --with-stage1-libs=LIBS libraries for stage1
1593 --with-static-standard-libraries
1594 use -static-libstdc++ and -static-libgcc
1595 (default=auto)
1596 --with-stage1-ldflags=FLAGS
1597 linker flags for stage1
1598 --with-boot-libs=LIBS libraries for stage2 and later
1599 --with-boot-ldflags=FLAGS
1600 linker flags for stage2 and later
1601 --with-isl=PATH Specify prefix directory for the installed isl
1602 package. Equivalent to
1603 --with-isl-include=PATH/include plus
1604 --with-isl-lib=PATH/lib
1605 --with-isl-include=PATH Specify directory for installed isl include files
1606 --with-isl-lib=PATH Specify the directory for the installed isl library
1607 --with-target-bdw-gc=PATHLIST
1608 specify prefix directory for installed bdw-gc
1609 package. Equivalent to
1610 --with-target-bdw-gc-include=PATH/include plus
1611 --with-target-bdw-gc-lib=PATH/lib
1612 --with-target-bdw-gc-include=PATHLIST
1613 specify directories for installed bdw-gc include
1614 files
1615 --with-target-bdw-gc-lib=PATHLIST
1616 specify directories for installed bdw-gc library
1617 --with-gcc-major-version-only
1618 use only GCC major number in filesystem paths
1619 --with-build-sysroot=SYSROOT
1620 use sysroot as the system root during the build
1621 --with-debug-prefix-map='A=B C=D ...'
1622 map A to B, C to D ... in debug information
1623 --with-build-config='NAME NAME2...'
1624 use config/NAME.mk build configuration
1625 --with-build-time-tools=PATH
1626 use given path to find target tools during the build
1627
1628 Some influential environment variables:
1629 CC C compiler command
1630 CFLAGS C compiler flags
1631 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1632 nonstandard directory <lib dir>
1633 LIBS libraries to pass to the linker, e.g. -l<library>
1634 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1635 you have headers in a nonstandard directory <include dir>
1636 CXX C++ compiler command
1637 CXXFLAGS C++ compiler flags
1638 build_configargs
1639 additional configure arguments for build directories
1640 host_configargs
1641 additional configure arguments for host directories
1642 target_configargs
1643 additional configure arguments for target directories
1644 AR AR for the host
1645 AS AS for the host
1646 DLLTOOL DLLTOOL for the host
1647 LD LD for the host
1648 LIPO LIPO for the host
1649 NM NM for the host
1650 RANLIB RANLIB for the host
1651 STRIP STRIP for the host
1652 WINDRES WINDRES for the host
1653 WINDMC WINDMC for the host
1654 OBJCOPY OBJCOPY for the host
1655 OBJDUMP OBJDUMP for the host
1656 READELF READELF for the host
1657 CC_FOR_TARGET
1658 CC for the target
1659 CXX_FOR_TARGET
1660 CXX for the target
1661 GCC_FOR_TARGET
1662 GCC for the target
1663 GFORTRAN_FOR_TARGET
1664 GFORTRAN for the target
1665 GOC_FOR_TARGET
1666 GOC for the target
1667 AR_FOR_TARGET
1668 AR for the target
1669 AS_FOR_TARGET
1670 AS for the target
1671 DLLTOOL_FOR_TARGET
1672 DLLTOOL for the target
1673 LD_FOR_TARGET
1674 LD for the target
1675 LIPO_FOR_TARGET
1676 LIPO for the target
1677 NM_FOR_TARGET
1678 NM for the target
1679 OBJCOPY_FOR_TARGET
1680 OBJCOPY for the target
1681 OBJDUMP_FOR_TARGET
1682 OBJDUMP for the target
1683 RANLIB_FOR_TARGET
1684 RANLIB for the target
1685 READELF_FOR_TARGET
1686 READELF for the target
1687 STRIP_FOR_TARGET
1688 STRIP for the target
1689 WINDRES_FOR_TARGET
1690 WINDRES for the target
1691 WINDMC_FOR_TARGET
1692 WINDMC for the target
1693
1694 Use these variables to override the choices made by `configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1696
1697 Report bugs to the package provider.
1698 _ACEOF
1699 ac_status=$?
1700 fi
1701
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1707 continue
1708 ac_builddir=.
1709
1710 case "$ac_dir" in
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *)
1713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719 esac ;;
1720 esac
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1725
1726 case $srcdir in
1727 .) # We are building in place.
1728 ac_srcdir=.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1735 *) # Relative name.
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 esac
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1741
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1748 echo &&
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1750 else
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752 fi || ac_status=$?
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1754 done
1755 fi
1756
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1759 cat <<\_ACEOF
1760 configure
1761 generated by GNU Autoconf 2.69
1762
1763 Copyright (C) 2012 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1766 _ACEOF
1767 exit
1768 fi
1769
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1773
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.$ac_objext; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=1
1806 fi
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1809
1810 } # ac_fn_c_try_compile
1811
1812 # ac_fn_cxx_try_compile LINENO
1813 # ----------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_compile ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext
1819 if { { ac_try="$ac_compile"
1820 case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1832 fi
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_cxx_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=1
1844 fi
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1847
1848 } # ac_fn_cxx_try_compile
1849
1850 # ac_fn_cxx_try_link LINENO
1851 # -------------------------
1852 # Try to link conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_cxx_try_link ()
1854 {
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext conftest$ac_exeext
1857 if { { ac_try="$ac_link"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_link") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1870 fi
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_cxx_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest$ac_exeext && {
1876 test "$cross_compiling" = yes ||
1877 test -x conftest$ac_exeext
1878 }; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1883
1884 ac_retval=1
1885 fi
1886 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1887 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1888 # interfere with the next link command; also delete a directory that is
1889 # left behind by Apple's compiler. We do this before executing the actions.
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 as_fn_set_status $ac_retval
1893
1894 } # ac_fn_cxx_try_link
1895
1896 # ac_fn_c_try_link LINENO
1897 # -----------------------
1898 # Try to link conftest.$ac_ext, and return whether this succeeded.
1899 ac_fn_c_try_link ()
1900 {
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 rm -f conftest.$ac_objext conftest$ac_exeext
1903 if { { ac_try="$ac_link"
1904 case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_link") 2>conftest.err
1911 ac_status=$?
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1916 fi
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && {
1919 test -z "$ac_c_werror_flag" ||
1920 test ! -s conftest.err
1921 } && test -s conftest$ac_exeext && {
1922 test "$cross_compiling" = yes ||
1923 test -x conftest$ac_exeext
1924 }; then :
1925 ac_retval=0
1926 else
1927 $as_echo "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1929
1930 ac_retval=1
1931 fi
1932 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1933 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1934 # interfere with the next link command; also delete a directory that is
1935 # left behind by Apple's compiler. We do this before executing the actions.
1936 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 as_fn_set_status $ac_retval
1939
1940 } # ac_fn_c_try_link
1941 cat >config.log <<_ACEOF
1942 This file contains any messages produced by compilers while
1943 running configure, to aid debugging if configure makes a mistake.
1944
1945 It was created by $as_me, which was
1946 generated by GNU Autoconf 2.69. Invocation command line was
1947
1948 $ $0 $@
1949
1950 _ACEOF
1951 exec 5>>config.log
1952 {
1953 cat <<_ASUNAME
1954 ## --------- ##
1955 ## Platform. ##
1956 ## --------- ##
1957
1958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1963
1964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1965 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1966
1967 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1968 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1970 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1971 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1972 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1973 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1974
1975 _ASUNAME
1976
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980 IFS=$as_save_IFS
1981 test -z "$as_dir" && as_dir=.
1982 $as_echo "PATH: $as_dir"
1983 done
1984 IFS=$as_save_IFS
1985
1986 } >&5
1987
1988 cat >&5 <<_ACEOF
1989
1990
1991 ## ----------- ##
1992 ## Core tests. ##
1993 ## ----------- ##
1994
1995 _ACEOF
1996
1997
1998 # Keep a trace of the command line.
1999 # Strip out --no-create and --no-recursion so they do not pile up.
2000 # Strip out --silent because we don't want to record it for future runs.
2001 # Also quote any args containing shell meta-characters.
2002 # Make two passes to allow for proper duplicate-argument suppression.
2003 ac_configure_args=
2004 ac_configure_args0=
2005 ac_configure_args1=
2006 ac_must_keep_next=false
2007 for ac_pass in 1 2
2008 do
2009 for ac_arg
2010 do
2011 case $ac_arg in
2012 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2014 | -silent | --silent | --silen | --sile | --sil)
2015 continue ;;
2016 *\'*)
2017 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2018 esac
2019 case $ac_pass in
2020 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2021 2)
2022 as_fn_append ac_configure_args1 " '$ac_arg'"
2023 if test $ac_must_keep_next = true; then
2024 ac_must_keep_next=false # Got value, back to normal.
2025 else
2026 case $ac_arg in
2027 *=* | --config-cache | -C | -disable-* | --disable-* \
2028 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2029 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2030 | -with-* | --with-* | -without-* | --without-* | --x)
2031 case "$ac_configure_args0 " in
2032 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2033 esac
2034 ;;
2035 -* ) ac_must_keep_next=true ;;
2036 esac
2037 fi
2038 as_fn_append ac_configure_args " '$ac_arg'"
2039 ;;
2040 esac
2041 done
2042 done
2043 { ac_configure_args0=; unset ac_configure_args0;}
2044 { ac_configure_args1=; unset ac_configure_args1;}
2045
2046 # When interrupted or exit'd, cleanup temporary files, and complete
2047 # config.log. We remove comments because anyway the quotes in there
2048 # would cause problems or look ugly.
2049 # WARNING: Use '\'' to represent an apostrophe within the trap.
2050 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2051 trap 'exit_status=$?
2052 # Save into config.log some information that might help in debugging.
2053 {
2054 echo
2055
2056 $as_echo "## ---------------- ##
2057 ## Cache variables. ##
2058 ## ---------------- ##"
2059 echo
2060 # The following way of writing the cache mishandles newlines in values,
2061 (
2062 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2063 eval ac_val=\$$ac_var
2064 case $ac_val in #(
2065 *${as_nl}*)
2066 case $ac_var in #(
2067 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2068 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2069 esac
2070 case $ac_var in #(
2071 _ | IFS | as_nl) ;; #(
2072 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2073 *) { eval $ac_var=; unset $ac_var;} ;;
2074 esac ;;
2075 esac
2076 done
2077 (set) 2>&1 |
2078 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2079 *${as_nl}ac_space=\ *)
2080 sed -n \
2081 "s/'\''/'\''\\\\'\'''\''/g;
2082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2083 ;; #(
2084 *)
2085 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2086 ;;
2087 esac |
2088 sort
2089 )
2090 echo
2091
2092 $as_echo "## ----------------- ##
2093 ## Output variables. ##
2094 ## ----------------- ##"
2095 echo
2096 for ac_var in $ac_subst_vars
2097 do
2098 eval ac_val=\$$ac_var
2099 case $ac_val in
2100 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2101 esac
2102 $as_echo "$ac_var='\''$ac_val'\''"
2103 done | sort
2104 echo
2105
2106 if test -n "$ac_subst_files"; then
2107 $as_echo "## ------------------- ##
2108 ## File substitutions. ##
2109 ## ------------------- ##"
2110 echo
2111 for ac_var in $ac_subst_files
2112 do
2113 eval ac_val=\$$ac_var
2114 case $ac_val in
2115 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116 esac
2117 $as_echo "$ac_var='\''$ac_val'\''"
2118 done | sort
2119 echo
2120 fi
2121
2122 if test -s confdefs.h; then
2123 $as_echo "## ----------- ##
2124 ## confdefs.h. ##
2125 ## ----------- ##"
2126 echo
2127 cat confdefs.h
2128 echo
2129 fi
2130 test "$ac_signal" != 0 &&
2131 $as_echo "$as_me: caught signal $ac_signal"
2132 $as_echo "$as_me: exit $exit_status"
2133 } >&5
2134 rm -f core *.core core.conftest.* &&
2135 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2136 exit $exit_status
2137 ' 0
2138 for ac_signal in 1 2 13 15; do
2139 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2140 done
2141 ac_signal=0
2142
2143 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2144 rm -f -r conftest* confdefs.h
2145
2146 $as_echo "/* confdefs.h */" > confdefs.h
2147
2148 # Predefined preprocessor variables.
2149
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_NAME "$PACKAGE_NAME"
2152 _ACEOF
2153
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2156 _ACEOF
2157
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2160 _ACEOF
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_STRING "$PACKAGE_STRING"
2164 _ACEOF
2165
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2168 _ACEOF
2169
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_URL "$PACKAGE_URL"
2172 _ACEOF
2173
2174
2175 # Let the site file select an alternate cache file if it wants to.
2176 # Prefer an explicitly selected file to automatically selected ones.
2177 ac_site_file1=NONE
2178 ac_site_file2=NONE
2179 if test -n "$CONFIG_SITE"; then
2180 # We do not want a PATH search for config.site.
2181 case $CONFIG_SITE in #((
2182 -*) ac_site_file1=./$CONFIG_SITE;;
2183 */*) ac_site_file1=$CONFIG_SITE;;
2184 *) ac_site_file1=./$CONFIG_SITE;;
2185 esac
2186 elif test "x$prefix" != xNONE; then
2187 ac_site_file1=$prefix/share/config.site
2188 ac_site_file2=$prefix/etc/config.site
2189 else
2190 ac_site_file1=$ac_default_prefix/share/config.site
2191 ac_site_file2=$ac_default_prefix/etc/config.site
2192 fi
2193 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2194 do
2195 test "x$ac_site_file" = xNONE && continue
2196 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2198 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2199 sed 's/^/| /' "$ac_site_file" >&5
2200 . "$ac_site_file" \
2201 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2203 as_fn_error $? "failed to load site script $ac_site_file
2204 See \`config.log' for more details" "$LINENO" 5; }
2205 fi
2206 done
2207
2208 if test -r "$cache_file"; then
2209 # Some versions of bash will fail to source /dev/null (special files
2210 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2211 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2213 $as_echo "$as_me: loading cache $cache_file" >&6;}
2214 case $cache_file in
2215 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2216 *) . "./$cache_file";;
2217 esac
2218 fi
2219 else
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2221 $as_echo "$as_me: creating cache $cache_file" >&6;}
2222 >$cache_file
2223 fi
2224
2225 # Check that the precious variables saved in the cache have kept the same
2226 # value.
2227 ac_cache_corrupted=false
2228 for ac_var in $ac_precious_vars; do
2229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2230 eval ac_new_set=\$ac_env_${ac_var}_set
2231 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2232 eval ac_new_val=\$ac_env_${ac_var}_value
2233 case $ac_old_set,$ac_new_set in
2234 set,)
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2236 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2237 ac_cache_corrupted=: ;;
2238 ,set)
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2240 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2241 ac_cache_corrupted=: ;;
2242 ,);;
2243 *)
2244 if test "x$ac_old_val" != "x$ac_new_val"; then
2245 # differences in whitespace do not lead to failure.
2246 ac_old_val_w=`echo x $ac_old_val`
2247 ac_new_val_w=`echo x $ac_new_val`
2248 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2250 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2251 ac_cache_corrupted=:
2252 else
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2254 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2255 eval $ac_var=\$ac_old_val
2256 fi
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2258 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2260 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2261 fi;;
2262 esac
2263 # Pass precious variables to config.status.
2264 if test "$ac_new_set" = set; then
2265 case $ac_new_val in
2266 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2267 *) ac_arg=$ac_var=$ac_new_val ;;
2268 esac
2269 case " $ac_configure_args " in
2270 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2271 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2272 esac
2273 fi
2274 done
2275 if $ac_cache_corrupted; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2279 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2280 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2281 fi
2282 ## -------------------- ##
2283 ## Main body of script. ##
2284 ## -------------------- ##
2285
2286 ac_ext=c
2287 ac_cpp='$CPP $CPPFLAGS'
2288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2291
2292
2293
2294
2295
2296
2297
2298
2299 progname=$0
2300 # if PWD already has a value, it is probably wrong.
2301 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2302
2303 # Export original configure arguments for use by sub-configures.
2304 # Quote arguments with shell meta charatcers.
2305 TOPLEVEL_CONFIGURE_ARGUMENTS=
2306 set -- "$progname" "$@"
2307 for ac_arg
2308 do
2309 case "$ac_arg" in
2310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2311 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2312 # if the argument is of the form -foo=baz, quote the baz part only
2313 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2314 *) ;;
2315 esac
2316 # Add the quoted argument to the list.
2317 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2318 done
2319 if test "$silent" = yes; then
2320 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2321 fi
2322 # Remove the initial space we just introduced and, as these will be
2323 # expanded by make, quote '$'.
2324 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2325
2326
2327 # Find the build, host, and target systems.
2328 ac_aux_dir=
2329 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2330 if test -f "$ac_dir/install-sh"; then
2331 ac_aux_dir=$ac_dir
2332 ac_install_sh="$ac_aux_dir/install-sh -c"
2333 break
2334 elif test -f "$ac_dir/install.sh"; then
2335 ac_aux_dir=$ac_dir
2336 ac_install_sh="$ac_aux_dir/install.sh -c"
2337 break
2338 elif test -f "$ac_dir/shtool"; then
2339 ac_aux_dir=$ac_dir
2340 ac_install_sh="$ac_aux_dir/shtool install -c"
2341 break
2342 fi
2343 done
2344 if test -z "$ac_aux_dir"; then
2345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2346 fi
2347
2348 # These three variables are undocumented and unsupported,
2349 # and are intended to be withdrawn in a future Autoconf release.
2350 # They can cause serious problems if a builder's source tree is in a directory
2351 # whose full name contains unusual characters.
2352 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2353 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2354 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2355
2356
2357 # Make sure we can run config.sub.
2358 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2359 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2360
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2362 $as_echo_n "checking build system type... " >&6; }
2363 if ${ac_cv_build+:} false; then :
2364 $as_echo_n "(cached) " >&6
2365 else
2366 ac_build_alias=$build_alias
2367 test "x$ac_build_alias" = x &&
2368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2369 test "x$ac_build_alias" = x &&
2370 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2371 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2373
2374 fi
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2376 $as_echo "$ac_cv_build" >&6; }
2377 case $ac_cv_build in
2378 *-*-*) ;;
2379 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2380 esac
2381 build=$ac_cv_build
2382 ac_save_IFS=$IFS; IFS='-'
2383 set x $ac_cv_build
2384 shift
2385 build_cpu=$1
2386 build_vendor=$2
2387 shift; shift
2388 # Remember, the first character of IFS is used to create $*,
2389 # except with old shells:
2390 build_os=$*
2391 IFS=$ac_save_IFS
2392 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2393
2394
2395 case ${build_alias} in
2396 "") build_noncanonical=${build} ;;
2397 *) build_noncanonical=${build_alias} ;;
2398 esac
2399
2400
2401
2402 case ${host_alias} in
2403 "") host_noncanonical=${build_noncanonical} ;;
2404 *) host_noncanonical=${host_alias} ;;
2405 esac
2406
2407
2408
2409 case ${target_alias} in
2410 "") target_noncanonical=${host_noncanonical} ;;
2411 *) target_noncanonical=${target_alias} ;;
2412 esac
2413
2414
2415
2416
2417 test "$host_noncanonical" = "$target_noncanonical" &&
2418 test "$program_prefix$program_suffix$program_transform_name" = \
2419 NONENONEs,x,x, &&
2420 program_transform_name=s,y,y,
2421
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2423 $as_echo_n "checking host system type... " >&6; }
2424 if ${ac_cv_host+:} false; then :
2425 $as_echo_n "(cached) " >&6
2426 else
2427 if test "x$host_alias" = x; then
2428 ac_cv_host=$ac_cv_build
2429 else
2430 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2431 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2432 fi
2433
2434 fi
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2436 $as_echo "$ac_cv_host" >&6; }
2437 case $ac_cv_host in
2438 *-*-*) ;;
2439 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2440 esac
2441 host=$ac_cv_host
2442 ac_save_IFS=$IFS; IFS='-'
2443 set x $ac_cv_host
2444 shift
2445 host_cpu=$1
2446 host_vendor=$2
2447 shift; shift
2448 # Remember, the first character of IFS is used to create $*,
2449 # except with old shells:
2450 host_os=$*
2451 IFS=$ac_save_IFS
2452 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2453
2454
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2456 $as_echo_n "checking target system type... " >&6; }
2457 if ${ac_cv_target+:} false; then :
2458 $as_echo_n "(cached) " >&6
2459 else
2460 if test "x$target_alias" = x; then
2461 ac_cv_target=$ac_cv_host
2462 else
2463 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2464 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2465 fi
2466
2467 fi
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2469 $as_echo "$ac_cv_target" >&6; }
2470 case $ac_cv_target in
2471 *-*-*) ;;
2472 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2473 esac
2474 target=$ac_cv_target
2475 ac_save_IFS=$IFS; IFS='-'
2476 set x $ac_cv_target
2477 shift
2478 target_cpu=$1
2479 target_vendor=$2
2480 shift; shift
2481 # Remember, the first character of IFS is used to create $*,
2482 # except with old shells:
2483 target_os=$*
2484 IFS=$ac_save_IFS
2485 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2486
2487
2488 # The aliases save the names the user supplied, while $host etc.
2489 # will get canonicalized.
2490 test -n "$target_alias" &&
2491 test "$program_prefix$program_suffix$program_transform_name" = \
2492 NONENONEs,x,x, &&
2493 program_prefix=${target_alias}-
2494
2495 test "$program_prefix" != NONE &&
2496 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2497 # Use a double $ so make ignores it.
2498 test "$program_suffix" != NONE &&
2499 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2500 # Double any \ or $.
2501 # By default was `s,x,x', remove it if useless.
2502 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2503 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2504
2505
2506
2507 # Get 'install' or 'install-sh' and its variants.
2508 # Find a good install program. We prefer a C program (faster),
2509 # so one script is as good as another. But avoid the broken or
2510 # incompatible versions:
2511 # SysV /etc/install, /usr/sbin/install
2512 # SunOS /usr/etc/install
2513 # IRIX /sbin/install
2514 # AIX /bin/install
2515 # AmigaOS /C/install, which installs bootblocks on floppy discs
2516 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2517 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2518 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2519 # OS/2's system install, which has a completely different semantic
2520 # ./install, which can be erroneously created by make from ./install.sh.
2521 # Reject install programs that cannot install multiple files.
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2523 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2524 if test -z "$INSTALL"; then
2525 if ${ac_cv_path_install+:} false; then :
2526 $as_echo_n "(cached) " >&6
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 # Account for people who put trailing slashes in PATH elements.
2534 case $as_dir/ in #((
2535 ./ | .// | /[cC]/* | \
2536 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2537 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2538 /usr/ucb/* ) ;;
2539 *)
2540 # OSF1 and SCO ODT 3.0 have their own names for install.
2541 # Don't use installbsd from OSF since it installs stuff as root
2542 # by default.
2543 for ac_prog in ginstall scoinst install; do
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2546 if test $ac_prog = install &&
2547 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2548 # AIX install. It has an incompatible calling convention.
2549 :
2550 elif test $ac_prog = install &&
2551 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2552 # program-specific install script used by HP pwplus--don't use.
2553 :
2554 else
2555 rm -rf conftest.one conftest.two conftest.dir
2556 echo one > conftest.one
2557 echo two > conftest.two
2558 mkdir conftest.dir
2559 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2560 test -s conftest.one && test -s conftest.two &&
2561 test -s conftest.dir/conftest.one &&
2562 test -s conftest.dir/conftest.two
2563 then
2564 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2565 break 3
2566 fi
2567 fi
2568 fi
2569 done
2570 done
2571 ;;
2572 esac
2573
2574 done
2575 IFS=$as_save_IFS
2576
2577 rm -rf conftest.one conftest.two conftest.dir
2578
2579 fi
2580 if test "${ac_cv_path_install+set}" = set; then
2581 INSTALL=$ac_cv_path_install
2582 else
2583 # As a last resort, use the slow shell script. Don't cache a
2584 # value for INSTALL within a source directory, because that will
2585 # break other packages using the cache if that directory is
2586 # removed, or if the value is a relative name.
2587 INSTALL=$ac_install_sh
2588 fi
2589 fi
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2591 $as_echo "$INSTALL" >&6; }
2592
2593 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2594 # It thinks the first close brace ends the variable substitution.
2595 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2596
2597 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2598
2599 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2600
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2602 $as_echo_n "checking whether ln works... " >&6; }
2603 if ${acx_cv_prog_LN+:} false; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 rm -f conftestdata_t
2607 echo >conftestdata_f
2608 if ln conftestdata_f conftestdata_t 2>/dev/null
2609 then
2610 acx_cv_prog_LN=ln
2611 else
2612 acx_cv_prog_LN=no
2613 fi
2614 rm -f conftestdata_f conftestdata_t
2615
2616 fi
2617 if test $acx_cv_prog_LN = no; then
2618 LN="cp"
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2620 $as_echo "no, using $LN" >&6; }
2621 else
2622 LN="$acx_cv_prog_LN"
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2624 $as_echo "yes" >&6; }
2625 fi
2626
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2628 $as_echo_n "checking whether ln -s works... " >&6; }
2629 LN_S=$as_ln_s
2630 if test "$LN_S" = "ln -s"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2632 $as_echo "yes" >&6; }
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2635 $as_echo "no, using $LN_S" >&6; }
2636 fi
2637
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2639 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2640 if ${ac_cv_path_SED+:} false; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2644 for ac_i in 1 2 3 4 5 6 7; do
2645 ac_script="$ac_script$as_nl$ac_script"
2646 done
2647 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2648 { ac_script=; unset ac_script;}
2649 if test -z "$SED"; then
2650 ac_path_SED_found=false
2651 # Loop through the user's path and test for each of PROGNAME-LIST
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_prog in sed gsed; do
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2660 as_fn_executable_p "$ac_path_SED" || continue
2661 # Check for GNU ac_path_SED and select it if it is found.
2662 # Check for GNU $ac_path_SED
2663 case `"$ac_path_SED" --version 2>&1` in
2664 *GNU*)
2665 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2666 *)
2667 ac_count=0
2668 $as_echo_n 0123456789 >"conftest.in"
2669 while :
2670 do
2671 cat "conftest.in" "conftest.in" >"conftest.tmp"
2672 mv "conftest.tmp" "conftest.in"
2673 cp "conftest.in" "conftest.nl"
2674 $as_echo '' >> "conftest.nl"
2675 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2676 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2677 as_fn_arith $ac_count + 1 && ac_count=$as_val
2678 if test $ac_count -gt ${ac_path_SED_max-0}; then
2679 # Best one so far, save it but keep looking for a better one
2680 ac_cv_path_SED="$ac_path_SED"
2681 ac_path_SED_max=$ac_count
2682 fi
2683 # 10*(2^10) chars as input seems more than enough
2684 test $ac_count -gt 10 && break
2685 done
2686 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2687 esac
2688
2689 $ac_path_SED_found && break 3
2690 done
2691 done
2692 done
2693 IFS=$as_save_IFS
2694 if test -z "$ac_cv_path_SED"; then
2695 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2696 fi
2697 else
2698 ac_cv_path_SED=$SED
2699 fi
2700
2701 fi
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2703 $as_echo "$ac_cv_path_SED" >&6; }
2704 SED="$ac_cv_path_SED"
2705 rm -f conftest.sed
2706
2707 for ac_prog in gawk mawk nawk awk
2708 do
2709 # Extract the first word of "$ac_prog", so it can be a program name with args.
2710 set dummy $ac_prog; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if ${ac_cv_prog_AWK+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 if test -n "$AWK"; then
2717 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2721 do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2726 ac_cv_prog_AWK="$ac_prog"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2729 fi
2730 done
2731 done
2732 IFS=$as_save_IFS
2733
2734 fi
2735 fi
2736 AWK=$ac_cv_prog_AWK
2737 if test -n "$AWK"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2739 $as_echo "$AWK" >&6; }
2740 else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2743 fi
2744
2745
2746 test -n "$AWK" && break
2747 done
2748
2749
2750 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2751
2752 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2753 # a relative path.
2754 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2755 INSTALL="${srcpwd}/install-sh -c"
2756 fi
2757
2758 # Set srcdir to "." if that's what it is.
2759 # This is important for multilib support.
2760 pwd=`${PWDCMD-pwd}`
2761 if test "${pwd}" = "${srcpwd}" ; then
2762 srcdir=.
2763 fi
2764
2765 topsrcdir=$srcpwd
2766
2767 extra_host_args=
2768
2769 ### To add a new directory to the tree, first choose whether it is a target
2770 ### or a host dependent tool. Then put it into the appropriate list
2771 ### (library or tools, host or target), doing a dependency sort.
2772
2773 # Subdirs will be configured in the order listed in build_configdirs,
2774 # configdirs, or target_configdirs; see the serialization section below.
2775
2776 # Dependency sorting is only needed when *configuration* must be done in
2777 # a particular order. In all cases a dependency should be specified in
2778 # the Makefile, whether or not it's implicitly specified here.
2779
2780 # Double entries in build_configdirs, configdirs, or target_configdirs may
2781 # cause circular dependencies and break everything horribly.
2782
2783 # these library is used by various programs built for the build
2784 # environment
2785 #
2786 build_libs="build-libiberty build-libcpp"
2787
2788 # these tools are built for the build environment
2789 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2790
2791 # these libraries are used by various programs built for the host environment
2792 #f
2793 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2794
2795 # these tools are built for the host environment
2796 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2797 # know that we are building the simulator.
2798 # binutils, gas and ld appear in that order because it makes sense to run
2799 # "make check" in that particular order.
2800 # If --enable-gold is used, "gold" may replace "ld".
2801 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"
2802
2803 # these libraries are built for the target environment, and are built after
2804 # the host libraries and the host tools (which may be a cross compiler)
2805 # Note that libiberty is not a target library.
2806 target_libraries="target-libgcc \
2807 target-libbacktrace \
2808 target-libgloss \
2809 target-newlib \
2810 target-libgomp \
2811 target-liboffloadmic \
2812 target-libhsail-rt \
2813 target-libatomic \
2814 target-libitm \
2815 target-libstdc++-v3 \
2816 target-libsanitizer \
2817 target-libvtv \
2818 target-libssp \
2819 target-libquadmath \
2820 target-libgfortran \
2821 target-libffi \
2822 target-libobjc \
2823 target-libada \
2824 target-libgo"
2825
2826 # these tools are built using the target libraries, and are intended to
2827 # run only in the target environment
2828 #
2829 # note: any program that *uses* libraries that are in the "target_libraries"
2830 # list belongs in this list.
2831 #
2832 target_tools="target-rda"
2833
2834 ################################################################################
2835
2836 ## All tools belong in one of the four categories, and are assigned above
2837 ## We assign ${configdirs} this way to remove all embedded newlines. This
2838 ## is important because configure will choke if they ever get through.
2839 ## ${configdirs} is directories we build using the host tools.
2840 ## ${target_configdirs} is directories we build using the target tools.
2841 configdirs=`echo ${host_libs} ${host_tools}`
2842 target_configdirs=`echo ${target_libraries} ${target_tools}`
2843 build_configdirs=`echo ${build_libs} ${build_tools}`
2844
2845
2846
2847 ################################################################################
2848
2849 srcname="gnu development package"
2850
2851 # This gets set non-empty for some net releases of packages.
2852 appdirs=""
2853
2854 # Define is_cross_compiler to save on calls to 'test'.
2855 is_cross_compiler=
2856 if test x"${host}" = x"${target}" ; then
2857 is_cross_compiler=no
2858 else
2859 is_cross_compiler=yes
2860 fi
2861
2862 # Find the build and target subdir names.
2863
2864 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2865 # have matching libraries, they should use host libraries: Makefile.tpl
2866 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2867 # However, they still use the build modules, because the corresponding
2868 # host modules (e.g. bison) are only built for the host when bootstrap
2869 # finishes. So:
2870 # - build_subdir is where we find build modules, and never changes.
2871 # - build_libsubdir is where we find build libraries, and can be overridden.
2872
2873 # Prefix 'build-' so this never conflicts with target_subdir.
2874 build_subdir="build-${build_noncanonical}"
2875
2876 # Check whether --with-build-libsubdir was given.
2877 if test "${with_build_libsubdir+set}" = set; then :
2878 withval=$with_build_libsubdir; build_libsubdir="$withval"
2879 else
2880 build_libsubdir="$build_subdir"
2881 fi
2882
2883 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2884 if ( test $srcdir = . && test -d gcc ) \
2885 || test -d $srcdir/../host-${host_noncanonical}; then
2886 host_subdir="host-${host_noncanonical}"
2887 else
2888 host_subdir=.
2889 fi
2890 # No prefix.
2891 target_subdir=${target_noncanonical}
2892
2893 # Be sure to cover against remnants of an in-tree build.
2894 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2895 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2896 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2897 fi
2898
2899 # Skipdirs are removed silently.
2900 skipdirs=
2901 # Noconfigdirs are removed loudly.
2902 noconfigdirs=""
2903
2904 use_gnu_ld=
2905 # Make sure we don't let GNU ld be added if we didn't want it.
2906 if test x$with_gnu_ld = xno ; then
2907 use_gnu_ld=no
2908 noconfigdirs="$noconfigdirs ld gold"
2909 fi
2910
2911 use_gnu_as=
2912 # Make sure we don't let GNU as be added if we didn't want it.
2913 if test x$with_gnu_as = xno ; then
2914 use_gnu_as=no
2915 noconfigdirs="$noconfigdirs gas"
2916 fi
2917
2918 use_included_zlib=
2919
2920 # Check whether --with-system-zlib was given.
2921 if test "${with_system_zlib+set}" = set; then :
2922 withval=$with_system_zlib;
2923 fi
2924
2925 # Make sure we don't let ZLIB be added if we didn't want it.
2926 if test x$with_system_zlib = xyes ; then
2927 use_included_zlib=no
2928 noconfigdirs="$noconfigdirs zlib"
2929 fi
2930
2931
2932 # Check whether --with-zstd was given.
2933 if test "${with_zstd+set}" = set; then :
2934 withval=$with_zstd;
2935 fi
2936
2937
2938 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2939 # is provided.
2940 if test x$with_system_readline = xyes ; then
2941 noconfigdirs="$noconfigdirs readline"
2942 fi
2943
2944 # some tools are so dependent upon X11 that if we're not building with X,
2945 # it's not even worth trying to configure, much less build, that tool.
2946
2947 case ${with_x} in
2948 yes | "") ;; # the default value for this tree is that X11 is available
2949 no)
2950 skipdirs="${skipdirs} tk itcl libgui"
2951 # We won't be able to build gdbtk without X.
2952 enable_gdbtk=no
2953 ;;
2954 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2955 esac
2956
2957 # Some are only suitable for cross toolchains.
2958 # Remove these if host=target.
2959 cross_only="target-libgloss target-newlib target-opcodes"
2960
2961 case $is_cross_compiler in
2962 no) skipdirs="${skipdirs} ${cross_only}" ;;
2963 esac
2964
2965 # If both --with-headers and --with-libs are specified, default to
2966 # --without-newlib.
2967 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2968 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2969 if test x"${with_newlib}" = x ; then
2970 with_newlib=no
2971 fi
2972 fi
2973
2974 # Recognize --with-newlib/--without-newlib.
2975 case ${with_newlib} in
2976 no) skipdirs="${skipdirs} target-newlib" ;;
2977 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2978 esac
2979
2980 # Check whether --enable-as-accelerator-for was given.
2981 if test "${enable_as_accelerator_for+set}" = set; then :
2982 enableval=$enable_as_accelerator_for;
2983 fi
2984
2985
2986 # Check whether --enable-offload-targets was given.
2987 if test "${enable_offload_targets+set}" = set; then :
2988 enableval=$enable_offload_targets;
2989 if test x"$enable_offload_targets" = x; then
2990 as_fn_error $? "no offload targets specified" "$LINENO" 5
2991 fi
2992
2993 else
2994 enable_offload_targets=
2995 fi
2996
2997
2998 # Handle --enable-gold, --enable-ld.
2999 # --disable-gold [--enable-ld]
3000 # Build only ld. Default option.
3001 # --enable-gold [--enable-ld]
3002 # Build both gold and ld. Install gold as "ld.gold", install ld
3003 # as "ld.bfd" and "ld".
3004 # --enable-gold=default [--enable-ld]
3005 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3006 # install ld as "ld.bfd".
3007 # --enable-gold[=default] --disable-ld
3008 # Build only gold, which is then installed as both "ld.gold" and "ld".
3009 # --enable-gold --enable-ld=default
3010 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3011 # and ld.bfd).
3012 # In other words, ld is default
3013 # --enable-gold=default --enable-ld=default
3014 # Error.
3015
3016 default_ld=
3017 # Check whether --enable-gold was given.
3018 if test "${enable_gold+set}" = set; then :
3019 enableval=$enable_gold; ENABLE_GOLD=$enableval
3020 else
3021 ENABLE_GOLD=no
3022 fi
3023
3024 case "${ENABLE_GOLD}" in
3025 yes|default)
3026 # Check for ELF target.
3027 is_elf=no
3028 case "${target}" in
3029 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3030 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3031 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3032 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3033 case "${target}" in
3034 *-*-linux*aout* | *-*-linux*oldld*)
3035 ;;
3036 *)
3037 is_elf=yes
3038 ;;
3039 esac
3040 esac
3041
3042 if test "$is_elf" = "yes"; then
3043 # Check for target supported by gold.
3044 case "${target}" in
3045 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3046 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3047 configdirs="$configdirs gold"
3048 if test x${ENABLE_GOLD} = xdefault; then
3049 default_ld=gold
3050 fi
3051 ENABLE_GOLD=yes
3052 ;;
3053 esac
3054 fi
3055 ;;
3056 no)
3057 ;;
3058 *)
3059 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3060 ;;
3061 esac
3062
3063 # Check whether --enable-ld was given.
3064 if test "${enable_ld+set}" = set; then :
3065 enableval=$enable_ld; ENABLE_LD=$enableval
3066 else
3067 ENABLE_LD=yes
3068 fi
3069
3070
3071 case "${ENABLE_LD}" in
3072 default)
3073 if test x${default_ld} != x; then
3074 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3075 fi
3076 ;;
3077 yes)
3078 ;;
3079 no)
3080 if test x${ENABLE_GOLD} != xyes; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3082 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3083 fi
3084 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3085 ;;
3086 *)
3087 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3088 ;;
3089 esac
3090
3091 # Check whether --enable-gprofng was given.
3092 if test "${enable_gprofng+set}" = set; then :
3093 enableval=$enable_gprofng; enable_gprofng=$enableval
3094 else
3095 enable_gprofng=yes
3096 fi
3097
3098 if test "$enable_gprofng" = "yes"; then
3099 case "${target}" in
3100 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3101 configdirs="$configdirs gprofng"
3102 ;;
3103 esac
3104 fi
3105
3106
3107 # PR gas/19109
3108 # Decide the default method for compressing debug sections.
3109 # Provide a configure time option to override our default.
3110 # Check whether --enable-compressed_debug_sections was given.
3111 if test "${enable_compressed_debug_sections+set}" = set; then :
3112 enableval=$enable_compressed_debug_sections;
3113 if test x"$enable_compressed_debug_sections" = xyes; then
3114 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3115 fi
3116
3117 else
3118 enable_compressed_debug_sections=
3119 fi
3120
3121
3122 # Configure extra directories which are host specific
3123
3124 case "${host}" in
3125 *-cygwin*)
3126 configdirs="$configdirs libtermcap" ;;
3127 esac
3128
3129 # A target can indicate whether a language isn't supported for some reason.
3130 # Only spaces may be used in this macro; not newlines or tabs.
3131 unsupported_languages=
3132
3133 # Remove more programs from consideration, based on the host or
3134 # target this usually means that a port of the program doesn't
3135 # exist yet.
3136
3137 case "${host}" in
3138 i[3456789]86-*-msdosdjgpp*)
3139 noconfigdirs="$noconfigdirs tcl tk itcl"
3140 ;;
3141 esac
3142
3143 # Default to --disable-year2038 until we can handle differences between
3144 # projects that use gnulib (which understands year 2038) and projects that
3145 # do not (like BFD).
3146 # Check whether --enable-year2038 was given.
3147 if test "${enable_year2038+set}" = set; then :
3148 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3149 else
3150 ENABLE_YEAR2038=no
3151 fi
3152
3153 enable_year2038=
3154 if test "${ENABLE_YEAR2038}" = "no" ; then
3155 enable_year2038=no
3156 fi
3157
3158 # Check whether --enable-libquadmath was given.
3159 if test "${enable_libquadmath+set}" = set; then :
3160 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3161 else
3162 ENABLE_LIBQUADMATH=yes
3163 fi
3164
3165 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3166 noconfigdirs="$noconfigdirs target-libquadmath"
3167 fi
3168
3169
3170 # Check whether --enable-libquadmath-support was given.
3171 if test "${enable_libquadmath_support+set}" = set; then :
3172 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3173 else
3174 ENABLE_LIBQUADMATH_SUPPORT=yes
3175 fi
3176
3177 enable_libquadmath_support=
3178 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3179 enable_libquadmath_support=no
3180 fi
3181
3182
3183 # Check whether --enable-libada was given.
3184 if test "${enable_libada+set}" = set; then :
3185 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3186 else
3187 ENABLE_LIBADA=yes
3188 fi
3189
3190 if test "${ENABLE_LIBADA}" != "yes" ; then
3191 noconfigdirs="$noconfigdirs gnattools"
3192 fi
3193
3194 # Check whether --enable-libssp was given.
3195 if test "${enable_libssp+set}" = set; then :
3196 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3197 else
3198 ENABLE_LIBSSP=yes
3199 fi
3200
3201
3202 # Check whether --enable-libstdcxx was given.
3203 if test "${enable_libstdcxx+set}" = set; then :
3204 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3205 else
3206 ENABLE_LIBSTDCXX=default
3207 fi
3208
3209 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3210 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3211 fi
3212
3213 # If this is accelerator compiler and its target is intelmic we enable
3214 # target liboffloadmic by default. If this is compiler with offloading
3215 # for intelmic we enable host liboffloadmic by default. Otherwise
3216 # liboffloadmic is disabled by default.
3217 # Check whether --enable-liboffloadmic was given.
3218 if test "${enable_liboffloadmic+set}" = set; then :
3219 enableval=$enable_liboffloadmic; case "$enableval" in
3220 no | host | target)
3221 enable_liboffloadmic=$enableval ;;
3222 *)
3223 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3224 esac
3225 else
3226 if test x"$enable_as_accelerator_for" != x; then
3227 case "${target}" in
3228 *-intelmic-* | *-intelmicemul-*)
3229 enable_liboffloadmic=target
3230 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3231 ;;
3232 *)
3233 enable_liboffloadmic=no
3234 ;;
3235 esac
3236 else
3237 case "${enable_offload_targets}" in
3238 *-intelmic-* | *-intelmicemul-*)
3239 enable_liboffloadmic=host
3240 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3241 ;;
3242 *)
3243 enable_liboffloadmic=no
3244 ;;
3245 esac
3246 fi
3247 fi
3248
3249
3250
3251 # Enable libgomp by default on hosted POSIX systems, and a few others.
3252 if test x$enable_libgomp = x ; then
3253 case "${target}" in
3254 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3255 ;;
3256 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3257 ;;
3258 *-*-solaris2* | *-*-hpux11*)
3259 ;;
3260 *-*-darwin* | *-*-aix*)
3261 ;;
3262 nvptx*-*-*)
3263 ;;
3264 *)
3265 noconfigdirs="$noconfigdirs target-libgomp"
3266 ;;
3267 esac
3268 fi
3269
3270 # Disable libatomic on unsupported systems.
3271 if test -d ${srcdir}/libatomic; then
3272 if test x$enable_libatomic = x; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3274 $as_echo_n "checking for libatomic support... " >&6; }
3275 if (srcdir=${srcdir}/libatomic; \
3276 . ${srcdir}/configure.tgt; \
3277 test -n "$UNSUPPORTED")
3278 then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3281 noconfigdirs="$noconfigdirs target-libatomic"
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284 $as_echo "yes" >&6; }
3285 fi
3286 fi
3287 fi
3288
3289 # Disable liboffloadmic on unsupported systems.
3290 if test -d ${srcdir}/liboffloadmic; then
3291 if test x$enable_liboffloadmic != xno; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3293 $as_echo_n "checking for liboffloadmic support... " >&6; }
3294 if (srcdir=${srcdir}/liboffloadmic; \
3295 . ${srcdir}/configure.tgt; \
3296 test -n "$UNSUPPORTED")
3297 then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 noconfigdirs="$noconfigdirs target-liboffloadmic"
3301 else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303 $as_echo "yes" >&6; }
3304 fi
3305 fi
3306 fi
3307
3308 # Disable libitm on unsupported systems.
3309 if test -d ${srcdir}/libitm; then
3310 if test x$enable_libitm = x; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3312 $as_echo_n "checking for libitm support... " >&6; }
3313 if (srcdir=${srcdir}/libitm; \
3314 . ${srcdir}/configure.tgt; \
3315 test -n "$UNSUPPORTED")
3316 then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 noconfigdirs="$noconfigdirs target-libitm"
3320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322 $as_echo "yes" >&6; }
3323 fi
3324 fi
3325 fi
3326
3327 # Disable libsanitizer on unsupported systems.
3328 if test -d ${srcdir}/libsanitizer; then
3329 if test x$enable_libsanitizer = x; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3331 $as_echo_n "checking for libsanitizer support... " >&6; }
3332 if (srcdir=${srcdir}/libsanitizer; \
3333 . ${srcdir}/configure.tgt; \
3334 test -n "$UNSUPPORTED")
3335 then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 noconfigdirs="$noconfigdirs target-libsanitizer"
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3342 fi
3343 fi
3344 fi
3345
3346 # Disable libvtv on unsupported systems.
3347 if test -d ${srcdir}/libvtv; then
3348 if test x$enable_libvtv = x; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3350 $as_echo_n "checking for libvtv support... " >&6; }
3351 if (srcdir=${srcdir}/libvtv; \
3352 . ${srcdir}/configure.tgt; \
3353 test "$VTV_SUPPORTED" != "yes")
3354 then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3357 noconfigdirs="$noconfigdirs target-libvtv"
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360 $as_echo "yes" >&6; }
3361 fi
3362 fi
3363 fi
3364
3365
3366 # Disable libhsail-rt on unsupported systems.
3367 if test -d ${srcdir}/libhsail-rt; then
3368 if test x$enable_libhsail_rt = x; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3370 $as_echo_n "checking for libhsail-rt support... " >&6; }
3371 if (srcdir=${srcdir}/libhsail-rt; \
3372 . ${srcdir}/configure.tgt; \
3373 test -n "$UNSUPPORTED")
3374 then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3377 unsupported_languages="$unsupported_languages brig"
3378 # This implicitly disables also target-libhsail-rt as it won't
3379 # get added to the build without BRIG FE.
3380 else
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3382 $as_echo "yes" >&6; }
3383 fi
3384 fi
3385 fi
3386
3387
3388 # Disable libquadmath for some systems.
3389 case "${target}" in
3390 avr-*-*)
3391 noconfigdirs="$noconfigdirs target-libquadmath"
3392 ;;
3393 # libquadmath is unused on AIX and libquadmath build process use of
3394 # LD_LIBRARY_PATH can break AIX bootstrap.
3395 powerpc-*-aix* | rs6000-*-aix*)
3396 noconfigdirs="$noconfigdirs target-libquadmath"
3397 ;;
3398 esac
3399
3400 # Disable libssp for some systems.
3401 case "${target}" in
3402 avr-*-*)
3403 # No hosted I/O support.
3404 noconfigdirs="$noconfigdirs target-libssp"
3405 ;;
3406 powerpc-*-aix* | rs6000-*-aix*)
3407 noconfigdirs="$noconfigdirs target-libssp"
3408 ;;
3409 rl78-*-*)
3410 # libssp uses a misaligned load to trigger a fault, but the RL78
3411 # doesn't fault for those - instead, it gives a build-time error
3412 # for explicit misaligned loads.
3413 noconfigdirs="$noconfigdirs target-libssp"
3414 ;;
3415 visium-*-*)
3416 # No hosted I/O support.
3417 noconfigdirs="$noconfigdirs target-libssp"
3418 ;;
3419 esac
3420
3421 # Disable libstdc++-v3 for some systems.
3422 # Allow user to override this if they pass --enable-libstdc++-v3
3423 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3424 case "${target}" in
3425 *-*-vxworks*)
3426 # VxWorks uses the Dinkumware C++ library.
3427 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3428 ;;
3429 arm*-wince-pe*)
3430 # the C++ libraries don't build on top of CE's C libraries
3431 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3432 ;;
3433 avr-*-*)
3434 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3435 ;;
3436 ft32-*-*)
3437 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3438 ;;
3439 esac
3440 fi
3441
3442 # Disable Fortran for some systems.
3443 case "${target}" in
3444 mmix-*-*)
3445 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3446 unsupported_languages="$unsupported_languages fortran"
3447 ;;
3448 esac
3449
3450 # Disable libffi for some systems.
3451 case "${target}" in
3452 powerpc-*-darwin*)
3453 ;;
3454 i[3456789]86-*-darwin*)
3455 ;;
3456 x86_64-*-darwin[912]*)
3457 ;;
3458 *-*-darwin*)
3459 noconfigdirs="$noconfigdirs target-libffi"
3460 ;;
3461 *-*-netware*)
3462 noconfigdirs="$noconfigdirs target-libffi"
3463 ;;
3464 *-*-phoenix*)
3465 noconfigdirs="$noconfigdirs target-libffi"
3466 ;;
3467 *-*-rtems*)
3468 noconfigdirs="$noconfigdirs target-libffi"
3469 ;;
3470 *-*-tpf*)
3471 noconfigdirs="$noconfigdirs target-libffi"
3472 ;;
3473 *-*-uclinux*)
3474 noconfigdirs="$noconfigdirs target-libffi"
3475 ;;
3476 *-*-vxworks*)
3477 noconfigdirs="$noconfigdirs target-libffi"
3478 ;;
3479 aarch64*-*-freebsd*)
3480 noconfigdirs="$noconfigdirs target-libffi"
3481 ;;
3482 alpha*-*-*vms*)
3483 noconfigdirs="$noconfigdirs target-libffi"
3484 ;;
3485 arm*-*-freebsd*)
3486 noconfigdirs="$noconfigdirs target-libffi"
3487 ;;
3488 arm-wince-pe)
3489 noconfigdirs="$noconfigdirs target-libffi"
3490 ;;
3491 cris-*-* | crisv32-*-*)
3492 case "${target}" in
3493 *-*-linux*)
3494 ;;
3495 *) # See PR46792 regarding target-libffi.
3496 noconfigdirs="$noconfigdirs target-libffi";;
3497 esac
3498 ;;
3499 hppa*64*-*-hpux*)
3500 noconfigdirs="$noconfigdirs target-libffi"
3501 ;;
3502 hppa*-hp-hpux11*)
3503 ;;
3504 hppa*-*-hpux*)
3505 noconfigdirs="$noconfigdirs target-libffi"
3506 ;;
3507 ia64*-*-*vms*)
3508 noconfigdirs="$noconfigdirs target-libffi"
3509 ;;
3510 i[3456789]86-w64-mingw*)
3511 noconfigdirs="$noconfigdirs target-libffi"
3512 ;;
3513 i[3456789]86-*-mingw*)
3514 noconfigdirs="$noconfigdirs target-libffi"
3515 ;;
3516 x86_64-*-mingw*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3518 ;;
3519 mmix-*-*)
3520 noconfigdirs="$noconfigdirs target-libffi"
3521 ;;
3522 powerpc-*-aix*)
3523 ;;
3524 rs6000-*-aix*)
3525 ;;
3526 ft32-*-*)
3527 noconfigdirs="$noconfigdirs target-libffi"
3528 ;;
3529 *-*-lynxos*)
3530 noconfigdirs="$noconfigdirs target-libffi"
3531 ;;
3532 esac
3533
3534 # Disable the go frontend on systems where it is known to not work. Please keep
3535 # this in sync with contrib/config-list.mk.
3536 case "${target}" in
3537 *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3538 unsupported_languages="$unsupported_languages go"
3539 ;;
3540 esac
3541
3542 # Only allow gdbserver on some systems.
3543 if test -d ${srcdir}/gdbserver; then
3544 if test x$enable_gdbserver = x; then
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3546 $as_echo_n "checking for gdbserver support... " >&6; }
3547 if (srcdir=${srcdir}/gdbserver; \
3548 . ${srcdir}/configure.srv; \
3549 test -n "$UNSUPPORTED")
3550 then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 noconfigdirs="$noconfigdirs gdbserver"
3554 else
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3556 $as_echo "yes" >&6; }
3557 fi
3558 fi
3559 fi
3560
3561 # Disable libgo for some systems where it is known to not work.
3562 # For testing, you can easily override this with --enable-libgo.
3563 if test x$enable_libgo = x; then
3564 case "${target}" in
3565 *-*-darwin*)
3566 # PR 46986
3567 noconfigdirs="$noconfigdirs target-libgo"
3568 ;;
3569 *-*-cygwin* | *-*-mingw*)
3570 noconfigdirs="$noconfigdirs target-libgo"
3571 ;;
3572 esac
3573 fi
3574
3575 # Default libgloss CPU subdirectory.
3576 libgloss_dir="$target_cpu"
3577
3578 case "${target}" in
3579 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3580 libgloss_dir=wince
3581 ;;
3582 aarch64*-*-* )
3583 libgloss_dir=aarch64
3584 ;;
3585 arm*-*-*)
3586 libgloss_dir=arm
3587 ;;
3588 cris-*-* | crisv32-*-*)
3589 libgloss_dir=cris
3590 ;;
3591 hppa*-*-*)
3592 libgloss_dir=pa
3593 ;;
3594 i[3456789]86-*-*)
3595 libgloss_dir=i386
3596 ;;
3597 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3598 libgloss_dir=m68hc11
3599 ;;
3600 m68*-*-* | fido-*-*)
3601 libgloss_dir=m68k
3602 ;;
3603 mips*-*-*)
3604 libgloss_dir=mips
3605 ;;
3606 powerpc*-*-*)
3607 libgloss_dir=rs6000
3608 ;;
3609 sparc*-*-*)
3610 libgloss_dir=sparc
3611 ;;
3612 esac
3613
3614 # Disable newlib and libgloss for various target OSes.
3615 case "${target}" in
3616 alpha*-dec-osf*)
3617 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3618 ;;
3619 i[3456789]86-*-linux*)
3620 # This section makes it possible to build newlib natively on linux.
3621 # If we are using a cross compiler then don't configure newlib.
3622 if test x${is_cross_compiler} != xno ; then
3623 noconfigdirs="$noconfigdirs target-newlib"
3624 fi
3625 noconfigdirs="$noconfigdirs target-libgloss"
3626 # If we are not using a cross compiler, do configure newlib.
3627 # Note however, that newlib will only be configured in this situation
3628 # if the --with-newlib option has been given, because otherwise
3629 # 'target-newlib' will appear in skipdirs.
3630 ;;
3631 i[3456789]86-*-rdos*)
3632 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3633 ;;
3634 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3635 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3636 ;;
3637 sparc-*-sunos4*)
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 ;;
3640 *-*-aix*)
3641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3642 ;;
3643 *-*-beos*)
3644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3645 ;;
3646 *-*-chorusos)
3647 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3648 ;;
3649 *-*-dragonfly*)
3650 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651 ;;
3652 *-*-freebsd*)
3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3654 ;;
3655 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3657 ;;
3658 *-*-lynxos*)
3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3660 ;;
3661 *-*-mingw*)
3662 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3663 ;;
3664 *-*-netbsd*)
3665 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3666 ;;
3667 *-*-netware*)
3668 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3669 ;;
3670 *-*-tpf*)
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672 ;;
3673 *-*-uclinux*)
3674 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3675 ;;
3676 *-*-vxworks*)
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678 ;;
3679 esac
3680
3681 case "${target}" in
3682 *-*-chorusos)
3683 ;;
3684 aarch64-*-darwin*)
3685 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3686 noconfigdirs="$noconfigdirs sim target-rda"
3687 ;;
3688 arm-*-darwin*)
3689 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3690 noconfigdirs="$noconfigdirs sim target-rda"
3691 ;;
3692 powerpc-*-darwin*)
3693 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3694 noconfigdirs="$noconfigdirs sim target-rda"
3695 ;;
3696 i[3456789]86-*-darwin*)
3697 noconfigdirs="$noconfigdirs ld gprof"
3698 noconfigdirs="$noconfigdirs sim target-rda"
3699 ;;
3700 x86_64-*-darwin[912]*)
3701 noconfigdirs="$noconfigdirs ld gas gprof"
3702 noconfigdirs="$noconfigdirs sim target-rda"
3703 ;;
3704 *-*-darwin*)
3705 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3706 noconfigdirs="$noconfigdirs sim target-rda"
3707 ;;
3708 *-*-dragonfly*)
3709 ;;
3710 *-*-freebsd*)
3711 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3712 && test -f /usr/local/include/gmp.h; then
3713 with_gmp=/usr/local
3714 fi
3715 ;;
3716 *-*-kaos*)
3717 # Remove unsupported stuff on all kaOS configurations.
3718 noconfigdirs="$noconfigdirs target-libgloss"
3719 ;;
3720 *-*-netbsd*)
3721 ;;
3722 *-*-netware*)
3723 ;;
3724 *-*-phoenix*)
3725 noconfigdirs="$noconfigdirs target-libgloss"
3726 ;;
3727 *-*-rtems*)
3728 noconfigdirs="$noconfigdirs target-libgloss"
3729 ;;
3730 # The tpf target doesn't support gdb yet.
3731 *-*-tpf*)
3732 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3733 ;;
3734 *-*-uclinux*)
3735 noconfigdirs="$noconfigdirs target-rda"
3736 ;;
3737 *-*-vxworks*)
3738 ;;
3739 alpha*-dec-osf*)
3740 # ld works, but does not support shared libraries.
3741 # gas doesn't generate exception information.
3742 noconfigdirs="$noconfigdirs gas ld"
3743 ;;
3744 alpha*-*-*vms*)
3745 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3746 ;;
3747 alpha*-*-*)
3748 # newlib is not 64 bit ready
3749 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3750 ;;
3751 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3752 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3753 ;;
3754 arc*-*-*)
3755 noconfigdirs="$noconfigdirs sim"
3756 ;;
3757 arm-*-pe*)
3758 noconfigdirs="$noconfigdirs target-libgloss"
3759 ;;
3760 arm-*-riscix*)
3761 noconfigdirs="$noconfigdirs ld target-libgloss"
3762 ;;
3763 avr-*-*)
3764 if test x${with_avrlibc} != xno; then
3765 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3766 fi
3767 ;;
3768 c4x-*-* | tic4x-*-*)
3769 noconfigdirs="$noconfigdirs target-libgloss"
3770 ;;
3771 tic54x-*-*)
3772 noconfigdirs="$noconfigdirs target-libgloss gdb"
3773 ;;
3774 d10v-*-*)
3775 noconfigdirs="$noconfigdirs target-libgloss"
3776 ;;
3777 d30v-*-*)
3778 noconfigdirs="$noconfigdirs gdb"
3779 ;;
3780 fr30-*-elf*)
3781 noconfigdirs="$noconfigdirs gdb"
3782 ;;
3783 ft32-*-*)
3784 noconfigdirs="$noconfigdirs target-rda gprof"
3785 ;;
3786 moxie-*-*)
3787 noconfigdirs="$noconfigdirs"
3788 ;;
3789 h8300*-*-*)
3790 noconfigdirs="$noconfigdirs target-libgloss"
3791 ;;
3792 h8500-*-*)
3793 noconfigdirs="$noconfigdirs target-libgloss"
3794 ;;
3795 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3796 ;;
3797 hppa*64*-*-hpux*)
3798 noconfigdirs="$noconfigdirs gdb"
3799 ;;
3800 hppa*-*-hpux11*)
3801 noconfigdirs="$noconfigdirs gdb ld"
3802 ;;
3803 hppa*64*-*-linux*)
3804 ;;
3805 hppa*-*-linux*)
3806 ;;
3807 hppa*-*-*elf* | \
3808 hppa*-*-lites* | \
3809 hppa*-*-openbsd* | \
3810 hppa*64*-*-*)
3811 ;;
3812 hppa*-*-pro*)
3813 ;;
3814 hppa*-*-*)
3815 noconfigdirs="$noconfigdirs ld"
3816 ;;
3817 i960-*-*)
3818 noconfigdirs="$noconfigdirs gdb"
3819 ;;
3820 ia64*-*-elf*)
3821 # No gdb support yet.
3822 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3823 ;;
3824 ia64*-**-hpux*)
3825 # No ld support yet.
3826 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3827 ;;
3828 ia64*-*-*vms*)
3829 # No ld support yet.
3830 noconfigdirs="$noconfigdirs libgui itcl ld"
3831 ;;
3832 i[3456789]86-w64-mingw*)
3833 ;;
3834 i[3456789]86-*-mingw*)
3835 target_configdirs="$target_configdirs target-winsup"
3836 ;;
3837 *-*-cygwin*)
3838 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3839 noconfigdirs="$noconfigdirs target-libgloss"
3840 # always build newlib if winsup directory is present.
3841 if test -d "$srcdir/winsup/cygwin"; then
3842 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3843 elif test -d "$srcdir/newlib"; then
3844 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3845 fi
3846 ;;
3847 i[3456789]86-*-pe)
3848 noconfigdirs="$noconfigdirs target-libgloss"
3849 ;;
3850 i[3456789]86-*-sco3.2v5*)
3851 # The linker does not yet know about weak symbols in COFF,
3852 # and is not configured to handle mixed ELF and COFF.
3853 noconfigdirs="$noconfigdirs ld target-libgloss"
3854 ;;
3855 i[3456789]86-*-sco*)
3856 noconfigdirs="$noconfigdirs gprof target-libgloss"
3857 ;;
3858 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3859 noconfigdirs="$noconfigdirs target-libgloss"
3860 ;;
3861 i[3456789]86-*-sysv4*)
3862 noconfigdirs="$noconfigdirs target-libgloss"
3863 ;;
3864 i[3456789]86-*-beos*)
3865 noconfigdirs="$noconfigdirs gdb"
3866 ;;
3867 i[3456789]86-*-rdos*)
3868 noconfigdirs="$noconfigdirs gdb"
3869 ;;
3870 mmix-*-*)
3871 noconfigdirs="$noconfigdirs gdb"
3872 ;;
3873 mt-*-*)
3874 noconfigdirs="$noconfigdirs sim"
3875 ;;
3876 nfp-*-*)
3877 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3878 noconfigdirs="$noconfigdirs $target_libraries"
3879 ;;
3880 pdp11-*-*)
3881 noconfigdirs="$noconfigdirs gdb gprof"
3882 ;;
3883 powerpc-*-aix*)
3884 # copied from rs6000-*-* entry
3885 noconfigdirs="$noconfigdirs gprof"
3886 ;;
3887 powerpc*-*-winnt* | powerpc*-*-pe*)
3888 target_configdirs="$target_configdirs target-winsup"
3889 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3890 # always build newlib.
3891 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3892 ;;
3893 # This is temporary until we can link against shared libraries
3894 powerpcle-*-solaris*)
3895 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3896 ;;
3897 powerpc-*-beos*)
3898 noconfigdirs="$noconfigdirs gdb"
3899 ;;
3900 rs6000-*-lynxos*)
3901 noconfigdirs="$noconfigdirs gprof"
3902 ;;
3903 rs6000-*-aix*)
3904 noconfigdirs="$noconfigdirs gprof"
3905 ;;
3906 rs6000-*-*)
3907 noconfigdirs="$noconfigdirs gprof"
3908 ;;
3909 m68k-apollo-*)
3910 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3911 ;;
3912 microblaze*)
3913 noconfigdirs="$noconfigdirs gprof"
3914 ;;
3915 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3916 if test x$with_newlib = xyes; then
3917 noconfigdirs="$noconfigdirs gprof"
3918 fi
3919 ;;
3920 mips*-*-irix5*)
3921 noconfigdirs="$noconfigdirs gprof target-libgloss"
3922 ;;
3923 mips*-*-irix6*)
3924 noconfigdirs="$noconfigdirs gprof target-libgloss"
3925 ;;
3926 mips*-*-bsd*)
3927 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3928 ;;
3929 mips*-*-linux*)
3930 ;;
3931 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3932 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3933 noconfigdirs="$noconfigdirs ld gas gprof"
3934 ;;
3935 mips*-*-*)
3936 noconfigdirs="$noconfigdirs gprof"
3937 ;;
3938 nvptx*-*-*)
3939 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3940 ;;
3941 sh-*-*)
3942 case "${target}" in
3943 sh*-*-elf)
3944 ;;
3945 *)
3946 noconfigdirs="$noconfigdirs target-libgloss" ;;
3947 esac
3948 ;;
3949 sparc-*-sunos4*)
3950 if test x${is_cross_compiler} = xno ; then
3951 use_gnu_ld=no
3952 fi
3953 ;;
3954 tic6x-*-*)
3955 noconfigdirs="$noconfigdirs sim"
3956 ;;
3957 tilepro*-*-* | tilegx*-*-*)
3958 noconfigdirs="$noconfigdirs sim"
3959 ;;
3960 v810-*-*)
3961 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3962 ;;
3963 vax-*-*)
3964 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3965 ;;
3966 wasm32-*-*)
3967 noconfigdirs="$noconfigdirs ld"
3968 ;;
3969 esac
3970
3971 # If we aren't building newlib, then don't build libgloss, since libgloss
3972 # depends upon some newlib header files.
3973 case "${noconfigdirs}" in
3974 *target-libgloss*) ;;
3975 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3976 esac
3977
3978 # Work in distributions that contain no compiler tools, like Autoconf.
3979 host_makefile_frag=/dev/null
3980 if test -d ${srcdir}/config ; then
3981 case "${host}" in
3982 i[3456789]86-*-msdosdjgpp*)
3983 host_makefile_frag="config/mh-djgpp"
3984 ;;
3985 *-cygwin*)
3986
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3988 $as_echo_n "checking to see if cat works as expected... " >&6; }
3989 echo a >cygwin-cat-check
3990 if test `cat cygwin-cat-check` = a ; then
3991 rm cygwin-cat-check
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3993 $as_echo "yes" >&6; }
3994 else
3995 rm cygwin-cat-check
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
3998 as_fn_error $? "The cat command does not ignore carriage return characters.
3999 Please either mount the build directory in binary mode or run the following
4000 commands before running any configure script:
4001 set -o igncr
4002 export SHELLOPTS
4003 " "$LINENO" 5
4004 fi
4005
4006 host_makefile_frag="config/mh-cygwin"
4007 ;;
4008 *-mingw*)
4009 host_makefile_frag="config/mh-mingw"
4010 ;;
4011 alpha*-linux*)
4012 host_makefile_frag="config/mh-alpha-linux"
4013 ;;
4014 hppa*-hp-hpux10*)
4015 host_makefile_frag="config/mh-pa-hpux10"
4016 ;;
4017 hppa*-hp-hpux*)
4018 host_makefile_frag="config/mh-pa"
4019 ;;
4020 hppa*-*)
4021 host_makefile_frag="config/mh-pa"
4022 ;;
4023 *-*-darwin*)
4024 host_makefile_frag="config/mh-darwin"
4025 ;;
4026 powerpc-*-aix*)
4027 host_makefile_frag="config/mh-ppc-aix"
4028 ;;
4029 rs6000-*-aix*)
4030 host_makefile_frag="config/mh-ppc-aix"
4031 ;;
4032 esac
4033 fi
4034
4035 if test "${build}" != "${host}" ; then
4036 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4037 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4038 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4039 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4040 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4041 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4042 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4043 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4044 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4045 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4046 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4047 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4048 else
4049 AR_FOR_BUILD="\$(AR)"
4050 AS_FOR_BUILD="\$(AS)"
4051 CC_FOR_BUILD="\$(CC)"
4052 CXX_FOR_BUILD="\$(CXX)"
4053 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4054 GOC_FOR_BUILD="\$(GOC)"
4055 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4056 LD_FOR_BUILD="\$(LD)"
4057 NM_FOR_BUILD="\$(NM)"
4058 RANLIB_FOR_BUILD="\$(RANLIB)"
4059 WINDRES_FOR_BUILD="\$(WINDRES)"
4060 WINDMC_FOR_BUILD="\$(WINDMC)"
4061 fi
4062
4063 ac_ext=c
4064 ac_cpp='$CPP $CPPFLAGS'
4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068 if test -n "$ac_tool_prefix"; then
4069 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4070 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072 $as_echo_n "checking for $ac_word... " >&6; }
4073 if ${ac_cv_prog_CC+:} false; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 if test -n "$CC"; then
4077 ac_cv_prog_CC="$CC" # Let the user override the test.
4078 else
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
4081 do
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4086 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 break 2
4089 fi
4090 done
4091 done
4092 IFS=$as_save_IFS
4093
4094 fi
4095 fi
4096 CC=$ac_cv_prog_CC
4097 if test -n "$CC"; then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4099 $as_echo "$CC" >&6; }
4100 else
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 $as_echo "no" >&6; }
4103 fi
4104
4105
4106 fi
4107 if test -z "$ac_cv_prog_CC"; then
4108 ac_ct_CC=$CC
4109 # Extract the first word of "gcc", so it can be a program name with args.
4110 set dummy gcc; ac_word=$2
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 $as_echo_n "checking for $ac_word... " >&6; }
4113 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 if test -n "$ac_ct_CC"; then
4117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4121 do
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126 ac_cv_prog_ac_ct_CC="gcc"
4127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4129 fi
4130 done
4131 done
4132 IFS=$as_save_IFS
4133
4134 fi
4135 fi
4136 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4137 if test -n "$ac_ct_CC"; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4139 $as_echo "$ac_ct_CC" >&6; }
4140 else
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 $as_echo "no" >&6; }
4143 fi
4144
4145 if test "x$ac_ct_CC" = x; then
4146 CC=""
4147 else
4148 case $cross_compiling:$ac_tool_warned in
4149 yes:)
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4152 ac_tool_warned=yes ;;
4153 esac
4154 CC=$ac_ct_CC
4155 fi
4156 else
4157 CC="$ac_cv_prog_CC"
4158 fi
4159
4160 if test -z "$CC"; then
4161 if test -n "$ac_tool_prefix"; then
4162 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4163 set dummy ${ac_tool_prefix}cc; ac_word=$2
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 $as_echo_n "checking for $ac_word... " >&6; }
4166 if ${ac_cv_prog_CC+:} false; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 if test -n "$CC"; then
4170 ac_cv_prog_CC="$CC" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4174 do
4175 IFS=$as_save_IFS
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179 ac_cv_prog_CC="${ac_tool_prefix}cc"
4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 break 2
4182 fi
4183 done
4184 done
4185 IFS=$as_save_IFS
4186
4187 fi
4188 fi
4189 CC=$ac_cv_prog_CC
4190 if test -n "$CC"; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4192 $as_echo "$CC" >&6; }
4193 else
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4196 fi
4197
4198
4199 fi
4200 fi
4201 if test -z "$CC"; then
4202 # Extract the first word of "cc", so it can be a program name with args.
4203 set dummy cc; ac_word=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if ${ac_cv_prog_CC+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if test -n "$CC"; then
4210 ac_cv_prog_CC="$CC" # Let the user override the test.
4211 else
4212 ac_prog_rejected=no
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4221 ac_prog_rejected=yes
4222 continue
4223 fi
4224 ac_cv_prog_CC="cc"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 break 2
4227 fi
4228 done
4229 done
4230 IFS=$as_save_IFS
4231
4232 if test $ac_prog_rejected = yes; then
4233 # We found a bogon in the path, so make sure we never use it.
4234 set dummy $ac_cv_prog_CC
4235 shift
4236 if test $# != 0; then
4237 # We chose a different compiler from the bogus one.
4238 # However, it has the same basename, so the bogon will be chosen
4239 # first if we set CC to just the basename; use the full file name.
4240 shift
4241 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4242 fi
4243 fi
4244 fi
4245 fi
4246 CC=$ac_cv_prog_CC
4247 if test -n "$CC"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4249 $as_echo "$CC" >&6; }
4250 else
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4253 fi
4254
4255
4256 fi
4257 if test -z "$CC"; then
4258 if test -n "$ac_tool_prefix"; then
4259 for ac_prog in cl.exe
4260 do
4261 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4262 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4264 $as_echo_n "checking for $ac_word... " >&6; }
4265 if ${ac_cv_prog_CC+:} false; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 if test -n "$CC"; then
4269 ac_cv_prog_CC="$CC" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4278 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4281 fi
4282 done
4283 done
4284 IFS=$as_save_IFS
4285
4286 fi
4287 fi
4288 CC=$ac_cv_prog_CC
4289 if test -n "$CC"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4291 $as_echo "$CC" >&6; }
4292 else
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4295 fi
4296
4297
4298 test -n "$CC" && break
4299 done
4300 fi
4301 if test -z "$CC"; then
4302 ac_ct_CC=$CC
4303 for ac_prog in cl.exe
4304 do
4305 # Extract the first word of "$ac_prog", so it can be a program name with args.
4306 set dummy $ac_prog; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 if test -n "$ac_ct_CC"; then
4313 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322 ac_cv_prog_ac_ct_CC="$ac_prog"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4325 fi
4326 done
4327 done
4328 IFS=$as_save_IFS
4329
4330 fi
4331 fi
4332 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4333 if test -n "$ac_ct_CC"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4335 $as_echo "$ac_ct_CC" >&6; }
4336 else
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4339 fi
4340
4341
4342 test -n "$ac_ct_CC" && break
4343 done
4344
4345 if test "x$ac_ct_CC" = x; then
4346 CC=""
4347 else
4348 case $cross_compiling:$ac_tool_warned in
4349 yes:)
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4352 ac_tool_warned=yes ;;
4353 esac
4354 CC=$ac_ct_CC
4355 fi
4356 fi
4357
4358 fi
4359
4360
4361 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4363 as_fn_error $? "no acceptable C compiler found in \$PATH
4364 See \`config.log' for more details" "$LINENO" 5; }
4365
4366 # Provide some information about the compiler.
4367 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4368 set X $ac_compile
4369 ac_compiler=$2
4370 for ac_option in --version -v -V -qversion; do
4371 { { ac_try="$ac_compiler $ac_option >&5"
4372 case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375 esac
4376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4377 $as_echo "$ac_try_echo"; } >&5
4378 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4379 ac_status=$?
4380 if test -s conftest.err; then
4381 sed '10a\
4382 ... rest of stderr output deleted ...
4383 10q' conftest.err >conftest.er1
4384 cat conftest.er1 >&5
4385 fi
4386 rm -f conftest.er1 conftest.err
4387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388 test $ac_status = 0; }
4389 done
4390
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4393
4394 int
4395 main ()
4396 {
4397
4398 ;
4399 return 0;
4400 }
4401 _ACEOF
4402 ac_clean_files_save=$ac_clean_files
4403 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4404 # Try to create an executable without -o first, disregard a.out.
4405 # It will help us diagnose broken compilers, and finding out an intuition
4406 # of exeext.
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4408 $as_echo_n "checking whether the C compiler works... " >&6; }
4409 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4410
4411 # The possible output files:
4412 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4413
4414 ac_rmfiles=
4415 for ac_file in $ac_files
4416 do
4417 case $ac_file in
4418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4419 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4420 esac
4421 done
4422 rm -f $ac_rmfiles
4423
4424 if { { ac_try="$ac_link_default"
4425 case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428 esac
4429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430 $as_echo "$ac_try_echo"; } >&5
4431 (eval "$ac_link_default") 2>&5
4432 ac_status=$?
4433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4434 test $ac_status = 0; }; then :
4435 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4436 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4437 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4438 # so that the user can short-circuit this test for compilers unknown to
4439 # Autoconf.
4440 for ac_file in $ac_files ''
4441 do
4442 test -f "$ac_file" || continue
4443 case $ac_file in
4444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4445 ;;
4446 [ab].out )
4447 # We found the default executable, but exeext='' is most
4448 # certainly right.
4449 break;;
4450 *.* )
4451 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4452 then :; else
4453 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4454 fi
4455 # We set ac_cv_exeext here because the later test for it is not
4456 # safe: cross compilers may not add the suffix if given an `-o'
4457 # argument, so we may need to know it at that point already.
4458 # Even if this section looks crufty: it has the advantage of
4459 # actually working.
4460 break;;
4461 * )
4462 break;;
4463 esac
4464 done
4465 test "$ac_cv_exeext" = no && ac_cv_exeext=
4466
4467 else
4468 ac_file=''
4469 fi
4470 if test -z "$ac_file"; then :
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 $as_echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4475
4476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4478 as_fn_error 77 "C compiler cannot create executables
4479 See \`config.log' for more details" "$LINENO" 5; }
4480 else
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4482 $as_echo "yes" >&6; }
4483 fi
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4485 $as_echo_n "checking for C compiler default output file name... " >&6; }
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4487 $as_echo "$ac_file" >&6; }
4488 ac_exeext=$ac_cv_exeext
4489
4490 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4491 ac_clean_files=$ac_clean_files_save
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4493 $as_echo_n "checking for suffix of executables... " >&6; }
4494 if { { ac_try="$ac_link"
4495 case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498 esac
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_link") 2>&5
4502 ac_status=$?
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; then :
4505 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4506 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4507 # work properly (i.e., refer to `conftest.exe'), while it won't with
4508 # `rm'.
4509 for ac_file in conftest.exe conftest conftest.*; do
4510 test -f "$ac_file" || continue
4511 case $ac_file in
4512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4513 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4514 break;;
4515 * ) break;;
4516 esac
4517 done
4518 else
4519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4521 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4522 See \`config.log' for more details" "$LINENO" 5; }
4523 fi
4524 rm -f conftest conftest$ac_cv_exeext
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4526 $as_echo "$ac_cv_exeext" >&6; }
4527
4528 rm -f conftest.$ac_ext
4529 EXEEXT=$ac_cv_exeext
4530 ac_exeext=$EXEEXT
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4533 #include <stdio.h>
4534 int
4535 main ()
4536 {
4537 FILE *f = fopen ("conftest.out", "w");
4538 return ferror (f) || fclose (f) != 0;
4539
4540 ;
4541 return 0;
4542 }
4543 _ACEOF
4544 ac_clean_files="$ac_clean_files conftest.out"
4545 # Check that the compiler produces executables we can run. If not, either
4546 # the compiler is broken, or we cross compile.
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4548 $as_echo_n "checking whether we are cross compiling... " >&6; }
4549 if test "$cross_compiling" != yes; then
4550 { { ac_try="$ac_link"
4551 case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554 esac
4555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4556 $as_echo "$ac_try_echo"; } >&5
4557 (eval "$ac_link") 2>&5
4558 ac_status=$?
4559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4560 test $ac_status = 0; }
4561 if { ac_try='./conftest$ac_cv_exeext'
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_try") 2>&5
4569 ac_status=$?
4570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4571 test $ac_status = 0; }; }; then
4572 cross_compiling=no
4573 else
4574 if test "$cross_compiling" = maybe; then
4575 cross_compiling=yes
4576 else
4577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4579 as_fn_error $? "cannot run C compiled programs.
4580 If you meant to cross compile, use \`--host'.
4581 See \`config.log' for more details" "$LINENO" 5; }
4582 fi
4583 fi
4584 fi
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4586 $as_echo "$cross_compiling" >&6; }
4587
4588 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4589 ac_clean_files=$ac_clean_files_save
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4591 $as_echo_n "checking for suffix of object files... " >&6; }
4592 if ${ac_cv_objext+:} false; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4597
4598 int
4599 main ()
4600 {
4601
4602 ;
4603 return 0;
4604 }
4605 _ACEOF
4606 rm -f conftest.o conftest.obj
4607 if { { ac_try="$ac_compile"
4608 case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611 esac
4612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613 $as_echo "$ac_try_echo"; } >&5
4614 (eval "$ac_compile") 2>&5
4615 ac_status=$?
4616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617 test $ac_status = 0; }; then :
4618 for ac_file in conftest.o conftest.obj conftest.*; do
4619 test -f "$ac_file" || continue;
4620 case $ac_file in
4621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4622 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4623 break;;
4624 esac
4625 done
4626 else
4627 $as_echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4632 as_fn_error $? "cannot compute suffix of object files: cannot compile
4633 See \`config.log' for more details" "$LINENO" 5; }
4634 fi
4635 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4636 fi
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4638 $as_echo "$ac_cv_objext" >&6; }
4639 OBJEXT=$ac_cv_objext
4640 ac_objext=$OBJEXT
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4642 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4643 if ${ac_cv_c_compiler_gnu+:} false; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648
4649 int
4650 main ()
4651 {
4652 #ifndef __GNUC__
4653 choke me
4654 #endif
4655
4656 ;
4657 return 0;
4658 }
4659 _ACEOF
4660 if ac_fn_c_try_compile "$LINENO"; then :
4661 ac_compiler_gnu=yes
4662 else
4663 ac_compiler_gnu=no
4664 fi
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4667
4668 fi
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4670 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4671 if test $ac_compiler_gnu = yes; then
4672 GCC=yes
4673 else
4674 GCC=
4675 fi
4676 ac_test_CFLAGS=${CFLAGS+set}
4677 ac_save_CFLAGS=$CFLAGS
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4679 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4680 if ${ac_cv_prog_cc_g+:} false; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 ac_save_c_werror_flag=$ac_c_werror_flag
4684 ac_c_werror_flag=yes
4685 ac_cv_prog_cc_g=no
4686 CFLAGS="-g"
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689
4690 int
4691 main ()
4692 {
4693
4694 ;
4695 return 0;
4696 }
4697 _ACEOF
4698 if ac_fn_c_try_compile "$LINENO"; then :
4699 ac_cv_prog_cc_g=yes
4700 else
4701 CFLAGS=""
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4704
4705 int
4706 main ()
4707 {
4708
4709 ;
4710 return 0;
4711 }
4712 _ACEOF
4713 if ac_fn_c_try_compile "$LINENO"; then :
4714
4715 else
4716 ac_c_werror_flag=$ac_save_c_werror_flag
4717 CFLAGS="-g"
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720
4721 int
4722 main ()
4723 {
4724
4725 ;
4726 return 0;
4727 }
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730 ac_cv_prog_cc_g=yes
4731 fi
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 fi
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 fi
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 ac_c_werror_flag=$ac_save_c_werror_flag
4738 fi
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4740 $as_echo "$ac_cv_prog_cc_g" >&6; }
4741 if test "$ac_test_CFLAGS" = set; then
4742 CFLAGS=$ac_save_CFLAGS
4743 elif test $ac_cv_prog_cc_g = yes; then
4744 if test "$GCC" = yes; then
4745 CFLAGS="-g -O2"
4746 else
4747 CFLAGS="-g"
4748 fi
4749 else
4750 if test "$GCC" = yes; then
4751 CFLAGS="-O2"
4752 else
4753 CFLAGS=
4754 fi
4755 fi
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4757 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4758 if ${ac_cv_prog_cc_c89+:} false; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 ac_cv_prog_cc_c89=no
4762 ac_save_CC=$CC
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4765 #include <stdarg.h>
4766 #include <stdio.h>
4767 struct stat;
4768 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4769 struct buf { int x; };
4770 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4771 static char *e (p, i)
4772 char **p;
4773 int i;
4774 {
4775 return p[i];
4776 }
4777 static char *f (char * (*g) (char **, int), char **p, ...)
4778 {
4779 char *s;
4780 va_list v;
4781 va_start (v,p);
4782 s = g (p, va_arg (v,int));
4783 va_end (v);
4784 return s;
4785 }
4786
4787 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4788 function prototypes and stuff, but not '\xHH' hex character constants.
4789 These don't provoke an error unfortunately, instead are silently treated
4790 as 'x'. The following induces an error, until -std is added to get
4791 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4792 array size at least. It's necessary to write '\x00'==0 to get something
4793 that's true only with -std. */
4794 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4795
4796 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4797 inside strings and character constants. */
4798 #define FOO(x) 'x'
4799 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4800
4801 int test (int i, double x);
4802 struct s1 {int (*f) (int a);};
4803 struct s2 {int (*f) (double a);};
4804 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4805 int argc;
4806 char **argv;
4807 int
4808 main ()
4809 {
4810 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4811 ;
4812 return 0;
4813 }
4814 _ACEOF
4815 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4816 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4817 do
4818 CC="$ac_save_CC $ac_arg"
4819 if ac_fn_c_try_compile "$LINENO"; then :
4820 ac_cv_prog_cc_c89=$ac_arg
4821 fi
4822 rm -f core conftest.err conftest.$ac_objext
4823 test "x$ac_cv_prog_cc_c89" != "xno" && break
4824 done
4825 rm -f conftest.$ac_ext
4826 CC=$ac_save_CC
4827
4828 fi
4829 # AC_CACHE_VAL
4830 case "x$ac_cv_prog_cc_c89" in
4831 x)
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4833 $as_echo "none needed" >&6; } ;;
4834 xno)
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4836 $as_echo "unsupported" >&6; } ;;
4837 *)
4838 CC="$CC $ac_cv_prog_cc_c89"
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4840 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4841 esac
4842 if test "x$ac_cv_prog_cc_c89" != xno; then :
4843
4844 fi
4845
4846 ac_ext=c
4847 ac_cpp='$CPP $CPPFLAGS'
4848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4853 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4854 if ${ac_cv_prog_cc_c99+:} false; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 ac_cv_prog_cc_c99=no
4858 ac_save_CC=$CC
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861 #include <stdarg.h>
4862 #include <stdbool.h>
4863 #include <stdlib.h>
4864 #include <wchar.h>
4865 #include <stdio.h>
4866
4867 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4868 #define debug(...) fprintf (stderr, __VA_ARGS__)
4869 #define showlist(...) puts (#__VA_ARGS__)
4870 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4871 static void
4872 test_varargs_macros (void)
4873 {
4874 int x = 1234;
4875 int y = 5678;
4876 debug ("Flag");
4877 debug ("X = %d\n", x);
4878 showlist (The first, second, and third items.);
4879 report (x>y, "x is %d but y is %d", x, y);
4880 }
4881
4882 // Check long long types.
4883 #define BIG64 18446744073709551615ull
4884 #define BIG32 4294967295ul
4885 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4886 #if !BIG_OK
4887 your preprocessor is broken;
4888 #endif
4889 #if BIG_OK
4890 #else
4891 your preprocessor is broken;
4892 #endif
4893 static long long int bignum = -9223372036854775807LL;
4894 static unsigned long long int ubignum = BIG64;
4895
4896 struct incomplete_array
4897 {
4898 int datasize;
4899 double data[];
4900 };
4901
4902 struct named_init {
4903 int number;
4904 const wchar_t *name;
4905 double average;
4906 };
4907
4908 typedef const char *ccp;
4909
4910 static inline int
4911 test_restrict (ccp restrict text)
4912 {
4913 // See if C++-style comments work.
4914 // Iterate through items via the restricted pointer.
4915 // Also check for declarations in for loops.
4916 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4917 continue;
4918 return 0;
4919 }
4920
4921 // Check varargs and va_copy.
4922 static void
4923 test_varargs (const char *format, ...)
4924 {
4925 va_list args;
4926 va_start (args, format);
4927 va_list args_copy;
4928 va_copy (args_copy, args);
4929
4930 const char *str;
4931 int number;
4932 float fnumber;
4933
4934 while (*format)
4935 {
4936 switch (*format++)
4937 {
4938 case 's': // string
4939 str = va_arg (args_copy, const char *);
4940 break;
4941 case 'd': // int
4942 number = va_arg (args_copy, int);
4943 break;
4944 case 'f': // float
4945 fnumber = va_arg (args_copy, double);
4946 break;
4947 default:
4948 break;
4949 }
4950 }
4951 va_end (args_copy);
4952 va_end (args);
4953 }
4954
4955 int
4956 main ()
4957 {
4958
4959 // Check bool.
4960 _Bool success = false;
4961
4962 // Check restrict.
4963 if (test_restrict ("String literal") == 0)
4964 success = true;
4965 char *restrict newvar = "Another string";
4966
4967 // Check varargs.
4968 test_varargs ("s, d' f .", "string", 65, 34.234);
4969 test_varargs_macros ();
4970
4971 // Check flexible array members.
4972 struct incomplete_array *ia =
4973 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4974 ia->datasize = 10;
4975 for (int i = 0; i < ia->datasize; ++i)
4976 ia->data[i] = i * 1.234;
4977
4978 // Check named initializers.
4979 struct named_init ni = {
4980 .number = 34,
4981 .name = L"Test wide string",
4982 .average = 543.34343,
4983 };
4984
4985 ni.number = 58;
4986
4987 int dynamic_array[ni.number];
4988 dynamic_array[ni.number - 1] = 543;
4989
4990 // work around unused variable warnings
4991 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4992 || dynamic_array[ni.number - 1] != 543);
4993
4994 ;
4995 return 0;
4996 }
4997 _ACEOF
4998 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4999 do
5000 CC="$ac_save_CC $ac_arg"
5001 if ac_fn_c_try_compile "$LINENO"; then :
5002 ac_cv_prog_cc_c99=$ac_arg
5003 fi
5004 rm -f core conftest.err conftest.$ac_objext
5005 test "x$ac_cv_prog_cc_c99" != "xno" && break
5006 done
5007 rm -f conftest.$ac_ext
5008 CC=$ac_save_CC
5009
5010 fi
5011 # AC_CACHE_VAL
5012 case "x$ac_cv_prog_cc_c99" in
5013 x)
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5015 $as_echo "none needed" >&6; } ;;
5016 xno)
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5018 $as_echo "unsupported" >&6; } ;;
5019 *)
5020 CC="$CC $ac_cv_prog_cc_c99"
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5022 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5023 esac
5024 if test "x$ac_cv_prog_cc_c99" != xno; then :
5025
5026 fi
5027
5028
5029 ac_ext=cpp
5030 ac_cpp='$CXXCPP $CPPFLAGS'
5031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5034 if test -z "$CXX"; then
5035 if test -n "$CCC"; then
5036 CXX=$CCC
5037 else
5038 if test -n "$ac_tool_prefix"; then
5039 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5040 do
5041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_prog_CXX+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$CXX"; then
5049 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5053 do
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5061 fi
5062 done
5063 done
5064 IFS=$as_save_IFS
5065
5066 fi
5067 fi
5068 CXX=$ac_cv_prog_CXX
5069 if test -n "$CXX"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5071 $as_echo "$CXX" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5075 fi
5076
5077
5078 test -n "$CXX" && break
5079 done
5080 fi
5081 if test -z "$CXX"; then
5082 ac_ct_CXX=$CXX
5083 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5084 do
5085 # Extract the first word of "$ac_prog", so it can be a program name with args.
5086 set dummy $ac_prog; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if test -n "$ac_ct_CXX"; then
5093 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5097 do
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102 ac_cv_prog_ac_ct_CXX="$ac_prog"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5105 fi
5106 done
5107 done
5108 IFS=$as_save_IFS
5109
5110 fi
5111 fi
5112 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5113 if test -n "$ac_ct_CXX"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5115 $as_echo "$ac_ct_CXX" >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5119 fi
5120
5121
5122 test -n "$ac_ct_CXX" && break
5123 done
5124
5125 if test "x$ac_ct_CXX" = x; then
5126 CXX="g++"
5127 else
5128 case $cross_compiling:$ac_tool_warned in
5129 yes:)
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5132 ac_tool_warned=yes ;;
5133 esac
5134 CXX=$ac_ct_CXX
5135 fi
5136 fi
5137
5138 fi
5139 fi
5140 # Provide some information about the compiler.
5141 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5142 set X $ac_compile
5143 ac_compiler=$2
5144 for ac_option in --version -v -V -qversion; do
5145 { { ac_try="$ac_compiler $ac_option >&5"
5146 case "(($ac_try" in
5147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148 *) ac_try_echo=$ac_try;;
5149 esac
5150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5151 $as_echo "$ac_try_echo"; } >&5
5152 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5153 ac_status=$?
5154 if test -s conftest.err; then
5155 sed '10a\
5156 ... rest of stderr output deleted ...
5157 10q' conftest.err >conftest.er1
5158 cat conftest.er1 >&5
5159 fi
5160 rm -f conftest.er1 conftest.err
5161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5162 test $ac_status = 0; }
5163 done
5164
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5166 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5167 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5172
5173 int
5174 main ()
5175 {
5176 #ifndef __GNUC__
5177 choke me
5178 #endif
5179
5180 ;
5181 return 0;
5182 }
5183 _ACEOF
5184 if ac_fn_cxx_try_compile "$LINENO"; then :
5185 ac_compiler_gnu=yes
5186 else
5187 ac_compiler_gnu=no
5188 fi
5189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5190 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5191
5192 fi
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5194 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5195 if test $ac_compiler_gnu = yes; then
5196 GXX=yes
5197 else
5198 GXX=
5199 fi
5200 ac_test_CXXFLAGS=${CXXFLAGS+set}
5201 ac_save_CXXFLAGS=$CXXFLAGS
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5203 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5204 if ${ac_cv_prog_cxx_g+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5208 ac_cxx_werror_flag=yes
5209 ac_cv_prog_cxx_g=no
5210 CXXFLAGS="-g"
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213
5214 int
5215 main ()
5216 {
5217
5218 ;
5219 return 0;
5220 }
5221 _ACEOF
5222 if ac_fn_cxx_try_compile "$LINENO"; then :
5223 ac_cv_prog_cxx_g=yes
5224 else
5225 CXXFLAGS=""
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5228
5229 int
5230 main ()
5231 {
5232
5233 ;
5234 return 0;
5235 }
5236 _ACEOF
5237 if ac_fn_cxx_try_compile "$LINENO"; then :
5238
5239 else
5240 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5241 CXXFLAGS="-g"
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244
5245 int
5246 main ()
5247 {
5248
5249 ;
5250 return 0;
5251 }
5252 _ACEOF
5253 if ac_fn_cxx_try_compile "$LINENO"; then :
5254 ac_cv_prog_cxx_g=yes
5255 fi
5256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257 fi
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 fi
5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5261 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5262 fi
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5264 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5265 if test "$ac_test_CXXFLAGS" = set; then
5266 CXXFLAGS=$ac_save_CXXFLAGS
5267 elif test $ac_cv_prog_cxx_g = yes; then
5268 if test "$GXX" = yes; then
5269 CXXFLAGS="-g -O2"
5270 else
5271 CXXFLAGS="-g"
5272 fi
5273 else
5274 if test "$GXX" = yes; then
5275 CXXFLAGS="-O2"
5276 else
5277 CXXFLAGS=
5278 fi
5279 fi
5280 ac_ext=c
5281 ac_cpp='$CPP $CPPFLAGS'
5282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5285
5286
5287 # We must set the default linker to the linker used by gcc for the correct
5288 # operation of libtool. If LD is not defined and we are using gcc, try to
5289 # set the LD default to the ld used by gcc.
5290 if test -z "$LD"; then
5291 if test "$GCC" = yes; then
5292 case $build in
5293 *-*-mingw*)
5294 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5295 *)
5296 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5297 esac
5298 case $gcc_prog_ld in
5299 # Accept absolute paths.
5300 [\\/]* | [A-Za-z]:[\\/]*)
5301 LD="$gcc_prog_ld" ;;
5302 esac
5303 fi
5304 fi
5305
5306 # Check whether -static-libstdc++ -static-libgcc is supported.
5307 have_static_libs=no
5308 if test "$GCC" = yes; then
5309 saved_LDFLAGS="$LDFLAGS"
5310
5311 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5313 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5314 ac_ext=cpp
5315 ac_cpp='$CXXCPP $CPPFLAGS'
5316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5319
5320
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323
5324 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5325 #error -static-libstdc++ not implemented
5326 #endif
5327 int main() {}
5328 _ACEOF
5329 if ac_fn_cxx_try_link "$LINENO"; then :
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5331 $as_echo "yes" >&6; }; have_static_libs=yes
5332 else
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext \
5337 conftest$ac_exeext conftest.$ac_ext
5338 ac_ext=c
5339 ac_cpp='$CPP $CPPFLAGS'
5340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5343
5344
5345 LDFLAGS="$saved_LDFLAGS"
5346 fi
5347
5348
5349
5350
5351 if test -n "$ac_tool_prefix"; then
5352 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5353 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355 $as_echo_n "checking for $ac_word... " >&6; }
5356 if ${ac_cv_prog_GNATBIND+:} false; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 if test -n "$GNATBIND"; then
5360 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5361 else
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH
5364 do
5365 IFS=$as_save_IFS
5366 test -z "$as_dir" && as_dir=.
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5369 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 break 2
5372 fi
5373 done
5374 done
5375 IFS=$as_save_IFS
5376
5377 fi
5378 fi
5379 GNATBIND=$ac_cv_prog_GNATBIND
5380 if test -n "$GNATBIND"; then
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5382 $as_echo "$GNATBIND" >&6; }
5383 else
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5386 fi
5387
5388
5389 fi
5390 if test -z "$ac_cv_prog_GNATBIND"; then
5391 ac_ct_GNATBIND=$GNATBIND
5392 # Extract the first word of "gnatbind", so it can be a program name with args.
5393 set dummy gnatbind; ac_word=$2
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 if test -n "$ac_ct_GNATBIND"; then
5400 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5401 else
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5404 do
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5412 fi
5413 done
5414 done
5415 IFS=$as_save_IFS
5416
5417 fi
5418 fi
5419 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5420 if test -n "$ac_ct_GNATBIND"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5422 $as_echo "$ac_ct_GNATBIND" >&6; }
5423 else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5426 fi
5427
5428 if test "x$ac_ct_GNATBIND" = x; then
5429 GNATBIND="no"
5430 else
5431 case $cross_compiling:$ac_tool_warned in
5432 yes:)
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5435 ac_tool_warned=yes ;;
5436 esac
5437 GNATBIND=$ac_ct_GNATBIND
5438 fi
5439 else
5440 GNATBIND="$ac_cv_prog_GNATBIND"
5441 fi
5442
5443 if test -n "$ac_tool_prefix"; then
5444 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5445 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if ${ac_cv_prog_GNATMAKE+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 if test -n "$GNATMAKE"; then
5452 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5453 else
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5456 do
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5461 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 break 2
5464 fi
5465 done
5466 done
5467 IFS=$as_save_IFS
5468
5469 fi
5470 fi
5471 GNATMAKE=$ac_cv_prog_GNATMAKE
5472 if test -n "$GNATMAKE"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5474 $as_echo "$GNATMAKE" >&6; }
5475 else
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5478 fi
5479
5480
5481 fi
5482 if test -z "$ac_cv_prog_GNATMAKE"; then
5483 ac_ct_GNATMAKE=$GNATMAKE
5484 # Extract the first word of "gnatmake", so it can be a program name with args.
5485 set dummy gnatmake; ac_word=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 if test -n "$ac_ct_GNATMAKE"; then
5492 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5493 else
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5496 do
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 break 2
5504 fi
5505 done
5506 done
5507 IFS=$as_save_IFS
5508
5509 fi
5510 fi
5511 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5512 if test -n "$ac_ct_GNATMAKE"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5514 $as_echo "$ac_ct_GNATMAKE" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5518 fi
5519
5520 if test "x$ac_ct_GNATMAKE" = x; then
5521 GNATMAKE="no"
5522 else
5523 case $cross_compiling:$ac_tool_warned in
5524 yes:)
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527 ac_tool_warned=yes ;;
5528 esac
5529 GNATMAKE=$ac_ct_GNATMAKE
5530 fi
5531 else
5532 GNATMAKE="$ac_cv_prog_GNATMAKE"
5533 fi
5534
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5536 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5537 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 cat >conftest.adb <<EOF
5541 procedure conftest is begin null; end conftest;
5542 EOF
5543 acx_cv_cc_gcc_supports_ada=no
5544 # There is a bug in old released versions of GCC which causes the
5545 # driver to exit successfully when the appropriate language module
5546 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5547 # Therefore we must check for the error message as well as an
5548 # unsuccessful exit.
5549 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5550 # given a .adb file, but produce no object file. So we must check
5551 # if an object file was really produced to guard against this.
5552 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5553 if test x"$errors" = x && test -f conftest.$ac_objext; then
5554 acx_cv_cc_gcc_supports_ada=yes
5555 fi
5556 rm -f conftest.*
5557 fi
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5559 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5560
5561 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5562 have_gnat=yes
5563 else
5564 have_gnat=no
5565 fi
5566
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5568 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5569 if ${gcc_cv_prog_cmp_skip+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 echo abfoo >t1
5573 echo cdfoo >t2
5574 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5575 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5576 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5577 :
5578 else
5579 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5580 fi
5581 fi
5582 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5583 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5584 :
5585 else
5586 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5587 fi
5588 fi
5589 rm t1 t2
5590
5591 fi
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5593 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5594 do_compare="$gcc_cv_prog_cmp_skip"
5595
5596
5597
5598 # Check whether --enable-bootstrap was given.
5599 if test "${enable_bootstrap+set}" = set; then :
5600 enableval=$enable_bootstrap;
5601 else
5602 enable_bootstrap=default
5603 fi
5604
5605
5606 # Issue errors and warnings for invalid/strange bootstrap combinations.
5607 if test -r $srcdir/gcc/configure; then
5608 have_compiler=yes
5609 else
5610 have_compiler=no
5611 fi
5612
5613 case "$have_compiler:$host:$target:$enable_bootstrap" in
5614 *:*:*:no) ;;
5615
5616 # Default behavior. Enable bootstrap if we have a compiler
5617 # and we are in a native configuration.
5618 yes:$build:$build:default)
5619 enable_bootstrap=yes ;;
5620
5621 *:*:*:default)
5622 enable_bootstrap=no ;;
5623
5624 # We have a compiler and we are in a native configuration, bootstrap is ok
5625 yes:$build:$build:yes)
5626 ;;
5627
5628 # Other configurations, but we have a compiler. Assume the user knows
5629 # what he's doing.
5630 yes:*:*:yes)
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5632 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5633 ;;
5634
5635 # No compiler: if they passed --enable-bootstrap explicitly, fail
5636 no:*:*:yes)
5637 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5638
5639 # Fail if wrong command line
5640 *)
5641 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5642 ;;
5643 esac
5644
5645 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5646 # C++98 compiler can still start the bootstrap.
5647 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5648 CXX="$CXX -std=gnu++98"
5649 fi
5650
5651 # Check whether --enable-pgo-build was given.
5652 if test "${enable_pgo_build+set}" = set; then :
5653 enableval=$enable_pgo_build; enable_pgo_build=$enableval
5654 else
5655 enable_pgo_build=no
5656 fi
5657
5658
5659 # Issue errors and warnings for invalid/strange PGO build combinations.
5660 case "$have_compiler:$host:$target:$enable_pgo_build" in
5661 *:*:*:no) ;;
5662
5663 # Allow the PGO build only if we aren't building a compiler and
5664 # we are in a native configuration.
5665 no:$build:$build:yes | no:$build:$build:lto) ;;
5666
5667 # Disallow the PGO bootstrap if we are building a compiler.
5668 yes:*:*:yes | yes:*:*:lto)
5669 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
5670
5671 *)
5672 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
5673 ;;
5674 esac
5675
5676 if test "$enable_pgo_build" != "no"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
5678 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
5679 old_CFLAGS="$CFLAGS"
5680 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
5681 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
5682
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5685 int foo;
5686 _ACEOF
5687 if ac_fn_c_try_compile "$LINENO"; then :
5688
5689 else
5690 PGO_BUILD_GEN_CFLAGS=
5691 fi
5692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693 CFLAGS="$old_CFLAGS"
5694 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696 $as_echo "yes" >&6; }
5697 PGO_BUILD_USE_CFLAGS="-fprofile-use"
5698 else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5701 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
5702 fi
5703
5704 if test "$enable_pgo_build" = "lto"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
5706 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
5707 old_CFLAGS="$CFLAGS"
5708 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
5709 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5712 int foo;
5713 _ACEOF
5714 if ac_fn_c_try_compile "$LINENO"; then :
5715
5716 else
5717 PGO_BUILD_LTO_CFLAGS=
5718 fi
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 CFLAGS="$old_CFLAGS"
5721 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5723 $as_echo "yes" >&6; }
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
5728 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
5729 fi
5730 fi
5731 fi
5732
5733
5734
5735
5736 # Used for setting $lt_cv_objdir
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5738 $as_echo_n "checking for objdir... " >&6; }
5739 if ${lt_cv_objdir+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 rm -f .libs 2>/dev/null
5743 mkdir .libs 2>/dev/null
5744 if test -d .libs; then
5745 lt_cv_objdir=.libs
5746 else
5747 # MS-DOS does not allow filenames that begin with a dot.
5748 lt_cv_objdir=_libs
5749 fi
5750 rmdir .libs 2>/dev/null
5751 fi
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5753 $as_echo "$lt_cv_objdir" >&6; }
5754 objdir=$lt_cv_objdir
5755
5756
5757
5758
5759
5760 cat >>confdefs.h <<_ACEOF
5761 #define LT_OBJDIR "$lt_cv_objdir/"
5762 _ACEOF
5763
5764
5765
5766 # Check for GMP, MPFR and MPC
5767 gmplibs="-lmpc -lmpfr -lgmp"
5768 gmpinc=
5769 have_gmp=no
5770
5771 # Specify a location for mpc
5772 # check for this first so it ends up on the link line before mpfr.
5773
5774 # Check whether --with-mpc was given.
5775 if test "${with_mpc+set}" = set; then :
5776 withval=$with_mpc;
5777 fi
5778
5779
5780 # Check whether --with-mpc-include was given.
5781 if test "${with_mpc_include+set}" = set; then :
5782 withval=$with_mpc_include;
5783 fi
5784
5785
5786 # Check whether --with-mpc-lib was given.
5787 if test "${with_mpc_lib+set}" = set; then :
5788 withval=$with_mpc_lib;
5789 fi
5790
5791
5792 if test "x$with_mpc" != x; then
5793 gmplibs="-L$with_mpc/lib $gmplibs"
5794 gmpinc="-I$with_mpc/include $gmpinc"
5795 fi
5796 if test "x$with_mpc_include" != x; then
5797 gmpinc="-I$with_mpc_include $gmpinc"
5798 fi
5799 if test "x$with_mpc_lib" != x; then
5800 gmplibs="-L$with_mpc_lib $gmplibs"
5801 fi
5802 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5803 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5804 gmpinc='-I$$s/mpc/src '"$gmpinc"
5805 # Do not test the mpc version. Assume that it is sufficient, since
5806 # it is in the source tree, and the library has not been built yet
5807 # but it would be included on the link line in the version check below
5808 # hence making the test fail.
5809 have_gmp=yes
5810 fi
5811
5812 # Specify a location for mpfr
5813 # check for this first so it ends up on the link line before gmp.
5814
5815 # Check whether --with-mpfr-dir was given.
5816 if test "${with_mpfr_dir+set}" = set; then :
5817 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5818 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5819 fi
5820
5821
5822
5823 # Check whether --with-mpfr was given.
5824 if test "${with_mpfr+set}" = set; then :
5825 withval=$with_mpfr;
5826 fi
5827
5828
5829 # Check whether --with-mpfr-include was given.
5830 if test "${with_mpfr_include+set}" = set; then :
5831 withval=$with_mpfr_include;
5832 fi
5833
5834
5835 # Check whether --with-mpfr-lib was given.
5836 if test "${with_mpfr_lib+set}" = set; then :
5837 withval=$with_mpfr_lib;
5838 fi
5839
5840
5841 if test "x$with_mpfr" != x; then
5842 gmplibs="-L$with_mpfr/lib $gmplibs"
5843 gmpinc="-I$with_mpfr/include $gmpinc"
5844 fi
5845 if test "x$with_mpfr_include" != x; then
5846 gmpinc="-I$with_mpfr_include $gmpinc"
5847 fi
5848 if test "x$with_mpfr_lib" != x; then
5849 gmplibs="-L$with_mpfr_lib $gmplibs"
5850 fi
5851 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5852 # MPFR v3.1.0 moved the sources into a src sub-directory.
5853 if ! test -d ${srcdir}/mpfr/src; then
5854 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5855 fi
5856 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5857 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5858 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5859 # Do not test the mpfr version. Assume that it is sufficient, since
5860 # it is in the source tree, and the library has not been built yet
5861 # but it would be included on the link line in the version check below
5862 # hence making the test fail.
5863 have_gmp=yes
5864 fi
5865
5866 # Specify a location for gmp
5867
5868 # Check whether --with-gmp-dir was given.
5869 if test "${with_gmp_dir+set}" = set; then :
5870 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5871 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5872 fi
5873
5874
5875
5876 # Check whether --with-gmp was given.
5877 if test "${with_gmp+set}" = set; then :
5878 withval=$with_gmp;
5879 fi
5880
5881
5882 # Check whether --with-gmp-include was given.
5883 if test "${with_gmp_include+set}" = set; then :
5884 withval=$with_gmp_include;
5885 fi
5886
5887
5888 # Check whether --with-gmp-lib was given.
5889 if test "${with_gmp_lib+set}" = set; then :
5890 withval=$with_gmp_lib;
5891 fi
5892
5893
5894
5895 if test "x$with_gmp" != x; then
5896 gmplibs="-L$with_gmp/lib $gmplibs"
5897 gmpinc="-I$with_gmp/include $gmpinc"
5898 fi
5899 if test "x$with_gmp_include" != x; then
5900 gmpinc="-I$with_gmp_include $gmpinc"
5901 fi
5902 if test "x$with_gmp_lib" != x; then
5903 gmplibs="-L$with_gmp_lib $gmplibs"
5904 fi
5905 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5906 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5907 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5908 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5909 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5910 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5911 # Do not test the gmp version. Assume that it is sufficient, since
5912 # it is in the source tree, and the library has not been built yet
5913 # but it would be included on the link line in the version check below
5914 # hence making the test fail.
5915 have_gmp=yes
5916 fi
5917
5918 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5919 have_gmp=yes
5920 saved_CFLAGS="$CFLAGS"
5921 CFLAGS="$CFLAGS $gmpinc"
5922 # Check for the recommended and required versions of GMP.
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5924 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5927 #include "gmp.h"
5928 int
5929 main ()
5930 {
5931
5932 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5933 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5934 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5935 choke me
5936 #endif
5937
5938 ;
5939 return 0;
5940 }
5941 _ACEOF
5942 if ac_fn_c_try_compile "$LINENO"; then :
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5945 #include <gmp.h>
5946 int
5947 main ()
5948 {
5949
5950 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5951 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5952 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5953 choke me
5954 #endif
5955
5956 ;
5957 return 0;
5958 }
5959 _ACEOF
5960 if ac_fn_c_try_compile "$LINENO"; then :
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5962 $as_echo "yes" >&6; }
5963 else
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5965 $as_echo "buggy but acceptable" >&6; }
5966 fi
5967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5968 else
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }; have_gmp=no
5971 fi
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973
5974 # If we have GMP, check the MPFR version.
5975 if test x"$have_gmp" = xyes; then
5976 # Check for the recommended and required versions of MPFR.
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5978 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981 #include <gmp.h>
5982 #include <mpfr.h>
5983 int
5984 main ()
5985 {
5986
5987 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5988 choke me
5989 #endif
5990
5991 ;
5992 return 0;
5993 }
5994 _ACEOF
5995 if ac_fn_c_try_compile "$LINENO"; then :
5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
5998 #include <gmp.h>
5999 #include <mpfr.h>
6000 int
6001 main ()
6002 {
6003
6004 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
6005 choke me
6006 #endif
6007
6008 ;
6009 return 0;
6010 }
6011 _ACEOF
6012 if ac_fn_c_try_compile "$LINENO"; then :
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6014 $as_echo "yes" >&6; }
6015 else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6017 $as_echo "buggy but acceptable" >&6; }
6018 fi
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }; have_gmp=no
6023 fi
6024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025 fi
6026
6027 # Check for the MPC header version.
6028 if test x"$have_gmp" = xyes ; then
6029 # Check for the recommended and required versions of MPC.
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
6031 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6034 #include <mpc.h>
6035 int
6036 main ()
6037 {
6038
6039 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
6040 choke me
6041 #endif
6042
6043 ;
6044 return 0;
6045 }
6046 _ACEOF
6047 if ac_fn_c_try_compile "$LINENO"; then :
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050 #include <mpc.h>
6051 int
6052 main ()
6053 {
6054
6055 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
6056 choke me
6057 #endif
6058
6059 ;
6060 return 0;
6061 }
6062 _ACEOF
6063 if ac_fn_c_try_compile "$LINENO"; then :
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6065 $as_echo "yes" >&6; }
6066 else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6068 $as_echo "buggy but acceptable" >&6; }
6069 fi
6070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071 else
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073 $as_echo "no" >&6; }; have_gmp=no
6074 fi
6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 fi
6077
6078 # Now check the MPFR library.
6079 if test x"$have_gmp" = xyes; then
6080 saved_LIBS="$LIBS"
6081 LIBS="$LIBS $gmplibs"
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
6083 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6086 #include <mpc.h>
6087 int
6088 main ()
6089 {
6090
6091 mpfr_t n;
6092 mpfr_t x;
6093 mpc_t c;
6094 int t;
6095 mpfr_init (n);
6096 mpfr_init (x);
6097 mpfr_atan2 (n, n, x, GMP_RNDN);
6098 mpfr_erfc (n, x, GMP_RNDN);
6099 mpfr_subnormalize (x, t, GMP_RNDN);
6100 mpfr_clear(n);
6101 mpfr_clear(x);
6102 mpc_init2 (c, 53);
6103 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
6104 mpc_cosh (c, c, MPC_RNDNN);
6105 mpc_pow (c, c, c, MPC_RNDNN);
6106 mpc_acosh (c, c, MPC_RNDNN);
6107 mpc_clear (c);
6108
6109 ;
6110 return 0;
6111 }
6112 _ACEOF
6113 if ac_fn_c_try_link "$LINENO"; then :
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6115 $as_echo "yes" >&6; }
6116 else
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }; have_gmp=no
6119 fi
6120 rm -f core conftest.err conftest.$ac_objext \
6121 conftest$ac_exeext conftest.$ac_ext
6122 LIBS="$saved_LIBS"
6123 fi
6124
6125 CFLAGS="$saved_CFLAGS"
6126
6127 # The library versions listed in the error message below should match
6128 # the HARD-minimums enforced above.
6129 if test x$have_gmp != xyes; then
6130 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
6131 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
6132 their locations. Source code for these libraries can be found at
6133 their respective hosting sites as well as at
6134 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
6135 http://gcc.gnu.org/install/prerequisites.html for additional info. If
6136 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
6137 make sure that you have installed both the libraries and the header
6138 files. They may be located in separate packages." "$LINENO" 5
6139 fi
6140 fi
6141
6142 # Flags needed for both GMP, MPFR and/or MPC.
6143
6144
6145
6146
6147
6148
6149
6150 # Libraries to use for stage1 or when not bootstrapping.
6151
6152 # Check whether --with-stage1-libs was given.
6153 if test "${with_stage1_libs+set}" = set; then :
6154 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6155 stage1_libs=
6156 else
6157 stage1_libs=$withval
6158 fi
6159 else
6160 stage1_libs=
6161 fi
6162
6163
6164
6165 # Whether or not to use -static-libstdc++ and -static-libgcc. The
6166 # default is yes if gcc is being built; no otherwise. The reason for
6167 # this default is that gdb is sometimes linked against GNU Source
6168 # Highlight, which is a shared library that uses C++ exceptions. In
6169 # this case, -static-libstdc++ will cause crashes.
6170
6171 # Check whether --with-static-standard-libraries was given.
6172 if test "${with_static_standard_libraries+set}" = set; then :
6173 withval=$with_static_standard_libraries;
6174 else
6175 with_static_standard_libraries=auto
6176 fi
6177
6178 if test "$with_static_standard_libraries" = auto; then
6179 with_static_standard_libraries=$have_compiler
6180 fi
6181
6182 # Linker flags to use for stage1 or when not bootstrapping.
6183
6184 # Check whether --with-stage1-ldflags was given.
6185 if test "${with_stage1_ldflags+set}" = set; then :
6186 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6187 stage1_ldflags=
6188 else
6189 stage1_ldflags=$withval
6190 fi
6191 else
6192 stage1_ldflags=
6193 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
6194 # if supported. But if the user explicitly specified the libraries to use,
6195 # trust that they are doing what they want.
6196 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
6197 -a "$have_static_libs" = yes; then
6198 stage1_ldflags="-static-libstdc++ -static-libgcc"
6199 fi
6200 fi
6201
6202
6203
6204 # Libraries to use for stage2 and later builds.
6205
6206 # Check whether --with-boot-libs was given.
6207 if test "${with_boot_libs+set}" = set; then :
6208 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6209 poststage1_libs=
6210 else
6211 poststage1_libs=$withval
6212 fi
6213 else
6214 poststage1_libs=
6215 fi
6216
6217
6218
6219 # Linker flags to use for stage2 and later builds.
6220
6221 # Check whether --with-boot-ldflags was given.
6222 if test "${with_boot_ldflags+set}" = set; then :
6223 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6224 poststage1_ldflags=
6225 else
6226 poststage1_ldflags=$withval
6227 fi
6228 else
6229 poststage1_ldflags=
6230 # In stages 2 and 3, default to linking libstdc++ and libgcc
6231 # statically. But if the user explicitly specified the libraries to
6232 # use, trust that they are doing what they want.
6233 if test "$poststage1_libs" = ""; then
6234 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6235 fi
6236 fi
6237
6238
6239
6240 # GCC GRAPHITE dependency isl.
6241 # Basic setup is inlined here, actual checks are in config/isl.m4
6242
6243
6244 # Check whether --with-isl was given.
6245 if test "${with_isl+set}" = set; then :
6246 withval=$with_isl;
6247 fi
6248
6249
6250 # Treat --without-isl as a request to disable
6251 # GRAPHITE support and skip all following checks.
6252 if test "x$with_isl" != "xno"; then
6253 # Check for isl
6254
6255
6256 # Check whether --with-isl-include was given.
6257 if test "${with_isl_include+set}" = set; then :
6258 withval=$with_isl_include;
6259 fi
6260
6261
6262 # Check whether --with-isl-lib was given.
6263 if test "${with_isl_lib+set}" = set; then :
6264 withval=$with_isl_lib;
6265 fi
6266
6267
6268 # Check whether --enable-isl-version-check was given.
6269 if test "${enable_isl_version_check+set}" = set; then :
6270 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6271 else
6272 ENABLE_ISL_CHECK=yes
6273 fi
6274
6275
6276 # Initialize isllibs and islinc.
6277 case $with_isl in
6278 no)
6279 isllibs=
6280 islinc=
6281 ;;
6282 "" | yes)
6283 ;;
6284 *)
6285 isllibs="-L$with_isl/lib"
6286 islinc="-I$with_isl/include"
6287 ;;
6288 esac
6289 if test "x${with_isl_include}" != x ; then
6290 islinc="-I$with_isl_include"
6291 fi
6292 if test "x${with_isl_lib}" != x; then
6293 isllibs="-L$with_isl_lib"
6294 fi
6295 if test "x${islinc}" = x && test "x${isllibs}" = x \
6296 && test -d ${srcdir}/isl; then
6297 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6298 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6299 ENABLE_ISL_CHECK=no
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6301 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6302 fi
6303
6304 isllibs="${isllibs} -lisl"
6305
6306
6307
6308 if test "${ENABLE_ISL_CHECK}" = yes ; then
6309 _isl_saved_CFLAGS=$CFLAGS
6310 _isl_saved_LDFLAGS=$LDFLAGS
6311 _isl_saved_LIBS=$LIBS
6312
6313 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6314 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6315 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6316
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6318 $as_echo_n "checking for isl 0.15 or later... " >&6; }
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6321 #include <isl/schedule.h>
6322 int
6323 main ()
6324 {
6325 isl_options_set_schedule_serialize_sccs (NULL, 0);
6326 ;
6327 return 0;
6328 }
6329 _ACEOF
6330 if ac_fn_c_try_link "$LINENO"; then :
6331 gcc_cv_isl=yes
6332 else
6333 gcc_cv_isl=no
6334 fi
6335 rm -f core conftest.err conftest.$ac_objext \
6336 conftest$ac_exeext conftest.$ac_ext
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6338 $as_echo "$gcc_cv_isl" >&6; }
6339
6340 if test "${gcc_cv_isl}" = no ; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6342 $as_echo "required isl version is 0.15 or later" >&6; }
6343 fi
6344
6345 CFLAGS=$_isl_saved_CFLAGS
6346 LDFLAGS=$_isl_saved_LDFLAGS
6347 LIBS=$_isl_saved_LIBS
6348 fi
6349
6350
6351
6352
6353
6354
6355 if test "x${with_isl}" = xno; then
6356 graphite_requested=no
6357 elif test "x${with_isl}" != x \
6358 || test "x${with_isl_include}" != x \
6359 || test "x${with_isl_lib}" != x ; then
6360 graphite_requested=yes
6361 else
6362 graphite_requested=no
6363 fi
6364
6365
6366
6367 if test "${gcc_cv_isl}" = no ; then
6368 isllibs=
6369 islinc=
6370 fi
6371
6372 if test "${graphite_requested}" = yes \
6373 && test "x${isllibs}" = x \
6374 && test "x${islinc}" = x ; then
6375
6376 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6377 fi
6378
6379
6380 fi
6381
6382 # If the isl check failed, disable builds of in-tree variant of isl
6383 if test "x$with_isl" = xno ||
6384 test "x$gcc_cv_isl" = xno; then
6385 noconfigdirs="$noconfigdirs isl"
6386 islinc=
6387 fi
6388
6389
6390
6391
6392 # Check for LTO support.
6393 # Check whether --enable-lto was given.
6394 if test "${enable_lto+set}" = set; then :
6395 enableval=$enable_lto; enable_lto=$enableval
6396 else
6397 enable_lto=yes; default_enable_lto=yes
6398 fi
6399
6400
6401
6402
6403
6404 target_elf=no
6405 case $target in
6406 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6407 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6408 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6409 nvptx-*-none)
6410 target_elf=no
6411 ;;
6412 *)
6413 target_elf=yes
6414 ;;
6415 esac
6416
6417 if test $target_elf = yes; then :
6418 # ELF platforms build the lto-plugin always.
6419 build_lto_plugin=yes
6420
6421 else
6422 if test x"$default_enable_lto" = x"yes" ; then
6423 case $target in
6424 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6425 # On other non-ELF platforms, LTO has yet to be validated.
6426 *) enable_lto=no ;;
6427 esac
6428 else
6429 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6430 # It would also be nice to check the binutils support, but we don't
6431 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6432 # warn during gcc/ subconfigure; unless you're bootstrapping with
6433 # -flto it won't be needed until after installation anyway.
6434 case $target in
6435 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6436 *) if test x"$enable_lto" = x"yes"; then
6437 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6438 fi
6439 ;;
6440 esac
6441 fi
6442 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6443 # Build it unless LTO was explicitly disabled.
6444 case $target in
6445 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6446 *) ;;
6447 esac
6448
6449 fi
6450
6451
6452 # Check whether --enable-linker-plugin-configure-flags was given.
6453 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6454 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6455 else
6456 extra_linker_plugin_configure_flags=
6457 fi
6458
6459
6460 # Check whether --enable-linker-plugin-flags was given.
6461 if test "${enable_linker_plugin_flags+set}" = set; then :
6462 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6463 else
6464 extra_linker_plugin_flags=
6465 fi
6466
6467
6468
6469 # Enable --enable-host-shared.
6470 # Checked early to determine whether jit is an 'all' language
6471 # Check whether --enable-host-shared was given.
6472 if test "${enable_host_shared+set}" = set; then :
6473 enableval=$enable_host_shared; host_shared=$enableval
6474 else
6475 host_shared=no
6476 fi
6477
6478
6479
6480 # By default, C and C++ are the only stage 1 languages.
6481 stage1_languages=,c,
6482
6483 # Target libraries that we bootstrap.
6484 bootstrap_target_libs=,target-libgcc,
6485
6486 # Figure out what language subdirectories are present.
6487 # Look if the user specified --enable-languages="..."; if not, use
6488 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6489 # go away some day.
6490 # NB: embedded tabs in this IF block -- do not untabify
6491 if test -d ${srcdir}/gcc; then
6492 if test x"${enable_languages+set}" != xset; then
6493 if test x"${LANGUAGES+set}" = xset; then
6494 enable_languages="${LANGUAGES}"
6495 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6496 else
6497 enable_languages=default
6498 fi
6499 else
6500 if test x"${enable_languages}" = x ||
6501 test x"${enable_languages}" = xyes;
6502 then
6503 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6504 exit 1
6505 fi
6506 fi
6507 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6508
6509 # 'f95' is the old name for the 'fortran' language. We issue a warning
6510 # and make the substitution.
6511 case ,${enable_languages}, in
6512 *,f95,*)
6513 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6514 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6515 ;;
6516 esac
6517
6518 # If bootstrapping, C++ must be enabled.
6519 case ",$enable_languages,:$enable_bootstrap" in
6520 *,c++,*:*) ;;
6521 *:yes)
6522 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6523 enable_languages="${enable_languages},c++"
6524 else
6525 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6526 fi
6527 ;;
6528 esac
6529
6530 # First scan to see if an enabled language requires some other language.
6531 # We assume that a given config-lang.in will list all the language
6532 # front ends it requires, even if some are required indirectly.
6533 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6534 case ${lang_frag} in
6535 ..) ;;
6536 # The odd quoting in the next line works around
6537 # an apparent bug in bash 1.12 on linux.
6538 ${srcdir}/gcc/[*]/config-lang.in) ;;
6539 *)
6540 # From the config-lang.in, get $language, $lang_requires, and
6541 # $lang_requires_boot_languages.
6542 language=
6543 lang_requires=
6544 lang_requires_boot_languages=
6545 # set srcdir during sourcing lang_frag to the gcc dir.
6546 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6547 # polutes this shell
6548 saved_srcdir=${srcdir}
6549 srcdir=${srcdir}/gcc . ${lang_frag}
6550 srcdir=${saved_srcdir}
6551 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6552 case ,${enable_languages}, in
6553 *,$other,*) ;;
6554 *,default,*) ;;
6555 *,all,*) ;;
6556 *,$language,*)
6557 echo " \`$other' language required by \`$language'; enabling" 1>&2
6558 enable_languages="${enable_languages},${other}"
6559 ;;
6560 esac
6561 done
6562 for other in ${lang_requires_boot_languages} ; do
6563 if test "$other" != "c"; then
6564 case ,${enable_stage1_languages}, in
6565 *,$other,*) ;;
6566 *,default,*) ;;
6567 *,all,*) ;;
6568 *)
6569 case ,${enable_languages}, in
6570 *,$language,*)
6571 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6572 enable_stage1_languages="$enable_stage1_languages,${other}"
6573 ;;
6574 esac
6575 ;;
6576 esac
6577 fi
6578 done
6579 ;;
6580 esac
6581 done
6582
6583 new_enable_languages=,c,
6584
6585 # If LTO is enabled, add the LTO front end.
6586 if test "$enable_lto" = "yes" ; then
6587 case ,${enable_languages}, in
6588 *,lto,*) ;;
6589 *) enable_languages="${enable_languages},lto" ;;
6590 esac
6591 if test "${build_lto_plugin}" = "yes" ; then
6592 configdirs="$configdirs lto-plugin"
6593 fi
6594 fi
6595
6596 # If we're building an offloading compiler, add the LTO front end.
6597 if test x"$enable_as_accelerator_for" != x ; then
6598 case ,${enable_languages}, in
6599 *,lto,*) ;;
6600 *) enable_languages="${enable_languages},lto" ;;
6601 esac
6602 fi
6603
6604 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6605 potential_languages=,c,
6606
6607 enabled_target_libs=
6608 disabled_target_libs=
6609
6610 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6611 case ${lang_frag} in
6612 ..) ;;
6613 # The odd quoting in the next line works around
6614 # an apparent bug in bash 1.12 on linux.
6615 ${srcdir}/gcc/[*]/config-lang.in) ;;
6616 *)
6617 # From the config-lang.in, get $language, $target_libs,
6618 # $lang_dirs, $boot_language, and $build_by_default
6619 language=
6620 target_libs=
6621 lang_dirs=
6622 subdir_requires=
6623 boot_language=no
6624 build_by_default=yes
6625 # set srcdir during sourcing. See above about save & restore
6626 saved_srcdir=${srcdir}
6627 srcdir=${srcdir}/gcc . ${lang_frag}
6628 srcdir=${saved_srcdir}
6629 if test x${language} = x; then
6630 echo "${lang_frag} doesn't set \$language." 1>&2
6631 exit 1
6632 fi
6633
6634 if test "$language" = "c++"; then
6635 boot_language=yes
6636 fi
6637
6638 add_this_lang=no
6639 # C is always enabled, so no need to add it again
6640 if test "$language" != "c"; then
6641 case ,${enable_languages}, in
6642 *,${language},*)
6643 # Language was explicitly selected; include it
6644 add_this_lang=yes
6645 ;;
6646 *,all,*)
6647 # All languages are enabled
6648 add_this_lang=all
6649 ;;
6650 *,default,*)
6651 # 'default' was selected, select it if it is a default language
6652 add_this_lang=${build_by_default}
6653 ;;
6654 esac
6655 fi
6656
6657 # Disable languages that need other directories if these aren't available.
6658 for i in $subdir_requires; do
6659 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6660 case ${add_this_lang} in
6661 yes)
6662 # Specifically requested language; tell them.
6663 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6664 ;;
6665 all)
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6667 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6668 add_this_lang=unsupported
6669 ;;
6670 *)
6671 # Silently disable.
6672 add_this_lang=unsupported
6673 ;;
6674 esac
6675 done
6676
6677 # Disable Ada if no preexisting GNAT is available.
6678 case ${add_this_lang}:${language}:${have_gnat} in
6679 yes:ada:no)
6680 # Specifically requested language; tell them.
6681 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6682 ;;
6683 all:ada:no)
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6685 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6686 add_this_lang=unsupported
6687 ;;
6688 *:ada:no)
6689 # Silently disable.
6690 add_this_lang=unsupported
6691 ;;
6692 esac
6693
6694 # Disable jit if -enable-host-shared not specified
6695 case ${add_this_lang}:${language}:${host_shared} in
6696 yes:jit:no)
6697 # PR jit/64780: explicitly specify --enable-host-shared
6698 as_fn_error $? "
6699 Enabling language \"jit\" requires --enable-host-shared.
6700
6701 --enable-host-shared typically slows the rest of the compiler down by
6702 a few %, so you must explicitly enable it.
6703
6704 If you want to build both the jit and the regular compiler, it is often
6705 best to do this via two separate configure/builds, in separate
6706 directories, to avoid imposing the performance cost of
6707 --enable-host-shared on the regular compiler." "$LINENO" 5
6708 ;;
6709 all:jit:no)
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6711 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6712 add_this_lang=unsupported
6713 ;;
6714 *:jit:no)
6715 # Silently disable.
6716 add_this_lang=unsupported
6717 ;;
6718 esac
6719
6720 # Disable a language that is unsupported by the target.
6721 case "${add_this_lang}: $unsupported_languages " in
6722 no:*) ;;
6723 unsupported:*) ;;
6724 *:*" $language "*)
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6726 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6727 add_this_lang=unsupported
6728 ;;
6729 esac
6730
6731 case $add_this_lang in
6732 unsupported)
6733 # Remove language-dependent dirs.
6734 disabled_target_libs="$disabled_target_libs $target_libs"
6735 noconfigdirs="$noconfigdirs $lang_dirs"
6736 ;;
6737 no)
6738 # Remove language-dependent dirs; still show language as supported.
6739 disabled_target_libs="$disabled_target_libs $target_libs"
6740 noconfigdirs="$noconfigdirs $lang_dirs"
6741 potential_languages="${potential_languages}${language},"
6742 ;;
6743 all|yes)
6744 new_enable_languages="${new_enable_languages}${language},"
6745 potential_languages="${potential_languages}${language},"
6746 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6747 enabled_target_libs="$enabled_target_libs $target_libs"
6748 case "${boot_language}:,$enable_stage1_languages," in
6749 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6750 # Add to (comma-separated) list of stage 1 languages.
6751 case ",$stage1_languages," in
6752 *,$language,* | ,yes, | ,all,) ;;
6753 *) stage1_languages="${stage1_languages}${language}," ;;
6754 esac
6755 # We need to bootstrap any supporting libraries.
6756 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6757 ;;
6758 esac
6759 ;;
6760 esac
6761 ;;
6762 esac
6763 done
6764
6765 # Add target libraries which are only needed for disabled languages
6766 # to noconfigdirs.
6767 if test -n "$disabled_target_libs"; then
6768 for dir in $disabled_target_libs; do
6769 case " $enabled_target_libs " in
6770 *" ${dir} "*) ;;
6771 *) noconfigdirs="$noconfigdirs $dir" ;;
6772 esac
6773 done
6774 fi
6775
6776 # Check whether --enable-stage1-languages was given.
6777 if test "${enable_stage1_languages+set}" = set; then :
6778 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6779 ,no,|,,)
6780 # Set it to something that will have no effect in the loop below
6781 enable_stage1_languages=c ;;
6782 ,yes,)
6783 enable_stage1_languages=`echo $new_enable_languages | \
6784 sed -e "s/^,//" -e "s/,$//" ` ;;
6785 *,all,*)
6786 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6787 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6788 esac
6789
6790 # Add "good" languages from enable_stage1_languages to stage1_languages,
6791 # while "bad" languages go in missing_languages. Leave no duplicates.
6792 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6793 case $potential_languages in
6794 *,$i,*)
6795 case $stage1_languages in
6796 *,$i,*) ;;
6797 *) stage1_languages="$stage1_languages$i," ;;
6798 esac ;;
6799 *)
6800 case $missing_languages in
6801 *,$i,*) ;;
6802 *) missing_languages="$missing_languages$i," ;;
6803 esac ;;
6804 esac
6805 done
6806 fi
6807
6808
6809 # Remove leading/trailing commas that were added for simplicity
6810 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6811 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6812 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6813 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6814
6815 if test "x$missing_languages" != x; then
6816 as_fn_error $? "
6817 The following requested languages could not be built: ${missing_languages}
6818 Supported languages are: ${potential_languages}" "$LINENO" 5
6819 fi
6820 if test "x$new_enable_languages" != "x$enable_languages"; then
6821 echo The following languages will be built: ${new_enable_languages}
6822 enable_languages="$new_enable_languages"
6823 fi
6824
6825
6826 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6827 fi
6828
6829 # Handle --disable-<component> generically.
6830 for dir in $configdirs $build_configdirs $target_configdirs ; do
6831 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6832 varname=`echo $dirname | sed -e s/+/_/g`
6833 if eval test x\${enable_${varname}} "=" xno ; then
6834 noconfigdirs="$noconfigdirs $dir"
6835 fi
6836 done
6837
6838 # Check for Boehm's garbage collector
6839 # Check whether --enable-objc-gc was given.
6840 if test "${enable_objc_gc+set}" = set; then :
6841 enableval=$enable_objc_gc;
6842 fi
6843
6844
6845 # Check whether --with-target-bdw-gc was given.
6846 if test "${with_target_bdw_gc+set}" = set; then :
6847 withval=$with_target_bdw_gc;
6848 fi
6849
6850
6851 # Check whether --with-target-bdw-gc-include was given.
6852 if test "${with_target_bdw_gc_include+set}" = set; then :
6853 withval=$with_target_bdw_gc_include;
6854 fi
6855
6856
6857 # Check whether --with-target-bdw-gc-lib was given.
6858 if test "${with_target_bdw_gc_lib+set}" = set; then :
6859 withval=$with_target_bdw_gc_lib;
6860 fi
6861
6862
6863 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6865 $as_echo_n "checking for bdw garbage collector... " >&6; }
6866 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6868 $as_echo "using bdw-gc in default locations" >&6; }
6869 else
6870 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6871 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6872 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6873 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6874 else
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6876 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6877 fi
6878 fi
6879 esac
6880
6881 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6882 case ,${enable_languages}, in
6883 *,c++,*)
6884 # Disable libitm, libsanitizer if we're not building libstdc++
6885 case "${noconfigdirs}" in
6886 *target-libstdc++-v3*)
6887 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6888 ;;
6889 *) ;;
6890 esac
6891 ;;
6892 *)
6893 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6894 ;;
6895 esac
6896
6897 # If gcc/ is not in the source tree then we'll not be building a
6898 # target compiler, assume in that case we don't want to build any
6899 # target libraries or tools.
6900 #
6901 # This was added primarily for the benefit for binutils-gdb who reuse
6902 # this configure script, but don't always have target tools available.
6903 if test ! -d ${srcdir}/gcc; then
6904 skipdirs="${skipdirs} ${target_configdirs}"
6905 fi
6906
6907 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6908 # $build_configdirs and $target_configdirs.
6909 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6910
6911 notsupp=""
6912 for dir in . $skipdirs $noconfigdirs ; do
6913 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6914 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6915 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6916 if test -r $srcdir/$dirname/configure ; then
6917 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6918 true
6919 else
6920 notsupp="$notsupp $dir"
6921 fi
6922 fi
6923 fi
6924 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6925 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6926 if test -r $srcdir/$dirname/configure ; then
6927 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6928 true
6929 else
6930 notsupp="$notsupp $dir"
6931 fi
6932 fi
6933 fi
6934 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6935 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6936 if test -r $srcdir/$dirname/configure ; then
6937 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6938 true
6939 else
6940 notsupp="$notsupp $dir"
6941 fi
6942 fi
6943 fi
6944 done
6945
6946 # Quietly strip out all directories which aren't configurable in this tree.
6947 # This relies on all configurable subdirectories being autoconfiscated, which
6948 # is now the case.
6949 build_configdirs_all="$build_configdirs"
6950 build_configdirs=
6951 for i in ${build_configdirs_all} ; do
6952 j=`echo $i | sed -e s/build-//g`
6953 if test -f ${srcdir}/$j/configure ; then
6954 build_configdirs="${build_configdirs} $i"
6955 fi
6956 done
6957
6958 configdirs_all="$configdirs"
6959 configdirs=
6960 for i in ${configdirs_all} ; do
6961 if test -f ${srcdir}/$i/configure ; then
6962 configdirs="${configdirs} $i"
6963 fi
6964 done
6965
6966 target_configdirs_all="$target_configdirs"
6967 target_configdirs=
6968 for i in ${target_configdirs_all} ; do
6969 j=`echo $i | sed -e s/target-//g`
6970 if test -f ${srcdir}/$j/configure ; then
6971 target_configdirs="${target_configdirs} $i"
6972 fi
6973 done
6974
6975 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6976 # so we have to add it after the preceding checks.
6977 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6978 then
6979 case " $configdirs " in
6980 *" libiberty "*)
6981 # If we can build libiberty, we can also build libiberty-linker-plugin.
6982 configdirs="$configdirs libiberty-linker-plugin"
6983 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6984 --with-libiberty=../libiberty-linker-plugin";;
6985 *)
6986 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6987 esac
6988 fi
6989
6990 # Sometimes we have special requirements for the host libiberty.
6991 extra_host_libiberty_configure_flags=
6992 case " $configdirs " in
6993 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
6994 # When these are to be built as shared libraries, the same applies to
6995 # libiberty.
6996 extra_host_libiberty_configure_flags=--enable-shared
6997 ;;
6998 esac
6999
7000
7001 # Sometimes we have special requirements for the host zlib.
7002 extra_host_zlib_configure_flags=
7003 case " $configdirs " in
7004 *" bfd "*)
7005 # When bfd is to be built as a shared library, the same applies to
7006 # zlib.
7007 if test "$enable_shared" = "yes"; then
7008 extra_host_zlib_configure_flags=--enable-host-shared
7009 fi
7010 ;;
7011 esac
7012
7013
7014 # Produce a warning message for the subdirs we can't configure.
7015 # This isn't especially interesting in the Cygnus tree, but in the individual
7016 # FSF releases, it's important to let people know when their machine isn't
7017 # supported by the one or two programs in a package.
7018
7019 if test -n "${notsupp}" && test -z "${norecursion}" ; then
7020 # If $appdirs is non-empty, at least one of those directories must still
7021 # be configured, or we error out. (E.g., if the gas release supports a
7022 # specified target in some subdirs but not the gas subdir, we shouldn't
7023 # pretend that all is well.)
7024 if test -n "$appdirs" ; then
7025 for dir in $appdirs ; do
7026 if test -r $dir/Makefile.in ; then
7027 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7028 appdirs=""
7029 break
7030 fi
7031 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
7032 appdirs=""
7033 break
7034 fi
7035 fi
7036 done
7037 if test -n "$appdirs" ; then
7038 echo "*** This configuration is not supported by this package." 1>&2
7039 exit 1
7040 fi
7041 fi
7042 # Okay, some application will build, or we don't care to check. Still
7043 # notify of subdirs not getting built.
7044 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7045 echo " ${notsupp}" 1>&2
7046 echo " (Any other directories should still work fine.)" 1>&2
7047 fi
7048
7049 case "$host" in
7050 *msdosdjgpp*)
7051 enable_gdbtk=no ;;
7052 esac
7053
7054 # To find our prefix, in gcc_cv_tool_prefix.
7055
7056 # The user is always right.
7057 if test "${PATH_SEPARATOR+set}" != set; then
7058 echo "#! /bin/sh" >conf$$.sh
7059 echo "exit 0" >>conf$$.sh
7060 chmod +x conf$$.sh
7061 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7062 PATH_SEPARATOR=';'
7063 else
7064 PATH_SEPARATOR=:
7065 fi
7066 rm -f conf$$.sh
7067 fi
7068
7069
7070 get_gcc_base_ver="cat"
7071
7072 # Check whether --with-gcc-major-version-only was given.
7073 if test "${with_gcc_major_version_only+set}" = set; then :
7074 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
7075 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
7076 fi
7077
7078 fi
7079
7080
7081
7082
7083
7084
7085 if test "x$exec_prefix" = xNONE; then
7086 if test "x$prefix" = xNONE; then
7087 gcc_cv_tool_prefix=$ac_default_prefix
7088 else
7089 gcc_cv_tool_prefix=$prefix
7090 fi
7091 else
7092 gcc_cv_tool_prefix=$exec_prefix
7093 fi
7094
7095 # If there is no compiler in the tree, use the PATH only. In any
7096 # case, if there is no compiler in the tree nobody should use
7097 # AS_FOR_TARGET and LD_FOR_TARGET.
7098 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7099 if test x$with_gcc_major_version_only = xyes ; then
7100 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
7101 else
7102 gcc_version=`cat $srcdir/gcc/BASE-VER`
7103 fi
7104 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7105 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7106 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7107 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7108 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7109 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7110 else
7111 gcc_cv_tool_dirs=
7112 fi
7113
7114 if test x$build = x$target && test -n "$md_exec_prefix"; then
7115 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7116 fi
7117
7118
7119
7120 copy_dirs=
7121
7122
7123 # Check whether --with-build-sysroot was given.
7124 if test "${with_build_sysroot+set}" = set; then :
7125 withval=$with_build_sysroot; if test x"$withval" != x ; then
7126 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7127 fi
7128 else
7129 SYSROOT_CFLAGS_FOR_TARGET=
7130 fi
7131
7132
7133
7134
7135 # Check whether --with-debug-prefix-map was given.
7136 if test "${with_debug_prefix_map+set}" = set; then :
7137 withval=$with_debug_prefix_map; if test x"$withval" != x; then
7138 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7139 for debug_map in $withval; do
7140 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7141 done
7142 fi
7143 else
7144 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7145 fi
7146
7147
7148
7149 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7150 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7151 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7152 # We want to ensure that TARGET libraries (which we know are built with
7153 # gcc) are built with "-O2 -g", so include those options when setting
7154 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7155 if test "x$CFLAGS_FOR_TARGET" = x; then
7156 if test "x${is_cross_compiler}" = xyes; then
7157 CFLAGS_FOR_TARGET="-g -O2"
7158 else
7159 CFLAGS_FOR_TARGET=$CFLAGS
7160 case " $CFLAGS " in
7161 *" -O2 "*) ;;
7162 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7163 esac
7164 case " $CFLAGS " in
7165 *" -g "* | *" -g3 "*) ;;
7166 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7167 esac
7168 fi
7169 fi
7170
7171
7172 if test "x$CXXFLAGS_FOR_TARGET" = x; then
7173 if test "x${is_cross_compiler}" = xyes; then
7174 CXXFLAGS_FOR_TARGET="-g -O2"
7175 else
7176 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7177 case " $CXXFLAGS " in
7178 *" -O2 "*) ;;
7179 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7180 esac
7181 case " $CXXFLAGS " in
7182 *" -g "* | *" -g3 "*) ;;
7183 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7184 esac
7185 fi
7186 fi
7187
7188
7189
7190
7191 # Handle --with-headers=XXX. If the value is not "yes", the contents of
7192 # the named directory are copied to $(tooldir)/sys-include.
7193 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7194 if test x${is_cross_compiler} = xno ; then
7195 echo 1>&2 '***' --with-headers is only supported when cross compiling
7196 exit 1
7197 fi
7198 if test x"${with_headers}" != xyes ; then
7199 x=${gcc_cv_tool_prefix}
7200 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
7201 fi
7202 fi
7203
7204 # Handle --with-libs=XXX. If the value is not "yes", the contents of
7205 # the name directories are copied to $(tooldir)/lib. Multiple directories
7206 # are permitted.
7207 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7208 if test x${is_cross_compiler} = xno ; then
7209 echo 1>&2 '***' --with-libs is only supported when cross compiling
7210 exit 1
7211 fi
7212 if test x"${with_libs}" != xyes ; then
7213 # Copy the libraries in reverse order, so that files in the first named
7214 # library override files in subsequent libraries.
7215 x=${gcc_cv_tool_prefix}
7216 for l in ${with_libs}; do
7217 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7218 done
7219 fi
7220 fi
7221
7222 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7223 #
7224 # This is done by determining whether or not the appropriate directory
7225 # is available, and by checking whether or not specific configurations
7226 # have requested that this magic not happen.
7227 #
7228 # The command line options always override the explicit settings in
7229 # configure.ac, and the settings in configure.ac override this magic.
7230 #
7231 # If the default for a toolchain is to use GNU as and ld, and you don't
7232 # want to do that, then you should use the --without-gnu-as and
7233 # --without-gnu-ld options for the configure script. Similarly, if
7234 # the default is to use the included zlib and you don't want to do that,
7235 # you should use the --with-system-zlib option for the configure script.
7236
7237 if test x${use_gnu_as} = x &&
7238 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7239 with_gnu_as=yes
7240 extra_host_args="$extra_host_args --with-gnu-as"
7241 fi
7242
7243 if test x${use_gnu_ld} = x &&
7244 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7245 with_gnu_ld=yes
7246 extra_host_args="$extra_host_args --with-gnu-ld"
7247 fi
7248
7249 if test x${use_included_zlib} = x &&
7250 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7251 :
7252 else
7253 with_system_zlib=yes
7254 extra_host_args="$extra_host_args --with-system-zlib"
7255 fi
7256
7257 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7258 # can detect this case.
7259
7260 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7261 with_newlib=yes
7262 extra_host_args="$extra_host_args --with-newlib"
7263 fi
7264
7265 # Handle ${copy_dirs}
7266 set fnord ${copy_dirs}
7267 shift
7268 while test $# != 0 ; do
7269 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7270 :
7271 else
7272 echo Copying $1 to $2
7273
7274 # Use the install script to create the directory and all required
7275 # parent directories.
7276 if test -d $2 ; then
7277 :
7278 else
7279 echo >config.temp
7280 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7281 fi
7282
7283 # Copy the directory, assuming we have tar.
7284 # FIXME: Should we use B in the second tar? Not all systems support it.
7285 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7286
7287 # It is the responsibility of the user to correctly adjust all
7288 # symlinks. If somebody can figure out how to handle them correctly
7289 # here, feel free to add the code.
7290
7291 echo $1 > $2/COPIED
7292 fi
7293 shift; shift
7294 done
7295
7296 # Determine a target-dependent exec_prefix that the installed
7297 # gcc will search in. Keep this list sorted by triplet, with
7298 # the *-*-osname triplets last.
7299 md_exec_prefix=
7300 case "${target}" in
7301 i[34567]86-pc-msdosdjgpp*)
7302 md_exec_prefix=/dev/env/DJDIR/bin
7303 ;;
7304 *-*-hpux* | \
7305 *-*-nto-qnx* | \
7306 *-*-solaris2*)
7307 md_exec_prefix=/usr/ccs/bin
7308 ;;
7309 esac
7310
7311 extra_arflags_for_target=
7312 extra_nmflags_for_target=
7313 extra_ranlibflags_for_target=
7314 target_makefile_frag=/dev/null
7315 case "${target}" in
7316 spu-*-*)
7317 target_makefile_frag="config/mt-spu"
7318 ;;
7319 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
7320 target_makefile_frag="config/mt-sde"
7321 ;;
7322 mipsisa*-*-elfoabi*)
7323 target_makefile_frag="config/mt-mips-elfoabi"
7324 ;;
7325 mips*-*-*linux* | mips*-*-gnu*)
7326 target_makefile_frag="config/mt-mips-gnu"
7327 ;;
7328 nios2-*-elf*)
7329 target_makefile_frag="config/mt-nios2-elf"
7330 ;;
7331 *-*-linux-android*)
7332 target_makefile_frag="config/mt-android"
7333 ;;
7334 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7335 target_makefile_frag="config/mt-gnu"
7336 ;;
7337 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7338 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7339 # commands to handle both 32-bit and 64-bit objects. These flags are
7340 # harmless if we're using GNU nm or ar.
7341 extra_arflags_for_target=" -X32_64"
7342 extra_nmflags_for_target=" -B -X32_64"
7343 ;;
7344 esac
7345
7346 alphaieee_frag=/dev/null
7347 case $target in
7348 alpha*-*-*)
7349 # This just makes sure to use the -mieee option to build target libs.
7350 # This should probably be set individually by each library.
7351 alphaieee_frag="config/mt-alphaieee"
7352 ;;
7353 esac
7354
7355 # If --enable-target-optspace always use -Os instead of -O2 to build
7356 # the target libraries, similarly if it is not specified, use -Os
7357 # on selected platforms.
7358 ospace_frag=/dev/null
7359 case "${enable_target_optspace}:${target}" in
7360 yes:*)
7361 ospace_frag="config/mt-ospace"
7362 ;;
7363 :d30v-*)
7364 ospace_frag="config/mt-d30v"
7365 ;;
7366 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7367 ospace_frag="config/mt-ospace"
7368 ;;
7369 no:* | :*)
7370 ;;
7371 *)
7372 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7373 ;;
7374 esac
7375
7376 # Some systems (e.g., one of the i386-aix systems the gas testers are
7377 # using) don't handle "\$" correctly, so don't use it here.
7378 tooldir='${exec_prefix}'/${target_noncanonical}
7379 build_tooldir=${tooldir}
7380
7381 # Create a .gdbinit file which runs the one in srcdir
7382 # and tells GDB to look there for source files.
7383
7384 if test -r ${srcdir}/.gdbinit ; then
7385 case ${srcdir} in
7386 .) ;;
7387 *) cat > ./.gdbinit <<EOF
7388 # ${NO_EDIT}
7389 dir ${srcdir}
7390 dir .
7391 source ${srcdir}/.gdbinit
7392 EOF
7393 ;;
7394 esac
7395 fi
7396
7397 # Make sure that the compiler is able to generate an executable. If it
7398 # can't, we are probably in trouble. We don't care whether we can run the
7399 # executable--we might be using a cross compiler--we only care whether it
7400 # can be created. At this point the main configure script has set CC.
7401 we_are_ok=no
7402 echo "int main () { return 0; }" > conftest.c
7403 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7404 if test $? = 0 ; then
7405 if test -s conftest || test -s conftest.exe ; then
7406 we_are_ok=yes
7407 fi
7408 fi
7409 case $we_are_ok in
7410 no)
7411 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7412 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7413 rm -f conftest*
7414 exit 1
7415 ;;
7416 esac
7417 rm -f conftest*
7418
7419 # Decide which environment variable is used to find dynamic libraries.
7420 case "${host}" in
7421 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7422 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7423 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7424 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7425 esac
7426
7427 # On systems where the dynamic library environment variable is PATH,
7428 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7429 # built executables to PATH.
7430 if test "$RPATH_ENVVAR" = PATH; then
7431 GCC_SHLIB_SUBDIR=/shlib
7432 else
7433 GCC_SHLIB_SUBDIR=
7434 fi
7435
7436 # Adjust the toplevel makefile according to whether bootstrap was selected.
7437 case $enable_bootstrap in
7438 yes)
7439 bootstrap_suffix=bootstrap
7440 BUILD_CONFIG=bootstrap-debug
7441 ;;
7442 no)
7443 bootstrap_suffix=no-bootstrap
7444 BUILD_CONFIG=
7445 ;;
7446 esac
7447
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7449 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7450
7451
7452 # Check whether --with-build-config was given.
7453 if test "${with_build_config+set}" = set; then :
7454 withval=$with_build_config; case $with_build_config in
7455 yes) with_build_config= ;;
7456 no) with_build_config= BUILD_CONFIG= ;;
7457 esac
7458 fi
7459
7460
7461 if test "x${with_build_config}" != x; then
7462 BUILD_CONFIG=$with_build_config
7463 else
7464 case $BUILD_CONFIG in
7465 bootstrap-debug)
7466 if echo "int f (void) { return 0; }" > conftest.c &&
7467 ${CC} -c conftest.c &&
7468 mv conftest.o conftest.o.g0 &&
7469 ${CC} -c -g conftest.c &&
7470 mv conftest.o conftest.o.g &&
7471 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7472 :
7473 else
7474 BUILD_CONFIG=
7475 fi
7476 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7477 ;;
7478 esac
7479 fi
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7481 $as_echo "$BUILD_CONFIG" >&6; }
7482
7483
7484 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7486 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7487 # Check whether --enable-vtable-verify was given.
7488 if test "${enable_vtable_verify+set}" = set; then :
7489 enableval=$enable_vtable_verify; case "$enableval" in
7490 yes) enable_vtable_verify=yes ;;
7491 no) enable_vtable_verify=no ;;
7492 *) enable_vtable_verify=no;;
7493 esac
7494 else
7495 enable_vtable_verify=no
7496 fi
7497
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7499 $as_echo "$enable_vtable_verify" >&6; }
7500
7501 # Record target_configdirs and the configure arguments for target and
7502 # build configuration in Makefile.
7503 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7504 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7505 bootstrap_fixincludes=no
7506
7507 # If we are building libgomp, bootstrap it.
7508 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7509 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7510 fi
7511
7512 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7513 # or bootstrap-ubsan, bootstrap it.
7514 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7515 case "$BUILD_CONFIG" in
7516 *bootstrap-asan* | *bootstrap-ubsan* )
7517 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7518 bootstrap_fixincludes=yes
7519 ;;
7520 esac
7521 fi
7522
7523 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7524 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7525 test "$enable_vtable_verify" != no; then
7526 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7527 fi
7528
7529 # Determine whether gdb needs tk/tcl or not.
7530 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7531 # and in that case we want gdb to be built without tk. Ugh!
7532 # In fact I believe gdb is the *only* package directly dependent on tk,
7533 # so we should be able to put the 'maybe's in unconditionally and
7534 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7535 # 100% sure that that's safe though.
7536
7537 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7538 case "$enable_gdbtk" in
7539 no)
7540 GDB_TK="" ;;
7541 yes)
7542 GDB_TK="${gdb_tk}" ;;
7543 *)
7544 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7545 # distro. Eventually someone will fix this and move Insight, nee
7546 # gdbtk to a separate directory.
7547 if test -d ${srcdir}/gdb/gdbtk ; then
7548 GDB_TK="${gdb_tk}"
7549 else
7550 GDB_TK=""
7551 fi
7552 ;;
7553 esac
7554 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7555 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7556
7557 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7558 # else does, only include them if one of these is built. The Makefile
7559 # provides the ordering, so it's enough here to add to the list.
7560 case " ${configdirs} " in
7561 *\ gdb\ *)
7562 configdirs="${configdirs} gnulib gdbsupport"
7563 ;;
7564 *\ gdbserver\ *)
7565 configdirs="${configdirs} gnulib gdbsupport"
7566 ;;
7567 *\ sim\ *)
7568 configdirs="${configdirs} gnulib"
7569 ;;
7570 esac
7571
7572 # Strip out unwanted targets.
7573
7574 # While at that, we remove Makefiles if we were started for recursive
7575 # configuration, so that the top-level Makefile reconfigures them,
7576 # like we used to do when configure itself was recursive.
7577
7578 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7579 # but now we're fixing up the Makefile ourselves with the additional
7580 # commands passed to AC_CONFIG_FILES. Use separate variables
7581 # extrasub-{build,host,target} not because there is any reason to split
7582 # the substitutions up that way, but only to remain below the limit of
7583 # 99 commands in a script, for HP-UX sed.
7584
7585 # Do not nest @if/@endif or @unless/@endunless pairs, because
7586 # configure will not warn you at all.
7587
7588 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7589 yes:yes:*\ gold\ *:*,c++,*) ;;
7590 yes:yes:*\ gold\ *:*)
7591 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7592 ;;
7593 esac
7594
7595 extrasub_build=
7596 for module in ${build_configdirs} ; do
7597 if test -z "${no_recursion}" \
7598 && test -f ${build_subdir}/${module}/Makefile; then
7599 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7600 rm -f ${build_subdir}/${module}/Makefile
7601 fi
7602 extrasub_build="$extrasub_build
7603 /^@if build-$module\$/d
7604 /^@endif build-$module\$/d
7605 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7606 /^@if build-$module-$bootstrap_suffix\$/d
7607 /^@endif build-$module-$bootstrap_suffix\$/d
7608 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7609 done
7610 extrasub_host=
7611 for module in ${configdirs} ; do
7612 if test -z "${no_recursion}"; then
7613 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7614 if test -f ${file}; then
7615 echo 1>&2 "*** removing ${file} to force reconfigure"
7616 rm -f ${file}
7617 fi
7618 done
7619 fi
7620 case ${module},${bootstrap_fixincludes} in
7621 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7622 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7623 esac
7624 extrasub_host="$extrasub_host
7625 /^@if $module\$/d
7626 /^@endif $module\$/d
7627 /^@unless $module\$/,/^@endunless $module\$/d
7628 /^@if $module-$host_bootstrap_suffix\$/d
7629 /^@endif $module-$host_bootstrap_suffix\$/d
7630 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7631 done
7632 extrasub_target=
7633 for module in ${target_configdirs} ; do
7634 if test -z "${no_recursion}" \
7635 && test -f ${target_subdir}/${module}/Makefile; then
7636 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7637 rm -f ${target_subdir}/${module}/Makefile
7638 fi
7639
7640 # We only bootstrap target libraries listed in bootstrap_target_libs.
7641 case $bootstrap_target_libs in
7642 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7643 *) target_bootstrap_suffix=no-bootstrap ;;
7644 esac
7645
7646 extrasub_target="$extrasub_target
7647 /^@if target-$module\$/d
7648 /^@endif target-$module\$/d
7649 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7650 /^@if target-$module-$target_bootstrap_suffix\$/d
7651 /^@endif target-$module-$target_bootstrap_suffix\$/d
7652 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7653 done
7654
7655 # Do the final fixup along with target modules.
7656 extrasub_target="$extrasub_target
7657 /^@if /,/^@endif /d
7658 /^@unless /d
7659 /^@endunless /d"
7660
7661 if test "$enable_pgo_build" != "no"; then
7662 extrasub_build="$extrasub_build
7663 /^@if pgo-build\$/d
7664 /^@endif pgo-build\$/d"
7665 fi
7666
7667 # Create the serialization dependencies. This uses a temporary file.
7668
7669 # Check whether --enable-serial-configure was given.
7670 if test "${enable_serial_configure+set}" = set; then :
7671 enableval=$enable_serial_configure;
7672 fi
7673
7674
7675 case ${enable_serial_configure} in
7676 yes)
7677 enable_serial_build_configure=yes
7678 enable_serial_host_configure=yes
7679 enable_serial_target_configure=yes
7680 ;;
7681 esac
7682
7683 # These force 'configure's to be done one at a time, to avoid problems
7684 # with contention over a shared config.cache.
7685 rm -f serdep.tmp
7686 echo '# serdep.tmp' > serdep.tmp
7687 olditem=
7688 test "x${enable_serial_build_configure}" = xyes &&
7689 for item in ${build_configdirs} ; do
7690 case ${olditem} in
7691 "") ;;
7692 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7693 esac
7694 olditem=${item}
7695 done
7696 olditem=
7697 test "x${enable_serial_host_configure}" = xyes &&
7698 for item in ${configdirs} ; do
7699 case ${olditem} in
7700 "") ;;
7701 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7702 esac
7703 olditem=${item}
7704 done
7705 olditem=
7706 test "x${enable_serial_target_configure}" = xyes &&
7707 for item in ${target_configdirs} ; do
7708 case ${olditem} in
7709 "") ;;
7710 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7711 esac
7712 olditem=${item}
7713 done
7714 serialization_dependencies=serdep.tmp
7715
7716
7717 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7718 # target, nonopt, and variable assignments. These are the ones we
7719 # might not want to pass down to subconfigures. The exception being
7720 # --cache-file=/dev/null, which is used to turn off the use of cache
7721 # files altogether, and which should be passed on to subconfigures.
7722 # Also strip program-prefix, program-suffix, and program-transform-name,
7723 # so that we can pass down a consistent program-transform-name.
7724 baseargs=
7725 tbaseargs=
7726 keep_next=no
7727 skip_next=no
7728 eval "set -- $ac_configure_args"
7729 for ac_arg
7730 do
7731 if test X"$skip_next" = X"yes"; then
7732 skip_next=no
7733 continue
7734 fi
7735 if test X"$keep_next" = X"yes"; then
7736 case $ac_arg in
7737 *\'*)
7738 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7739 esac
7740 baseargs="$baseargs '$ac_arg'"
7741 tbaseargs="$tbaseargs '$ac_arg'"
7742 keep_next=no
7743 continue
7744 fi
7745
7746 # Handle separated arguments. Based on the logic generated by
7747 # autoconf 2.59.
7748 case $ac_arg in
7749 *=* | --config-cache | -C | -disable-* | --disable-* \
7750 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7751 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7752 | -with-* | --with-* | -without-* | --without-* | --x)
7753 separate_arg=no
7754 ;;
7755 -*)
7756 separate_arg=yes
7757 ;;
7758 *)
7759 separate_arg=no
7760 ;;
7761 esac
7762
7763 skip_targ=no
7764 case $ac_arg in
7765
7766 --with-* | --without-*)
7767 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7768
7769 case $libopt in
7770 *[-_]include)
7771 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7772 ;;
7773 *[-_]lib)
7774 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7775 ;;
7776 *)
7777 lib=$libopt
7778 ;;
7779 esac
7780
7781
7782 case $lib in
7783 mpc | mpfr | gmp | isl)
7784 # If we're processing --with-$lib, --with-$lib-include or
7785 # --with-$lib-lib, for one of the libs above, and target is
7786 # different from host, don't pass the current argument to any
7787 # target library's configure.
7788 if test x$is_cross_compiler = xyes; then
7789 skip_targ=yes
7790 fi
7791 ;;
7792 esac
7793 ;;
7794 esac
7795
7796 case "$ac_arg" in
7797 --cache-file=/dev/null | \
7798 -cache-file=/dev/null )
7799 # Handled here to avoid the test to skip args below.
7800 baseargs="$baseargs '$ac_arg'"
7801 tbaseargs="$tbaseargs '$ac_arg'"
7802 # Assert: $separate_arg should always be no.
7803 keep_next=$separate_arg
7804 ;;
7805 --no*)
7806 continue
7807 ;;
7808 --c* | \
7809 --sr* | \
7810 --ho* | \
7811 --bu* | \
7812 --t* | \
7813 --program-* | \
7814 -cache_file* | \
7815 -srcdir* | \
7816 -host* | \
7817 -build* | \
7818 -target* | \
7819 -program-prefix* | \
7820 -program-suffix* | \
7821 -program-transform-name* )
7822 skip_next=$separate_arg
7823 continue
7824 ;;
7825 -*)
7826 # An option. Add it.
7827 case $ac_arg in
7828 *\'*)
7829 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7830 esac
7831 baseargs="$baseargs '$ac_arg'"
7832 if test X"$skip_targ" = Xno; then
7833 tbaseargs="$tbaseargs '$ac_arg'"
7834 fi
7835 keep_next=$separate_arg
7836 ;;
7837 *)
7838 # Either a variable assignment, or a nonopt (triplet). Don't
7839 # pass it down; let the Makefile handle this.
7840 continue
7841 ;;
7842 esac
7843 done
7844 # Remove the initial space we just introduced and, as these will be
7845 # expanded by make, quote '$'.
7846 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7847
7848 # Add in --program-transform-name, after --program-prefix and
7849 # --program-suffix have been applied to it. Autoconf has already
7850 # doubled dollar signs and backslashes in program_transform_name; we want
7851 # the backslashes un-doubled, and then the entire thing wrapped in single
7852 # quotes, because this will be expanded first by make and then by the shell.
7853 # Also, because we want to override the logic in subdir configure scripts to
7854 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7855 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7856 ${program_transform_name}
7857 EOF_SED
7858 gcc_transform_name=`cat conftestsed.out`
7859 rm -f conftestsed.out
7860 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7861 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7862 if test "$silent" = yes; then
7863 baseargs="$baseargs --silent"
7864 tbaseargs="$tbaseargs --silent"
7865 fi
7866
7867 baseargs="$baseargs --disable-option-checking"
7868 tbaseargs="$tbaseargs --disable-option-checking"
7869
7870 if test "$enable_year2038" = no; then
7871 baseargs="$baseargs --disable-year2038"
7872 tbaseargs="$tbaseargs --disable-year2038"
7873 fi
7874
7875 # Record and document user additions to sub configure arguments.
7876
7877
7878
7879
7880 # For the build-side libraries, we just need to pretend we're native,
7881 # and not use the same cache file. Multilibs are neither needed nor
7882 # desired. We can't even use the same cache file for all build-side
7883 # libraries, as they're compiled differently; some with C, some with
7884 # C++ or with different feature-enabling options.
7885 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7886
7887 # For host modules, accept cache file option, or specification as blank.
7888 case "${cache_file}" in
7889 "") # empty
7890 cache_file_option="" ;;
7891 /* | [A-Za-z]:[\\/]* ) # absolute path
7892 cache_file_option="--cache-file=${cache_file}" ;;
7893 *) # relative path
7894 cache_file_option="--cache-file=../${cache_file}" ;;
7895 esac
7896
7897 # Host dirs don't like to share a cache file either, horribly enough.
7898 # This seems to be due to autoconf 2.5x stupidity.
7899 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7900
7901 target_configargs="$target_configargs ${tbaseargs}"
7902
7903 # Passing a --with-cross-host argument lets the target libraries know
7904 # whether they are being built with a cross-compiler or being built
7905 # native. However, it would be better to use other mechanisms to make the
7906 # sorts of decisions they want to make on this basis. Please consider
7907 # this option to be deprecated. FIXME.
7908 if test x${is_cross_compiler} = xyes ; then
7909 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7910 fi
7911
7912 # Special user-friendly check for native x86_64-linux build, if
7913 # multilib is not explicitly enabled.
7914 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7915 x86_64-*linux*:yes:$build:$build:)
7916 # Make sure we have a development environment that handles 32-bit
7917 dev64=no
7918 echo "int main () { return 0; }" > conftest.c
7919 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7920 if test $? = 0 ; then
7921 if test -s conftest || test -s conftest.exe ; then
7922 dev64=yes
7923 fi
7924 fi
7925 rm -f conftest*
7926 if test x${dev64} != xyes ; then
7927 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
7928 fi
7929 ;;
7930 esac
7931
7932 # Default to --enable-multilib.
7933 if test x${enable_multilib} = x ; then
7934 target_configargs="--enable-multilib ${target_configargs}"
7935 fi
7936
7937 # Pass --with-newlib if appropriate. Note that target_configdirs has
7938 # changed from the earlier setting of with_newlib.
7939 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7940 target_configargs="--with-newlib ${target_configargs}"
7941 fi
7942
7943 # Different target subdirs use different values of certain variables
7944 # (notably CXX). Worse, multilibs use *lots* of different values.
7945 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7946 # it doesn't automatically accept command-line overrides of them.
7947 # This means it's not safe for target subdirs to share a cache file,
7948 # which is disgusting, but there you have it. Hopefully this can be
7949 # fixed in future. It's still worthwhile to use a cache file for each
7950 # directory. I think.
7951
7952 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7953 # We need to pass --target, as newer autoconf's requires consistency
7954 # for target_alias and gcc doesn't manage it consistently.
7955 target_configargs="--cache-file=./config.cache ${target_configargs}"
7956
7957 FLAGS_FOR_TARGET=
7958 case " $target_configdirs " in
7959 *" newlib "*)
7960 case " $target_configargs " in
7961 *" --with-newlib "*)
7962 case "$target" in
7963 *-cygwin*)
7964 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7965 ;;
7966 esac
7967
7968 # If we're not building GCC, don't discard standard headers.
7969 if test -d ${srcdir}/gcc; then
7970 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7971
7972 if test "${build}" != "${host}"; then
7973 # On Canadian crosses, CC_FOR_TARGET will have already been set
7974 # by `configure', so we won't have an opportunity to add -Bgcc/
7975 # to it. This is right: we don't want to search that directory
7976 # for binaries, but we want the header files in there, so add
7977 # them explicitly.
7978 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7979
7980 # Someone might think of using the pre-installed headers on
7981 # Canadian crosses, in case the installed compiler is not fully
7982 # compatible with the compiler being built. In this case, it
7983 # would be better to flag an error than risking having
7984 # incompatible object files being constructed. We can't
7985 # guarantee that an error will be flagged, but let's hope the
7986 # compiler will do it, when presented with incompatible header
7987 # files.
7988 fi
7989 fi
7990
7991 case "${target}-${is_cross_compiler}" in
7992 i[3456789]86-*-linux*-no)
7993 # Here host == target, so we don't need to build gcc,
7994 # so we don't want to discard standard headers.
7995 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7996 ;;
7997 *)
7998 # If we're building newlib, use its generic headers last, but search
7999 # for any libc-related directories first (so make it the last -B
8000 # switch).
8001 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
8002
8003 # If we're building libgloss, find the startup file, simulator library
8004 # and linker script.
8005 case " $target_configdirs " in
8006 *" libgloss "*)
8007 # Look for startup file, simulator library and maybe linker script.
8008 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
8009 # Look for libnosys.a in case the target needs it.
8010 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
8011 # Most targets have the linker script in the source directory.
8012 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
8013 ;;
8014 esac
8015 ;;
8016 esac
8017 ;;
8018 esac
8019 ;;
8020 esac
8021
8022 case "$target" in
8023 x86_64-*mingw* | *-w64-mingw*)
8024 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
8025 # however, use a symlink named 'mingw' in ${prefix} .
8026 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
8027 ;;
8028 *-mingw*)
8029 # MinGW can't be handled as Cygwin above since it does not use newlib.
8030 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'
8031 ;;
8032 esac
8033
8034 # Allow the user to override the flags for
8035 # our build compiler if desired.
8036 if test x"${build}" = x"${host}" ; then
8037 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
8038 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
8039 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8040 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8041 fi
8042
8043 # On Canadian crosses, we'll be searching the right directories for
8044 # the previously-installed cross compiler, so don't bother to add
8045 # flags for directories within the install tree of the compiler
8046 # being built; programs in there won't even run.
8047 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8048 # Search for pre-installed headers if nothing else fits.
8049 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
8050 fi
8051
8052 if test "x${use_gnu_ld}" = x &&
8053 echo " ${configdirs} " | grep " ld " > /dev/null ; then
8054 # Arrange for us to find uninstalled linker scripts.
8055 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
8056 fi
8057
8058 # Search for other target-specific linker scripts and such.
8059 case "${target}" in
8060 mep*)
8061 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8062 ;;
8063 esac
8064
8065 # Makefile fragments.
8066 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8067 do
8068 eval fragval=\$$frag
8069 if test $fragval != /dev/null; then
8070 eval $frag=${srcdir}/$fragval
8071 fi
8072 done
8073
8074
8075
8076
8077
8078 # Miscellanea: directories, flags, etc.
8079
8080
8081
8082
8083
8084
8085
8086
8087 # Build module lists & subconfigure args.
8088
8089
8090
8091 # Host module lists & subconfigure args.
8092
8093
8094
8095
8096 # Target module lists & subconfigure args.
8097
8098
8099
8100 # Build tools.
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118 # Generate default definitions for YACC, M4, LEX and other programs that run
8119 # on the build machine. These are used if the Makefile can't locate these
8120 # programs in objdir.
8121 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8122
8123 for ac_prog in 'bison -y' byacc yacc
8124 do
8125 # Extract the first word of "$ac_prog", so it can be a program name with args.
8126 set dummy $ac_prog; ac_word=$2
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128 $as_echo_n "checking for $ac_word... " >&6; }
8129 if ${ac_cv_prog_YACC+:} false; then :
8130 $as_echo_n "(cached) " >&6
8131 else
8132 if test -n "$YACC"; then
8133 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138 IFS=$as_save_IFS
8139 test -z "$as_dir" && as_dir=.
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8142 ac_cv_prog_YACC="$ac_prog"
8143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144 break 2
8145 fi
8146 done
8147 done
8148 IFS=$as_save_IFS
8149
8150 fi
8151 fi
8152 YACC=$ac_cv_prog_YACC
8153 if test -n "$YACC"; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8155 $as_echo "$YACC" >&6; }
8156 else
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8159 fi
8160
8161
8162 test -n "$YACC" && break
8163 done
8164 test -n "$YACC" || YACC="$MISSING bison -y"
8165
8166 case " $build_configdirs " in
8167 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8168 esac
8169
8170 for ac_prog in bison
8171 do
8172 # Extract the first word of "$ac_prog", so it can be a program name with args.
8173 set dummy $ac_prog; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if ${ac_cv_prog_BISON+:} false; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 if test -n "$BISON"; then
8180 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8181 else
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8184 do
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189 ac_cv_prog_BISON="$ac_prog"
8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 break 2
8192 fi
8193 done
8194 done
8195 IFS=$as_save_IFS
8196
8197 fi
8198 fi
8199 BISON=$ac_cv_prog_BISON
8200 if test -n "$BISON"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8202 $as_echo "$BISON" >&6; }
8203 else
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8206 fi
8207
8208
8209 test -n "$BISON" && break
8210 done
8211 test -n "$BISON" || BISON="$MISSING bison"
8212
8213 case " $build_configdirs " in
8214 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8215 esac
8216
8217 for ac_prog in gm4 gnum4 m4
8218 do
8219 # Extract the first word of "$ac_prog", so it can be a program name with args.
8220 set dummy $ac_prog; ac_word=$2
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 $as_echo_n "checking for $ac_word... " >&6; }
8223 if ${ac_cv_prog_M4+:} false; then :
8224 $as_echo_n "(cached) " >&6
8225 else
8226 if test -n "$M4"; then
8227 ac_cv_prog_M4="$M4" # Let the user override the test.
8228 else
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 for as_dir in $PATH
8231 do
8232 IFS=$as_save_IFS
8233 test -z "$as_dir" && as_dir=.
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8236 ac_cv_prog_M4="$ac_prog"
8237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8238 break 2
8239 fi
8240 done
8241 done
8242 IFS=$as_save_IFS
8243
8244 fi
8245 fi
8246 M4=$ac_cv_prog_M4
8247 if test -n "$M4"; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8249 $as_echo "$M4" >&6; }
8250 else
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252 $as_echo "no" >&6; }
8253 fi
8254
8255
8256 test -n "$M4" && break
8257 done
8258 test -n "$M4" || M4="$MISSING m4"
8259
8260 case " $build_configdirs " in
8261 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8262 esac
8263
8264 for ac_prog in flex lex
8265 do
8266 # Extract the first word of "$ac_prog", so it can be a program name with args.
8267 set dummy $ac_prog; ac_word=$2
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8269 $as_echo_n "checking for $ac_word... " >&6; }
8270 if ${ac_cv_prog_LEX+:} false; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 if test -n "$LEX"; then
8274 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8275 else
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 for as_dir in $PATH
8278 do
8279 IFS=$as_save_IFS
8280 test -z "$as_dir" && as_dir=.
8281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8283 ac_cv_prog_LEX="$ac_prog"
8284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 break 2
8286 fi
8287 done
8288 done
8289 IFS=$as_save_IFS
8290
8291 fi
8292 fi
8293 LEX=$ac_cv_prog_LEX
8294 if test -n "$LEX"; then
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8296 $as_echo "$LEX" >&6; }
8297 else
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8299 $as_echo "no" >&6; }
8300 fi
8301
8302
8303 test -n "$LEX" && break
8304 done
8305 test -n "$LEX" || LEX="$MISSING flex"
8306
8307 case " $build_configdirs " in
8308 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8309 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8310 esac
8311
8312 for ac_prog in flex
8313 do
8314 # Extract the first word of "$ac_prog", so it can be a program name with args.
8315 set dummy $ac_prog; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if ${ac_cv_prog_FLEX+:} false; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 if test -n "$FLEX"; then
8322 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8326 do
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8331 ac_cv_prog_FLEX="$ac_prog"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 break 2
8334 fi
8335 done
8336 done
8337 IFS=$as_save_IFS
8338
8339 fi
8340 fi
8341 FLEX=$ac_cv_prog_FLEX
8342 if test -n "$FLEX"; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8344 $as_echo "$FLEX" >&6; }
8345 else
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8348 fi
8349
8350
8351 test -n "$FLEX" && break
8352 done
8353 test -n "$FLEX" || FLEX="$MISSING flex"
8354
8355 case " $build_configdirs " in
8356 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8357 esac
8358
8359 for ac_prog in makeinfo
8360 do
8361 # Extract the first word of "$ac_prog", so it can be a program name with args.
8362 set dummy $ac_prog; ac_word=$2
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 $as_echo_n "checking for $ac_word... " >&6; }
8365 if ${ac_cv_prog_MAKEINFO+:} false; then :
8366 $as_echo_n "(cached) " >&6
8367 else
8368 if test -n "$MAKEINFO"; then
8369 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8370 else
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8373 do
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8378 ac_cv_prog_MAKEINFO="$ac_prog"
8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 break 2
8381 fi
8382 done
8383 done
8384 IFS=$as_save_IFS
8385
8386 fi
8387 fi
8388 MAKEINFO=$ac_cv_prog_MAKEINFO
8389 if test -n "$MAKEINFO"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8391 $as_echo "$MAKEINFO" >&6; }
8392 else
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8395 fi
8396
8397
8398 test -n "$MAKEINFO" && break
8399 done
8400 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8401
8402 case " $build_configdirs " in
8403 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8404 *)
8405
8406 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8407 # higher, else we use the "missing" dummy.
8408 if ${MAKEINFO} --version \
8409 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8410 :
8411 else
8412 MAKEINFO="$MISSING makeinfo"
8413 fi
8414 ;;
8415
8416 esac
8417
8418 # FIXME: expect and dejagnu may become build tools?
8419
8420 for ac_prog in expect
8421 do
8422 # Extract the first word of "$ac_prog", so it can be a program name with args.
8423 set dummy $ac_prog; ac_word=$2
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 $as_echo_n "checking for $ac_word... " >&6; }
8426 if ${ac_cv_prog_EXPECT+:} false; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 if test -n "$EXPECT"; then
8430 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8431 else
8432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433 for as_dir in $PATH
8434 do
8435 IFS=$as_save_IFS
8436 test -z "$as_dir" && as_dir=.
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8439 ac_cv_prog_EXPECT="$ac_prog"
8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 break 2
8442 fi
8443 done
8444 done
8445 IFS=$as_save_IFS
8446
8447 fi
8448 fi
8449 EXPECT=$ac_cv_prog_EXPECT
8450 if test -n "$EXPECT"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8452 $as_echo "$EXPECT" >&6; }
8453 else
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8456 fi
8457
8458
8459 test -n "$EXPECT" && break
8460 done
8461 test -n "$EXPECT" || EXPECT="expect"
8462
8463 case " $configdirs " in
8464 *" expect "*)
8465 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8466 ;;
8467 esac
8468
8469 for ac_prog in runtest
8470 do
8471 # Extract the first word of "$ac_prog", so it can be a program name with args.
8472 set dummy $ac_prog; ac_word=$2
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474 $as_echo_n "checking for $ac_word... " >&6; }
8475 if ${ac_cv_prog_RUNTEST+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 if test -n "$RUNTEST"; then
8479 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8480 else
8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 for as_dir in $PATH
8483 do
8484 IFS=$as_save_IFS
8485 test -z "$as_dir" && as_dir=.
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8488 ac_cv_prog_RUNTEST="$ac_prog"
8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490 break 2
8491 fi
8492 done
8493 done
8494 IFS=$as_save_IFS
8495
8496 fi
8497 fi
8498 RUNTEST=$ac_cv_prog_RUNTEST
8499 if test -n "$RUNTEST"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8501 $as_echo "$RUNTEST" >&6; }
8502 else
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8505 fi
8506
8507
8508 test -n "$RUNTEST" && break
8509 done
8510 test -n "$RUNTEST" || RUNTEST="runtest"
8511
8512 case " $configdirs " in
8513 *" dejagnu "*)
8514 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8515 ;;
8516 esac
8517
8518
8519 # Host tools.
8520 ncn_tool_prefix=
8521 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8522 ncn_target_tool_prefix=
8523 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8524
8525
8526
8527 if test -n "$AR"; then
8528 ac_cv_prog_AR=$AR
8529 elif test -n "$ac_cv_prog_AR"; then
8530 AR=$ac_cv_prog_AR
8531 fi
8532
8533 if test -n "$ac_cv_prog_AR"; then
8534 for ncn_progname in ar; do
8535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8536 set dummy ${ncn_progname}; ac_word=$2
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if ${ac_cv_prog_AR+:} false; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 if test -n "$AR"; then
8543 ac_cv_prog_AR="$AR" # Let the user override the test.
8544 else
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 for as_dir in $PATH
8547 do
8548 IFS=$as_save_IFS
8549 test -z "$as_dir" && as_dir=.
8550 for ac_exec_ext in '' $ac_executable_extensions; do
8551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8552 ac_cv_prog_AR="${ncn_progname}"
8553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8554 break 2
8555 fi
8556 done
8557 done
8558 IFS=$as_save_IFS
8559
8560 fi
8561 fi
8562 AR=$ac_cv_prog_AR
8563 if test -n "$AR"; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8565 $as_echo "$AR" >&6; }
8566 else
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8569 fi
8570
8571
8572 done
8573 fi
8574
8575 for ncn_progname in ar; do
8576 if test -n "$ncn_tool_prefix"; then
8577 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8578 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 $as_echo_n "checking for $ac_word... " >&6; }
8581 if ${ac_cv_prog_AR+:} false; then :
8582 $as_echo_n "(cached) " >&6
8583 else
8584 if test -n "$AR"; then
8585 ac_cv_prog_AR="$AR" # Let the user override the test.
8586 else
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 for as_dir in $PATH
8589 do
8590 IFS=$as_save_IFS
8591 test -z "$as_dir" && as_dir=.
8592 for ac_exec_ext in '' $ac_executable_extensions; do
8593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8594 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596 break 2
8597 fi
8598 done
8599 done
8600 IFS=$as_save_IFS
8601
8602 fi
8603 fi
8604 AR=$ac_cv_prog_AR
8605 if test -n "$AR"; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8607 $as_echo "$AR" >&6; }
8608 else
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }
8611 fi
8612
8613
8614 fi
8615 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8617 set dummy ${ncn_progname}; ac_word=$2
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8619 $as_echo_n "checking for $ac_word... " >&6; }
8620 if ${ac_cv_prog_AR+:} false; then :
8621 $as_echo_n "(cached) " >&6
8622 else
8623 if test -n "$AR"; then
8624 ac_cv_prog_AR="$AR" # Let the user override the test.
8625 else
8626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627 for as_dir in $PATH
8628 do
8629 IFS=$as_save_IFS
8630 test -z "$as_dir" && as_dir=.
8631 for ac_exec_ext in '' $ac_executable_extensions; do
8632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8633 ac_cv_prog_AR="${ncn_progname}"
8634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8635 break 2
8636 fi
8637 done
8638 done
8639 IFS=$as_save_IFS
8640
8641 fi
8642 fi
8643 AR=$ac_cv_prog_AR
8644 if test -n "$AR"; then
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8646 $as_echo "$AR" >&6; }
8647 else
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649 $as_echo "no" >&6; }
8650 fi
8651
8652
8653 fi
8654 test -n "$ac_cv_prog_AR" && break
8655 done
8656
8657 if test -z "$ac_cv_prog_AR" ; then
8658 set dummy ar
8659 if test $build = $host ; then
8660 AR="$2"
8661 else
8662 AR="${ncn_tool_prefix}$2"
8663 fi
8664 fi
8665
8666
8667
8668 if test -n "$AS"; then
8669 ac_cv_prog_AS=$AS
8670 elif test -n "$ac_cv_prog_AS"; then
8671 AS=$ac_cv_prog_AS
8672 fi
8673
8674 if test -n "$ac_cv_prog_AS"; then
8675 for ncn_progname in as; do
8676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8677 set dummy ${ncn_progname}; ac_word=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if ${ac_cv_prog_AS+:} false; then :
8681 $as_echo_n "(cached) " >&6
8682 else
8683 if test -n "$AS"; then
8684 ac_cv_prog_AS="$AS" # Let the user override the test.
8685 else
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8688 do
8689 IFS=$as_save_IFS
8690 test -z "$as_dir" && as_dir=.
8691 for ac_exec_ext in '' $ac_executable_extensions; do
8692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8693 ac_cv_prog_AS="${ncn_progname}"
8694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695 break 2
8696 fi
8697 done
8698 done
8699 IFS=$as_save_IFS
8700
8701 fi
8702 fi
8703 AS=$ac_cv_prog_AS
8704 if test -n "$AS"; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8706 $as_echo "$AS" >&6; }
8707 else
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8710 fi
8711
8712
8713 done
8714 fi
8715
8716 for ncn_progname in as; do
8717 if test -n "$ncn_tool_prefix"; then
8718 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8719 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8721 $as_echo_n "checking for $ac_word... " >&6; }
8722 if ${ac_cv_prog_AS+:} false; then :
8723 $as_echo_n "(cached) " >&6
8724 else
8725 if test -n "$AS"; then
8726 ac_cv_prog_AS="$AS" # Let the user override the test.
8727 else
8728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8729 for as_dir in $PATH
8730 do
8731 IFS=$as_save_IFS
8732 test -z "$as_dir" && as_dir=.
8733 for ac_exec_ext in '' $ac_executable_extensions; do
8734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8735 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8737 break 2
8738 fi
8739 done
8740 done
8741 IFS=$as_save_IFS
8742
8743 fi
8744 fi
8745 AS=$ac_cv_prog_AS
8746 if test -n "$AS"; then
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8748 $as_echo "$AS" >&6; }
8749 else
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751 $as_echo "no" >&6; }
8752 fi
8753
8754
8755 fi
8756 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8758 set dummy ${ncn_progname}; ac_word=$2
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8760 $as_echo_n "checking for $ac_word... " >&6; }
8761 if ${ac_cv_prog_AS+:} false; then :
8762 $as_echo_n "(cached) " >&6
8763 else
8764 if test -n "$AS"; then
8765 ac_cv_prog_AS="$AS" # Let the user override the test.
8766 else
8767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8768 for as_dir in $PATH
8769 do
8770 IFS=$as_save_IFS
8771 test -z "$as_dir" && as_dir=.
8772 for ac_exec_ext in '' $ac_executable_extensions; do
8773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8774 ac_cv_prog_AS="${ncn_progname}"
8775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8776 break 2
8777 fi
8778 done
8779 done
8780 IFS=$as_save_IFS
8781
8782 fi
8783 fi
8784 AS=$ac_cv_prog_AS
8785 if test -n "$AS"; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8787 $as_echo "$AS" >&6; }
8788 else
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8790 $as_echo "no" >&6; }
8791 fi
8792
8793
8794 fi
8795 test -n "$ac_cv_prog_AS" && break
8796 done
8797
8798 if test -z "$ac_cv_prog_AS" ; then
8799 set dummy as
8800 if test $build = $host ; then
8801 AS="$2"
8802 else
8803 AS="${ncn_tool_prefix}$2"
8804 fi
8805 fi
8806
8807
8808
8809 if test -n "$DLLTOOL"; then
8810 ac_cv_prog_DLLTOOL=$DLLTOOL
8811 elif test -n "$ac_cv_prog_DLLTOOL"; then
8812 DLLTOOL=$ac_cv_prog_DLLTOOL
8813 fi
8814
8815 if test -n "$ac_cv_prog_DLLTOOL"; then
8816 for ncn_progname in dlltool; do
8817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8818 set dummy ${ncn_progname}; ac_word=$2
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 $as_echo_n "checking for $ac_word... " >&6; }
8821 if ${ac_cv_prog_DLLTOOL+:} false; then :
8822 $as_echo_n "(cached) " >&6
8823 else
8824 if test -n "$DLLTOOL"; then
8825 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8826 else
8827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828 for as_dir in $PATH
8829 do
8830 IFS=$as_save_IFS
8831 test -z "$as_dir" && as_dir=.
8832 for ac_exec_ext in '' $ac_executable_extensions; do
8833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8834 ac_cv_prog_DLLTOOL="${ncn_progname}"
8835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8836 break 2
8837 fi
8838 done
8839 done
8840 IFS=$as_save_IFS
8841
8842 fi
8843 fi
8844 DLLTOOL=$ac_cv_prog_DLLTOOL
8845 if test -n "$DLLTOOL"; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8847 $as_echo "$DLLTOOL" >&6; }
8848 else
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8851 fi
8852
8853
8854 done
8855 fi
8856
8857 for ncn_progname in dlltool; do
8858 if test -n "$ncn_tool_prefix"; then
8859 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8860 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if ${ac_cv_prog_DLLTOOL+:} false; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 if test -n "$DLLTOOL"; then
8867 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8868 else
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870 for as_dir in $PATH
8871 do
8872 IFS=$as_save_IFS
8873 test -z "$as_dir" && as_dir=.
8874 for ac_exec_ext in '' $ac_executable_extensions; do
8875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8876 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8878 break 2
8879 fi
8880 done
8881 done
8882 IFS=$as_save_IFS
8883
8884 fi
8885 fi
8886 DLLTOOL=$ac_cv_prog_DLLTOOL
8887 if test -n "$DLLTOOL"; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8889 $as_echo "$DLLTOOL" >&6; }
8890 else
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892 $as_echo "no" >&6; }
8893 fi
8894
8895
8896 fi
8897 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8899 set dummy ${ncn_progname}; ac_word=$2
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8901 $as_echo_n "checking for $ac_word... " >&6; }
8902 if ${ac_cv_prog_DLLTOOL+:} false; then :
8903 $as_echo_n "(cached) " >&6
8904 else
8905 if test -n "$DLLTOOL"; then
8906 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8907 else
8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909 for as_dir in $PATH
8910 do
8911 IFS=$as_save_IFS
8912 test -z "$as_dir" && as_dir=.
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8915 ac_cv_prog_DLLTOOL="${ncn_progname}"
8916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8917 break 2
8918 fi
8919 done
8920 done
8921 IFS=$as_save_IFS
8922
8923 fi
8924 fi
8925 DLLTOOL=$ac_cv_prog_DLLTOOL
8926 if test -n "$DLLTOOL"; then
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8928 $as_echo "$DLLTOOL" >&6; }
8929 else
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931 $as_echo "no" >&6; }
8932 fi
8933
8934
8935 fi
8936 test -n "$ac_cv_prog_DLLTOOL" && break
8937 done
8938
8939 if test -z "$ac_cv_prog_DLLTOOL" ; then
8940 set dummy dlltool
8941 if test $build = $host ; then
8942 DLLTOOL="$2"
8943 else
8944 DLLTOOL="${ncn_tool_prefix}$2"
8945 fi
8946 fi
8947
8948
8949
8950 if test -n "$LD"; then
8951 ac_cv_prog_LD=$LD
8952 elif test -n "$ac_cv_prog_LD"; then
8953 LD=$ac_cv_prog_LD
8954 fi
8955
8956 if test -n "$ac_cv_prog_LD"; then
8957 for ncn_progname in ld; do
8958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8959 set dummy ${ncn_progname}; ac_word=$2
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961 $as_echo_n "checking for $ac_word... " >&6; }
8962 if ${ac_cv_prog_LD+:} false; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 if test -n "$LD"; then
8966 ac_cv_prog_LD="$LD" # Let the user override the test.
8967 else
8968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969 for as_dir in $PATH
8970 do
8971 IFS=$as_save_IFS
8972 test -z "$as_dir" && as_dir=.
8973 for ac_exec_ext in '' $ac_executable_extensions; do
8974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8975 ac_cv_prog_LD="${ncn_progname}"
8976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 break 2
8978 fi
8979 done
8980 done
8981 IFS=$as_save_IFS
8982
8983 fi
8984 fi
8985 LD=$ac_cv_prog_LD
8986 if test -n "$LD"; then
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8988 $as_echo "$LD" >&6; }
8989 else
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991 $as_echo "no" >&6; }
8992 fi
8993
8994
8995 done
8996 fi
8997
8998 for ncn_progname in ld; do
8999 if test -n "$ncn_tool_prefix"; then
9000 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9001 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003 $as_echo_n "checking for $ac_word... " >&6; }
9004 if ${ac_cv_prog_LD+:} false; then :
9005 $as_echo_n "(cached) " >&6
9006 else
9007 if test -n "$LD"; then
9008 ac_cv_prog_LD="$LD" # Let the user override the test.
9009 else
9010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011 for as_dir in $PATH
9012 do
9013 IFS=$as_save_IFS
9014 test -z "$as_dir" && as_dir=.
9015 for ac_exec_ext in '' $ac_executable_extensions; do
9016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9017 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
9018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9019 break 2
9020 fi
9021 done
9022 done
9023 IFS=$as_save_IFS
9024
9025 fi
9026 fi
9027 LD=$ac_cv_prog_LD
9028 if test -n "$LD"; then
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9030 $as_echo "$LD" >&6; }
9031 else
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033 $as_echo "no" >&6; }
9034 fi
9035
9036
9037 fi
9038 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
9039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9040 set dummy ${ncn_progname}; ac_word=$2
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9042 $as_echo_n "checking for $ac_word... " >&6; }
9043 if ${ac_cv_prog_LD+:} false; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 if test -n "$LD"; then
9047 ac_cv_prog_LD="$LD" # Let the user override the test.
9048 else
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050 for as_dir in $PATH
9051 do
9052 IFS=$as_save_IFS
9053 test -z "$as_dir" && as_dir=.
9054 for ac_exec_ext in '' $ac_executable_extensions; do
9055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9056 ac_cv_prog_LD="${ncn_progname}"
9057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9058 break 2
9059 fi
9060 done
9061 done
9062 IFS=$as_save_IFS
9063
9064 fi
9065 fi
9066 LD=$ac_cv_prog_LD
9067 if test -n "$LD"; then
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9069 $as_echo "$LD" >&6; }
9070 else
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072 $as_echo "no" >&6; }
9073 fi
9074
9075
9076 fi
9077 test -n "$ac_cv_prog_LD" && break
9078 done
9079
9080 if test -z "$ac_cv_prog_LD" ; then
9081 set dummy ld
9082 if test $build = $host ; then
9083 LD="$2"
9084 else
9085 LD="${ncn_tool_prefix}$2"
9086 fi
9087 fi
9088
9089
9090
9091 if test -n "$LIPO"; then
9092 ac_cv_prog_LIPO=$LIPO
9093 elif test -n "$ac_cv_prog_LIPO"; then
9094 LIPO=$ac_cv_prog_LIPO
9095 fi
9096
9097 if test -n "$ac_cv_prog_LIPO"; then
9098 for ncn_progname in lipo; do
9099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9100 set dummy ${ncn_progname}; ac_word=$2
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9102 $as_echo_n "checking for $ac_word... " >&6; }
9103 if ${ac_cv_prog_LIPO+:} false; then :
9104 $as_echo_n "(cached) " >&6
9105 else
9106 if test -n "$LIPO"; then
9107 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9108 else
9109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9110 for as_dir in $PATH
9111 do
9112 IFS=$as_save_IFS
9113 test -z "$as_dir" && as_dir=.
9114 for ac_exec_ext in '' $ac_executable_extensions; do
9115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9116 ac_cv_prog_LIPO="${ncn_progname}"
9117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9118 break 2
9119 fi
9120 done
9121 done
9122 IFS=$as_save_IFS
9123
9124 fi
9125 fi
9126 LIPO=$ac_cv_prog_LIPO
9127 if test -n "$LIPO"; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9129 $as_echo "$LIPO" >&6; }
9130 else
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 $as_echo "no" >&6; }
9133 fi
9134
9135
9136 done
9137 fi
9138
9139 for ncn_progname in lipo; do
9140 if test -n "$ncn_tool_prefix"; then
9141 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9142 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9144 $as_echo_n "checking for $ac_word... " >&6; }
9145 if ${ac_cv_prog_LIPO+:} false; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 if test -n "$LIPO"; then
9149 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9150 else
9151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152 for as_dir in $PATH
9153 do
9154 IFS=$as_save_IFS
9155 test -z "$as_dir" && as_dir=.
9156 for ac_exec_ext in '' $ac_executable_extensions; do
9157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9158 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
9159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9160 break 2
9161 fi
9162 done
9163 done
9164 IFS=$as_save_IFS
9165
9166 fi
9167 fi
9168 LIPO=$ac_cv_prog_LIPO
9169 if test -n "$LIPO"; then
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9171 $as_echo "$LIPO" >&6; }
9172 else
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9174 $as_echo "no" >&6; }
9175 fi
9176
9177
9178 fi
9179 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9181 set dummy ${ncn_progname}; ac_word=$2
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9183 $as_echo_n "checking for $ac_word... " >&6; }
9184 if ${ac_cv_prog_LIPO+:} false; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 if test -n "$LIPO"; then
9188 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9189 else
9190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191 for as_dir in $PATH
9192 do
9193 IFS=$as_save_IFS
9194 test -z "$as_dir" && as_dir=.
9195 for ac_exec_ext in '' $ac_executable_extensions; do
9196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9197 ac_cv_prog_LIPO="${ncn_progname}"
9198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9199 break 2
9200 fi
9201 done
9202 done
9203 IFS=$as_save_IFS
9204
9205 fi
9206 fi
9207 LIPO=$ac_cv_prog_LIPO
9208 if test -n "$LIPO"; then
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9210 $as_echo "$LIPO" >&6; }
9211 else
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9213 $as_echo "no" >&6; }
9214 fi
9215
9216
9217 fi
9218 test -n "$ac_cv_prog_LIPO" && break
9219 done
9220
9221 if test -z "$ac_cv_prog_LIPO" ; then
9222 set dummy lipo
9223 if test $build = $host ; then
9224 LIPO="$2"
9225 else
9226 LIPO="${ncn_tool_prefix}$2"
9227 fi
9228 fi
9229
9230
9231
9232 if test -n "$NM"; then
9233 ac_cv_prog_NM=$NM
9234 elif test -n "$ac_cv_prog_NM"; then
9235 NM=$ac_cv_prog_NM
9236 fi
9237
9238 if test -n "$ac_cv_prog_NM"; then
9239 for ncn_progname in nm; do
9240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9241 set dummy ${ncn_progname}; ac_word=$2
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243 $as_echo_n "checking for $ac_word... " >&6; }
9244 if ${ac_cv_prog_NM+:} false; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 if test -n "$NM"; then
9248 ac_cv_prog_NM="$NM" # Let the user override the test.
9249 else
9250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251 for as_dir in $PATH
9252 do
9253 IFS=$as_save_IFS
9254 test -z "$as_dir" && as_dir=.
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9257 ac_cv_prog_NM="${ncn_progname}"
9258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9259 break 2
9260 fi
9261 done
9262 done
9263 IFS=$as_save_IFS
9264
9265 fi
9266 fi
9267 NM=$ac_cv_prog_NM
9268 if test -n "$NM"; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9270 $as_echo "$NM" >&6; }
9271 else
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9274 fi
9275
9276
9277 done
9278 fi
9279
9280 for ncn_progname in nm; do
9281 if test -n "$ncn_tool_prefix"; then
9282 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9283 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9285 $as_echo_n "checking for $ac_word... " >&6; }
9286 if ${ac_cv_prog_NM+:} false; then :
9287 $as_echo_n "(cached) " >&6
9288 else
9289 if test -n "$NM"; then
9290 ac_cv_prog_NM="$NM" # Let the user override the test.
9291 else
9292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293 for as_dir in $PATH
9294 do
9295 IFS=$as_save_IFS
9296 test -z "$as_dir" && as_dir=.
9297 for ac_exec_ext in '' $ac_executable_extensions; do
9298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9299 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9301 break 2
9302 fi
9303 done
9304 done
9305 IFS=$as_save_IFS
9306
9307 fi
9308 fi
9309 NM=$ac_cv_prog_NM
9310 if test -n "$NM"; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9312 $as_echo "$NM" >&6; }
9313 else
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315 $as_echo "no" >&6; }
9316 fi
9317
9318
9319 fi
9320 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9322 set dummy ${ncn_progname}; ac_word=$2
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9324 $as_echo_n "checking for $ac_word... " >&6; }
9325 if ${ac_cv_prog_NM+:} false; then :
9326 $as_echo_n "(cached) " >&6
9327 else
9328 if test -n "$NM"; then
9329 ac_cv_prog_NM="$NM" # Let the user override the test.
9330 else
9331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332 for as_dir in $PATH
9333 do
9334 IFS=$as_save_IFS
9335 test -z "$as_dir" && as_dir=.
9336 for ac_exec_ext in '' $ac_executable_extensions; do
9337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9338 ac_cv_prog_NM="${ncn_progname}"
9339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9340 break 2
9341 fi
9342 done
9343 done
9344 IFS=$as_save_IFS
9345
9346 fi
9347 fi
9348 NM=$ac_cv_prog_NM
9349 if test -n "$NM"; then
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9351 $as_echo "$NM" >&6; }
9352 else
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354 $as_echo "no" >&6; }
9355 fi
9356
9357
9358 fi
9359 test -n "$ac_cv_prog_NM" && break
9360 done
9361
9362 if test -z "$ac_cv_prog_NM" ; then
9363 set dummy nm
9364 if test $build = $host ; then
9365 NM="$2"
9366 else
9367 NM="${ncn_tool_prefix}$2"
9368 fi
9369 fi
9370
9371
9372
9373 if test -n "$RANLIB"; then
9374 ac_cv_prog_RANLIB=$RANLIB
9375 elif test -n "$ac_cv_prog_RANLIB"; then
9376 RANLIB=$ac_cv_prog_RANLIB
9377 fi
9378
9379 if test -n "$ac_cv_prog_RANLIB"; then
9380 for ncn_progname in ranlib; do
9381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9382 set dummy ${ncn_progname}; ac_word=$2
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9384 $as_echo_n "checking for $ac_word... " >&6; }
9385 if ${ac_cv_prog_RANLIB+:} false; then :
9386 $as_echo_n "(cached) " >&6
9387 else
9388 if test -n "$RANLIB"; then
9389 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9390 else
9391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9392 for as_dir in $PATH
9393 do
9394 IFS=$as_save_IFS
9395 test -z "$as_dir" && as_dir=.
9396 for ac_exec_ext in '' $ac_executable_extensions; do
9397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9398 ac_cv_prog_RANLIB="${ncn_progname}"
9399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9400 break 2
9401 fi
9402 done
9403 done
9404 IFS=$as_save_IFS
9405
9406 fi
9407 fi
9408 RANLIB=$ac_cv_prog_RANLIB
9409 if test -n "$RANLIB"; then
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9411 $as_echo "$RANLIB" >&6; }
9412 else
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414 $as_echo "no" >&6; }
9415 fi
9416
9417
9418 done
9419 fi
9420
9421 for ncn_progname in ranlib; do
9422 if test -n "$ncn_tool_prefix"; then
9423 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9424 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9426 $as_echo_n "checking for $ac_word... " >&6; }
9427 if ${ac_cv_prog_RANLIB+:} false; then :
9428 $as_echo_n "(cached) " >&6
9429 else
9430 if test -n "$RANLIB"; then
9431 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9432 else
9433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434 for as_dir in $PATH
9435 do
9436 IFS=$as_save_IFS
9437 test -z "$as_dir" && as_dir=.
9438 for ac_exec_ext in '' $ac_executable_extensions; do
9439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9440 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9442 break 2
9443 fi
9444 done
9445 done
9446 IFS=$as_save_IFS
9447
9448 fi
9449 fi
9450 RANLIB=$ac_cv_prog_RANLIB
9451 if test -n "$RANLIB"; then
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9453 $as_echo "$RANLIB" >&6; }
9454 else
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456 $as_echo "no" >&6; }
9457 fi
9458
9459
9460 fi
9461 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9463 set dummy ${ncn_progname}; ac_word=$2
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9465 $as_echo_n "checking for $ac_word... " >&6; }
9466 if ${ac_cv_prog_RANLIB+:} false; then :
9467 $as_echo_n "(cached) " >&6
9468 else
9469 if test -n "$RANLIB"; then
9470 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9471 else
9472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9473 for as_dir in $PATH
9474 do
9475 IFS=$as_save_IFS
9476 test -z "$as_dir" && as_dir=.
9477 for ac_exec_ext in '' $ac_executable_extensions; do
9478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9479 ac_cv_prog_RANLIB="${ncn_progname}"
9480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9481 break 2
9482 fi
9483 done
9484 done
9485 IFS=$as_save_IFS
9486
9487 fi
9488 fi
9489 RANLIB=$ac_cv_prog_RANLIB
9490 if test -n "$RANLIB"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9492 $as_echo "$RANLIB" >&6; }
9493 else
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9496 fi
9497
9498
9499 fi
9500 test -n "$ac_cv_prog_RANLIB" && break
9501 done
9502
9503 if test -z "$ac_cv_prog_RANLIB" ; then
9504 RANLIB="true"
9505 fi
9506
9507
9508
9509 if test -n "$STRIP"; then
9510 ac_cv_prog_STRIP=$STRIP
9511 elif test -n "$ac_cv_prog_STRIP"; then
9512 STRIP=$ac_cv_prog_STRIP
9513 fi
9514
9515 if test -n "$ac_cv_prog_STRIP"; then
9516 for ncn_progname in strip; do
9517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9518 set dummy ${ncn_progname}; ac_word=$2
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9520 $as_echo_n "checking for $ac_word... " >&6; }
9521 if ${ac_cv_prog_STRIP+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 if test -n "$STRIP"; then
9525 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9526 else
9527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528 for as_dir in $PATH
9529 do
9530 IFS=$as_save_IFS
9531 test -z "$as_dir" && as_dir=.
9532 for ac_exec_ext in '' $ac_executable_extensions; do
9533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9534 ac_cv_prog_STRIP="${ncn_progname}"
9535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9536 break 2
9537 fi
9538 done
9539 done
9540 IFS=$as_save_IFS
9541
9542 fi
9543 fi
9544 STRIP=$ac_cv_prog_STRIP
9545 if test -n "$STRIP"; then
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9547 $as_echo "$STRIP" >&6; }
9548 else
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9550 $as_echo "no" >&6; }
9551 fi
9552
9553
9554 done
9555 fi
9556
9557 for ncn_progname in strip; do
9558 if test -n "$ncn_tool_prefix"; then
9559 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9560 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9562 $as_echo_n "checking for $ac_word... " >&6; }
9563 if ${ac_cv_prog_STRIP+:} false; then :
9564 $as_echo_n "(cached) " >&6
9565 else
9566 if test -n "$STRIP"; then
9567 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9568 else
9569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9570 for as_dir in $PATH
9571 do
9572 IFS=$as_save_IFS
9573 test -z "$as_dir" && as_dir=.
9574 for ac_exec_ext in '' $ac_executable_extensions; do
9575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9576 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9578 break 2
9579 fi
9580 done
9581 done
9582 IFS=$as_save_IFS
9583
9584 fi
9585 fi
9586 STRIP=$ac_cv_prog_STRIP
9587 if test -n "$STRIP"; then
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9589 $as_echo "$STRIP" >&6; }
9590 else
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592 $as_echo "no" >&6; }
9593 fi
9594
9595
9596 fi
9597 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9598 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9599 set dummy ${ncn_progname}; ac_word=$2
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9601 $as_echo_n "checking for $ac_word... " >&6; }
9602 if ${ac_cv_prog_STRIP+:} false; then :
9603 $as_echo_n "(cached) " >&6
9604 else
9605 if test -n "$STRIP"; then
9606 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9607 else
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609 for as_dir in $PATH
9610 do
9611 IFS=$as_save_IFS
9612 test -z "$as_dir" && as_dir=.
9613 for ac_exec_ext in '' $ac_executable_extensions; do
9614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9615 ac_cv_prog_STRIP="${ncn_progname}"
9616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9617 break 2
9618 fi
9619 done
9620 done
9621 IFS=$as_save_IFS
9622
9623 fi
9624 fi
9625 STRIP=$ac_cv_prog_STRIP
9626 if test -n "$STRIP"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9628 $as_echo "$STRIP" >&6; }
9629 else
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9632 fi
9633
9634
9635 fi
9636 test -n "$ac_cv_prog_STRIP" && break
9637 done
9638
9639 if test -z "$ac_cv_prog_STRIP" ; then
9640 STRIP="true"
9641 fi
9642
9643
9644
9645 if test -n "$WINDRES"; then
9646 ac_cv_prog_WINDRES=$WINDRES
9647 elif test -n "$ac_cv_prog_WINDRES"; then
9648 WINDRES=$ac_cv_prog_WINDRES
9649 fi
9650
9651 if test -n "$ac_cv_prog_WINDRES"; then
9652 for ncn_progname in windres; do
9653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9654 set dummy ${ncn_progname}; ac_word=$2
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9656 $as_echo_n "checking for $ac_word... " >&6; }
9657 if ${ac_cv_prog_WINDRES+:} false; then :
9658 $as_echo_n "(cached) " >&6
9659 else
9660 if test -n "$WINDRES"; then
9661 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9662 else
9663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9664 for as_dir in $PATH
9665 do
9666 IFS=$as_save_IFS
9667 test -z "$as_dir" && as_dir=.
9668 for ac_exec_ext in '' $ac_executable_extensions; do
9669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9670 ac_cv_prog_WINDRES="${ncn_progname}"
9671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9672 break 2
9673 fi
9674 done
9675 done
9676 IFS=$as_save_IFS
9677
9678 fi
9679 fi
9680 WINDRES=$ac_cv_prog_WINDRES
9681 if test -n "$WINDRES"; then
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9683 $as_echo "$WINDRES" >&6; }
9684 else
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9686 $as_echo "no" >&6; }
9687 fi
9688
9689
9690 done
9691 fi
9692
9693 for ncn_progname in windres; do
9694 if test -n "$ncn_tool_prefix"; then
9695 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9696 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698 $as_echo_n "checking for $ac_word... " >&6; }
9699 if ${ac_cv_prog_WINDRES+:} false; then :
9700 $as_echo_n "(cached) " >&6
9701 else
9702 if test -n "$WINDRES"; then
9703 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9704 else
9705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706 for as_dir in $PATH
9707 do
9708 IFS=$as_save_IFS
9709 test -z "$as_dir" && as_dir=.
9710 for ac_exec_ext in '' $ac_executable_extensions; do
9711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9712 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9714 break 2
9715 fi
9716 done
9717 done
9718 IFS=$as_save_IFS
9719
9720 fi
9721 fi
9722 WINDRES=$ac_cv_prog_WINDRES
9723 if test -n "$WINDRES"; then
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9725 $as_echo "$WINDRES" >&6; }
9726 else
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 $as_echo "no" >&6; }
9729 fi
9730
9731
9732 fi
9733 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9735 set dummy ${ncn_progname}; ac_word=$2
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9737 $as_echo_n "checking for $ac_word... " >&6; }
9738 if ${ac_cv_prog_WINDRES+:} false; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741 if test -n "$WINDRES"; then
9742 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9743 else
9744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 for as_dir in $PATH
9746 do
9747 IFS=$as_save_IFS
9748 test -z "$as_dir" && as_dir=.
9749 for ac_exec_ext in '' $ac_executable_extensions; do
9750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9751 ac_cv_prog_WINDRES="${ncn_progname}"
9752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9753 break 2
9754 fi
9755 done
9756 done
9757 IFS=$as_save_IFS
9758
9759 fi
9760 fi
9761 WINDRES=$ac_cv_prog_WINDRES
9762 if test -n "$WINDRES"; then
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9764 $as_echo "$WINDRES" >&6; }
9765 else
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767 $as_echo "no" >&6; }
9768 fi
9769
9770
9771 fi
9772 test -n "$ac_cv_prog_WINDRES" && break
9773 done
9774
9775 if test -z "$ac_cv_prog_WINDRES" ; then
9776 set dummy windres
9777 if test $build = $host ; then
9778 WINDRES="$2"
9779 else
9780 WINDRES="${ncn_tool_prefix}$2"
9781 fi
9782 fi
9783
9784
9785
9786 if test -n "$WINDMC"; then
9787 ac_cv_prog_WINDMC=$WINDMC
9788 elif test -n "$ac_cv_prog_WINDMC"; then
9789 WINDMC=$ac_cv_prog_WINDMC
9790 fi
9791
9792 if test -n "$ac_cv_prog_WINDMC"; then
9793 for ncn_progname in windmc; do
9794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9795 set dummy ${ncn_progname}; ac_word=$2
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9797 $as_echo_n "checking for $ac_word... " >&6; }
9798 if ${ac_cv_prog_WINDMC+:} false; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 if test -n "$WINDMC"; then
9802 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9803 else
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9806 do
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9811 ac_cv_prog_WINDMC="${ncn_progname}"
9812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 break 2
9814 fi
9815 done
9816 done
9817 IFS=$as_save_IFS
9818
9819 fi
9820 fi
9821 WINDMC=$ac_cv_prog_WINDMC
9822 if test -n "$WINDMC"; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9824 $as_echo "$WINDMC" >&6; }
9825 else
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9828 fi
9829
9830
9831 done
9832 fi
9833
9834 for ncn_progname in windmc; do
9835 if test -n "$ncn_tool_prefix"; then
9836 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9837 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9839 $as_echo_n "checking for $ac_word... " >&6; }
9840 if ${ac_cv_prog_WINDMC+:} false; then :
9841 $as_echo_n "(cached) " >&6
9842 else
9843 if test -n "$WINDMC"; then
9844 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9845 else
9846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847 for as_dir in $PATH
9848 do
9849 IFS=$as_save_IFS
9850 test -z "$as_dir" && as_dir=.
9851 for ac_exec_ext in '' $ac_executable_extensions; do
9852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9853 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9855 break 2
9856 fi
9857 done
9858 done
9859 IFS=$as_save_IFS
9860
9861 fi
9862 fi
9863 WINDMC=$ac_cv_prog_WINDMC
9864 if test -n "$WINDMC"; then
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9866 $as_echo "$WINDMC" >&6; }
9867 else
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9869 $as_echo "no" >&6; }
9870 fi
9871
9872
9873 fi
9874 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9876 set dummy ${ncn_progname}; ac_word=$2
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9878 $as_echo_n "checking for $ac_word... " >&6; }
9879 if ${ac_cv_prog_WINDMC+:} false; then :
9880 $as_echo_n "(cached) " >&6
9881 else
9882 if test -n "$WINDMC"; then
9883 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9884 else
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 for as_dir in $PATH
9887 do
9888 IFS=$as_save_IFS
9889 test -z "$as_dir" && as_dir=.
9890 for ac_exec_ext in '' $ac_executable_extensions; do
9891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9892 ac_cv_prog_WINDMC="${ncn_progname}"
9893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9894 break 2
9895 fi
9896 done
9897 done
9898 IFS=$as_save_IFS
9899
9900 fi
9901 fi
9902 WINDMC=$ac_cv_prog_WINDMC
9903 if test -n "$WINDMC"; then
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9905 $as_echo "$WINDMC" >&6; }
9906 else
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9908 $as_echo "no" >&6; }
9909 fi
9910
9911
9912 fi
9913 test -n "$ac_cv_prog_WINDMC" && break
9914 done
9915
9916 if test -z "$ac_cv_prog_WINDMC" ; then
9917 set dummy windmc
9918 if test $build = $host ; then
9919 WINDMC="$2"
9920 else
9921 WINDMC="${ncn_tool_prefix}$2"
9922 fi
9923 fi
9924
9925
9926
9927 if test -n "$OBJCOPY"; then
9928 ac_cv_prog_OBJCOPY=$OBJCOPY
9929 elif test -n "$ac_cv_prog_OBJCOPY"; then
9930 OBJCOPY=$ac_cv_prog_OBJCOPY
9931 fi
9932
9933 if test -n "$ac_cv_prog_OBJCOPY"; then
9934 for ncn_progname in objcopy; do
9935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9936 set dummy ${ncn_progname}; ac_word=$2
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9938 $as_echo_n "checking for $ac_word... " >&6; }
9939 if ${ac_cv_prog_OBJCOPY+:} false; then :
9940 $as_echo_n "(cached) " >&6
9941 else
9942 if test -n "$OBJCOPY"; then
9943 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9944 else
9945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946 for as_dir in $PATH
9947 do
9948 IFS=$as_save_IFS
9949 test -z "$as_dir" && as_dir=.
9950 for ac_exec_ext in '' $ac_executable_extensions; do
9951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9952 ac_cv_prog_OBJCOPY="${ncn_progname}"
9953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 break 2
9955 fi
9956 done
9957 done
9958 IFS=$as_save_IFS
9959
9960 fi
9961 fi
9962 OBJCOPY=$ac_cv_prog_OBJCOPY
9963 if test -n "$OBJCOPY"; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9965 $as_echo "$OBJCOPY" >&6; }
9966 else
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968 $as_echo "no" >&6; }
9969 fi
9970
9971
9972 done
9973 fi
9974
9975 for ncn_progname in objcopy; do
9976 if test -n "$ncn_tool_prefix"; then
9977 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9978 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9980 $as_echo_n "checking for $ac_word... " >&6; }
9981 if ${ac_cv_prog_OBJCOPY+:} false; then :
9982 $as_echo_n "(cached) " >&6
9983 else
9984 if test -n "$OBJCOPY"; then
9985 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9986 else
9987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988 for as_dir in $PATH
9989 do
9990 IFS=$as_save_IFS
9991 test -z "$as_dir" && as_dir=.
9992 for ac_exec_ext in '' $ac_executable_extensions; do
9993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9994 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9996 break 2
9997 fi
9998 done
9999 done
10000 IFS=$as_save_IFS
10001
10002 fi
10003 fi
10004 OBJCOPY=$ac_cv_prog_OBJCOPY
10005 if test -n "$OBJCOPY"; then
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10007 $as_echo "$OBJCOPY" >&6; }
10008 else
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10010 $as_echo "no" >&6; }
10011 fi
10012
10013
10014 fi
10015 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
10016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10017 set dummy ${ncn_progname}; ac_word=$2
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10019 $as_echo_n "checking for $ac_word... " >&6; }
10020 if ${ac_cv_prog_OBJCOPY+:} false; then :
10021 $as_echo_n "(cached) " >&6
10022 else
10023 if test -n "$OBJCOPY"; then
10024 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
10025 else
10026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10027 for as_dir in $PATH
10028 do
10029 IFS=$as_save_IFS
10030 test -z "$as_dir" && as_dir=.
10031 for ac_exec_ext in '' $ac_executable_extensions; do
10032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10033 ac_cv_prog_OBJCOPY="${ncn_progname}"
10034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10035 break 2
10036 fi
10037 done
10038 done
10039 IFS=$as_save_IFS
10040
10041 fi
10042 fi
10043 OBJCOPY=$ac_cv_prog_OBJCOPY
10044 if test -n "$OBJCOPY"; then
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10046 $as_echo "$OBJCOPY" >&6; }
10047 else
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10049 $as_echo "no" >&6; }
10050 fi
10051
10052
10053 fi
10054 test -n "$ac_cv_prog_OBJCOPY" && break
10055 done
10056
10057 if test -z "$ac_cv_prog_OBJCOPY" ; then
10058 set dummy objcopy
10059 if test $build = $host ; then
10060 OBJCOPY="$2"
10061 else
10062 OBJCOPY="${ncn_tool_prefix}$2"
10063 fi
10064 fi
10065
10066
10067
10068 if test -n "$OBJDUMP"; then
10069 ac_cv_prog_OBJDUMP=$OBJDUMP
10070 elif test -n "$ac_cv_prog_OBJDUMP"; then
10071 OBJDUMP=$ac_cv_prog_OBJDUMP
10072 fi
10073
10074 if test -n "$ac_cv_prog_OBJDUMP"; then
10075 for ncn_progname in objdump; do
10076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10077 set dummy ${ncn_progname}; ac_word=$2
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if ${ac_cv_prog_OBJDUMP+:} false; then :
10081 $as_echo_n "(cached) " >&6
10082 else
10083 if test -n "$OBJDUMP"; then
10084 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10085 else
10086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087 for as_dir in $PATH
10088 do
10089 IFS=$as_save_IFS
10090 test -z "$as_dir" && as_dir=.
10091 for ac_exec_ext in '' $ac_executable_extensions; do
10092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10093 ac_cv_prog_OBJDUMP="${ncn_progname}"
10094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10095 break 2
10096 fi
10097 done
10098 done
10099 IFS=$as_save_IFS
10100
10101 fi
10102 fi
10103 OBJDUMP=$ac_cv_prog_OBJDUMP
10104 if test -n "$OBJDUMP"; then
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10106 $as_echo "$OBJDUMP" >&6; }
10107 else
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109 $as_echo "no" >&6; }
10110 fi
10111
10112
10113 done
10114 fi
10115
10116 for ncn_progname in objdump; do
10117 if test -n "$ncn_tool_prefix"; then
10118 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10119 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10121 $as_echo_n "checking for $ac_word... " >&6; }
10122 if ${ac_cv_prog_OBJDUMP+:} false; then :
10123 $as_echo_n "(cached) " >&6
10124 else
10125 if test -n "$OBJDUMP"; then
10126 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10127 else
10128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10129 for as_dir in $PATH
10130 do
10131 IFS=$as_save_IFS
10132 test -z "$as_dir" && as_dir=.
10133 for ac_exec_ext in '' $ac_executable_extensions; do
10134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10135 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
10136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10137 break 2
10138 fi
10139 done
10140 done
10141 IFS=$as_save_IFS
10142
10143 fi
10144 fi
10145 OBJDUMP=$ac_cv_prog_OBJDUMP
10146 if test -n "$OBJDUMP"; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10148 $as_echo "$OBJDUMP" >&6; }
10149 else
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10152 fi
10153
10154
10155 fi
10156 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10158 set dummy ${ncn_progname}; ac_word=$2
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10160 $as_echo_n "checking for $ac_word... " >&6; }
10161 if ${ac_cv_prog_OBJDUMP+:} false; then :
10162 $as_echo_n "(cached) " >&6
10163 else
10164 if test -n "$OBJDUMP"; then
10165 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10166 else
10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168 for as_dir in $PATH
10169 do
10170 IFS=$as_save_IFS
10171 test -z "$as_dir" && as_dir=.
10172 for ac_exec_ext in '' $ac_executable_extensions; do
10173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10174 ac_cv_prog_OBJDUMP="${ncn_progname}"
10175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10176 break 2
10177 fi
10178 done
10179 done
10180 IFS=$as_save_IFS
10181
10182 fi
10183 fi
10184 OBJDUMP=$ac_cv_prog_OBJDUMP
10185 if test -n "$OBJDUMP"; then
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10187 $as_echo "$OBJDUMP" >&6; }
10188 else
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10190 $as_echo "no" >&6; }
10191 fi
10192
10193
10194 fi
10195 test -n "$ac_cv_prog_OBJDUMP" && break
10196 done
10197
10198 if test -z "$ac_cv_prog_OBJDUMP" ; then
10199 set dummy objdump
10200 if test $build = $host ; then
10201 OBJDUMP="$2"
10202 else
10203 OBJDUMP="${ncn_tool_prefix}$2"
10204 fi
10205 fi
10206
10207
10208
10209 if test -n "$READELF"; then
10210 ac_cv_prog_READELF=$READELF
10211 elif test -n "$ac_cv_prog_READELF"; then
10212 READELF=$ac_cv_prog_READELF
10213 fi
10214
10215 if test -n "$ac_cv_prog_READELF"; then
10216 for ncn_progname in readelf; do
10217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10218 set dummy ${ncn_progname}; ac_word=$2
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220 $as_echo_n "checking for $ac_word... " >&6; }
10221 if ${ac_cv_prog_READELF+:} false; then :
10222 $as_echo_n "(cached) " >&6
10223 else
10224 if test -n "$READELF"; then
10225 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10226 else
10227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228 for as_dir in $PATH
10229 do
10230 IFS=$as_save_IFS
10231 test -z "$as_dir" && as_dir=.
10232 for ac_exec_ext in '' $ac_executable_extensions; do
10233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10234 ac_cv_prog_READELF="${ncn_progname}"
10235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10236 break 2
10237 fi
10238 done
10239 done
10240 IFS=$as_save_IFS
10241
10242 fi
10243 fi
10244 READELF=$ac_cv_prog_READELF
10245 if test -n "$READELF"; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10247 $as_echo "$READELF" >&6; }
10248 else
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10251 fi
10252
10253
10254 done
10255 fi
10256
10257 for ncn_progname in readelf; do
10258 if test -n "$ncn_tool_prefix"; then
10259 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10260 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10262 $as_echo_n "checking for $ac_word... " >&6; }
10263 if ${ac_cv_prog_READELF+:} false; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10266 if test -n "$READELF"; then
10267 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10268 else
10269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270 for as_dir in $PATH
10271 do
10272 IFS=$as_save_IFS
10273 test -z "$as_dir" && as_dir=.
10274 for ac_exec_ext in '' $ac_executable_extensions; do
10275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10276 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10278 break 2
10279 fi
10280 done
10281 done
10282 IFS=$as_save_IFS
10283
10284 fi
10285 fi
10286 READELF=$ac_cv_prog_READELF
10287 if test -n "$READELF"; then
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10289 $as_echo "$READELF" >&6; }
10290 else
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292 $as_echo "no" >&6; }
10293 fi
10294
10295
10296 fi
10297 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10299 set dummy ${ncn_progname}; 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_READELF+:} false; then :
10303 $as_echo_n "(cached) " >&6
10304 else
10305 if test -n "$READELF"; then
10306 ac_cv_prog_READELF="$READELF" # 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_READELF="${ncn_progname}"
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 READELF=$ac_cv_prog_READELF
10326 if test -n "$READELF"; then
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10328 $as_echo "$READELF" >&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 test -n "$ac_cv_prog_READELF" && break
10337 done
10338
10339 if test -z "$ac_cv_prog_READELF" ; then
10340 set dummy readelf
10341 if test $build = $host ; then
10342 READELF="$2"
10343 else
10344 READELF="${ncn_tool_prefix}$2"
10345 fi
10346 fi
10347
10348
10349
10350
10351
10352
10353
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10355 $as_echo_n "checking for -plugin option... " >&6; }
10356
10357 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10358 plugin_option=
10359 for plugin in $plugin_names; do
10360 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10361 if test x$plugin_so = x$plugin; then
10362 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10363 fi
10364 if test x$plugin_so != x$plugin; then
10365 plugin_option="--plugin $plugin_so"
10366 break
10367 fi
10368 done
10369 if test -n "$ac_tool_prefix"; then
10370 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10371 set dummy ${ac_tool_prefix}ar; ac_word=$2
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10373 $as_echo_n "checking for $ac_word... " >&6; }
10374 if ${ac_cv_prog_AR+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 if test -n "$AR"; then
10378 ac_cv_prog_AR="$AR" # Let the user override the test.
10379 else
10380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381 for as_dir in $PATH
10382 do
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10387 ac_cv_prog_AR="${ac_tool_prefix}ar"
10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10389 break 2
10390 fi
10391 done
10392 done
10393 IFS=$as_save_IFS
10394
10395 fi
10396 fi
10397 AR=$ac_cv_prog_AR
10398 if test -n "$AR"; then
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10400 $as_echo "$AR" >&6; }
10401 else
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403 $as_echo "no" >&6; }
10404 fi
10405
10406
10407 fi
10408 if test -z "$ac_cv_prog_AR"; then
10409 ac_ct_AR=$AR
10410 # Extract the first word of "ar", so it can be a program name with args.
10411 set dummy ar; ac_word=$2
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10413 $as_echo_n "checking for $ac_word... " >&6; }
10414 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10415 $as_echo_n "(cached) " >&6
10416 else
10417 if test -n "$ac_ct_AR"; then
10418 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10419 else
10420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421 for as_dir in $PATH
10422 do
10423 IFS=$as_save_IFS
10424 test -z "$as_dir" && as_dir=.
10425 for ac_exec_ext in '' $ac_executable_extensions; do
10426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10427 ac_cv_prog_ac_ct_AR="ar"
10428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10429 break 2
10430 fi
10431 done
10432 done
10433 IFS=$as_save_IFS
10434
10435 fi
10436 fi
10437 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10438 if test -n "$ac_ct_AR"; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10440 $as_echo "$ac_ct_AR" >&6; }
10441 else
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443 $as_echo "no" >&6; }
10444 fi
10445
10446 if test "x$ac_ct_AR" = x; then
10447 AR=""
10448 else
10449 case $cross_compiling:$ac_tool_warned in
10450 yes:)
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10453 ac_tool_warned=yes ;;
10454 esac
10455 AR=$ac_ct_AR
10456 fi
10457 else
10458 AR="$ac_cv_prog_AR"
10459 fi
10460
10461 if test "${AR}" = "" ; then
10462 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
10463 fi
10464 touch conftest.c
10465 ${AR} $plugin_option rc conftest.a conftest.c
10466 if test "$?" != 0; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10468 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10469 plugin_option=
10470 fi
10471 rm -f conftest.*
10472 if test -n "$plugin_option"; then
10473 PLUGIN_OPTION="$plugin_option"
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10475 $as_echo "$plugin_option" >&6; }
10476 else
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478 $as_echo "no" >&6; }
10479 fi
10480
10481 AR_PLUGIN_OPTION=
10482 RANLIB_PLUGIN_OPTION=
10483 if test -n "$PLUGIN_OPTION"; then
10484 if $AR --help 2>&1 | grep -q "\--plugin"; then
10485 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10486 fi
10487 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10488 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10489 fi
10490 else
10491 if test "$enable_pgo_build" != "no"; then
10492 as_fn_error $? "AR with --plugin and rc is required for LTO build" "$LINENO" 5
10493 fi
10494 fi
10495
10496
10497
10498 # Target tools.
10499
10500 # Check whether --with-build-time-tools was given.
10501 if test "${with_build_time_tools+set}" = set; then :
10502 withval=$with_build_time_tools; case x"$withval" in
10503 x/*) ;;
10504 *)
10505 with_build_time_tools=
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10507 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10508 ;;
10509 esac
10510 else
10511 with_build_time_tools=
10512 fi
10513
10514
10515
10516
10517 if test -n "$CC_FOR_TARGET"; then
10518 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10519 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10520 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10521 fi
10522
10523 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10524 for ncn_progname in cc gcc; do
10525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10526 set dummy ${ncn_progname}; ac_word=$2
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10528 $as_echo_n "checking for $ac_word... " >&6; }
10529 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10530 $as_echo_n "(cached) " >&6
10531 else
10532 if test -n "$CC_FOR_TARGET"; then
10533 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10534 else
10535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536 for as_dir in $PATH
10537 do
10538 IFS=$as_save_IFS
10539 test -z "$as_dir" && as_dir=.
10540 for ac_exec_ext in '' $ac_executable_extensions; do
10541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10542 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10544 break 2
10545 fi
10546 done
10547 done
10548 IFS=$as_save_IFS
10549
10550 fi
10551 fi
10552 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10553 if test -n "$CC_FOR_TARGET"; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10555 $as_echo "$CC_FOR_TARGET" >&6; }
10556 else
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558 $as_echo "no" >&6; }
10559 fi
10560
10561
10562 done
10563 fi
10564
10565 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10566 for ncn_progname in cc gcc; do
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10568 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10569 if test -x $with_build_time_tools/${ncn_progname}; then
10570 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10572 $as_echo "yes" >&6; }
10573 break
10574 else
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576 $as_echo "no" >&6; }
10577 fi
10578 done
10579 fi
10580
10581 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10582 for ncn_progname in cc gcc; do
10583 if test -n "$ncn_target_tool_prefix"; then
10584 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10585 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10587 $as_echo_n "checking for $ac_word... " >&6; }
10588 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10589 $as_echo_n "(cached) " >&6
10590 else
10591 if test -n "$CC_FOR_TARGET"; then
10592 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10593 else
10594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595 for as_dir in $PATH
10596 do
10597 IFS=$as_save_IFS
10598 test -z "$as_dir" && as_dir=.
10599 for ac_exec_ext in '' $ac_executable_extensions; do
10600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10601 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10603 break 2
10604 fi
10605 done
10606 done
10607 IFS=$as_save_IFS
10608
10609 fi
10610 fi
10611 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10612 if test -n "$CC_FOR_TARGET"; then
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10614 $as_echo "$CC_FOR_TARGET" >&6; }
10615 else
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617 $as_echo "no" >&6; }
10618 fi
10619
10620
10621 fi
10622 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10624 set dummy ${ncn_progname}; ac_word=$2
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10626 $as_echo_n "checking for $ac_word... " >&6; }
10627 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10628 $as_echo_n "(cached) " >&6
10629 else
10630 if test -n "$CC_FOR_TARGET"; then
10631 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10632 else
10633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634 for as_dir in $PATH
10635 do
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10640 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 break 2
10643 fi
10644 done
10645 done
10646 IFS=$as_save_IFS
10647
10648 fi
10649 fi
10650 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10651 if test -n "$CC_FOR_TARGET"; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10653 $as_echo "$CC_FOR_TARGET" >&6; }
10654 else
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656 $as_echo "no" >&6; }
10657 fi
10658
10659
10660 fi
10661 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10662 done
10663 fi
10664
10665 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10666 set dummy cc gcc
10667 if test $build = $target ; then
10668 CC_FOR_TARGET="$2"
10669 else
10670 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10671 fi
10672 else
10673 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10674 fi
10675
10676
10677
10678 if test -n "$CXX_FOR_TARGET"; then
10679 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10680 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10681 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10682 fi
10683
10684 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10685 for ncn_progname in c++ g++ cxx gxx; do
10686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10687 set dummy ${ncn_progname}; ac_word=$2
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10689 $as_echo_n "checking for $ac_word... " >&6; }
10690 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10691 $as_echo_n "(cached) " >&6
10692 else
10693 if test -n "$CXX_FOR_TARGET"; then
10694 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10695 else
10696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10697 for as_dir in $PATH
10698 do
10699 IFS=$as_save_IFS
10700 test -z "$as_dir" && as_dir=.
10701 for ac_exec_ext in '' $ac_executable_extensions; do
10702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10703 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10705 break 2
10706 fi
10707 done
10708 done
10709 IFS=$as_save_IFS
10710
10711 fi
10712 fi
10713 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10714 if test -n "$CXX_FOR_TARGET"; then
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10716 $as_echo "$CXX_FOR_TARGET" >&6; }
10717 else
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719 $as_echo "no" >&6; }
10720 fi
10721
10722
10723 done
10724 fi
10725
10726 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10727 for ncn_progname in c++ g++ cxx gxx; do
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10729 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10730 if test -x $with_build_time_tools/${ncn_progname}; then
10731 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10733 $as_echo "yes" >&6; }
10734 break
10735 else
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; }
10738 fi
10739 done
10740 fi
10741
10742 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10743 for ncn_progname in c++ g++ cxx gxx; do
10744 if test -n "$ncn_target_tool_prefix"; then
10745 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10746 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10748 $as_echo_n "checking for $ac_word... " >&6; }
10749 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10750 $as_echo_n "(cached) " >&6
10751 else
10752 if test -n "$CXX_FOR_TARGET"; then
10753 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10754 else
10755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10756 for as_dir in $PATH
10757 do
10758 IFS=$as_save_IFS
10759 test -z "$as_dir" && as_dir=.
10760 for ac_exec_ext in '' $ac_executable_extensions; do
10761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10762 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10764 break 2
10765 fi
10766 done
10767 done
10768 IFS=$as_save_IFS
10769
10770 fi
10771 fi
10772 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10773 if test -n "$CXX_FOR_TARGET"; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10775 $as_echo "$CXX_FOR_TARGET" >&6; }
10776 else
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; }
10779 fi
10780
10781
10782 fi
10783 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10785 set dummy ${ncn_progname}; ac_word=$2
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10787 $as_echo_n "checking for $ac_word... " >&6; }
10788 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10791 if test -n "$CXX_FOR_TARGET"; then
10792 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10793 else
10794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795 for as_dir in $PATH
10796 do
10797 IFS=$as_save_IFS
10798 test -z "$as_dir" && as_dir=.
10799 for ac_exec_ext in '' $ac_executable_extensions; do
10800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10801 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10803 break 2
10804 fi
10805 done
10806 done
10807 IFS=$as_save_IFS
10808
10809 fi
10810 fi
10811 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10812 if test -n "$CXX_FOR_TARGET"; then
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10814 $as_echo "$CXX_FOR_TARGET" >&6; }
10815 else
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10817 $as_echo "no" >&6; }
10818 fi
10819
10820
10821 fi
10822 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10823 done
10824 fi
10825
10826 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10827 set dummy c++ g++ cxx gxx
10828 if test $build = $target ; then
10829 CXX_FOR_TARGET="$2"
10830 else
10831 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10832 fi
10833 else
10834 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10835 fi
10836
10837
10838
10839 if test -n "$GCC_FOR_TARGET"; then
10840 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10841 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10842 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10843 fi
10844
10845 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10846 for ncn_progname in gcc; do
10847 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10848 set dummy ${ncn_progname}; ac_word=$2
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10850 $as_echo_n "checking for $ac_word... " >&6; }
10851 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 if test -n "$GCC_FOR_TARGET"; then
10855 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10856 else
10857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858 for as_dir in $PATH
10859 do
10860 IFS=$as_save_IFS
10861 test -z "$as_dir" && as_dir=.
10862 for ac_exec_ext in '' $ac_executable_extensions; do
10863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10864 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 break 2
10867 fi
10868 done
10869 done
10870 IFS=$as_save_IFS
10871
10872 fi
10873 fi
10874 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10875 if test -n "$GCC_FOR_TARGET"; then
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10877 $as_echo "$GCC_FOR_TARGET" >&6; }
10878 else
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10880 $as_echo "no" >&6; }
10881 fi
10882
10883
10884 done
10885 fi
10886
10887 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10888 for ncn_progname in gcc; do
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10890 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10891 if test -x $with_build_time_tools/${ncn_progname}; then
10892 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10894 $as_echo "yes" >&6; }
10895 break
10896 else
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898 $as_echo "no" >&6; }
10899 fi
10900 done
10901 fi
10902
10903 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10904 for ncn_progname in gcc; do
10905 if test -n "$ncn_target_tool_prefix"; then
10906 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10907 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10909 $as_echo_n "checking for $ac_word... " >&6; }
10910 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10911 $as_echo_n "(cached) " >&6
10912 else
10913 if test -n "$GCC_FOR_TARGET"; then
10914 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10915 else
10916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10917 for as_dir in $PATH
10918 do
10919 IFS=$as_save_IFS
10920 test -z "$as_dir" && as_dir=.
10921 for ac_exec_ext in '' $ac_executable_extensions; do
10922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10923 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10925 break 2
10926 fi
10927 done
10928 done
10929 IFS=$as_save_IFS
10930
10931 fi
10932 fi
10933 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10934 if test -n "$GCC_FOR_TARGET"; then
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10936 $as_echo "$GCC_FOR_TARGET" >&6; }
10937 else
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10939 $as_echo "no" >&6; }
10940 fi
10941
10942
10943 fi
10944 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10946 set dummy ${ncn_progname}; ac_word=$2
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10948 $as_echo_n "checking for $ac_word... " >&6; }
10949 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10950 $as_echo_n "(cached) " >&6
10951 else
10952 if test -n "$GCC_FOR_TARGET"; then
10953 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10954 else
10955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10956 for as_dir in $PATH
10957 do
10958 IFS=$as_save_IFS
10959 test -z "$as_dir" && as_dir=.
10960 for ac_exec_ext in '' $ac_executable_extensions; do
10961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10962 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10964 break 2
10965 fi
10966 done
10967 done
10968 IFS=$as_save_IFS
10969
10970 fi
10971 fi
10972 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10973 if test -n "$GCC_FOR_TARGET"; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10975 $as_echo "$GCC_FOR_TARGET" >&6; }
10976 else
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; }
10979 fi
10980
10981
10982 fi
10983 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10984 done
10985 fi
10986
10987 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10988 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10989 else
10990 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10991 fi
10992
10993
10994
10995 if test -n "$GFORTRAN_FOR_TARGET"; then
10996 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10997 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10998 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10999 fi
11000
11001 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
11002 for ncn_progname in gfortran; do
11003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11004 set dummy ${ncn_progname}; ac_word=$2
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11006 $as_echo_n "checking for $ac_word... " >&6; }
11007 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11008 $as_echo_n "(cached) " >&6
11009 else
11010 if test -n "$GFORTRAN_FOR_TARGET"; then
11011 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11012 else
11013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11015 do
11016 IFS=$as_save_IFS
11017 test -z "$as_dir" && as_dir=.
11018 for ac_exec_ext in '' $ac_executable_extensions; do
11019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11022 break 2
11023 fi
11024 done
11025 done
11026 IFS=$as_save_IFS
11027
11028 fi
11029 fi
11030 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11031 if test -n "$GFORTRAN_FOR_TARGET"; then
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11033 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11034 else
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036 $as_echo "no" >&6; }
11037 fi
11038
11039
11040 done
11041 fi
11042
11043 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
11044 for ncn_progname in gfortran; do
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11046 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11047 if test -x $with_build_time_tools/${ncn_progname}; then
11048 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11050 $as_echo "yes" >&6; }
11051 break
11052 else
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054 $as_echo "no" >&6; }
11055 fi
11056 done
11057 fi
11058
11059 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
11060 for ncn_progname in gfortran; do
11061 if test -n "$ncn_target_tool_prefix"; then
11062 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11063 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11065 $as_echo_n "checking for $ac_word... " >&6; }
11066 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11067 $as_echo_n "(cached) " >&6
11068 else
11069 if test -n "$GFORTRAN_FOR_TARGET"; then
11070 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11071 else
11072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073 for as_dir in $PATH
11074 do
11075 IFS=$as_save_IFS
11076 test -z "$as_dir" && as_dir=.
11077 for ac_exec_ext in '' $ac_executable_extensions; do
11078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11079 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11081 break 2
11082 fi
11083 done
11084 done
11085 IFS=$as_save_IFS
11086
11087 fi
11088 fi
11089 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11090 if test -n "$GFORTRAN_FOR_TARGET"; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11092 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11093 else
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11095 $as_echo "no" >&6; }
11096 fi
11097
11098
11099 fi
11100 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11102 set dummy ${ncn_progname}; ac_word=$2
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11104 $as_echo_n "checking for $ac_word... " >&6; }
11105 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108 if test -n "$GFORTRAN_FOR_TARGET"; then
11109 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11110 else
11111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112 for as_dir in $PATH
11113 do
11114 IFS=$as_save_IFS
11115 test -z "$as_dir" && as_dir=.
11116 for ac_exec_ext in '' $ac_executable_extensions; do
11117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11118 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11120 break 2
11121 fi
11122 done
11123 done
11124 IFS=$as_save_IFS
11125
11126 fi
11127 fi
11128 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11129 if test -n "$GFORTRAN_FOR_TARGET"; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11131 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11132 else
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134 $as_echo "no" >&6; }
11135 fi
11136
11137
11138 fi
11139 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11140 done
11141 fi
11142
11143 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11144 set dummy gfortran
11145 if test $build = $target ; then
11146 GFORTRAN_FOR_TARGET="$2"
11147 else
11148 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11149 fi
11150 else
11151 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
11152 fi
11153
11154
11155
11156 if test -n "$GOC_FOR_TARGET"; then
11157 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11158 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11159 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11160 fi
11161
11162 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11163 for ncn_progname in gccgo; do
11164 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11165 set dummy ${ncn_progname}; ac_word=$2
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167 $as_echo_n "checking for $ac_word... " >&6; }
11168 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11169 $as_echo_n "(cached) " >&6
11170 else
11171 if test -n "$GOC_FOR_TARGET"; then
11172 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11173 else
11174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175 for as_dir in $PATH
11176 do
11177 IFS=$as_save_IFS
11178 test -z "$as_dir" && as_dir=.
11179 for ac_exec_ext in '' $ac_executable_extensions; do
11180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11181 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11183 break 2
11184 fi
11185 done
11186 done
11187 IFS=$as_save_IFS
11188
11189 fi
11190 fi
11191 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11192 if test -n "$GOC_FOR_TARGET"; then
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11194 $as_echo "$GOC_FOR_TARGET" >&6; }
11195 else
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; }
11198 fi
11199
11200
11201 done
11202 fi
11203
11204 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11205 for ncn_progname in gccgo; do
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11207 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11208 if test -x $with_build_time_tools/${ncn_progname}; then
11209 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11211 $as_echo "yes" >&6; }
11212 break
11213 else
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215 $as_echo "no" >&6; }
11216 fi
11217 done
11218 fi
11219
11220 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11221 for ncn_progname in gccgo; do
11222 if test -n "$ncn_target_tool_prefix"; then
11223 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11224 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11226 $as_echo_n "checking for $ac_word... " >&6; }
11227 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11228 $as_echo_n "(cached) " >&6
11229 else
11230 if test -n "$GOC_FOR_TARGET"; then
11231 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11232 else
11233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234 for as_dir in $PATH
11235 do
11236 IFS=$as_save_IFS
11237 test -z "$as_dir" && as_dir=.
11238 for ac_exec_ext in '' $ac_executable_extensions; do
11239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11240 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11242 break 2
11243 fi
11244 done
11245 done
11246 IFS=$as_save_IFS
11247
11248 fi
11249 fi
11250 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11251 if test -n "$GOC_FOR_TARGET"; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11253 $as_echo "$GOC_FOR_TARGET" >&6; }
11254 else
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11256 $as_echo "no" >&6; }
11257 fi
11258
11259
11260 fi
11261 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11263 set dummy ${ncn_progname}; ac_word=$2
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265 $as_echo_n "checking for $ac_word... " >&6; }
11266 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 if test -n "$GOC_FOR_TARGET"; then
11270 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11271 else
11272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273 for as_dir in $PATH
11274 do
11275 IFS=$as_save_IFS
11276 test -z "$as_dir" && as_dir=.
11277 for ac_exec_ext in '' $ac_executable_extensions; do
11278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11279 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11281 break 2
11282 fi
11283 done
11284 done
11285 IFS=$as_save_IFS
11286
11287 fi
11288 fi
11289 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11290 if test -n "$GOC_FOR_TARGET"; then
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11292 $as_echo "$GOC_FOR_TARGET" >&6; }
11293 else
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295 $as_echo "no" >&6; }
11296 fi
11297
11298
11299 fi
11300 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11301 done
11302 fi
11303
11304 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11305 set dummy gccgo
11306 if test $build = $target ; then
11307 GOC_FOR_TARGET="$2"
11308 else
11309 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11310 fi
11311 else
11312 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11313 fi
11314
11315
11316
11317 cat > conftest.c << \EOF
11318 #ifdef __GNUC__
11319 gcc_yay;
11320 #endif
11321 EOF
11322 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11323 have_gcc_for_target=yes
11324 else
11325 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11326 have_gcc_for_target=no
11327 fi
11328 rm conftest.c
11329
11330
11331
11332
11333 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11334 if test -n "$with_build_time_tools"; then
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11336 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11337 if test -x $with_build_time_tools/ar; then
11338 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11339 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11341 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11342 else
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11345 fi
11346 elif test $build != $host && test $have_gcc_for_target = yes; then
11347 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11348 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11349 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11350 fi
11351 fi
11352 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11353 # Extract the first word of "ar", so it can be a program name with args.
11354 set dummy ar; ac_word=$2
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356 $as_echo_n "checking for $ac_word... " >&6; }
11357 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
11358 $as_echo_n "(cached) " >&6
11359 else
11360 case $AR_FOR_TARGET in
11361 [\\/]* | ?:[\\/]*)
11362 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11363 ;;
11364 *)
11365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11366 for as_dir in $gcc_cv_tool_dirs
11367 do
11368 IFS=$as_save_IFS
11369 test -z "$as_dir" && as_dir=.
11370 for ac_exec_ext in '' $ac_executable_extensions; do
11371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11372 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11374 break 2
11375 fi
11376 done
11377 done
11378 IFS=$as_save_IFS
11379
11380 ;;
11381 esac
11382 fi
11383 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11384 if test -n "$AR_FOR_TARGET"; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11386 $as_echo "$AR_FOR_TARGET" >&6; }
11387 else
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11390 fi
11391
11392
11393 fi
11394 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11395
11396
11397 if test -n "$AR_FOR_TARGET"; then
11398 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11399 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11400 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11401 fi
11402
11403 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11404 for ncn_progname in ar; do
11405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11406 set dummy ${ncn_progname}; ac_word=$2
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11408 $as_echo_n "checking for $ac_word... " >&6; }
11409 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11410 $as_echo_n "(cached) " >&6
11411 else
11412 if test -n "$AR_FOR_TARGET"; then
11413 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11414 else
11415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11416 for as_dir in $PATH
11417 do
11418 IFS=$as_save_IFS
11419 test -z "$as_dir" && as_dir=.
11420 for ac_exec_ext in '' $ac_executable_extensions; do
11421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11422 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11424 break 2
11425 fi
11426 done
11427 done
11428 IFS=$as_save_IFS
11429
11430 fi
11431 fi
11432 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11433 if test -n "$AR_FOR_TARGET"; then
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11435 $as_echo "$AR_FOR_TARGET" >&6; }
11436 else
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438 $as_echo "no" >&6; }
11439 fi
11440
11441
11442 done
11443 fi
11444
11445 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11446 for ncn_progname in ar; do
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11448 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11449 if test -x $with_build_time_tools/${ncn_progname}; then
11450 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11452 $as_echo "yes" >&6; }
11453 break
11454 else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11457 fi
11458 done
11459 fi
11460
11461 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11462 for ncn_progname in ar; do
11463 if test -n "$ncn_target_tool_prefix"; then
11464 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11465 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467 $as_echo_n "checking for $ac_word... " >&6; }
11468 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11469 $as_echo_n "(cached) " >&6
11470 else
11471 if test -n "$AR_FOR_TARGET"; then
11472 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11473 else
11474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475 for as_dir in $PATH
11476 do
11477 IFS=$as_save_IFS
11478 test -z "$as_dir" && as_dir=.
11479 for ac_exec_ext in '' $ac_executable_extensions; do
11480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11481 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11483 break 2
11484 fi
11485 done
11486 done
11487 IFS=$as_save_IFS
11488
11489 fi
11490 fi
11491 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11492 if test -n "$AR_FOR_TARGET"; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11494 $as_echo "$AR_FOR_TARGET" >&6; }
11495 else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11498 fi
11499
11500
11501 fi
11502 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11504 set dummy ${ncn_progname}; ac_word=$2
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506 $as_echo_n "checking for $ac_word... " >&6; }
11507 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11508 $as_echo_n "(cached) " >&6
11509 else
11510 if test -n "$AR_FOR_TARGET"; then
11511 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11512 else
11513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514 for as_dir in $PATH
11515 do
11516 IFS=$as_save_IFS
11517 test -z "$as_dir" && as_dir=.
11518 for ac_exec_ext in '' $ac_executable_extensions; do
11519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11520 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11522 break 2
11523 fi
11524 done
11525 done
11526 IFS=$as_save_IFS
11527
11528 fi
11529 fi
11530 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11531 if test -n "$AR_FOR_TARGET"; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11533 $as_echo "$AR_FOR_TARGET" >&6; }
11534 else
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11537 fi
11538
11539
11540 fi
11541 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11542 done
11543 fi
11544
11545 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11546 set dummy ar
11547 if test $build = $target ; then
11548 AR_FOR_TARGET="$2"
11549 else
11550 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11551 fi
11552 else
11553 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11554 fi
11555
11556 else
11557 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11558 fi
11559
11560
11561
11562
11563 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11564 if test -n "$with_build_time_tools"; then
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11566 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11567 if test -x $with_build_time_tools/as; then
11568 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11569 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11571 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11572 else
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574 $as_echo "no" >&6; }
11575 fi
11576 elif test $build != $host && test $have_gcc_for_target = yes; then
11577 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11578 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11579 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11580 fi
11581 fi
11582 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11583 # Extract the first word of "as", so it can be a program name with args.
11584 set dummy as; ac_word=$2
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11586 $as_echo_n "checking for $ac_word... " >&6; }
11587 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11588 $as_echo_n "(cached) " >&6
11589 else
11590 case $AS_FOR_TARGET in
11591 [\\/]* | ?:[\\/]*)
11592 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11593 ;;
11594 *)
11595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596 for as_dir in $gcc_cv_tool_dirs
11597 do
11598 IFS=$as_save_IFS
11599 test -z "$as_dir" && as_dir=.
11600 for ac_exec_ext in '' $ac_executable_extensions; do
11601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11602 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11604 break 2
11605 fi
11606 done
11607 done
11608 IFS=$as_save_IFS
11609
11610 ;;
11611 esac
11612 fi
11613 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11614 if test -n "$AS_FOR_TARGET"; then
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11616 $as_echo "$AS_FOR_TARGET" >&6; }
11617 else
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619 $as_echo "no" >&6; }
11620 fi
11621
11622
11623 fi
11624 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11625
11626
11627 if test -n "$AS_FOR_TARGET"; then
11628 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11629 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11630 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11631 fi
11632
11633 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11634 for ncn_progname in as; do
11635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11636 set dummy ${ncn_progname}; ac_word=$2
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638 $as_echo_n "checking for $ac_word... " >&6; }
11639 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 if test -n "$AS_FOR_TARGET"; then
11643 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11644 else
11645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646 for as_dir in $PATH
11647 do
11648 IFS=$as_save_IFS
11649 test -z "$as_dir" && as_dir=.
11650 for ac_exec_ext in '' $ac_executable_extensions; do
11651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11652 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11654 break 2
11655 fi
11656 done
11657 done
11658 IFS=$as_save_IFS
11659
11660 fi
11661 fi
11662 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11663 if test -n "$AS_FOR_TARGET"; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11665 $as_echo "$AS_FOR_TARGET" >&6; }
11666 else
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668 $as_echo "no" >&6; }
11669 fi
11670
11671
11672 done
11673 fi
11674
11675 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11676 for ncn_progname in as; do
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11678 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11679 if test -x $with_build_time_tools/${ncn_progname}; then
11680 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11682 $as_echo "yes" >&6; }
11683 break
11684 else
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686 $as_echo "no" >&6; }
11687 fi
11688 done
11689 fi
11690
11691 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11692 for ncn_progname in as; do
11693 if test -n "$ncn_target_tool_prefix"; then
11694 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11695 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697 $as_echo_n "checking for $ac_word... " >&6; }
11698 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 if test -n "$AS_FOR_TARGET"; then
11702 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11703 else
11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11706 do
11707 IFS=$as_save_IFS
11708 test -z "$as_dir" && as_dir=.
11709 for ac_exec_ext in '' $ac_executable_extensions; do
11710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11711 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11713 break 2
11714 fi
11715 done
11716 done
11717 IFS=$as_save_IFS
11718
11719 fi
11720 fi
11721 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11722 if test -n "$AS_FOR_TARGET"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11724 $as_echo "$AS_FOR_TARGET" >&6; }
11725 else
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11728 fi
11729
11730
11731 fi
11732 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11734 set dummy ${ncn_progname}; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11738 $as_echo_n "(cached) " >&6
11739 else
11740 if test -n "$AS_FOR_TARGET"; then
11741 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11742 else
11743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11744 for as_dir in $PATH
11745 do
11746 IFS=$as_save_IFS
11747 test -z "$as_dir" && as_dir=.
11748 for ac_exec_ext in '' $ac_executable_extensions; do
11749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11750 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11752 break 2
11753 fi
11754 done
11755 done
11756 IFS=$as_save_IFS
11757
11758 fi
11759 fi
11760 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11761 if test -n "$AS_FOR_TARGET"; then
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11763 $as_echo "$AS_FOR_TARGET" >&6; }
11764 else
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11767 fi
11768
11769
11770 fi
11771 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11772 done
11773 fi
11774
11775 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11776 set dummy as
11777 if test $build = $target ; then
11778 AS_FOR_TARGET="$2"
11779 else
11780 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11781 fi
11782 else
11783 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11784 fi
11785
11786 else
11787 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11788 fi
11789
11790
11791
11792
11793 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11794 if test -n "$with_build_time_tools"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11796 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11797 if test -x $with_build_time_tools/dlltool; then
11798 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11799 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11801 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11802 else
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804 $as_echo "no" >&6; }
11805 fi
11806 elif test $build != $host && test $have_gcc_for_target = yes; then
11807 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11808 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11809 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11810 fi
11811 fi
11812 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11813 # Extract the first word of "dlltool", so it can be a program name with args.
11814 set dummy dlltool; ac_word=$2
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816 $as_echo_n "checking for $ac_word... " >&6; }
11817 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11818 $as_echo_n "(cached) " >&6
11819 else
11820 case $DLLTOOL_FOR_TARGET in
11821 [\\/]* | ?:[\\/]*)
11822 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11823 ;;
11824 *)
11825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 for as_dir in $gcc_cv_tool_dirs
11827 do
11828 IFS=$as_save_IFS
11829 test -z "$as_dir" && as_dir=.
11830 for ac_exec_ext in '' $ac_executable_extensions; do
11831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11832 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11834 break 2
11835 fi
11836 done
11837 done
11838 IFS=$as_save_IFS
11839
11840 ;;
11841 esac
11842 fi
11843 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11844 if test -n "$DLLTOOL_FOR_TARGET"; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11846 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11847 else
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849 $as_echo "no" >&6; }
11850 fi
11851
11852
11853 fi
11854 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11855
11856
11857 if test -n "$DLLTOOL_FOR_TARGET"; then
11858 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11859 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11860 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11861 fi
11862
11863 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11864 for ncn_progname in dlltool; do
11865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11866 set dummy ${ncn_progname}; ac_word=$2
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11868 $as_echo_n "checking for $ac_word... " >&6; }
11869 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872 if test -n "$DLLTOOL_FOR_TARGET"; then
11873 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11874 else
11875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11876 for as_dir in $PATH
11877 do
11878 IFS=$as_save_IFS
11879 test -z "$as_dir" && as_dir=.
11880 for ac_exec_ext in '' $ac_executable_extensions; do
11881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11882 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11884 break 2
11885 fi
11886 done
11887 done
11888 IFS=$as_save_IFS
11889
11890 fi
11891 fi
11892 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11893 if test -n "$DLLTOOL_FOR_TARGET"; then
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11895 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11896 else
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 $as_echo "no" >&6; }
11899 fi
11900
11901
11902 done
11903 fi
11904
11905 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11906 for ncn_progname in dlltool; do
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11908 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11909 if test -x $with_build_time_tools/${ncn_progname}; then
11910 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11912 $as_echo "yes" >&6; }
11913 break
11914 else
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11917 fi
11918 done
11919 fi
11920
11921 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11922 for ncn_progname in dlltool; do
11923 if test -n "$ncn_target_tool_prefix"; then
11924 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11925 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11927 $as_echo_n "checking for $ac_word... " >&6; }
11928 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11929 $as_echo_n "(cached) " >&6
11930 else
11931 if test -n "$DLLTOOL_FOR_TARGET"; then
11932 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11933 else
11934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11935 for as_dir in $PATH
11936 do
11937 IFS=$as_save_IFS
11938 test -z "$as_dir" && as_dir=.
11939 for ac_exec_ext in '' $ac_executable_extensions; do
11940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11941 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11943 break 2
11944 fi
11945 done
11946 done
11947 IFS=$as_save_IFS
11948
11949 fi
11950 fi
11951 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11952 if test -n "$DLLTOOL_FOR_TARGET"; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11954 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11955 else
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957 $as_echo "no" >&6; }
11958 fi
11959
11960
11961 fi
11962 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11964 set dummy ${ncn_progname}; ac_word=$2
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11966 $as_echo_n "checking for $ac_word... " >&6; }
11967 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 if test -n "$DLLTOOL_FOR_TARGET"; then
11971 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11972 else
11973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11974 for as_dir in $PATH
11975 do
11976 IFS=$as_save_IFS
11977 test -z "$as_dir" && as_dir=.
11978 for ac_exec_ext in '' $ac_executable_extensions; do
11979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11980 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11982 break 2
11983 fi
11984 done
11985 done
11986 IFS=$as_save_IFS
11987
11988 fi
11989 fi
11990 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11991 if test -n "$DLLTOOL_FOR_TARGET"; then
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11993 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11994 else
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11996 $as_echo "no" >&6; }
11997 fi
11998
11999
12000 fi
12001 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
12002 done
12003 fi
12004
12005 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
12006 set dummy dlltool
12007 if test $build = $target ; then
12008 DLLTOOL_FOR_TARGET="$2"
12009 else
12010 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
12011 fi
12012 else
12013 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
12014 fi
12015
12016 else
12017 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
12018 fi
12019
12020
12021
12022
12023 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12024 if test -n "$with_build_time_tools"; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
12026 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
12027 if test -x $with_build_time_tools/ld; then
12028 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
12029 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
12031 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
12032 else
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034 $as_echo "no" >&6; }
12035 fi
12036 elif test $build != $host && test $have_gcc_for_target = yes; then
12037 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
12038 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
12039 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
12040 fi
12041 fi
12042 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12043 # Extract the first word of "ld", so it can be a program name with args.
12044 set dummy ld; ac_word=$2
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12046 $as_echo_n "checking for $ac_word... " >&6; }
12047 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
12048 $as_echo_n "(cached) " >&6
12049 else
12050 case $LD_FOR_TARGET in
12051 [\\/]* | ?:[\\/]*)
12052 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
12053 ;;
12054 *)
12055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056 for as_dir in $gcc_cv_tool_dirs
12057 do
12058 IFS=$as_save_IFS
12059 test -z "$as_dir" && as_dir=.
12060 for ac_exec_ext in '' $ac_executable_extensions; do
12061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12062 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12064 break 2
12065 fi
12066 done
12067 done
12068 IFS=$as_save_IFS
12069
12070 ;;
12071 esac
12072 fi
12073 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12074 if test -n "$LD_FOR_TARGET"; then
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12076 $as_echo "$LD_FOR_TARGET" >&6; }
12077 else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079 $as_echo "no" >&6; }
12080 fi
12081
12082
12083 fi
12084 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12085
12086
12087 if test -n "$LD_FOR_TARGET"; then
12088 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12089 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12090 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12091 fi
12092
12093 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12094 for ncn_progname in ld; do
12095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12096 set dummy ${ncn_progname}; ac_word=$2
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12098 $as_echo_n "checking for $ac_word... " >&6; }
12099 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12100 $as_echo_n "(cached) " >&6
12101 else
12102 if test -n "$LD_FOR_TARGET"; then
12103 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12104 else
12105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106 for as_dir in $PATH
12107 do
12108 IFS=$as_save_IFS
12109 test -z "$as_dir" && as_dir=.
12110 for ac_exec_ext in '' $ac_executable_extensions; do
12111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12112 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12114 break 2
12115 fi
12116 done
12117 done
12118 IFS=$as_save_IFS
12119
12120 fi
12121 fi
12122 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12123 if test -n "$LD_FOR_TARGET"; then
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12125 $as_echo "$LD_FOR_TARGET" >&6; }
12126 else
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128 $as_echo "no" >&6; }
12129 fi
12130
12131
12132 done
12133 fi
12134
12135 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
12136 for ncn_progname in ld; do
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12138 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12139 if test -x $with_build_time_tools/${ncn_progname}; then
12140 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12142 $as_echo "yes" >&6; }
12143 break
12144 else
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146 $as_echo "no" >&6; }
12147 fi
12148 done
12149 fi
12150
12151 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12152 for ncn_progname in ld; do
12153 if test -n "$ncn_target_tool_prefix"; then
12154 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12155 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12157 $as_echo_n "checking for $ac_word... " >&6; }
12158 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12159 $as_echo_n "(cached) " >&6
12160 else
12161 if test -n "$LD_FOR_TARGET"; then
12162 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12163 else
12164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165 for as_dir in $PATH
12166 do
12167 IFS=$as_save_IFS
12168 test -z "$as_dir" && as_dir=.
12169 for ac_exec_ext in '' $ac_executable_extensions; do
12170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12171 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12173 break 2
12174 fi
12175 done
12176 done
12177 IFS=$as_save_IFS
12178
12179 fi
12180 fi
12181 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12182 if test -n "$LD_FOR_TARGET"; then
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12184 $as_echo "$LD_FOR_TARGET" >&6; }
12185 else
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187 $as_echo "no" >&6; }
12188 fi
12189
12190
12191 fi
12192 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12194 set dummy ${ncn_progname}; ac_word=$2
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12196 $as_echo_n "checking for $ac_word... " >&6; }
12197 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12198 $as_echo_n "(cached) " >&6
12199 else
12200 if test -n "$LD_FOR_TARGET"; then
12201 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12202 else
12203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12204 for as_dir in $PATH
12205 do
12206 IFS=$as_save_IFS
12207 test -z "$as_dir" && as_dir=.
12208 for ac_exec_ext in '' $ac_executable_extensions; do
12209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12210 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12212 break 2
12213 fi
12214 done
12215 done
12216 IFS=$as_save_IFS
12217
12218 fi
12219 fi
12220 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12221 if test -n "$LD_FOR_TARGET"; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12223 $as_echo "$LD_FOR_TARGET" >&6; }
12224 else
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 $as_echo "no" >&6; }
12227 fi
12228
12229
12230 fi
12231 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12232 done
12233 fi
12234
12235 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12236 set dummy ld
12237 if test $build = $target ; then
12238 LD_FOR_TARGET="$2"
12239 else
12240 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12241 fi
12242 else
12243 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12244 fi
12245
12246 else
12247 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12248 fi
12249
12250
12251
12252
12253 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12254 if test -n "$with_build_time_tools"; then
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12256 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12257 if test -x $with_build_time_tools/lipo; then
12258 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12259 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12261 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12262 else
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264 $as_echo "no" >&6; }
12265 fi
12266 elif test $build != $host && test $have_gcc_for_target = yes; then
12267 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12268 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12269 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12270 fi
12271 fi
12272 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12273 # Extract the first word of "lipo", so it can be a program name with args.
12274 set dummy lipo; ac_word=$2
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12276 $as_echo_n "checking for $ac_word... " >&6; }
12277 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
12278 $as_echo_n "(cached) " >&6
12279 else
12280 case $LIPO_FOR_TARGET in
12281 [\\/]* | ?:[\\/]*)
12282 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12283 ;;
12284 *)
12285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 for as_dir in $gcc_cv_tool_dirs
12287 do
12288 IFS=$as_save_IFS
12289 test -z "$as_dir" && as_dir=.
12290 for ac_exec_ext in '' $ac_executable_extensions; do
12291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12292 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12294 break 2
12295 fi
12296 done
12297 done
12298 IFS=$as_save_IFS
12299
12300 ;;
12301 esac
12302 fi
12303 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12304 if test -n "$LIPO_FOR_TARGET"; then
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12306 $as_echo "$LIPO_FOR_TARGET" >&6; }
12307 else
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309 $as_echo "no" >&6; }
12310 fi
12311
12312
12313 fi
12314 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12315
12316
12317 if test -n "$LIPO_FOR_TARGET"; then
12318 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12319 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12320 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12321 fi
12322
12323 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12324 for ncn_progname in lipo; do
12325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12326 set dummy ${ncn_progname}; ac_word=$2
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12328 $as_echo_n "checking for $ac_word... " >&6; }
12329 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 if test -n "$LIPO_FOR_TARGET"; then
12333 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12334 else
12335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336 for as_dir in $PATH
12337 do
12338 IFS=$as_save_IFS
12339 test -z "$as_dir" && as_dir=.
12340 for ac_exec_ext in '' $ac_executable_extensions; do
12341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12342 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12344 break 2
12345 fi
12346 done
12347 done
12348 IFS=$as_save_IFS
12349
12350 fi
12351 fi
12352 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12353 if test -n "$LIPO_FOR_TARGET"; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12355 $as_echo "$LIPO_FOR_TARGET" >&6; }
12356 else
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358 $as_echo "no" >&6; }
12359 fi
12360
12361
12362 done
12363 fi
12364
12365 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12366 for ncn_progname in lipo; do
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12368 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12369 if test -x $with_build_time_tools/${ncn_progname}; then
12370 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12372 $as_echo "yes" >&6; }
12373 break
12374 else
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376 $as_echo "no" >&6; }
12377 fi
12378 done
12379 fi
12380
12381 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12382 for ncn_progname in lipo; do
12383 if test -n "$ncn_target_tool_prefix"; then
12384 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12385 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12387 $as_echo_n "checking for $ac_word... " >&6; }
12388 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12389 $as_echo_n "(cached) " >&6
12390 else
12391 if test -n "$LIPO_FOR_TARGET"; then
12392 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12393 else
12394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12395 for as_dir in $PATH
12396 do
12397 IFS=$as_save_IFS
12398 test -z "$as_dir" && as_dir=.
12399 for ac_exec_ext in '' $ac_executable_extensions; do
12400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12401 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12403 break 2
12404 fi
12405 done
12406 done
12407 IFS=$as_save_IFS
12408
12409 fi
12410 fi
12411 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12412 if test -n "$LIPO_FOR_TARGET"; then
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12414 $as_echo "$LIPO_FOR_TARGET" >&6; }
12415 else
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417 $as_echo "no" >&6; }
12418 fi
12419
12420
12421 fi
12422 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12424 set dummy ${ncn_progname}; ac_word=$2
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12426 $as_echo_n "checking for $ac_word... " >&6; }
12427 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 if test -n "$LIPO_FOR_TARGET"; then
12431 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12432 else
12433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434 for as_dir in $PATH
12435 do
12436 IFS=$as_save_IFS
12437 test -z "$as_dir" && as_dir=.
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12440 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442 break 2
12443 fi
12444 done
12445 done
12446 IFS=$as_save_IFS
12447
12448 fi
12449 fi
12450 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12451 if test -n "$LIPO_FOR_TARGET"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12453 $as_echo "$LIPO_FOR_TARGET" >&6; }
12454 else
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456 $as_echo "no" >&6; }
12457 fi
12458
12459
12460 fi
12461 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12462 done
12463 fi
12464
12465 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12466 set dummy lipo
12467 if test $build = $target ; then
12468 LIPO_FOR_TARGET="$2"
12469 else
12470 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12471 fi
12472 else
12473 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12474 fi
12475
12476 else
12477 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12478 fi
12479
12480
12481
12482
12483 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12484 if test -n "$with_build_time_tools"; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12486 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12487 if test -x $with_build_time_tools/nm; then
12488 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12489 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12491 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12492 else
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494 $as_echo "no" >&6; }
12495 fi
12496 elif test $build != $host && test $have_gcc_for_target = yes; then
12497 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12498 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12499 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12500 fi
12501 fi
12502 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12503 # Extract the first word of "nm", so it can be a program name with args.
12504 set dummy nm; ac_word=$2
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12506 $as_echo_n "checking for $ac_word... " >&6; }
12507 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12508 $as_echo_n "(cached) " >&6
12509 else
12510 case $NM_FOR_TARGET in
12511 [\\/]* | ?:[\\/]*)
12512 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12513 ;;
12514 *)
12515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12516 for as_dir in $gcc_cv_tool_dirs
12517 do
12518 IFS=$as_save_IFS
12519 test -z "$as_dir" && as_dir=.
12520 for ac_exec_ext in '' $ac_executable_extensions; do
12521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12522 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12524 break 2
12525 fi
12526 done
12527 done
12528 IFS=$as_save_IFS
12529
12530 ;;
12531 esac
12532 fi
12533 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12534 if test -n "$NM_FOR_TARGET"; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12536 $as_echo "$NM_FOR_TARGET" >&6; }
12537 else
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 $as_echo "no" >&6; }
12540 fi
12541
12542
12543 fi
12544 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12545
12546
12547 if test -n "$NM_FOR_TARGET"; then
12548 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12549 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12550 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12551 fi
12552
12553 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12554 for ncn_progname in nm; do
12555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12556 set dummy ${ncn_progname}; ac_word=$2
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12558 $as_echo_n "checking for $ac_word... " >&6; }
12559 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 if test -n "$NM_FOR_TARGET"; then
12563 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12564 else
12565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12566 for as_dir in $PATH
12567 do
12568 IFS=$as_save_IFS
12569 test -z "$as_dir" && as_dir=.
12570 for ac_exec_ext in '' $ac_executable_extensions; do
12571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12572 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12574 break 2
12575 fi
12576 done
12577 done
12578 IFS=$as_save_IFS
12579
12580 fi
12581 fi
12582 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12583 if test -n "$NM_FOR_TARGET"; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12585 $as_echo "$NM_FOR_TARGET" >&6; }
12586 else
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12588 $as_echo "no" >&6; }
12589 fi
12590
12591
12592 done
12593 fi
12594
12595 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12596 for ncn_progname in nm; do
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12598 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12599 if test -x $with_build_time_tools/${ncn_progname}; then
12600 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12602 $as_echo "yes" >&6; }
12603 break
12604 else
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606 $as_echo "no" >&6; }
12607 fi
12608 done
12609 fi
12610
12611 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12612 for ncn_progname in nm; do
12613 if test -n "$ncn_target_tool_prefix"; then
12614 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12615 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12617 $as_echo_n "checking for $ac_word... " >&6; }
12618 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 if test -n "$NM_FOR_TARGET"; then
12622 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12623 else
12624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12626 do
12627 IFS=$as_save_IFS
12628 test -z "$as_dir" && as_dir=.
12629 for ac_exec_ext in '' $ac_executable_extensions; do
12630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12631 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12633 break 2
12634 fi
12635 done
12636 done
12637 IFS=$as_save_IFS
12638
12639 fi
12640 fi
12641 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12642 if test -n "$NM_FOR_TARGET"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12644 $as_echo "$NM_FOR_TARGET" >&6; }
12645 else
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 $as_echo "no" >&6; }
12648 fi
12649
12650
12651 fi
12652 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12654 set dummy ${ncn_progname}; ac_word=$2
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656 $as_echo_n "checking for $ac_word... " >&6; }
12657 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12658 $as_echo_n "(cached) " >&6
12659 else
12660 if test -n "$NM_FOR_TARGET"; then
12661 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12662 else
12663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12664 for as_dir in $PATH
12665 do
12666 IFS=$as_save_IFS
12667 test -z "$as_dir" && as_dir=.
12668 for ac_exec_ext in '' $ac_executable_extensions; do
12669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12670 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12672 break 2
12673 fi
12674 done
12675 done
12676 IFS=$as_save_IFS
12677
12678 fi
12679 fi
12680 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12681 if test -n "$NM_FOR_TARGET"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12683 $as_echo "$NM_FOR_TARGET" >&6; }
12684 else
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12687 fi
12688
12689
12690 fi
12691 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12692 done
12693 fi
12694
12695 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12696 set dummy nm
12697 if test $build = $target ; then
12698 NM_FOR_TARGET="$2"
12699 else
12700 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12701 fi
12702 else
12703 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12704 fi
12705
12706 else
12707 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12708 fi
12709
12710
12711
12712
12713 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12714 if test -n "$with_build_time_tools"; then
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12716 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12717 if test -x $with_build_time_tools/objcopy; then
12718 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12719 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12721 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12722 else
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12724 $as_echo "no" >&6; }
12725 fi
12726 elif test $build != $host && test $have_gcc_for_target = yes; then
12727 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12728 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12729 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12730 fi
12731 fi
12732 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12733 # Extract the first word of "objcopy", so it can be a program name with args.
12734 set dummy objcopy; ac_word=$2
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12736 $as_echo_n "checking for $ac_word... " >&6; }
12737 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12738 $as_echo_n "(cached) " >&6
12739 else
12740 case $OBJCOPY_FOR_TARGET in
12741 [\\/]* | ?:[\\/]*)
12742 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12743 ;;
12744 *)
12745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12746 for as_dir in $gcc_cv_tool_dirs
12747 do
12748 IFS=$as_save_IFS
12749 test -z "$as_dir" && as_dir=.
12750 for ac_exec_ext in '' $ac_executable_extensions; do
12751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12752 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12754 break 2
12755 fi
12756 done
12757 done
12758 IFS=$as_save_IFS
12759
12760 ;;
12761 esac
12762 fi
12763 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12764 if test -n "$OBJCOPY_FOR_TARGET"; then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12766 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12767 else
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769 $as_echo "no" >&6; }
12770 fi
12771
12772
12773 fi
12774 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12775
12776
12777 if test -n "$OBJCOPY_FOR_TARGET"; then
12778 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12779 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12780 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12781 fi
12782
12783 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12784 for ncn_progname in objcopy; do
12785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12786 set dummy ${ncn_progname}; ac_word=$2
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12788 $as_echo_n "checking for $ac_word... " >&6; }
12789 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12790 $as_echo_n "(cached) " >&6
12791 else
12792 if test -n "$OBJCOPY_FOR_TARGET"; then
12793 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12794 else
12795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12796 for as_dir in $PATH
12797 do
12798 IFS=$as_save_IFS
12799 test -z "$as_dir" && as_dir=.
12800 for ac_exec_ext in '' $ac_executable_extensions; do
12801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12802 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12804 break 2
12805 fi
12806 done
12807 done
12808 IFS=$as_save_IFS
12809
12810 fi
12811 fi
12812 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12813 if test -n "$OBJCOPY_FOR_TARGET"; then
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12815 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12816 else
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12818 $as_echo "no" >&6; }
12819 fi
12820
12821
12822 done
12823 fi
12824
12825 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12826 for ncn_progname in objcopy; do
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12828 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12829 if test -x $with_build_time_tools/${ncn_progname}; then
12830 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12832 $as_echo "yes" >&6; }
12833 break
12834 else
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836 $as_echo "no" >&6; }
12837 fi
12838 done
12839 fi
12840
12841 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12842 for ncn_progname in objcopy; do
12843 if test -n "$ncn_target_tool_prefix"; then
12844 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12845 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847 $as_echo_n "checking for $ac_word... " >&6; }
12848 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12849 $as_echo_n "(cached) " >&6
12850 else
12851 if test -n "$OBJCOPY_FOR_TARGET"; then
12852 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12853 else
12854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855 for as_dir in $PATH
12856 do
12857 IFS=$as_save_IFS
12858 test -z "$as_dir" && as_dir=.
12859 for ac_exec_ext in '' $ac_executable_extensions; do
12860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12861 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12863 break 2
12864 fi
12865 done
12866 done
12867 IFS=$as_save_IFS
12868
12869 fi
12870 fi
12871 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12872 if test -n "$OBJCOPY_FOR_TARGET"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12874 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12875 else
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877 $as_echo "no" >&6; }
12878 fi
12879
12880
12881 fi
12882 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12884 set dummy ${ncn_progname}; ac_word=$2
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12886 $as_echo_n "checking for $ac_word... " >&6; }
12887 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12888 $as_echo_n "(cached) " >&6
12889 else
12890 if test -n "$OBJCOPY_FOR_TARGET"; then
12891 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12892 else
12893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12894 for as_dir in $PATH
12895 do
12896 IFS=$as_save_IFS
12897 test -z "$as_dir" && as_dir=.
12898 for ac_exec_ext in '' $ac_executable_extensions; do
12899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12900 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12902 break 2
12903 fi
12904 done
12905 done
12906 IFS=$as_save_IFS
12907
12908 fi
12909 fi
12910 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12911 if test -n "$OBJCOPY_FOR_TARGET"; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12913 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12914 else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12917 fi
12918
12919
12920 fi
12921 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12922 done
12923 fi
12924
12925 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12926 set dummy objcopy
12927 if test $build = $target ; then
12928 OBJCOPY_FOR_TARGET="$2"
12929 else
12930 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12931 fi
12932 else
12933 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12934 fi
12935
12936 else
12937 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12938 fi
12939
12940
12941
12942
12943 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12944 if test -n "$with_build_time_tools"; then
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12946 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12947 if test -x $with_build_time_tools/objdump; then
12948 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12949 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12951 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12952 else
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954 $as_echo "no" >&6; }
12955 fi
12956 elif test $build != $host && test $have_gcc_for_target = yes; then
12957 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12958 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12959 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12960 fi
12961 fi
12962 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12963 # Extract the first word of "objdump", so it can be a program name with args.
12964 set dummy objdump; ac_word=$2
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12966 $as_echo_n "checking for $ac_word... " >&6; }
12967 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12968 $as_echo_n "(cached) " >&6
12969 else
12970 case $OBJDUMP_FOR_TARGET in
12971 [\\/]* | ?:[\\/]*)
12972 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12973 ;;
12974 *)
12975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12976 for as_dir in $gcc_cv_tool_dirs
12977 do
12978 IFS=$as_save_IFS
12979 test -z "$as_dir" && as_dir=.
12980 for ac_exec_ext in '' $ac_executable_extensions; do
12981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12982 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12984 break 2
12985 fi
12986 done
12987 done
12988 IFS=$as_save_IFS
12989
12990 ;;
12991 esac
12992 fi
12993 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12994 if test -n "$OBJDUMP_FOR_TARGET"; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12996 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12997 else
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999 $as_echo "no" >&6; }
13000 fi
13001
13002
13003 fi
13004 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
13005
13006
13007 if test -n "$OBJDUMP_FOR_TARGET"; then
13008 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
13009 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13010 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13011 fi
13012
13013 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13014 for ncn_progname in objdump; do
13015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13016 set dummy ${ncn_progname}; ac_word=$2
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13018 $as_echo_n "checking for $ac_word... " >&6; }
13019 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13020 $as_echo_n "(cached) " >&6
13021 else
13022 if test -n "$OBJDUMP_FOR_TARGET"; then
13023 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13024 else
13025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026 for as_dir in $PATH
13027 do
13028 IFS=$as_save_IFS
13029 test -z "$as_dir" && as_dir=.
13030 for ac_exec_ext in '' $ac_executable_extensions; do
13031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13032 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13034 break 2
13035 fi
13036 done
13037 done
13038 IFS=$as_save_IFS
13039
13040 fi
13041 fi
13042 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13043 if test -n "$OBJDUMP_FOR_TARGET"; then
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13045 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13046 else
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13048 $as_echo "no" >&6; }
13049 fi
13050
13051
13052 done
13053 fi
13054
13055 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13056 for ncn_progname in objdump; do
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13058 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13059 if test -x $with_build_time_tools/${ncn_progname}; then
13060 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13062 $as_echo "yes" >&6; }
13063 break
13064 else
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066 $as_echo "no" >&6; }
13067 fi
13068 done
13069 fi
13070
13071 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13072 for ncn_progname in objdump; do
13073 if test -n "$ncn_target_tool_prefix"; then
13074 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13075 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13077 $as_echo_n "checking for $ac_word... " >&6; }
13078 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13079 $as_echo_n "(cached) " >&6
13080 else
13081 if test -n "$OBJDUMP_FOR_TARGET"; then
13082 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13083 else
13084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13085 for as_dir in $PATH
13086 do
13087 IFS=$as_save_IFS
13088 test -z "$as_dir" && as_dir=.
13089 for ac_exec_ext in '' $ac_executable_extensions; do
13090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13091 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13093 break 2
13094 fi
13095 done
13096 done
13097 IFS=$as_save_IFS
13098
13099 fi
13100 fi
13101 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13102 if test -n "$OBJDUMP_FOR_TARGET"; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13104 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13105 else
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13107 $as_echo "no" >&6; }
13108 fi
13109
13110
13111 fi
13112 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13114 set dummy ${ncn_progname}; ac_word=$2
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13116 $as_echo_n "checking for $ac_word... " >&6; }
13117 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13118 $as_echo_n "(cached) " >&6
13119 else
13120 if test -n "$OBJDUMP_FOR_TARGET"; then
13121 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13122 else
13123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13124 for as_dir in $PATH
13125 do
13126 IFS=$as_save_IFS
13127 test -z "$as_dir" && as_dir=.
13128 for ac_exec_ext in '' $ac_executable_extensions; do
13129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13130 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13132 break 2
13133 fi
13134 done
13135 done
13136 IFS=$as_save_IFS
13137
13138 fi
13139 fi
13140 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13141 if test -n "$OBJDUMP_FOR_TARGET"; then
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13143 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13144 else
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146 $as_echo "no" >&6; }
13147 fi
13148
13149
13150 fi
13151 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13152 done
13153 fi
13154
13155 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13156 set dummy objdump
13157 if test $build = $target ; then
13158 OBJDUMP_FOR_TARGET="$2"
13159 else
13160 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13161 fi
13162 else
13163 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
13164 fi
13165
13166 else
13167 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
13168 fi
13169
13170
13171
13172
13173 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13174 if test -n "$with_build_time_tools"; then
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13176 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
13177 if test -x $with_build_time_tools/ranlib; then
13178 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13179 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13181 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
13182 else
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13184 $as_echo "no" >&6; }
13185 fi
13186 elif test $build != $host && test $have_gcc_for_target = yes; then
13187 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
13188 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13189 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13190 fi
13191 fi
13192 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13193 # Extract the first word of "ranlib", so it can be a program name with args.
13194 set dummy ranlib; ac_word=$2
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13196 $as_echo_n "checking for $ac_word... " >&6; }
13197 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
13198 $as_echo_n "(cached) " >&6
13199 else
13200 case $RANLIB_FOR_TARGET in
13201 [\\/]* | ?:[\\/]*)
13202 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13203 ;;
13204 *)
13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $gcc_cv_tool_dirs
13207 do
13208 IFS=$as_save_IFS
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
13211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13212 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13214 break 2
13215 fi
13216 done
13217 done
13218 IFS=$as_save_IFS
13219
13220 ;;
13221 esac
13222 fi
13223 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13224 if test -n "$RANLIB_FOR_TARGET"; then
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13226 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13227 else
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229 $as_echo "no" >&6; }
13230 fi
13231
13232
13233 fi
13234 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13235
13236
13237 if test -n "$RANLIB_FOR_TARGET"; then
13238 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13239 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13240 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13241 fi
13242
13243 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13244 for ncn_progname in ranlib; do
13245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13246 set dummy ${ncn_progname}; ac_word=$2
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248 $as_echo_n "checking for $ac_word... " >&6; }
13249 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13250 $as_echo_n "(cached) " >&6
13251 else
13252 if test -n "$RANLIB_FOR_TARGET"; then
13253 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13254 else
13255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256 for as_dir in $PATH
13257 do
13258 IFS=$as_save_IFS
13259 test -z "$as_dir" && as_dir=.
13260 for ac_exec_ext in '' $ac_executable_extensions; do
13261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13262 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13264 break 2
13265 fi
13266 done
13267 done
13268 IFS=$as_save_IFS
13269
13270 fi
13271 fi
13272 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13273 if test -n "$RANLIB_FOR_TARGET"; then
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13275 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13276 else
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278 $as_echo "no" >&6; }
13279 fi
13280
13281
13282 done
13283 fi
13284
13285 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13286 for ncn_progname in ranlib; do
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13288 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13289 if test -x $with_build_time_tools/${ncn_progname}; then
13290 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13292 $as_echo "yes" >&6; }
13293 break
13294 else
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13297 fi
13298 done
13299 fi
13300
13301 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13302 for ncn_progname in ranlib; do
13303 if test -n "$ncn_target_tool_prefix"; then
13304 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13305 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13307 $as_echo_n "checking for $ac_word... " >&6; }
13308 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13309 $as_echo_n "(cached) " >&6
13310 else
13311 if test -n "$RANLIB_FOR_TARGET"; then
13312 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13313 else
13314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315 for as_dir in $PATH
13316 do
13317 IFS=$as_save_IFS
13318 test -z "$as_dir" && as_dir=.
13319 for ac_exec_ext in '' $ac_executable_extensions; do
13320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13321 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13323 break 2
13324 fi
13325 done
13326 done
13327 IFS=$as_save_IFS
13328
13329 fi
13330 fi
13331 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13332 if test -n "$RANLIB_FOR_TARGET"; then
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13334 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13335 else
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337 $as_echo "no" >&6; }
13338 fi
13339
13340
13341 fi
13342 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13344 set dummy ${ncn_progname}; ac_word=$2
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13346 $as_echo_n "checking for $ac_word... " >&6; }
13347 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13348 $as_echo_n "(cached) " >&6
13349 else
13350 if test -n "$RANLIB_FOR_TARGET"; then
13351 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13352 else
13353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13354 for as_dir in $PATH
13355 do
13356 IFS=$as_save_IFS
13357 test -z "$as_dir" && as_dir=.
13358 for ac_exec_ext in '' $ac_executable_extensions; do
13359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13360 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13362 break 2
13363 fi
13364 done
13365 done
13366 IFS=$as_save_IFS
13367
13368 fi
13369 fi
13370 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13371 if test -n "$RANLIB_FOR_TARGET"; then
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13373 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13374 else
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13376 $as_echo "no" >&6; }
13377 fi
13378
13379
13380 fi
13381 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13382 done
13383 fi
13384
13385 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13386 set dummy ranlib
13387 if test $build = $target ; then
13388 RANLIB_FOR_TARGET="$2"
13389 else
13390 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13391 fi
13392 else
13393 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13394 fi
13395
13396 else
13397 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13398 fi
13399
13400
13401
13402
13403 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13404 if test -n "$with_build_time_tools"; then
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13406 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13407 if test -x $with_build_time_tools/readelf; then
13408 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13409 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13411 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13412 else
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13414 $as_echo "no" >&6; }
13415 fi
13416 elif test $build != $host && test $have_gcc_for_target = yes; then
13417 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13418 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13419 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13420 fi
13421 fi
13422 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13423 # Extract the first word of "readelf", so it can be a program name with args.
13424 set dummy readelf; ac_word=$2
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13426 $as_echo_n "checking for $ac_word... " >&6; }
13427 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13428 $as_echo_n "(cached) " >&6
13429 else
13430 case $READELF_FOR_TARGET in
13431 [\\/]* | ?:[\\/]*)
13432 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13433 ;;
13434 *)
13435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13436 for as_dir in $gcc_cv_tool_dirs
13437 do
13438 IFS=$as_save_IFS
13439 test -z "$as_dir" && as_dir=.
13440 for ac_exec_ext in '' $ac_executable_extensions; do
13441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13442 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13444 break 2
13445 fi
13446 done
13447 done
13448 IFS=$as_save_IFS
13449
13450 ;;
13451 esac
13452 fi
13453 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13454 if test -n "$READELF_FOR_TARGET"; then
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13456 $as_echo "$READELF_FOR_TARGET" >&6; }
13457 else
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13459 $as_echo "no" >&6; }
13460 fi
13461
13462
13463 fi
13464 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13465
13466
13467 if test -n "$READELF_FOR_TARGET"; then
13468 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13469 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13470 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13471 fi
13472
13473 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13474 for ncn_progname in readelf; do
13475 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13476 set dummy ${ncn_progname}; ac_word=$2
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478 $as_echo_n "checking for $ac_word... " >&6; }
13479 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13480 $as_echo_n "(cached) " >&6
13481 else
13482 if test -n "$READELF_FOR_TARGET"; then
13483 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13484 else
13485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486 for as_dir in $PATH
13487 do
13488 IFS=$as_save_IFS
13489 test -z "$as_dir" && as_dir=.
13490 for ac_exec_ext in '' $ac_executable_extensions; do
13491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13492 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13494 break 2
13495 fi
13496 done
13497 done
13498 IFS=$as_save_IFS
13499
13500 fi
13501 fi
13502 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13503 if test -n "$READELF_FOR_TARGET"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13505 $as_echo "$READELF_FOR_TARGET" >&6; }
13506 else
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508 $as_echo "no" >&6; }
13509 fi
13510
13511
13512 done
13513 fi
13514
13515 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13516 for ncn_progname in readelf; do
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13518 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13519 if test -x $with_build_time_tools/${ncn_progname}; then
13520 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13522 $as_echo "yes" >&6; }
13523 break
13524 else
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526 $as_echo "no" >&6; }
13527 fi
13528 done
13529 fi
13530
13531 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13532 for ncn_progname in readelf; do
13533 if test -n "$ncn_target_tool_prefix"; then
13534 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13535 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13537 $as_echo_n "checking for $ac_word... " >&6; }
13538 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13539 $as_echo_n "(cached) " >&6
13540 else
13541 if test -n "$READELF_FOR_TARGET"; then
13542 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13543 else
13544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545 for as_dir in $PATH
13546 do
13547 IFS=$as_save_IFS
13548 test -z "$as_dir" && as_dir=.
13549 for ac_exec_ext in '' $ac_executable_extensions; do
13550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13551 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13553 break 2
13554 fi
13555 done
13556 done
13557 IFS=$as_save_IFS
13558
13559 fi
13560 fi
13561 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13562 if test -n "$READELF_FOR_TARGET"; then
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13564 $as_echo "$READELF_FOR_TARGET" >&6; }
13565 else
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567 $as_echo "no" >&6; }
13568 fi
13569
13570
13571 fi
13572 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13574 set dummy ${ncn_progname}; ac_word=$2
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13576 $as_echo_n "checking for $ac_word... " >&6; }
13577 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13578 $as_echo_n "(cached) " >&6
13579 else
13580 if test -n "$READELF_FOR_TARGET"; then
13581 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13582 else
13583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13584 for as_dir in $PATH
13585 do
13586 IFS=$as_save_IFS
13587 test -z "$as_dir" && as_dir=.
13588 for ac_exec_ext in '' $ac_executable_extensions; do
13589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13590 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13592 break 2
13593 fi
13594 done
13595 done
13596 IFS=$as_save_IFS
13597
13598 fi
13599 fi
13600 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13601 if test -n "$READELF_FOR_TARGET"; then
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13603 $as_echo "$READELF_FOR_TARGET" >&6; }
13604 else
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13606 $as_echo "no" >&6; }
13607 fi
13608
13609
13610 fi
13611 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13612 done
13613 fi
13614
13615 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13616 set dummy readelf
13617 if test $build = $target ; then
13618 READELF_FOR_TARGET="$2"
13619 else
13620 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13621 fi
13622 else
13623 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13624 fi
13625
13626 else
13627 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13628 fi
13629
13630
13631
13632
13633 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13634 if test -n "$with_build_time_tools"; then
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13636 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13637 if test -x $with_build_time_tools/strip; then
13638 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13639 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13641 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13642 else
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644 $as_echo "no" >&6; }
13645 fi
13646 elif test $build != $host && test $have_gcc_for_target = yes; then
13647 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13648 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13649 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13650 fi
13651 fi
13652 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13653 # Extract the first word of "strip", so it can be a program name with args.
13654 set dummy strip; ac_word=$2
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13656 $as_echo_n "checking for $ac_word... " >&6; }
13657 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13658 $as_echo_n "(cached) " >&6
13659 else
13660 case $STRIP_FOR_TARGET in
13661 [\\/]* | ?:[\\/]*)
13662 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13663 ;;
13664 *)
13665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13666 for as_dir in $gcc_cv_tool_dirs
13667 do
13668 IFS=$as_save_IFS
13669 test -z "$as_dir" && as_dir=.
13670 for ac_exec_ext in '' $ac_executable_extensions; do
13671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13672 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13674 break 2
13675 fi
13676 done
13677 done
13678 IFS=$as_save_IFS
13679
13680 ;;
13681 esac
13682 fi
13683 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13684 if test -n "$STRIP_FOR_TARGET"; then
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13686 $as_echo "$STRIP_FOR_TARGET" >&6; }
13687 else
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13689 $as_echo "no" >&6; }
13690 fi
13691
13692
13693 fi
13694 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13695
13696
13697 if test -n "$STRIP_FOR_TARGET"; then
13698 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13699 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13700 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13701 fi
13702
13703 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13704 for ncn_progname in strip; do
13705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13706 set dummy ${ncn_progname}; ac_word=$2
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13708 $as_echo_n "checking for $ac_word... " >&6; }
13709 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13710 $as_echo_n "(cached) " >&6
13711 else
13712 if test -n "$STRIP_FOR_TARGET"; then
13713 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13714 else
13715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716 for as_dir in $PATH
13717 do
13718 IFS=$as_save_IFS
13719 test -z "$as_dir" && as_dir=.
13720 for ac_exec_ext in '' $ac_executable_extensions; do
13721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13722 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13724 break 2
13725 fi
13726 done
13727 done
13728 IFS=$as_save_IFS
13729
13730 fi
13731 fi
13732 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13733 if test -n "$STRIP_FOR_TARGET"; then
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13735 $as_echo "$STRIP_FOR_TARGET" >&6; }
13736 else
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13738 $as_echo "no" >&6; }
13739 fi
13740
13741
13742 done
13743 fi
13744
13745 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13746 for ncn_progname in strip; do
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13748 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13749 if test -x $with_build_time_tools/${ncn_progname}; then
13750 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13752 $as_echo "yes" >&6; }
13753 break
13754 else
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756 $as_echo "no" >&6; }
13757 fi
13758 done
13759 fi
13760
13761 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13762 for ncn_progname in strip; do
13763 if test -n "$ncn_target_tool_prefix"; then
13764 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13765 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13767 $as_echo_n "checking for $ac_word... " >&6; }
13768 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 if test -n "$STRIP_FOR_TARGET"; then
13772 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13773 else
13774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775 for as_dir in $PATH
13776 do
13777 IFS=$as_save_IFS
13778 test -z "$as_dir" && as_dir=.
13779 for ac_exec_ext in '' $ac_executable_extensions; do
13780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13781 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13783 break 2
13784 fi
13785 done
13786 done
13787 IFS=$as_save_IFS
13788
13789 fi
13790 fi
13791 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13792 if test -n "$STRIP_FOR_TARGET"; then
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13794 $as_echo "$STRIP_FOR_TARGET" >&6; }
13795 else
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13797 $as_echo "no" >&6; }
13798 fi
13799
13800
13801 fi
13802 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13804 set dummy ${ncn_progname}; ac_word=$2
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13806 $as_echo_n "checking for $ac_word... " >&6; }
13807 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13808 $as_echo_n "(cached) " >&6
13809 else
13810 if test -n "$STRIP_FOR_TARGET"; then
13811 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13812 else
13813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13814 for as_dir in $PATH
13815 do
13816 IFS=$as_save_IFS
13817 test -z "$as_dir" && as_dir=.
13818 for ac_exec_ext in '' $ac_executable_extensions; do
13819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13820 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13822 break 2
13823 fi
13824 done
13825 done
13826 IFS=$as_save_IFS
13827
13828 fi
13829 fi
13830 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13831 if test -n "$STRIP_FOR_TARGET"; then
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13833 $as_echo "$STRIP_FOR_TARGET" >&6; }
13834 else
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836 $as_echo "no" >&6; }
13837 fi
13838
13839
13840 fi
13841 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13842 done
13843 fi
13844
13845 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13846 set dummy strip
13847 if test $build = $target ; then
13848 STRIP_FOR_TARGET="$2"
13849 else
13850 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13851 fi
13852 else
13853 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13854 fi
13855
13856 else
13857 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13858 fi
13859
13860
13861
13862
13863 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13864 if test -n "$with_build_time_tools"; then
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13866 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13867 if test -x $with_build_time_tools/windres; then
13868 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13869 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13871 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13872 else
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13874 $as_echo "no" >&6; }
13875 fi
13876 elif test $build != $host && test $have_gcc_for_target = yes; then
13877 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13878 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13879 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13880 fi
13881 fi
13882 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13883 # Extract the first word of "windres", so it can be a program name with args.
13884 set dummy windres; ac_word=$2
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13886 $as_echo_n "checking for $ac_word... " >&6; }
13887 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13888 $as_echo_n "(cached) " >&6
13889 else
13890 case $WINDRES_FOR_TARGET in
13891 [\\/]* | ?:[\\/]*)
13892 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13893 ;;
13894 *)
13895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13896 for as_dir in $gcc_cv_tool_dirs
13897 do
13898 IFS=$as_save_IFS
13899 test -z "$as_dir" && as_dir=.
13900 for ac_exec_ext in '' $ac_executable_extensions; do
13901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13902 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13904 break 2
13905 fi
13906 done
13907 done
13908 IFS=$as_save_IFS
13909
13910 ;;
13911 esac
13912 fi
13913 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13914 if test -n "$WINDRES_FOR_TARGET"; then
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13916 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13917 else
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13919 $as_echo "no" >&6; }
13920 fi
13921
13922
13923 fi
13924 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13925
13926
13927 if test -n "$WINDRES_FOR_TARGET"; then
13928 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13929 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13930 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13931 fi
13932
13933 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13934 for ncn_progname in windres; do
13935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13936 set dummy ${ncn_progname}; ac_word=$2
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13938 $as_echo_n "checking for $ac_word... " >&6; }
13939 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13940 $as_echo_n "(cached) " >&6
13941 else
13942 if test -n "$WINDRES_FOR_TARGET"; then
13943 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13944 else
13945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13946 for as_dir in $PATH
13947 do
13948 IFS=$as_save_IFS
13949 test -z "$as_dir" && as_dir=.
13950 for ac_exec_ext in '' $ac_executable_extensions; do
13951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13952 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13954 break 2
13955 fi
13956 done
13957 done
13958 IFS=$as_save_IFS
13959
13960 fi
13961 fi
13962 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13963 if test -n "$WINDRES_FOR_TARGET"; then
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13965 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13966 else
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13968 $as_echo "no" >&6; }
13969 fi
13970
13971
13972 done
13973 fi
13974
13975 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13976 for ncn_progname in windres; do
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13978 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13979 if test -x $with_build_time_tools/${ncn_progname}; then
13980 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13982 $as_echo "yes" >&6; }
13983 break
13984 else
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13986 $as_echo "no" >&6; }
13987 fi
13988 done
13989 fi
13990
13991 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13992 for ncn_progname in windres; do
13993 if test -n "$ncn_target_tool_prefix"; then
13994 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13995 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13997 $as_echo_n "checking for $ac_word... " >&6; }
13998 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13999 $as_echo_n "(cached) " >&6
14000 else
14001 if test -n "$WINDRES_FOR_TARGET"; then
14002 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14003 else
14004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14005 for as_dir in $PATH
14006 do
14007 IFS=$as_save_IFS
14008 test -z "$as_dir" && as_dir=.
14009 for ac_exec_ext in '' $ac_executable_extensions; do
14010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14011 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14013 break 2
14014 fi
14015 done
14016 done
14017 IFS=$as_save_IFS
14018
14019 fi
14020 fi
14021 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14022 if test -n "$WINDRES_FOR_TARGET"; then
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14024 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14025 else
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14027 $as_echo "no" >&6; }
14028 fi
14029
14030
14031 fi
14032 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14034 set dummy ${ncn_progname}; ac_word=$2
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14036 $as_echo_n "checking for $ac_word... " >&6; }
14037 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
14038 $as_echo_n "(cached) " >&6
14039 else
14040 if test -n "$WINDRES_FOR_TARGET"; then
14041 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14042 else
14043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14044 for as_dir in $PATH
14045 do
14046 IFS=$as_save_IFS
14047 test -z "$as_dir" && as_dir=.
14048 for ac_exec_ext in '' $ac_executable_extensions; do
14049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14050 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
14051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14052 break 2
14053 fi
14054 done
14055 done
14056 IFS=$as_save_IFS
14057
14058 fi
14059 fi
14060 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14061 if test -n "$WINDRES_FOR_TARGET"; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14063 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14064 else
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14066 $as_echo "no" >&6; }
14067 fi
14068
14069
14070 fi
14071 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14072 done
14073 fi
14074
14075 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14076 set dummy windres
14077 if test $build = $target ; then
14078 WINDRES_FOR_TARGET="$2"
14079 else
14080 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
14081 fi
14082 else
14083 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
14084 fi
14085
14086 else
14087 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
14088 fi
14089
14090
14091
14092
14093 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14094 if test -n "$with_build_time_tools"; then
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14096 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
14097 if test -x $with_build_time_tools/windmc; then
14098 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14099 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14101 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
14102 else
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14104 $as_echo "no" >&6; }
14105 fi
14106 elif test $build != $host && test $have_gcc_for_target = yes; then
14107 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
14108 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14109 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14110 fi
14111 fi
14112 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14113 # Extract the first word of "windmc", so it can be a program name with args.
14114 set dummy windmc; ac_word=$2
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14116 $as_echo_n "checking for $ac_word... " >&6; }
14117 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
14118 $as_echo_n "(cached) " >&6
14119 else
14120 case $WINDMC_FOR_TARGET in
14121 [\\/]* | ?:[\\/]*)
14122 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14123 ;;
14124 *)
14125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14126 for as_dir in $gcc_cv_tool_dirs
14127 do
14128 IFS=$as_save_IFS
14129 test -z "$as_dir" && as_dir=.
14130 for ac_exec_ext in '' $ac_executable_extensions; do
14131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14132 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14134 break 2
14135 fi
14136 done
14137 done
14138 IFS=$as_save_IFS
14139
14140 ;;
14141 esac
14142 fi
14143 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14144 if test -n "$WINDMC_FOR_TARGET"; then
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14146 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14147 else
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14149 $as_echo "no" >&6; }
14150 fi
14151
14152
14153 fi
14154 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14155
14156
14157 if test -n "$WINDMC_FOR_TARGET"; then
14158 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14159 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14160 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14161 fi
14162
14163 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14164 for ncn_progname in windmc; do
14165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14166 set dummy ${ncn_progname}; ac_word=$2
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14168 $as_echo_n "checking for $ac_word... " >&6; }
14169 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14170 $as_echo_n "(cached) " >&6
14171 else
14172 if test -n "$WINDMC_FOR_TARGET"; then
14173 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14174 else
14175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176 for as_dir in $PATH
14177 do
14178 IFS=$as_save_IFS
14179 test -z "$as_dir" && as_dir=.
14180 for ac_exec_ext in '' $ac_executable_extensions; do
14181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14182 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14184 break 2
14185 fi
14186 done
14187 done
14188 IFS=$as_save_IFS
14189
14190 fi
14191 fi
14192 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14193 if test -n "$WINDMC_FOR_TARGET"; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14195 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14196 else
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14198 $as_echo "no" >&6; }
14199 fi
14200
14201
14202 done
14203 fi
14204
14205 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14206 for ncn_progname in windmc; do
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14208 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14209 if test -x $with_build_time_tools/${ncn_progname}; then
14210 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14212 $as_echo "yes" >&6; }
14213 break
14214 else
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216 $as_echo "no" >&6; }
14217 fi
14218 done
14219 fi
14220
14221 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14222 for ncn_progname in windmc; do
14223 if test -n "$ncn_target_tool_prefix"; then
14224 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14225 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227 $as_echo_n "checking for $ac_word... " >&6; }
14228 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14229 $as_echo_n "(cached) " >&6
14230 else
14231 if test -n "$WINDMC_FOR_TARGET"; then
14232 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14233 else
14234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235 for as_dir in $PATH
14236 do
14237 IFS=$as_save_IFS
14238 test -z "$as_dir" && as_dir=.
14239 for ac_exec_ext in '' $ac_executable_extensions; do
14240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14241 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14243 break 2
14244 fi
14245 done
14246 done
14247 IFS=$as_save_IFS
14248
14249 fi
14250 fi
14251 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14252 if test -n "$WINDMC_FOR_TARGET"; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14254 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14255 else
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14258 fi
14259
14260
14261 fi
14262 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14264 set dummy ${ncn_progname}; ac_word=$2
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14266 $as_echo_n "checking for $ac_word... " >&6; }
14267 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14268 $as_echo_n "(cached) " >&6
14269 else
14270 if test -n "$WINDMC_FOR_TARGET"; then
14271 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14272 else
14273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14274 for as_dir in $PATH
14275 do
14276 IFS=$as_save_IFS
14277 test -z "$as_dir" && as_dir=.
14278 for ac_exec_ext in '' $ac_executable_extensions; do
14279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14280 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14282 break 2
14283 fi
14284 done
14285 done
14286 IFS=$as_save_IFS
14287
14288 fi
14289 fi
14290 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14291 if test -n "$WINDMC_FOR_TARGET"; then
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14293 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14294 else
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14296 $as_echo "no" >&6; }
14297 fi
14298
14299
14300 fi
14301 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14302 done
14303 fi
14304
14305 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14306 set dummy windmc
14307 if test $build = $target ; then
14308 WINDMC_FOR_TARGET="$2"
14309 else
14310 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14311 fi
14312 else
14313 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14314 fi
14315
14316 else
14317 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14318 fi
14319
14320
14321 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14322
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14324 $as_echo_n "checking where to find the target ar... " >&6; }
14325 if test "x${build}" != "x${host}" ; then
14326 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14327 # We already found the complete path
14328 ac_dir=`dirname $AR_FOR_TARGET`
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14330 $as_echo "pre-installed in $ac_dir" >&6; }
14331 else
14332 # Canadian cross, just use what we found
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14334 $as_echo "pre-installed" >&6; }
14335 fi
14336 else
14337 ok=yes
14338 case " ${configdirs} " in
14339 *" binutils "*) ;;
14340 *) ok=no ;;
14341 esac
14342
14343 if test $ok = yes; then
14344 # An in-tree tool is available and we can use it
14345 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14347 $as_echo "just compiled" >&6; }
14348 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14349 # We already found the complete path
14350 ac_dir=`dirname $AR_FOR_TARGET`
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14352 $as_echo "pre-installed in $ac_dir" >&6; }
14353 elif test "x$target" = "x$host"; then
14354 # We can use an host tool
14355 AR_FOR_TARGET='$(AR)'
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14357 $as_echo "host tool" >&6; }
14358 else
14359 # We need a cross tool
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14361 $as_echo "pre-installed" >&6; }
14362 fi
14363 fi
14364
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14366 $as_echo_n "checking where to find the target as... " >&6; }
14367 if test "x${build}" != "x${host}" ; then
14368 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14369 # We already found the complete path
14370 ac_dir=`dirname $AS_FOR_TARGET`
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14372 $as_echo "pre-installed in $ac_dir" >&6; }
14373 else
14374 # Canadian cross, just use what we found
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14376 $as_echo "pre-installed" >&6; }
14377 fi
14378 else
14379 ok=yes
14380 case " ${configdirs} " in
14381 *" gas "*) ;;
14382 *) ok=no ;;
14383 esac
14384
14385 if test $ok = yes; then
14386 # An in-tree tool is available and we can use it
14387 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14389 $as_echo "just compiled" >&6; }
14390 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14391 # We already found the complete path
14392 ac_dir=`dirname $AS_FOR_TARGET`
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14394 $as_echo "pre-installed in $ac_dir" >&6; }
14395 elif test "x$target" = "x$host"; then
14396 # We can use an host tool
14397 AS_FOR_TARGET='$(AS)'
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14399 $as_echo "host tool" >&6; }
14400 else
14401 # We need a cross tool
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14403 $as_echo "pre-installed" >&6; }
14404 fi
14405 fi
14406
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14408 $as_echo_n "checking where to find the target cc... " >&6; }
14409 if test "x${build}" != "x${host}" ; then
14410 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14411 # We already found the complete path
14412 ac_dir=`dirname $CC_FOR_TARGET`
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14414 $as_echo "pre-installed in $ac_dir" >&6; }
14415 else
14416 # Canadian cross, just use what we found
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14418 $as_echo "pre-installed" >&6; }
14419 fi
14420 else
14421 ok=yes
14422 case " ${configdirs} " in
14423 *" gcc "*) ;;
14424 *) ok=no ;;
14425 esac
14426
14427 if test $ok = yes; then
14428 # An in-tree tool is available and we can use it
14429 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14431 $as_echo "just compiled" >&6; }
14432 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14433 # We already found the complete path
14434 ac_dir=`dirname $CC_FOR_TARGET`
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14436 $as_echo "pre-installed in $ac_dir" >&6; }
14437 elif test "x$target" = "x$host"; then
14438 # We can use an host tool
14439 CC_FOR_TARGET='$(CC)'
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14441 $as_echo "host tool" >&6; }
14442 else
14443 # We need a cross tool
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14445 $as_echo "pre-installed" >&6; }
14446 fi
14447 fi
14448
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14450 $as_echo_n "checking where to find the target c++... " >&6; }
14451 if test "x${build}" != "x${host}" ; then
14452 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14453 # We already found the complete path
14454 ac_dir=`dirname $CXX_FOR_TARGET`
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14456 $as_echo "pre-installed in $ac_dir" >&6; }
14457 else
14458 # Canadian cross, just use what we found
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14460 $as_echo "pre-installed" >&6; }
14461 fi
14462 else
14463 ok=yes
14464 case " ${configdirs} " in
14465 *" gcc "*) ;;
14466 *) ok=no ;;
14467 esac
14468 case ,${enable_languages}, in
14469 *,c++,*) ;;
14470 *) ok=no ;;
14471 esac
14472 if test $ok = yes; then
14473 # An in-tree tool is available and we can use it
14474 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'
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14476 $as_echo "just compiled" >&6; }
14477 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14478 # We already found the complete path
14479 ac_dir=`dirname $CXX_FOR_TARGET`
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14481 $as_echo "pre-installed in $ac_dir" >&6; }
14482 elif test "x$target" = "x$host"; then
14483 # We can use an host tool
14484 CXX_FOR_TARGET='$(CXX)'
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14486 $as_echo "host tool" >&6; }
14487 else
14488 # We need a cross tool
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14490 $as_echo "pre-installed" >&6; }
14491 fi
14492 fi
14493
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14495 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14496 if test "x${build}" != "x${host}" ; then
14497 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14498 # We already found the complete path
14499 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14501 $as_echo "pre-installed in $ac_dir" >&6; }
14502 else
14503 # Canadian cross, just use what we found
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14505 $as_echo "pre-installed" >&6; }
14506 fi
14507 else
14508 ok=yes
14509 case " ${configdirs} " in
14510 *" gcc "*) ;;
14511 *) ok=no ;;
14512 esac
14513 case ,${enable_languages}, in
14514 *,c++,*) ;;
14515 *) ok=no ;;
14516 esac
14517 if test $ok = yes; then
14518 # An in-tree tool is available and we can use it
14519 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'
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14521 $as_echo "just compiled" >&6; }
14522 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14523 # We already found the complete path
14524 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14526 $as_echo "pre-installed in $ac_dir" >&6; }
14527 elif test "x$target" = "x$host"; then
14528 # We can use an host tool
14529 RAW_CXX_FOR_TARGET='$(CXX)'
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14531 $as_echo "host tool" >&6; }
14532 else
14533 # We need a cross tool
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14535 $as_echo "pre-installed" >&6; }
14536 fi
14537 fi
14538
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14540 $as_echo_n "checking where to find the target dlltool... " >&6; }
14541 if test "x${build}" != "x${host}" ; then
14542 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14543 # We already found the complete path
14544 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14546 $as_echo "pre-installed in $ac_dir" >&6; }
14547 else
14548 # Canadian cross, just use what we found
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14550 $as_echo "pre-installed" >&6; }
14551 fi
14552 else
14553 ok=yes
14554 case " ${configdirs} " in
14555 *" binutils "*) ;;
14556 *) ok=no ;;
14557 esac
14558
14559 if test $ok = yes; then
14560 # An in-tree tool is available and we can use it
14561 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14563 $as_echo "just compiled" >&6; }
14564 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14565 # We already found the complete path
14566 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14568 $as_echo "pre-installed in $ac_dir" >&6; }
14569 elif test "x$target" = "x$host"; then
14570 # We can use an host tool
14571 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14573 $as_echo "host tool" >&6; }
14574 else
14575 # We need a cross tool
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14577 $as_echo "pre-installed" >&6; }
14578 fi
14579 fi
14580
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14582 $as_echo_n "checking where to find the target gcc... " >&6; }
14583 if test "x${build}" != "x${host}" ; then
14584 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14585 # We already found the complete path
14586 ac_dir=`dirname $GCC_FOR_TARGET`
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14588 $as_echo "pre-installed in $ac_dir" >&6; }
14589 else
14590 # Canadian cross, just use what we found
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14592 $as_echo "pre-installed" >&6; }
14593 fi
14594 else
14595 ok=yes
14596 case " ${configdirs} " in
14597 *" gcc "*) ;;
14598 *) ok=no ;;
14599 esac
14600
14601 if test $ok = yes; then
14602 # An in-tree tool is available and we can use it
14603 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14605 $as_echo "just compiled" >&6; }
14606 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14607 # We already found the complete path
14608 ac_dir=`dirname $GCC_FOR_TARGET`
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14610 $as_echo "pre-installed in $ac_dir" >&6; }
14611 elif test "x$target" = "x$host"; then
14612 # We can use an host tool
14613 GCC_FOR_TARGET='$()'
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14615 $as_echo "host tool" >&6; }
14616 else
14617 # We need a cross tool
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14619 $as_echo "pre-installed" >&6; }
14620 fi
14621 fi
14622
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14624 $as_echo_n "checking where to find the target gfortran... " >&6; }
14625 if test "x${build}" != "x${host}" ; then
14626 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14627 # We already found the complete path
14628 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14630 $as_echo "pre-installed in $ac_dir" >&6; }
14631 else
14632 # Canadian cross, just use what we found
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14634 $as_echo "pre-installed" >&6; }
14635 fi
14636 else
14637 ok=yes
14638 case " ${configdirs} " in
14639 *" gcc "*) ;;
14640 *) ok=no ;;
14641 esac
14642 case ,${enable_languages}, in
14643 *,fortran,*) ;;
14644 *) ok=no ;;
14645 esac
14646 if test $ok = yes; then
14647 # An in-tree tool is available and we can use it
14648 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14650 $as_echo "just compiled" >&6; }
14651 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14652 # We already found the complete path
14653 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14655 $as_echo "pre-installed in $ac_dir" >&6; }
14656 elif test "x$target" = "x$host"; then
14657 # We can use an host tool
14658 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14660 $as_echo "host tool" >&6; }
14661 else
14662 # We need a cross tool
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14664 $as_echo "pre-installed" >&6; }
14665 fi
14666 fi
14667
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14669 $as_echo_n "checking where to find the target gccgo... " >&6; }
14670 if test "x${build}" != "x${host}" ; then
14671 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14672 # We already found the complete path
14673 ac_dir=`dirname $GOC_FOR_TARGET`
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14675 $as_echo "pre-installed in $ac_dir" >&6; }
14676 else
14677 # Canadian cross, just use what we found
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14679 $as_echo "pre-installed" >&6; }
14680 fi
14681 else
14682 ok=yes
14683 case " ${configdirs} " in
14684 *" gcc "*) ;;
14685 *) ok=no ;;
14686 esac
14687 case ,${enable_languages}, in
14688 *,go,*) ;;
14689 *) ok=no ;;
14690 esac
14691 if test $ok = yes; then
14692 # An in-tree tool is available and we can use it
14693 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14695 $as_echo "just compiled" >&6; }
14696 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14697 # We already found the complete path
14698 ac_dir=`dirname $GOC_FOR_TARGET`
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14700 $as_echo "pre-installed in $ac_dir" >&6; }
14701 elif test "x$target" = "x$host"; then
14702 # We can use an host tool
14703 GOC_FOR_TARGET='$(GOC)'
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14705 $as_echo "host tool" >&6; }
14706 else
14707 # We need a cross tool
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14709 $as_echo "pre-installed" >&6; }
14710 fi
14711 fi
14712
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14714 $as_echo_n "checking where to find the target ld... " >&6; }
14715 if test "x${build}" != "x${host}" ; then
14716 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14717 # We already found the complete path
14718 ac_dir=`dirname $LD_FOR_TARGET`
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14720 $as_echo "pre-installed in $ac_dir" >&6; }
14721 else
14722 # Canadian cross, just use what we found
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14724 $as_echo "pre-installed" >&6; }
14725 fi
14726 else
14727 ok=yes
14728 case " ${configdirs} " in
14729 *" ld "*) ;;
14730 *) ok=no ;;
14731 esac
14732
14733 if test $ok = yes; then
14734 # An in-tree tool is available and we can use it
14735 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14737 $as_echo "just compiled" >&6; }
14738 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14739 # We already found the complete path
14740 ac_dir=`dirname $LD_FOR_TARGET`
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14742 $as_echo "pre-installed in $ac_dir" >&6; }
14743 elif test "x$target" = "x$host"; then
14744 # We can use an host tool
14745 LD_FOR_TARGET='$(LD)'
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14747 $as_echo "host tool" >&6; }
14748 else
14749 # We need a cross tool
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14751 $as_echo "pre-installed" >&6; }
14752 fi
14753 fi
14754
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14756 $as_echo_n "checking where to find the target lipo... " >&6; }
14757 if test "x${build}" != "x${host}" ; then
14758 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14759 # We already found the complete path
14760 ac_dir=`dirname $LIPO_FOR_TARGET`
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14762 $as_echo "pre-installed in $ac_dir" >&6; }
14763 else
14764 # Canadian cross, just use what we found
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14766 $as_echo "pre-installed" >&6; }
14767 fi
14768 else
14769 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14770 # We already found the complete path
14771 ac_dir=`dirname $LIPO_FOR_TARGET`
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14773 $as_echo "pre-installed in $ac_dir" >&6; }
14774 elif test "x$target" = "x$host"; then
14775 # We can use an host tool
14776 LIPO_FOR_TARGET='$(LIPO)'
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14778 $as_echo "host tool" >&6; }
14779 else
14780 # We need a cross tool
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14782 $as_echo "pre-installed" >&6; }
14783 fi
14784 fi
14785
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14787 $as_echo_n "checking where to find the target nm... " >&6; }
14788 if test "x${build}" != "x${host}" ; then
14789 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14790 # We already found the complete path
14791 ac_dir=`dirname $NM_FOR_TARGET`
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14793 $as_echo "pre-installed in $ac_dir" >&6; }
14794 else
14795 # Canadian cross, just use what we found
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14797 $as_echo "pre-installed" >&6; }
14798 fi
14799 else
14800 ok=yes
14801 case " ${configdirs} " in
14802 *" binutils "*) ;;
14803 *) ok=no ;;
14804 esac
14805
14806 if test $ok = yes; then
14807 # An in-tree tool is available and we can use it
14808 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14810 $as_echo "just compiled" >&6; }
14811 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14812 # We already found the complete path
14813 ac_dir=`dirname $NM_FOR_TARGET`
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14815 $as_echo "pre-installed in $ac_dir" >&6; }
14816 elif test "x$target" = "x$host"; then
14817 # We can use an host tool
14818 NM_FOR_TARGET='$(NM)'
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14820 $as_echo "host tool" >&6; }
14821 else
14822 # We need a cross tool
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14824 $as_echo "pre-installed" >&6; }
14825 fi
14826 fi
14827
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14829 $as_echo_n "checking where to find the target objcopy... " >&6; }
14830 if test "x${build}" != "x${host}" ; then
14831 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14832 # We already found the complete path
14833 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14835 $as_echo "pre-installed in $ac_dir" >&6; }
14836 else
14837 # Canadian cross, just use what we found
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14839 $as_echo "pre-installed" >&6; }
14840 fi
14841 else
14842 ok=yes
14843 case " ${configdirs} " in
14844 *" binutils "*) ;;
14845 *) ok=no ;;
14846 esac
14847
14848 if test $ok = yes; then
14849 # An in-tree tool is available and we can use it
14850 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14852 $as_echo "just compiled" >&6; }
14853 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14854 # We already found the complete path
14855 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14857 $as_echo "pre-installed in $ac_dir" >&6; }
14858 elif test "x$target" = "x$host"; then
14859 # We can use an host tool
14860 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14862 $as_echo "host tool" >&6; }
14863 else
14864 # We need a cross tool
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14866 $as_echo "pre-installed" >&6; }
14867 fi
14868 fi
14869
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14871 $as_echo_n "checking where to find the target objdump... " >&6; }
14872 if test "x${build}" != "x${host}" ; then
14873 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14874 # We already found the complete path
14875 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14877 $as_echo "pre-installed in $ac_dir" >&6; }
14878 else
14879 # Canadian cross, just use what we found
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14881 $as_echo "pre-installed" >&6; }
14882 fi
14883 else
14884 ok=yes
14885 case " ${configdirs} " in
14886 *" binutils "*) ;;
14887 *) ok=no ;;
14888 esac
14889
14890 if test $ok = yes; then
14891 # An in-tree tool is available and we can use it
14892 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14894 $as_echo "just compiled" >&6; }
14895 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14896 # We already found the complete path
14897 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14899 $as_echo "pre-installed in $ac_dir" >&6; }
14900 elif test "x$target" = "x$host"; then
14901 # We can use an host tool
14902 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14904 $as_echo "host tool" >&6; }
14905 else
14906 # We need a cross tool
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14908 $as_echo "pre-installed" >&6; }
14909 fi
14910 fi
14911
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14913 $as_echo_n "checking where to find the target ranlib... " >&6; }
14914 if test "x${build}" != "x${host}" ; then
14915 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14916 # We already found the complete path
14917 ac_dir=`dirname $RANLIB_FOR_TARGET`
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14919 $as_echo "pre-installed in $ac_dir" >&6; }
14920 else
14921 # Canadian cross, just use what we found
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14923 $as_echo "pre-installed" >&6; }
14924 fi
14925 else
14926 ok=yes
14927 case " ${configdirs} " in
14928 *" binutils "*) ;;
14929 *) ok=no ;;
14930 esac
14931
14932 if test $ok = yes; then
14933 # An in-tree tool is available and we can use it
14934 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14936 $as_echo "just compiled" >&6; }
14937 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14938 # We already found the complete path
14939 ac_dir=`dirname $RANLIB_FOR_TARGET`
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14941 $as_echo "pre-installed in $ac_dir" >&6; }
14942 elif test "x$target" = "x$host"; then
14943 # We can use an host tool
14944 RANLIB_FOR_TARGET='$(RANLIB)'
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14946 $as_echo "host tool" >&6; }
14947 else
14948 # We need a cross tool
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14950 $as_echo "pre-installed" >&6; }
14951 fi
14952 fi
14953
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14955 $as_echo_n "checking where to find the target readelf... " >&6; }
14956 if test "x${build}" != "x${host}" ; then
14957 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14958 # We already found the complete path
14959 ac_dir=`dirname $READELF_FOR_TARGET`
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14961 $as_echo "pre-installed in $ac_dir" >&6; }
14962 else
14963 # Canadian cross, just use what we found
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14965 $as_echo "pre-installed" >&6; }
14966 fi
14967 else
14968 ok=yes
14969 case " ${configdirs} " in
14970 *" binutils "*) ;;
14971 *) ok=no ;;
14972 esac
14973
14974 if test $ok = yes; then
14975 # An in-tree tool is available and we can use it
14976 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14978 $as_echo "just compiled" >&6; }
14979 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14980 # We already found the complete path
14981 ac_dir=`dirname $READELF_FOR_TARGET`
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14983 $as_echo "pre-installed in $ac_dir" >&6; }
14984 elif test "x$target" = "x$host"; then
14985 # We can use an host tool
14986 READELF_FOR_TARGET='$(READELF)'
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14988 $as_echo "host tool" >&6; }
14989 else
14990 # We need a cross tool
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14992 $as_echo "pre-installed" >&6; }
14993 fi
14994 fi
14995
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14997 $as_echo_n "checking where to find the target strip... " >&6; }
14998 if test "x${build}" != "x${host}" ; then
14999 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15000 # We already found the complete path
15001 ac_dir=`dirname $STRIP_FOR_TARGET`
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15003 $as_echo "pre-installed in $ac_dir" >&6; }
15004 else
15005 # Canadian cross, just use what we found
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15007 $as_echo "pre-installed" >&6; }
15008 fi
15009 else
15010 ok=yes
15011 case " ${configdirs} " in
15012 *" binutils "*) ;;
15013 *) ok=no ;;
15014 esac
15015
15016 if test $ok = yes; then
15017 # An in-tree tool is available and we can use it
15018 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15020 $as_echo "just compiled" >&6; }
15021 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15022 # We already found the complete path
15023 ac_dir=`dirname $STRIP_FOR_TARGET`
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15025 $as_echo "pre-installed in $ac_dir" >&6; }
15026 elif test "x$target" = "x$host"; then
15027 # We can use an host tool
15028 STRIP_FOR_TARGET='$(STRIP)'
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15030 $as_echo "host tool" >&6; }
15031 else
15032 # We need a cross tool
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15034 $as_echo "pre-installed" >&6; }
15035 fi
15036 fi
15037
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15039 $as_echo_n "checking where to find the target windres... " >&6; }
15040 if test "x${build}" != "x${host}" ; then
15041 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15042 # We already found the complete path
15043 ac_dir=`dirname $WINDRES_FOR_TARGET`
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15045 $as_echo "pre-installed in $ac_dir" >&6; }
15046 else
15047 # Canadian cross, just use what we found
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15049 $as_echo "pre-installed" >&6; }
15050 fi
15051 else
15052 ok=yes
15053 case " ${configdirs} " in
15054 *" binutils "*) ;;
15055 *) ok=no ;;
15056 esac
15057
15058 if test $ok = yes; then
15059 # An in-tree tool is available and we can use it
15060 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15062 $as_echo "just compiled" >&6; }
15063 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15064 # We already found the complete path
15065 ac_dir=`dirname $WINDRES_FOR_TARGET`
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15067 $as_echo "pre-installed in $ac_dir" >&6; }
15068 elif test "x$target" = "x$host"; then
15069 # We can use an host tool
15070 WINDRES_FOR_TARGET='$(WINDRES)'
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15072 $as_echo "host tool" >&6; }
15073 else
15074 # We need a cross tool
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15076 $as_echo "pre-installed" >&6; }
15077 fi
15078 fi
15079
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15081 $as_echo_n "checking where to find the target windmc... " >&6; }
15082 if test "x${build}" != "x${host}" ; then
15083 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15084 # We already found the complete path
15085 ac_dir=`dirname $WINDMC_FOR_TARGET`
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15087 $as_echo "pre-installed in $ac_dir" >&6; }
15088 else
15089 # Canadian cross, just use what we found
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15091 $as_echo "pre-installed" >&6; }
15092 fi
15093 else
15094 ok=yes
15095 case " ${configdirs} " in
15096 *" binutils "*) ;;
15097 *) ok=no ;;
15098 esac
15099
15100 if test $ok = yes; then
15101 # An in-tree tool is available and we can use it
15102 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15104 $as_echo "just compiled" >&6; }
15105 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15106 # We already found the complete path
15107 ac_dir=`dirname $WINDMC_FOR_TARGET`
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15109 $as_echo "pre-installed in $ac_dir" >&6; }
15110 elif test "x$target" = "x$host"; then
15111 # We can use an host tool
15112 WINDMC_FOR_TARGET='$(WINDMC)'
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15114 $as_echo "host tool" >&6; }
15115 else
15116 # We need a cross tool
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15118 $as_echo "pre-installed" >&6; }
15119 fi
15120 fi
15121
15122
15123
15124
15125
15126 # Certain tools may need extra flags.
15127 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15128 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15129 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15130
15131 # When building target libraries, except in a Canadian cross, we use
15132 # the same toolchain as the compiler we just built.
15133 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15134 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15135 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15136 if test $host = $build; then
15137 case " $configdirs " in
15138 *" gcc "*)
15139 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15140 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15141 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15142 ;;
15143 esac
15144 fi
15145
15146
15147
15148
15149
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15151 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15152 # Check whether --enable-maintainer-mode was given.
15153 if test "${enable_maintainer_mode+set}" = set; then :
15154 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15155 else
15156 USE_MAINTAINER_MODE=no
15157 fi
15158
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15160 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15161
15162
15163 if test "$USE_MAINTAINER_MODE" = yes; then
15164 MAINTAINER_MODE_TRUE=
15165 MAINTAINER_MODE_FALSE='#'
15166 else
15167 MAINTAINER_MODE_TRUE='#'
15168 MAINTAINER_MODE_FALSE=
15169 fi
15170 MAINT=$MAINTAINER_MODE_TRUE
15171
15172 # ---------------------
15173 # GCC bootstrap support
15174 # ---------------------
15175
15176 # Stage specific cflags for build.
15177 stage1_cflags="-g"
15178 case $build in
15179 vax-*-*)
15180 case ${GCC} in
15181 yes) stage1_cflags="-g -Wa,-J" ;;
15182 *) stage1_cflags="-g -J" ;;
15183 esac ;;
15184 esac
15185
15186
15187
15188 # Enable --enable-checking in stage1 of the compiler.
15189 # Check whether --enable-stage1-checking was given.
15190 if test "${enable_stage1_checking+set}" = set; then :
15191 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15192 else
15193 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
15194 # For --disable-checking or implicit --enable-checking=release, avoid
15195 # setting --enable-checking=gc in the default stage1 checking for LTO
15196 # bootstraps. See PR62077.
15197 case $BUILD_CONFIG in
15198 *lto*)
15199 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15200 *)
15201 stage1_checking=--enable-checking=yes,types;;
15202 esac
15203 if test "x$enable_checking" = x && \
15204 test -d ${srcdir}/gcc && \
15205 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15206 stage1_checking=--enable-checking=yes,types,extra
15207 fi
15208 else
15209 stage1_checking=--enable-checking=$enable_checking,types
15210 fi
15211 fi
15212
15213
15214
15215 # Enable -Werror in bootstrap stage2 and later.
15216 # Check whether --enable-werror was given.
15217 if test "${enable_werror+set}" = set; then :
15218 enableval=$enable_werror;
15219 case ${enable_werror} in
15220 yes) stage2_werror_flag="--enable-werror-always" ;;
15221 *) stage2_werror_flag="" ;;
15222 esac
15223
15224 else
15225
15226 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15227 case $BUILD_CONFIG in
15228 bootstrap-debug)
15229 stage2_werror_flag="--enable-werror-always" ;;
15230 "")
15231 stage2_werror_flag="--enable-werror-always" ;;
15232 esac
15233 fi
15234
15235 fi
15236
15237
15238
15239
15240 # Specify what files to not compare during bootstrap.
15241
15242 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15243 case "$target" in
15244 hppa*64*-*-hpux*) ;;
15245 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
15246 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
15247 esac
15248
15249
15250 ac_config_files="$ac_config_files Makefile"
15251
15252 cat >confcache <<\_ACEOF
15253 # This file is a shell script that caches the results of configure
15254 # tests run on this system so they can be shared between configure
15255 # scripts and configure runs, see configure's option --config-cache.
15256 # It is not useful on other systems. If it contains results you don't
15257 # want to keep, you may remove or edit it.
15258 #
15259 # config.status only pays attention to the cache file if you give it
15260 # the --recheck option to rerun configure.
15261 #
15262 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15263 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15264 # following values.
15265
15266 _ACEOF
15267
15268 # The following way of writing the cache mishandles newlines in values,
15269 # but we know of no workaround that is simple, portable, and efficient.
15270 # So, we kill variables containing newlines.
15271 # Ultrix sh set writes to stderr and can't be redirected directly,
15272 # and sets the high bit in the cache file unless we assign to the vars.
15273 (
15274 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15275 eval ac_val=\$$ac_var
15276 case $ac_val in #(
15277 *${as_nl}*)
15278 case $ac_var in #(
15279 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15280 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15281 esac
15282 case $ac_var in #(
15283 _ | IFS | as_nl) ;; #(
15284 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15285 *) { eval $ac_var=; unset $ac_var;} ;;
15286 esac ;;
15287 esac
15288 done
15289
15290 (set) 2>&1 |
15291 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15292 *${as_nl}ac_space=\ *)
15293 # `set' does not quote correctly, so add quotes: double-quote
15294 # substitution turns \\\\ into \\, and sed turns \\ into \.
15295 sed -n \
15296 "s/'/'\\\\''/g;
15297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15298 ;; #(
15299 *)
15300 # `set' quotes correctly as required by POSIX, so do not add quotes.
15301 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15302 ;;
15303 esac |
15304 sort
15305 ) |
15306 sed '
15307 /^ac_cv_env_/b end
15308 t clear
15309 :clear
15310 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15311 t end
15312 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15313 :end' >>confcache
15314 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15315 if test -w "$cache_file"; then
15316 if test "x$cache_file" != "x/dev/null"; then
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15318 $as_echo "$as_me: updating cache $cache_file" >&6;}
15319 if test ! -f "$cache_file" || test -h "$cache_file"; then
15320 cat confcache >"$cache_file"
15321 else
15322 case $cache_file in #(
15323 */* | ?:*)
15324 mv -f confcache "$cache_file"$$ &&
15325 mv -f "$cache_file"$$ "$cache_file" ;; #(
15326 *)
15327 mv -f confcache "$cache_file" ;;
15328 esac
15329 fi
15330 fi
15331 else
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15333 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15334 fi
15335 fi
15336 rm -f confcache
15337
15338 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15339 # Let make expand exec_prefix.
15340 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15341
15342 # Transform confdefs.h into DEFS.
15343 # Protect against shell expansion while executing Makefile rules.
15344 # Protect against Makefile macro expansion.
15345 #
15346 # If the first sed substitution is executed (which looks for macros that
15347 # take arguments), then branch to the quote section. Otherwise,
15348 # look for a macro that doesn't take arguments.
15349 ac_script='
15350 :mline
15351 /\\$/{
15352 N
15353 s,\\\n,,
15354 b mline
15355 }
15356 t clear
15357 :clear
15358 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15359 t quote
15360 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15361 t quote
15362 b any
15363 :quote
15364 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15365 s/\[/\\&/g
15366 s/\]/\\&/g
15367 s/\$/$$/g
15368 H
15369 :any
15370 ${
15371 g
15372 s/^\n//
15373 s/\n/ /g
15374 p
15375 }
15376 '
15377 DEFS=`sed -n "$ac_script" confdefs.h`
15378
15379
15380 ac_libobjs=
15381 ac_ltlibobjs=
15382 U=
15383 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15384 # 1. Remove the extension, and $U if already installed.
15385 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15386 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15387 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15388 # will be set to the directory where LIBOBJS objects are built.
15389 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15390 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15391 done
15392 LIBOBJS=$ac_libobjs
15393
15394 LTLIBOBJS=$ac_ltlibobjs
15395
15396
15397
15398 : "${CONFIG_STATUS=./config.status}"
15399 ac_write_fail=0
15400 ac_clean_files_save=$ac_clean_files
15401 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15403 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15404 as_write_fail=0
15405 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15406 #! $SHELL
15407 # Generated by $as_me.
15408 # Run this file to recreate the current configuration.
15409 # Compiler output produced by configure, useful for debugging
15410 # configure, is in config.log if it exists.
15411
15412 debug=false
15413 ac_cs_recheck=false
15414 ac_cs_silent=false
15415
15416 SHELL=\${CONFIG_SHELL-$SHELL}
15417 export SHELL
15418 _ASEOF
15419 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15420 ## -------------------- ##
15421 ## M4sh Initialization. ##
15422 ## -------------------- ##
15423
15424 # Be more Bourne compatible
15425 DUALCASE=1; export DUALCASE # for MKS sh
15426 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15427 emulate sh
15428 NULLCMD=:
15429 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15430 # is contrary to our usage. Disable this feature.
15431 alias -g '${1+"$@"}'='"$@"'
15432 setopt NO_GLOB_SUBST
15433 else
15434 case `(set -o) 2>/dev/null` in #(
15435 *posix*) :
15436 set -o posix ;; #(
15437 *) :
15438 ;;
15439 esac
15440 fi
15441
15442
15443 as_nl='
15444 '
15445 export as_nl
15446 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15447 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15448 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15449 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15450 # Prefer a ksh shell builtin over an external printf program on Solaris,
15451 # but without wasting forks for bash or zsh.
15452 if test -z "$BASH_VERSION$ZSH_VERSION" \
15453 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15454 as_echo='print -r --'
15455 as_echo_n='print -rn --'
15456 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15457 as_echo='printf %s\n'
15458 as_echo_n='printf %s'
15459 else
15460 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15461 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15462 as_echo_n='/usr/ucb/echo -n'
15463 else
15464 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15465 as_echo_n_body='eval
15466 arg=$1;
15467 case $arg in #(
15468 *"$as_nl"*)
15469 expr "X$arg" : "X\\(.*\\)$as_nl";
15470 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15471 esac;
15472 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15473 '
15474 export as_echo_n_body
15475 as_echo_n='sh -c $as_echo_n_body as_echo'
15476 fi
15477 export as_echo_body
15478 as_echo='sh -c $as_echo_body as_echo'
15479 fi
15480
15481 # The user is always right.
15482 if test "${PATH_SEPARATOR+set}" != set; then
15483 PATH_SEPARATOR=:
15484 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15485 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15486 PATH_SEPARATOR=';'
15487 }
15488 fi
15489
15490
15491 # IFS
15492 # We need space, tab and new line, in precisely that order. Quoting is
15493 # there to prevent editors from complaining about space-tab.
15494 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15495 # splitting by setting IFS to empty value.)
15496 IFS=" "" $as_nl"
15497
15498 # Find who we are. Look in the path if we contain no directory separator.
15499 as_myself=
15500 case $0 in #((
15501 *[\\/]* ) as_myself=$0 ;;
15502 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15503 for as_dir in $PATH
15504 do
15505 IFS=$as_save_IFS
15506 test -z "$as_dir" && as_dir=.
15507 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15508 done
15509 IFS=$as_save_IFS
15510
15511 ;;
15512 esac
15513 # We did not find ourselves, most probably we were run as `sh COMMAND'
15514 # in which case we are not to be found in the path.
15515 if test "x$as_myself" = x; then
15516 as_myself=$0
15517 fi
15518 if test ! -f "$as_myself"; then
15519 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15520 exit 1
15521 fi
15522
15523 # Unset variables that we do not need and which cause bugs (e.g. in
15524 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15525 # suppresses any "Segmentation fault" message there. '((' could
15526 # trigger a bug in pdksh 5.2.14.
15527 for as_var in BASH_ENV ENV MAIL MAILPATH
15528 do eval test x\${$as_var+set} = xset \
15529 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15530 done
15531 PS1='$ '
15532 PS2='> '
15533 PS4='+ '
15534
15535 # NLS nuisances.
15536 LC_ALL=C
15537 export LC_ALL
15538 LANGUAGE=C
15539 export LANGUAGE
15540
15541 # CDPATH.
15542 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15543
15544
15545 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15546 # ----------------------------------------
15547 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15548 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15549 # script with STATUS, using 1 if that was 0.
15550 as_fn_error ()
15551 {
15552 as_status=$1; test $as_status -eq 0 && as_status=1
15553 if test "$4"; then
15554 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15555 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15556 fi
15557 $as_echo "$as_me: error: $2" >&2
15558 as_fn_exit $as_status
15559 } # as_fn_error
15560
15561
15562 # as_fn_set_status STATUS
15563 # -----------------------
15564 # Set $? to STATUS, without forking.
15565 as_fn_set_status ()
15566 {
15567 return $1
15568 } # as_fn_set_status
15569
15570 # as_fn_exit STATUS
15571 # -----------------
15572 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15573 as_fn_exit ()
15574 {
15575 set +e
15576 as_fn_set_status $1
15577 exit $1
15578 } # as_fn_exit
15579
15580 # as_fn_unset VAR
15581 # ---------------
15582 # Portably unset VAR.
15583 as_fn_unset ()
15584 {
15585 { eval $1=; unset $1;}
15586 }
15587 as_unset=as_fn_unset
15588 # as_fn_append VAR VALUE
15589 # ----------------------
15590 # Append the text in VALUE to the end of the definition contained in VAR. Take
15591 # advantage of any shell optimizations that allow amortized linear growth over
15592 # repeated appends, instead of the typical quadratic growth present in naive
15593 # implementations.
15594 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15595 eval 'as_fn_append ()
15596 {
15597 eval $1+=\$2
15598 }'
15599 else
15600 as_fn_append ()
15601 {
15602 eval $1=\$$1\$2
15603 }
15604 fi # as_fn_append
15605
15606 # as_fn_arith ARG...
15607 # ------------------
15608 # Perform arithmetic evaluation on the ARGs, and store the result in the
15609 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15610 # must be portable across $(()) and expr.
15611 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15612 eval 'as_fn_arith ()
15613 {
15614 as_val=$(( $* ))
15615 }'
15616 else
15617 as_fn_arith ()
15618 {
15619 as_val=`expr "$@" || test $? -eq 1`
15620 }
15621 fi # as_fn_arith
15622
15623
15624 if expr a : '\(a\)' >/dev/null 2>&1 &&
15625 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15626 as_expr=expr
15627 else
15628 as_expr=false
15629 fi
15630
15631 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15632 as_basename=basename
15633 else
15634 as_basename=false
15635 fi
15636
15637 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15638 as_dirname=dirname
15639 else
15640 as_dirname=false
15641 fi
15642
15643 as_me=`$as_basename -- "$0" ||
15644 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15645 X"$0" : 'X\(//\)$' \| \
15646 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15647 $as_echo X/"$0" |
15648 sed '/^.*\/\([^/][^/]*\)\/*$/{
15649 s//\1/
15650 q
15651 }
15652 /^X\/\(\/\/\)$/{
15653 s//\1/
15654 q
15655 }
15656 /^X\/\(\/\).*/{
15657 s//\1/
15658 q
15659 }
15660 s/.*/./; q'`
15661
15662 # Avoid depending upon Character Ranges.
15663 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15664 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15665 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15666 as_cr_digits='0123456789'
15667 as_cr_alnum=$as_cr_Letters$as_cr_digits
15668
15669 ECHO_C= ECHO_N= ECHO_T=
15670 case `echo -n x` in #(((((
15671 -n*)
15672 case `echo 'xy\c'` in
15673 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15674 xy) ECHO_C='\c';;
15675 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15676 ECHO_T=' ';;
15677 esac;;
15678 *)
15679 ECHO_N='-n';;
15680 esac
15681
15682 rm -f conf$$ conf$$.exe conf$$.file
15683 if test -d conf$$.dir; then
15684 rm -f conf$$.dir/conf$$.file
15685 else
15686 rm -f conf$$.dir
15687 mkdir conf$$.dir 2>/dev/null
15688 fi
15689 if (echo >conf$$.file) 2>/dev/null; then
15690 if ln -s conf$$.file conf$$ 2>/dev/null; then
15691 as_ln_s='ln -s'
15692 # ... but there are two gotchas:
15693 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15694 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15695 # In both cases, we have to default to `cp -pR'.
15696 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15697 as_ln_s='cp -pR'
15698 elif ln conf$$.file conf$$ 2>/dev/null; then
15699 as_ln_s=ln
15700 else
15701 as_ln_s='cp -pR'
15702 fi
15703 else
15704 as_ln_s='cp -pR'
15705 fi
15706 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15707 rmdir conf$$.dir 2>/dev/null
15708
15709
15710 # as_fn_mkdir_p
15711 # -------------
15712 # Create "$as_dir" as a directory, including parents if necessary.
15713 as_fn_mkdir_p ()
15714 {
15715
15716 case $as_dir in #(
15717 -*) as_dir=./$as_dir;;
15718 esac
15719 test -d "$as_dir" || eval $as_mkdir_p || {
15720 as_dirs=
15721 while :; do
15722 case $as_dir in #(
15723 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15724 *) as_qdir=$as_dir;;
15725 esac
15726 as_dirs="'$as_qdir' $as_dirs"
15727 as_dir=`$as_dirname -- "$as_dir" ||
15728 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15729 X"$as_dir" : 'X\(//\)[^/]' \| \
15730 X"$as_dir" : 'X\(//\)$' \| \
15731 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15732 $as_echo X"$as_dir" |
15733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15734 s//\1/
15735 q
15736 }
15737 /^X\(\/\/\)[^/].*/{
15738 s//\1/
15739 q
15740 }
15741 /^X\(\/\/\)$/{
15742 s//\1/
15743 q
15744 }
15745 /^X\(\/\).*/{
15746 s//\1/
15747 q
15748 }
15749 s/.*/./; q'`
15750 test -d "$as_dir" && break
15751 done
15752 test -z "$as_dirs" || eval "mkdir $as_dirs"
15753 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15754
15755
15756 } # as_fn_mkdir_p
15757 if mkdir -p . 2>/dev/null; then
15758 as_mkdir_p='mkdir -p "$as_dir"'
15759 else
15760 test -d ./-p && rmdir ./-p
15761 as_mkdir_p=false
15762 fi
15763
15764
15765 # as_fn_executable_p FILE
15766 # -----------------------
15767 # Test if FILE is an executable regular file.
15768 as_fn_executable_p ()
15769 {
15770 test -f "$1" && test -x "$1"
15771 } # as_fn_executable_p
15772 as_test_x='test -x'
15773 as_executable_p=as_fn_executable_p
15774
15775 # Sed expression to map a string onto a valid CPP name.
15776 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15777
15778 # Sed expression to map a string onto a valid variable name.
15779 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15780
15781
15782 exec 6>&1
15783 ## ----------------------------------- ##
15784 ## Main body of $CONFIG_STATUS script. ##
15785 ## ----------------------------------- ##
15786 _ASEOF
15787 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15788
15789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15790 # Save the log message, to keep $0 and so on meaningful, and to
15791 # report actual input values of CONFIG_FILES etc. instead of their
15792 # values after options handling.
15793 ac_log="
15794 This file was extended by $as_me, which was
15795 generated by GNU Autoconf 2.69. Invocation command line was
15796
15797 CONFIG_FILES = $CONFIG_FILES
15798 CONFIG_HEADERS = $CONFIG_HEADERS
15799 CONFIG_LINKS = $CONFIG_LINKS
15800 CONFIG_COMMANDS = $CONFIG_COMMANDS
15801 $ $0 $@
15802
15803 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15804 "
15805
15806 _ACEOF
15807
15808 case $ac_config_files in *"
15809 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15810 esac
15811
15812
15813
15814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15815 # Files that config.status was made for.
15816 config_files="$ac_config_files"
15817
15818 _ACEOF
15819
15820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15821 ac_cs_usage="\
15822 \`$as_me' instantiates files and other configuration actions
15823 from templates according to the current configuration. Unless the files
15824 and actions are specified as TAGs, all are instantiated by default.
15825
15826 Usage: $0 [OPTION]... [TAG]...
15827
15828 -h, --help print this help, then exit
15829 -V, --version print version number and configuration settings, then exit
15830 --config print configuration, then exit
15831 -q, --quiet, --silent
15832 do not print progress messages
15833 -d, --debug don't remove temporary files
15834 --recheck update $as_me by reconfiguring in the same conditions
15835 --file=FILE[:TEMPLATE]
15836 instantiate the configuration file FILE
15837
15838 Configuration files:
15839 $config_files
15840
15841 Report bugs to the package provider."
15842
15843 _ACEOF
15844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15845 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15846 ac_cs_version="\\
15847 config.status
15848 configured by $0, generated by GNU Autoconf 2.69,
15849 with options \\"\$ac_cs_config\\"
15850
15851 Copyright (C) 2012 Free Software Foundation, Inc.
15852 This config.status script is free software; the Free Software Foundation
15853 gives unlimited permission to copy, distribute and modify it."
15854
15855 ac_pwd='$ac_pwd'
15856 srcdir='$srcdir'
15857 INSTALL='$INSTALL'
15858 AWK='$AWK'
15859 test -n "\$AWK" || AWK=awk
15860 _ACEOF
15861
15862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15863 # The default lists apply if the user does not specify any file.
15864 ac_need_defaults=:
15865 while test $# != 0
15866 do
15867 case $1 in
15868 --*=?*)
15869 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15870 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15871 ac_shift=:
15872 ;;
15873 --*=)
15874 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15875 ac_optarg=
15876 ac_shift=:
15877 ;;
15878 *)
15879 ac_option=$1
15880 ac_optarg=$2
15881 ac_shift=shift
15882 ;;
15883 esac
15884
15885 case $ac_option in
15886 # Handling of the options.
15887 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15888 ac_cs_recheck=: ;;
15889 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15890 $as_echo "$ac_cs_version"; exit ;;
15891 --config | --confi | --conf | --con | --co | --c )
15892 $as_echo "$ac_cs_config"; exit ;;
15893 --debug | --debu | --deb | --de | --d | -d )
15894 debug=: ;;
15895 --file | --fil | --fi | --f )
15896 $ac_shift
15897 case $ac_optarg in
15898 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15899 '') as_fn_error $? "missing file argument" ;;
15900 esac
15901 as_fn_append CONFIG_FILES " '$ac_optarg'"
15902 ac_need_defaults=false;;
15903 --he | --h | --help | --hel | -h )
15904 $as_echo "$ac_cs_usage"; exit ;;
15905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15906 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15907 ac_cs_silent=: ;;
15908
15909 # This is an error.
15910 -*) as_fn_error $? "unrecognized option: \`$1'
15911 Try \`$0 --help' for more information." ;;
15912
15913 *) as_fn_append ac_config_targets " $1"
15914 ac_need_defaults=false ;;
15915
15916 esac
15917 shift
15918 done
15919
15920 ac_configure_extra_args=
15921
15922 if $ac_cs_silent; then
15923 exec 6>/dev/null
15924 ac_configure_extra_args="$ac_configure_extra_args --silent"
15925 fi
15926
15927 _ACEOF
15928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15929 if \$ac_cs_recheck; then
15930 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15931 shift
15932 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15933 CONFIG_SHELL='$SHELL'
15934 export CONFIG_SHELL
15935 exec "\$@"
15936 fi
15937
15938 _ACEOF
15939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15940 exec 5>>config.log
15941 {
15942 echo
15943 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15944 ## Running $as_me. ##
15945 _ASBOX
15946 $as_echo "$ac_log"
15947 } >&5
15948
15949 _ACEOF
15950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15951 #
15952 # INIT-COMMANDS
15953 #
15954 extrasub_build="$extrasub_build"
15955 extrasub_host="$extrasub_host"
15956 extrasub_target="$extrasub_target"
15957
15958 _ACEOF
15959
15960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15961
15962 # Handling of arguments.
15963 for ac_config_target in $ac_config_targets
15964 do
15965 case $ac_config_target in
15966 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15967
15968 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15969 esac
15970 done
15971
15972
15973 # If the user did not use the arguments to specify the items to instantiate,
15974 # then the envvar interface is used. Set only those that are not.
15975 # We use the long form for the default assignment because of an extremely
15976 # bizarre bug on SunOS 4.1.3.
15977 if $ac_need_defaults; then
15978 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15979 fi
15980
15981 # Have a temporary directory for convenience. Make it in the build tree
15982 # simply because there is no reason against having it here, and in addition,
15983 # creating and moving files from /tmp can sometimes cause problems.
15984 # Hook for its removal unless debugging.
15985 # Note that there is a small window in which the directory will not be cleaned:
15986 # after its creation but before its name has been assigned to `$tmp'.
15987 $debug ||
15988 {
15989 tmp= ac_tmp=
15990 trap 'exit_status=$?
15991 : "${ac_tmp:=$tmp}"
15992 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15993 ' 0
15994 trap 'as_fn_exit 1' 1 2 13 15
15995 }
15996 # Create a (secure) tmp directory for tmp files.
15997
15998 {
15999 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16000 test -d "$tmp"
16001 } ||
16002 {
16003 tmp=./conf$$-$RANDOM
16004 (umask 077 && mkdir "$tmp")
16005 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16006 ac_tmp=$tmp
16007
16008 # Set up the scripts for CONFIG_FILES section.
16009 # No need to generate them if there are no CONFIG_FILES.
16010 # This happens for instance with `./config.status config.h'.
16011 if test -n "$CONFIG_FILES"; then
16012
16013 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16014 ac_cs_awk_getline=:
16015 ac_cs_awk_pipe_init=
16016 ac_cs_awk_read_file='
16017 while ((getline aline < (F[key])) > 0)
16018 print(aline)
16019 close(F[key])'
16020 ac_cs_awk_pipe_fini=
16021 else
16022 ac_cs_awk_getline=false
16023 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16024 ac_cs_awk_read_file='
16025 print "|#_!!_#|"
16026 print "cat " F[key] " &&"
16027 '$ac_cs_awk_pipe_init
16028 # The final `:' finishes the AND list.
16029 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16030 fi
16031 ac_cr=`echo X | tr X '\015'`
16032 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16033 # But we know of no other shell where ac_cr would be empty at this
16034 # point, so we can use a bashism as a fallback.
16035 if test "x$ac_cr" = x; then
16036 eval ac_cr=\$\'\\r\'
16037 fi
16038 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16039 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16040 ac_cs_awk_cr='\\r'
16041 else
16042 ac_cs_awk_cr=$ac_cr
16043 fi
16044
16045 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16046 _ACEOF
16047
16048 # Create commands to substitute file output variables.
16049 {
16050 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16051 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16052 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16053 echo "_ACAWK" &&
16054 echo "_ACEOF"
16055 } >conf$$files.sh &&
16056 . ./conf$$files.sh ||
16057 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16058 rm -f conf$$files.sh
16059
16060 {
16061 echo "cat >conf$$subs.awk <<_ACEOF" &&
16062 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16063 echo "_ACEOF"
16064 } >conf$$subs.sh ||
16065 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16066 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16067 ac_delim='%!_!# '
16068 for ac_last_try in false false false false false :; do
16069 . ./conf$$subs.sh ||
16070 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16071
16072 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16073 if test $ac_delim_n = $ac_delim_num; then
16074 break
16075 elif $ac_last_try; then
16076 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16077 else
16078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16079 fi
16080 done
16081 rm -f conf$$subs.sh
16082
16083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16084 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16085 _ACEOF
16086 sed -n '
16087 h
16088 s/^/S["/; s/!.*/"]=/
16089 p
16090 g
16091 s/^[^!]*!//
16092 :repl
16093 t repl
16094 s/'"$ac_delim"'$//
16095 t delim
16096 :nl
16097 h
16098 s/\(.\{148\}\)..*/\1/
16099 t more1
16100 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16101 p
16102 n
16103 b repl
16104 :more1
16105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16106 p
16107 g
16108 s/.\{148\}//
16109 t nl
16110 :delim
16111 h
16112 s/\(.\{148\}\)..*/\1/
16113 t more2
16114 s/["\\]/\\&/g; s/^/"/; s/$/"/
16115 p
16116 b
16117 :more2
16118 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16119 p
16120 g
16121 s/.\{148\}//
16122 t delim
16123 ' <conf$$subs.awk | sed '
16124 /^[^""]/{
16125 N
16126 s/\n//
16127 }
16128 ' >>$CONFIG_STATUS || ac_write_fail=1
16129 rm -f conf$$subs.awk
16130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16131 _ACAWK
16132 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16133 for (key in S) S_is_set[key] = 1
16134 FS = "\a"
16135 \$ac_cs_awk_pipe_init
16136 }
16137 {
16138 line = $ 0
16139 nfields = split(line, field, "@")
16140 substed = 0
16141 len = length(field[1])
16142 for (i = 2; i < nfields; i++) {
16143 key = field[i]
16144 keylen = length(key)
16145 if (S_is_set[key]) {
16146 value = S[key]
16147 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16148 len += length(value) + length(field[++i])
16149 substed = 1
16150 } else
16151 len += 1 + keylen
16152 }
16153 if (nfields == 3 && !substed) {
16154 key = field[2]
16155 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16156 \$ac_cs_awk_read_file
16157 next
16158 }
16159 }
16160 print line
16161 }
16162 \$ac_cs_awk_pipe_fini
16163 _ACAWK
16164 _ACEOF
16165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16166 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16167 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16168 else
16169 cat
16170 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16171 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16172 _ACEOF
16173
16174 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16175 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16176 # trailing colons and then remove the whole line if VPATH becomes empty
16177 # (actually we leave an empty line to preserve line numbers).
16178 if test "x$srcdir" = x.; then
16179 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16180 h
16181 s///
16182 s/^/:/
16183 s/[ ]*$/:/
16184 s/:\$(srcdir):/:/g
16185 s/:\${srcdir}:/:/g
16186 s/:@srcdir@:/:/g
16187 s/^:*//
16188 s/:*$//
16189 x
16190 s/\(=[ ]*\).*/\1/
16191 G
16192 s/\n//
16193 s/^[^=]*=[ ]*$//
16194 }'
16195 fi
16196
16197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16198 fi # test -n "$CONFIG_FILES"
16199
16200
16201 eval set X " :F $CONFIG_FILES "
16202 shift
16203 for ac_tag
16204 do
16205 case $ac_tag in
16206 :[FHLC]) ac_mode=$ac_tag; continue;;
16207 esac
16208 case $ac_mode$ac_tag in
16209 :[FHL]*:*);;
16210 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16211 :[FH]-) ac_tag=-:-;;
16212 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16213 esac
16214 ac_save_IFS=$IFS
16215 IFS=:
16216 set x $ac_tag
16217 IFS=$ac_save_IFS
16218 shift
16219 ac_file=$1
16220 shift
16221
16222 case $ac_mode in
16223 :L) ac_source=$1;;
16224 :[FH])
16225 ac_file_inputs=
16226 for ac_f
16227 do
16228 case $ac_f in
16229 -) ac_f="$ac_tmp/stdin";;
16230 *) # Look for the file first in the build tree, then in the source tree
16231 # (if the path is not absolute). The absolute path cannot be DOS-style,
16232 # because $ac_f cannot contain `:'.
16233 test -f "$ac_f" ||
16234 case $ac_f in
16235 [\\/$]*) false;;
16236 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16237 esac ||
16238 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16239 esac
16240 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16241 as_fn_append ac_file_inputs " '$ac_f'"
16242 done
16243
16244 # Let's still pretend it is `configure' which instantiates (i.e., don't
16245 # use $as_me), people would be surprised to read:
16246 # /* config.h. Generated by config.status. */
16247 configure_input='Generated from '`
16248 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16249 `' by configure.'
16250 if test x"$ac_file" != x-; then
16251 configure_input="$ac_file. $configure_input"
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16253 $as_echo "$as_me: creating $ac_file" >&6;}
16254 fi
16255 # Neutralize special characters interpreted by sed in replacement strings.
16256 case $configure_input in #(
16257 *\&* | *\|* | *\\* )
16258 ac_sed_conf_input=`$as_echo "$configure_input" |
16259 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16260 *) ac_sed_conf_input=$configure_input;;
16261 esac
16262
16263 case $ac_tag in
16264 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16265 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16266 esac
16267 ;;
16268 esac
16269
16270 ac_dir=`$as_dirname -- "$ac_file" ||
16271 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16272 X"$ac_file" : 'X\(//\)[^/]' \| \
16273 X"$ac_file" : 'X\(//\)$' \| \
16274 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16275 $as_echo X"$ac_file" |
16276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16277 s//\1/
16278 q
16279 }
16280 /^X\(\/\/\)[^/].*/{
16281 s//\1/
16282 q
16283 }
16284 /^X\(\/\/\)$/{
16285 s//\1/
16286 q
16287 }
16288 /^X\(\/\).*/{
16289 s//\1/
16290 q
16291 }
16292 s/.*/./; q'`
16293 as_dir="$ac_dir"; as_fn_mkdir_p
16294 ac_builddir=.
16295
16296 case "$ac_dir" in
16297 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16298 *)
16299 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16300 # A ".." for each directory in $ac_dir_suffix.
16301 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16302 case $ac_top_builddir_sub in
16303 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16304 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16305 esac ;;
16306 esac
16307 ac_abs_top_builddir=$ac_pwd
16308 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16309 # for backward compatibility:
16310 ac_top_builddir=$ac_top_build_prefix
16311
16312 case $srcdir in
16313 .) # We are building in place.
16314 ac_srcdir=.
16315 ac_top_srcdir=$ac_top_builddir_sub
16316 ac_abs_top_srcdir=$ac_pwd ;;
16317 [\\/]* | ?:[\\/]* ) # Absolute name.
16318 ac_srcdir=$srcdir$ac_dir_suffix;
16319 ac_top_srcdir=$srcdir
16320 ac_abs_top_srcdir=$srcdir ;;
16321 *) # Relative name.
16322 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16323 ac_top_srcdir=$ac_top_build_prefix$srcdir
16324 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16325 esac
16326 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16327
16328
16329 case $ac_mode in
16330 :F)
16331 #
16332 # CONFIG_FILE
16333 #
16334
16335 case $INSTALL in
16336 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16337 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16338 esac
16339 _ACEOF
16340
16341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16342 # If the template does not know about datarootdir, expand it.
16343 # FIXME: This hack should be removed a few years after 2.60.
16344 ac_datarootdir_hack=; ac_datarootdir_seen=
16345 ac_sed_dataroot='
16346 /datarootdir/ {
16347 p
16348 q
16349 }
16350 /@datadir@/p
16351 /@docdir@/p
16352 /@infodir@/p
16353 /@localedir@/p
16354 /@mandir@/p'
16355 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16356 *datarootdir*) ac_datarootdir_seen=yes;;
16357 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16359 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16360 _ACEOF
16361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16362 ac_datarootdir_hack='
16363 s&@datadir@&$datadir&g
16364 s&@docdir@&$docdir&g
16365 s&@infodir@&$infodir&g
16366 s&@localedir@&$localedir&g
16367 s&@mandir@&$mandir&g
16368 s&\\\${datarootdir}&$datarootdir&g' ;;
16369 esac
16370 _ACEOF
16371
16372 # Neutralize VPATH when `$srcdir' = `.'.
16373 # Shell code in configure.ac might set extrasub.
16374 # FIXME: do we really want to maintain this feature?
16375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16376 ac_sed_extra="$ac_vpsub
16377 $extrasub
16378 _ACEOF
16379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16380 :t
16381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16382 s|@configure_input@|$ac_sed_conf_input|;t t
16383 s&@top_builddir@&$ac_top_builddir_sub&;t t
16384 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16385 s&@srcdir@&$ac_srcdir&;t t
16386 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16387 s&@top_srcdir@&$ac_top_srcdir&;t t
16388 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16389 s&@builddir@&$ac_builddir&;t t
16390 s&@abs_builddir@&$ac_abs_builddir&;t t
16391 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16392 s&@INSTALL@&$ac_INSTALL&;t t
16393 $ac_datarootdir_hack
16394 "
16395 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16396 if $ac_cs_awk_getline; then
16397 $AWK -f "$ac_tmp/subs.awk"
16398 else
16399 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16400 fi \
16401 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16402
16403 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16404 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16405 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16406 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16408 which seems to be undefined. Please make sure it is defined" >&5
16409 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16410 which seems to be undefined. Please make sure it is defined" >&2;}
16411
16412 rm -f "$ac_tmp/stdin"
16413 case $ac_file in
16414 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16415 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16416 esac \
16417 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16418 ;;
16419
16420
16421
16422 esac
16423
16424
16425 case $ac_file$ac_mode in
16426 "Makefile":F) sed "$extrasub_build" Makefile |
16427 sed "$extrasub_host" |
16428 sed "$extrasub_target" > mf$$
16429 mv -f mf$$ Makefile ;;
16430
16431 esac
16432 done # for ac_tag
16433
16434
16435 as_fn_exit 0
16436 _ACEOF
16437 ac_clean_files=$ac_clean_files_save
16438
16439 test $ac_write_fail = 0 ||
16440 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16441
16442
16443 # configure is writing to config.log, and then calls config.status.
16444 # config.status does its own redirection, appending to config.log.
16445 # Unfortunately, on DOS this fails, as config.log is still kept open
16446 # by configure, so config.status won't be able to write to it; its
16447 # output is simply discarded. So we exec the FD to /dev/null,
16448 # effectively closing config.log, so it can be properly (re)opened and
16449 # appended to by config.status. When coming back to configure, we
16450 # need to make the FD available again.
16451 if test "$no_create" != yes; then
16452 ac_cs_success=:
16453 ac_config_status_args=
16454 test "$silent" = yes &&
16455 ac_config_status_args="$ac_config_status_args --quiet"
16456 exec 5>/dev/null
16457 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16458 exec 5>>config.log
16459 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16460 # would make configure fail if this is the last instruction.
16461 $ac_cs_success || as_fn_exit 1
16462 fi
16463 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16465 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16466 fi
16467