ppc/svp64: support SVP64 vectors
[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 enable_as_accelerator_for
789 enable_offload_targets
790 enable_gold
791 enable_ld
792 enable_gprofng
793 enable_compressed_debug_sections
794 enable_year2038
795 enable_libquadmath
796 enable_libquadmath_support
797 enable_libada
798 enable_libssp
799 enable_libstdcxx
800 enable_liboffloadmic
801 enable_bootstrap
802 enable_pgo_build
803 with_mpc
804 with_mpc_include
805 with_mpc_lib
806 with_mpfr_dir
807 with_mpfr
808 with_mpfr_include
809 with_mpfr_lib
810 with_gmp_dir
811 with_gmp
812 with_gmp_include
813 with_gmp_lib
814 with_stage1_libs
815 with_static_standard_libraries
816 with_stage1_ldflags
817 with_boot_libs
818 with_boot_ldflags
819 with_isl
820 with_isl_include
821 with_isl_lib
822 enable_isl_version_check
823 enable_lto
824 enable_linker_plugin_configure_flags
825 enable_linker_plugin_flags
826 enable_host_shared
827 enable_stage1_languages
828 enable_objc_gc
829 with_target_bdw_gc
830 with_target_bdw_gc_include
831 with_target_bdw_gc_lib
832 with_gcc_major_version_only
833 with_build_sysroot
834 with_debug_prefix_map
835 with_build_config
836 enable_vtable_verify
837 enable_serial_configure
838 with_build_time_tools
839 enable_maintainer_mode
840 enable_stage1_checking
841 enable_werror
842 '
843 ac_precious_vars='build_alias
844 host_alias
845 target_alias
846 CC
847 CFLAGS
848 LDFLAGS
849 LIBS
850 CPPFLAGS
851 CXX
852 CXXFLAGS
853 CCC
854 build_configargs
855 host_configargs
856 target_configargs
857 AR
858 AS
859 DLLTOOL
860 LD
861 LIPO
862 NM
863 RANLIB
864 STRIP
865 WINDRES
866 WINDMC
867 OBJCOPY
868 OBJDUMP
869 READELF
870 CC_FOR_TARGET
871 CXX_FOR_TARGET
872 GCC_FOR_TARGET
873 GFORTRAN_FOR_TARGET
874 GOC_FOR_TARGET
875 AR_FOR_TARGET
876 AS_FOR_TARGET
877 DLLTOOL_FOR_TARGET
878 LD_FOR_TARGET
879 LIPO_FOR_TARGET
880 NM_FOR_TARGET
881 OBJCOPY_FOR_TARGET
882 OBJDUMP_FOR_TARGET
883 RANLIB_FOR_TARGET
884 READELF_FOR_TARGET
885 STRIP_FOR_TARGET
886 WINDRES_FOR_TARGET
887 WINDMC_FOR_TARGET'
888
889
890 # Initialize some variables set by options.
891 ac_init_help=
892 ac_init_version=false
893 ac_unrecognized_opts=
894 ac_unrecognized_sep=
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
897 cache_file=/dev/null
898 exec_prefix=NONE
899 no_create=
900 no_recursion=
901 prefix=NONE
902 program_prefix=NONE
903 program_suffix=NONE
904 program_transform_name=s,x,x,
905 silent=
906 site=
907 srcdir=
908 verbose=
909 x_includes=NONE
910 x_libraries=NONE
911
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE}'
929 infodir='${datarootdir}/info'
930 htmldir='${docdir}'
931 dvidir='${docdir}'
932 pdfdir='${docdir}'
933 psdir='${docdir}'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
937
938 ac_prev=
939 ac_dashdash=
940 for ac_option
941 do
942 # If the previous option needs an argument, assign it.
943 if test -n "$ac_prev"; then
944 eval $ac_prev=\$ac_option
945 ac_prev=
946 continue
947 fi
948
949 case $ac_option in
950 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951 *=) ac_optarg= ;;
952 *) ac_optarg=yes ;;
953 esac
954
955 # Accept the important Cygnus configure options, so we can diagnose typos.
956
957 case $ac_dashdash$ac_option in
958 --)
959 ac_dashdash=yes ;;
960
961 -bindir | --bindir | --bindi | --bind | --bin | --bi)
962 ac_prev=bindir ;;
963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964 bindir=$ac_optarg ;;
965
966 -build | --build | --buil | --bui | --bu)
967 ac_prev=build_alias ;;
968 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969 build_alias=$ac_optarg ;;
970
971 -cache-file | --cache-file | --cache-fil | --cache-fi \
972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973 ac_prev=cache_file ;;
974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976 cache_file=$ac_optarg ;;
977
978 --config-cache | -C)
979 cache_file=config.cache ;;
980
981 -datadir | --datadir | --datadi | --datad)
982 ac_prev=datadir ;;
983 -datadir=* | --datadir=* | --datadi=* | --datad=*)
984 datadir=$ac_optarg ;;
985
986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987 | --dataroo | --dataro | --datar)
988 ac_prev=datarootdir ;;
989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991 datarootdir=$ac_optarg ;;
992
993 -disable-* | --disable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=no ;;
1008
1009 -docdir | --docdir | --docdi | --doc | --do)
1010 ac_prev=docdir ;;
1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012 docdir=$ac_optarg ;;
1013
1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 ac_prev=dvidir ;;
1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017 dvidir=$ac_optarg ;;
1018
1019 -enable-* | --enable-*)
1020 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 as_fn_error $? "invalid feature name: $ac_useropt"
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1027 *"
1028 "enable_$ac_useropt"
1029 "*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=\$ac_optarg ;;
1034
1035 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037 | --exec | --exe | --ex)
1038 ac_prev=exec_prefix ;;
1039 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041 | --exec=* | --exe=* | --ex=*)
1042 exec_prefix=$ac_optarg ;;
1043
1044 -gas | --gas | --ga | --g)
1045 # Obsolete; use --with-gas.
1046 with_gas=yes ;;
1047
1048 -help | --help | --hel | --he | -h)
1049 ac_init_help=long ;;
1050 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051 ac_init_help=recursive ;;
1052 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053 ac_init_help=short ;;
1054
1055 -host | --host | --hos | --ho)
1056 ac_prev=host_alias ;;
1057 -host=* | --host=* | --hos=* | --ho=*)
1058 host_alias=$ac_optarg ;;
1059
1060 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061 ac_prev=htmldir ;;
1062 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063 | --ht=*)
1064 htmldir=$ac_optarg ;;
1065
1066 -includedir | --includedir | --includedi | --included | --include \
1067 | --includ | --inclu | --incl | --inc)
1068 ac_prev=includedir ;;
1069 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070 | --includ=* | --inclu=* | --incl=* | --inc=*)
1071 includedir=$ac_optarg ;;
1072
1073 -infodir | --infodir | --infodi | --infod | --info | --inf)
1074 ac_prev=infodir ;;
1075 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076 infodir=$ac_optarg ;;
1077
1078 -libdir | --libdir | --libdi | --libd)
1079 ac_prev=libdir ;;
1080 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081 libdir=$ac_optarg ;;
1082
1083 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084 | --libexe | --libex | --libe)
1085 ac_prev=libexecdir ;;
1086 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087 | --libexe=* | --libex=* | --libe=*)
1088 libexecdir=$ac_optarg ;;
1089
1090 -localedir | --localedir | --localedi | --localed | --locale)
1091 ac_prev=localedir ;;
1092 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093 localedir=$ac_optarg ;;
1094
1095 -localstatedir | --localstatedir | --localstatedi | --localstated \
1096 | --localstate | --localstat | --localsta | --localst | --locals)
1097 ac_prev=localstatedir ;;
1098 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100 localstatedir=$ac_optarg ;;
1101
1102 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103 ac_prev=mandir ;;
1104 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105 mandir=$ac_optarg ;;
1106
1107 -nfp | --nfp | --nf)
1108 # Obsolete; use --without-fp.
1109 with_fp=no ;;
1110
1111 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112 | --no-cr | --no-c | -n)
1113 no_create=yes ;;
1114
1115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117 no_recursion=yes ;;
1118
1119 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121 | --oldin | --oldi | --old | --ol | --o)
1122 ac_prev=oldincludedir ;;
1123 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126 oldincludedir=$ac_optarg ;;
1127
1128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129 ac_prev=prefix ;;
1130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131 prefix=$ac_optarg ;;
1132
1133 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134 | --program-pre | --program-pr | --program-p)
1135 ac_prev=program_prefix ;;
1136 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138 program_prefix=$ac_optarg ;;
1139
1140 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141 | --program-suf | --program-su | --program-s)
1142 ac_prev=program_suffix ;;
1143 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145 program_suffix=$ac_optarg ;;
1146
1147 -program-transform-name | --program-transform-name \
1148 | --program-transform-nam | --program-transform-na \
1149 | --program-transform-n | --program-transform- \
1150 | --program-transform | --program-transfor \
1151 | --program-transfo | --program-transf \
1152 | --program-trans | --program-tran \
1153 | --progr-tra | --program-tr | --program-t)
1154 ac_prev=program_transform_name ;;
1155 -program-transform-name=* | --program-transform-name=* \
1156 | --program-transform-nam=* | --program-transform-na=* \
1157 | --program-transform-n=* | --program-transform-=* \
1158 | --program-transform=* | --program-transfor=* \
1159 | --program-transfo=* | --program-transf=* \
1160 | --program-trans=* | --program-tran=* \
1161 | --progr-tra=* | --program-tr=* | --program-t=*)
1162 program_transform_name=$ac_optarg ;;
1163
1164 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165 ac_prev=pdfdir ;;
1166 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167 pdfdir=$ac_optarg ;;
1168
1169 -psdir | --psdir | --psdi | --psd | --ps)
1170 ac_prev=psdir ;;
1171 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172 psdir=$ac_optarg ;;
1173
1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175 | -silent | --silent | --silen | --sile | --sil)
1176 silent=yes ;;
1177
1178 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179 ac_prev=sbindir ;;
1180 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181 | --sbi=* | --sb=*)
1182 sbindir=$ac_optarg ;;
1183
1184 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186 | --sharedst | --shareds | --shared | --share | --shar \
1187 | --sha | --sh)
1188 ac_prev=sharedstatedir ;;
1189 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192 | --sha=* | --sh=*)
1193 sharedstatedir=$ac_optarg ;;
1194
1195 -site | --site | --sit)
1196 ac_prev=site ;;
1197 -site=* | --site=* | --sit=*)
1198 site=$ac_optarg ;;
1199
1200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201 ac_prev=srcdir ;;
1202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203 srcdir=$ac_optarg ;;
1204
1205 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206 | --syscon | --sysco | --sysc | --sys | --sy)
1207 ac_prev=sysconfdir ;;
1208 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210 sysconfdir=$ac_optarg ;;
1211
1212 -target | --target | --targe | --targ | --tar | --ta | --t)
1213 ac_prev=target_alias ;;
1214 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215 target_alias=$ac_optarg ;;
1216
1217 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218 verbose=yes ;;
1219
1220 -version | --version | --versio | --versi | --vers | -V)
1221 ac_init_version=: ;;
1222
1223 -with-* | --with-*)
1224 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227 as_fn_error $? "invalid package name: $ac_useropt"
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1231 *"
1232 "with_$ac_useropt"
1233 "*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=\$ac_optarg ;;
1238
1239 -without-* | --without-*)
1240 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 as_fn_error $? "invalid package name: $ac_useropt"
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1247 *"
1248 "with_$ac_useropt"
1249 "*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval with_$ac_useropt=no ;;
1254
1255 --x)
1256 # Obsolete; use --with-x.
1257 with_x=yes ;;
1258
1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260 | --x-incl | --x-inc | --x-in | --x-i)
1261 ac_prev=x_includes ;;
1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264 x_includes=$ac_optarg ;;
1265
1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268 ac_prev=x_libraries ;;
1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271 x_libraries=$ac_optarg ;;
1272
1273 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1274 Try \`$0 --help' for more information"
1275 ;;
1276
1277 *=*)
1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279 # Reject names that are not valid shell variable names.
1280 case $ac_envvar in #(
1281 '' | [0-9]* | *[!_$as_cr_alnum]* )
1282 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1283 esac
1284 eval $ac_envvar=\$ac_optarg
1285 export $ac_envvar ;;
1286
1287 *)
1288 # FIXME: should be removed in autoconf 3.0.
1289 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1293 ;;
1294
1295 esac
1296 done
1297
1298 if test -n "$ac_prev"; then
1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300 as_fn_error $? "missing argument to $ac_option"
1301 fi
1302
1303 if test -n "$ac_unrecognized_opts"; then
1304 case $enable_option_checking in
1305 no) ;;
1306 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1307 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1308 esac
1309 fi
1310
1311 # Check all directory arguments for consistency.
1312 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313 datadir sysconfdir sharedstatedir localstatedir includedir \
1314 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315 libdir localedir mandir
1316 do
1317 eval ac_val=\$$ac_var
1318 # Remove trailing slashes.
1319 case $ac_val in
1320 */ )
1321 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1322 eval $ac_var=\$ac_val;;
1323 esac
1324 # Be sure to have absolute directory names.
1325 case $ac_val in
1326 [\\/$]* | ?:[\\/]* ) continue;;
1327 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1328 esac
1329 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1330 done
1331
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1335 build=$build_alias
1336 host=$host_alias
1337 target=$target_alias
1338
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x; then
1341 if test "x$build_alias" = x; then
1342 cross_compiling=maybe
1343 elif test "x$build_alias" != "x$host_alias"; then
1344 cross_compiling=yes
1345 fi
1346 fi
1347
1348 ac_tool_prefix=
1349 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350
1351 test "$silent" = yes && exec 6>/dev/null
1352
1353
1354 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di=`ls -di .` &&
1356 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357 as_fn_error $? "working directory cannot be determined"
1358 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359 as_fn_error $? "pwd does not report name of working directory"
1360
1361
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364 ac_srcdir_defaulted=yes
1365 # Try the directory containing this script, then the parent directory.
1366 ac_confdir=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$as_myself" : 'X\(//\)[^/]' \| \
1369 X"$as_myself" : 'X\(//\)$' \| \
1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)[^/].*/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\/\)$/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\).*/{
1385 s//\1/
1386 q
1387 }
1388 s/.*/./; q'`
1389 srcdir=$ac_confdir
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 srcdir=..
1392 fi
1393 else
1394 ac_srcdir_defaulted=no
1395 fi
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1399 fi
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401 ac_abs_confdir=`(
1402 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1403 pwd)`
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406 srcdir=.
1407 fi
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1411 case $srcdir in
1412 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413 esac
1414 case $srcdir in
1415 *" "*)
1416 as_fn_error $? "path to source, $srcdir, contains spaces"
1417 ;;
1418 esac
1419 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1420
1421 for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 done
1427
1428 #
1429 # Report the --help message.
1430 #
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1434 cat <<_ACEOF
1435 \`configure' configures this package to adapt to many kinds of systems.
1436
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1438
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1441
1442 Defaults for the options are specified in brackets.
1443
1444 Configuration:
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking ...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 [PREFIX]
1460
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1465
1466 For better control, use the options below.
1467
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1488 _ACEOF
1489
1490 cat <<\_ACEOF
1491
1492 Program names:
1493 --program-prefix=PREFIX prepend PREFIX to installed program names
1494 --program-suffix=SUFFIX append SUFFIX to installed program names
1495 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1496
1497 System types:
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500 --target=TARGET configure for building compilers for TARGET [HOST]
1501 _ACEOF
1502 fi
1503
1504 if test -n "$ac_init_help"; then
1505
1506 cat <<\_ACEOF
1507
1508 Optional Features:
1509 --disable-option-checking ignore unrecognized --enable/--with options
1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512 --enable-as-accelerator-for=ARG
1513 build as offload target compiler. Specify offload
1514 host triple by ARG
1515 --enable-offload-targets=LIST
1516 enable offloading to devices from comma-separated
1517 LIST of TARGET[=DIR]. Use optional path to find
1518 offload target compiler during the build
1519 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1520 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1521 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
1522 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1523 Enable compressed debug sections for gas, gold or ld
1524 by default
1525 --enable-year2038 enable support for timestamps past the year 2038
1526 --disable-libquadmath do not build libquadmath directory
1527 --disable-libquadmath-support
1528 disable libquadmath support for Fortran
1529 --enable-libada build libada directory
1530 --enable-libssp build libssp directory
1531 --disable-libstdcxx do not build libstdc++-v3 directory
1532 --enable-liboffloadmic=ARG
1533 build liboffloadmic [ARG={no,host,target}]
1534 --enable-bootstrap enable bootstrapping [yes if native build]
1535 --enable-pgo-build[=lto]
1536 enable the PGO build
1537 --disable-isl-version-check
1538 disable check for isl version
1539 --enable-lto enable link time optimization support
1540 --enable-linker-plugin-configure-flags=FLAGS
1541 additional flags for configuring linker plugins
1542 [none]
1543 --enable-linker-plugin-flags=FLAGS
1544 additional flags for configuring and building linker
1545 plugins [none]
1546 --enable-host-shared build host code as shared libraries
1547 --enable-stage1-languages[=all]
1548 choose additional languages to build during stage1.
1549 Mostly useful for compiler development
1550 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1551 Objective-C runtime
1552 --enable-vtable-verify Enable vtable verification feature
1553 --enable-serial-[{host,target,build}-]configure
1554 force sequential configuration of sub-packages for
1555 the host, target or build machine, or all
1556 sub-packages
1557 --enable-maintainer-mode
1558 enable make rules and dependencies not useful (and
1559 sometimes confusing) to the casual installer
1560 --enable-stage1-checking[=all]
1561 choose additional checking for stage1 of the
1562 compiler
1563 --enable-werror enable -Werror in bootstrap stage2 and later
1564
1565 Optional Packages:
1566 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1567 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1568 --with-build-libsubdir=DIR Directory where to find libraries for build system
1569 --with-system-zlib use installed libz
1570 --with-mpc=PATH specify prefix directory for installed MPC package.
1571 Equivalent to --with-mpc-include=PATH/include plus
1572 --with-mpc-lib=PATH/lib
1573 --with-mpc-include=PATH specify directory for installed MPC include files
1574 --with-mpc-lib=PATH specify directory for the installed MPC library
1575 --with-mpfr-dir=PATH this option has been REMOVED
1576 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1577 Equivalent to --with-mpfr-include=PATH/include plus
1578 --with-mpfr-lib=PATH/lib
1579 --with-mpfr-include=PATH
1580 specify directory for installed MPFR include files
1581 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1582 --with-gmp-dir=PATH this option has been REMOVED
1583 --with-gmp=PATH specify prefix directory for the installed GMP
1584 package. Equivalent to
1585 --with-gmp-include=PATH/include plus
1586 --with-gmp-lib=PATH/lib
1587 --with-gmp-include=PATH specify directory for installed GMP include files
1588 --with-gmp-lib=PATH specify directory for the installed GMP library
1589 --with-stage1-libs=LIBS libraries for stage1
1590 --with-static-standard-libraries
1591 use -static-libstdc++ and -static-libgcc
1592 (default=auto)
1593 --with-stage1-ldflags=FLAGS
1594 linker flags for stage1
1595 --with-boot-libs=LIBS libraries for stage2 and later
1596 --with-boot-ldflags=FLAGS
1597 linker flags for stage2 and later
1598 --with-isl=PATH Specify prefix directory for the installed isl
1599 package. Equivalent to
1600 --with-isl-include=PATH/include plus
1601 --with-isl-lib=PATH/lib
1602 --with-isl-include=PATH Specify directory for installed isl include files
1603 --with-isl-lib=PATH Specify the directory for the installed isl library
1604 --with-target-bdw-gc=PATHLIST
1605 specify prefix directory for installed bdw-gc
1606 package. Equivalent to
1607 --with-target-bdw-gc-include=PATH/include plus
1608 --with-target-bdw-gc-lib=PATH/lib
1609 --with-target-bdw-gc-include=PATHLIST
1610 specify directories for installed bdw-gc include
1611 files
1612 --with-target-bdw-gc-lib=PATHLIST
1613 specify directories for installed bdw-gc library
1614 --with-gcc-major-version-only
1615 use only GCC major number in filesystem paths
1616 --with-build-sysroot=SYSROOT
1617 use sysroot as the system root during the build
1618 --with-debug-prefix-map='A=B C=D ...'
1619 map A to B, C to D ... in debug information
1620 --with-build-config='NAME NAME2...'
1621 use config/NAME.mk build configuration
1622 --with-build-time-tools=PATH
1623 use given path to find target tools during the build
1624
1625 Some influential environment variables:
1626 CC C compiler command
1627 CFLAGS C compiler flags
1628 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1629 nonstandard directory <lib dir>
1630 LIBS libraries to pass to the linker, e.g. -l<library>
1631 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1632 you have headers in a nonstandard directory <include dir>
1633 CXX C++ compiler command
1634 CXXFLAGS C++ compiler flags
1635 build_configargs
1636 additional configure arguments for build directories
1637 host_configargs
1638 additional configure arguments for host directories
1639 target_configargs
1640 additional configure arguments for target directories
1641 AR AR for the host
1642 AS AS for the host
1643 DLLTOOL DLLTOOL for the host
1644 LD LD for the host
1645 LIPO LIPO for the host
1646 NM NM for the host
1647 RANLIB RANLIB for the host
1648 STRIP STRIP for the host
1649 WINDRES WINDRES for the host
1650 WINDMC WINDMC for the host
1651 OBJCOPY OBJCOPY for the host
1652 OBJDUMP OBJDUMP for the host
1653 READELF READELF for the host
1654 CC_FOR_TARGET
1655 CC for the target
1656 CXX_FOR_TARGET
1657 CXX for the target
1658 GCC_FOR_TARGET
1659 GCC for the target
1660 GFORTRAN_FOR_TARGET
1661 GFORTRAN for the target
1662 GOC_FOR_TARGET
1663 GOC for the target
1664 AR_FOR_TARGET
1665 AR for the target
1666 AS_FOR_TARGET
1667 AS for the target
1668 DLLTOOL_FOR_TARGET
1669 DLLTOOL for the target
1670 LD_FOR_TARGET
1671 LD for the target
1672 LIPO_FOR_TARGET
1673 LIPO for the target
1674 NM_FOR_TARGET
1675 NM for the target
1676 OBJCOPY_FOR_TARGET
1677 OBJCOPY for the target
1678 OBJDUMP_FOR_TARGET
1679 OBJDUMP for the target
1680 RANLIB_FOR_TARGET
1681 RANLIB for the target
1682 READELF_FOR_TARGET
1683 READELF for the target
1684 STRIP_FOR_TARGET
1685 STRIP for the target
1686 WINDRES_FOR_TARGET
1687 WINDRES for the target
1688 WINDMC_FOR_TARGET
1689 WINDMC for the target
1690
1691 Use these variables to override the choices made by `configure' or to help
1692 it to find libraries and programs with nonstandard names/locations.
1693
1694 Report bugs to the package provider.
1695 _ACEOF
1696 ac_status=$?
1697 fi
1698
1699 if test "$ac_init_help" = "recursive"; then
1700 # If there are subdirs, report their specific --help.
1701 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1702 test -d "$ac_dir" ||
1703 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1704 continue
1705 ac_builddir=.
1706
1707 case "$ac_dir" in
1708 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709 *)
1710 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1711 # A ".." for each directory in $ac_dir_suffix.
1712 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1713 case $ac_top_builddir_sub in
1714 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1716 esac ;;
1717 esac
1718 ac_abs_top_builddir=$ac_pwd
1719 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1720 # for backward compatibility:
1721 ac_top_builddir=$ac_top_build_prefix
1722
1723 case $srcdir in
1724 .) # We are building in place.
1725 ac_srcdir=.
1726 ac_top_srcdir=$ac_top_builddir_sub
1727 ac_abs_top_srcdir=$ac_pwd ;;
1728 [\\/]* | ?:[\\/]* ) # Absolute name.
1729 ac_srcdir=$srcdir$ac_dir_suffix;
1730 ac_top_srcdir=$srcdir
1731 ac_abs_top_srcdir=$srcdir ;;
1732 *) # Relative name.
1733 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1734 ac_top_srcdir=$ac_top_build_prefix$srcdir
1735 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1736 esac
1737 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1738
1739 cd "$ac_dir" || { ac_status=$?; continue; }
1740 # Check for guested configure.
1741 if test -f "$ac_srcdir/configure.gnu"; then
1742 echo &&
1743 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1744 elif test -f "$ac_srcdir/configure"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure" --help=recursive
1747 else
1748 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1749 fi || ac_status=$?
1750 cd "$ac_pwd" || { ac_status=$?; break; }
1751 done
1752 fi
1753
1754 test -n "$ac_init_help" && exit $ac_status
1755 if $ac_init_version; then
1756 cat <<\_ACEOF
1757 configure
1758 generated by GNU Autoconf 2.69
1759
1760 Copyright (C) 2012 Free Software Foundation, Inc.
1761 This configure script is free software; the Free Software Foundation
1762 gives unlimited permission to copy, distribute and modify it.
1763 _ACEOF
1764 exit
1765 fi
1766
1767 ## ------------------------ ##
1768 ## Autoconf initialization. ##
1769 ## ------------------------ ##
1770
1771 # ac_fn_c_try_compile LINENO
1772 # --------------------------
1773 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_compile ()
1775 {
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext
1778 if { { ac_try="$ac_compile"
1779 case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_compile") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1791 fi
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest.$ac_objext; then :
1797 ac_retval=0
1798 else
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1801
1802 ac_retval=1
1803 fi
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_compile
1808
1809 # ac_fn_cxx_try_compile LINENO
1810 # ----------------------------
1811 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_cxx_try_compile ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext
1816 if { { ac_try="$ac_compile"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_compile") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1829 fi
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_cxx_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest.$ac_objext; then :
1835 ac_retval=0
1836 else
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1839
1840 ac_retval=1
1841 fi
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1844
1845 } # ac_fn_cxx_try_compile
1846
1847 # ac_fn_cxx_try_link LINENO
1848 # -------------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_cxx_try_link ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext conftest$ac_exeext
1854 if { { ac_try="$ac_link"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1867 fi
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_cxx_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest$ac_exeext && {
1873 test "$cross_compiling" = yes ||
1874 test -x conftest$ac_exeext
1875 }; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=1
1882 fi
1883 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1884 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1885 # interfere with the next link command; also delete a directory that is
1886 # left behind by Apple's compiler. We do this before executing the actions.
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1890
1891 } # ac_fn_cxx_try_link
1892
1893 # ac_fn_c_try_link LINENO
1894 # -----------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_c_try_link ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1913 fi
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_c_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest$ac_exeext && {
1919 test "$cross_compiling" = yes ||
1920 test -x conftest$ac_exeext
1921 }; then :
1922 ac_retval=0
1923 else
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1926
1927 ac_retval=1
1928 fi
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1936
1937 } # ac_fn_c_try_link
1938 cat >config.log <<_ACEOF
1939 This file contains any messages produced by compilers while
1940 running configure, to aid debugging if configure makes a mistake.
1941
1942 It was created by $as_me, which was
1943 generated by GNU Autoconf 2.69. Invocation command line was
1944
1945 $ $0 $@
1946
1947 _ACEOF
1948 exec 5>>config.log
1949 {
1950 cat <<_ASUNAME
1951 ## --------- ##
1952 ## Platform. ##
1953 ## --------- ##
1954
1955 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1956 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1957 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1958 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1959 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1960
1961 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1962 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1963
1964 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1965 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1966 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1967 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1968 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1969 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1970 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1971
1972 _ASUNAME
1973
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1976 do
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
1979 $as_echo "PATH: $as_dir"
1980 done
1981 IFS=$as_save_IFS
1982
1983 } >&5
1984
1985 cat >&5 <<_ACEOF
1986
1987
1988 ## ----------- ##
1989 ## Core tests. ##
1990 ## ----------- ##
1991
1992 _ACEOF
1993
1994
1995 # Keep a trace of the command line.
1996 # Strip out --no-create and --no-recursion so they do not pile up.
1997 # Strip out --silent because we don't want to record it for future runs.
1998 # Also quote any args containing shell meta-characters.
1999 # Make two passes to allow for proper duplicate-argument suppression.
2000 ac_configure_args=
2001 ac_configure_args0=
2002 ac_configure_args1=
2003 ac_must_keep_next=false
2004 for ac_pass in 1 2
2005 do
2006 for ac_arg
2007 do
2008 case $ac_arg in
2009 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2011 | -silent | --silent | --silen | --sile | --sil)
2012 continue ;;
2013 *\'*)
2014 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2015 esac
2016 case $ac_pass in
2017 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2018 2)
2019 as_fn_append ac_configure_args1 " '$ac_arg'"
2020 if test $ac_must_keep_next = true; then
2021 ac_must_keep_next=false # Got value, back to normal.
2022 else
2023 case $ac_arg in
2024 *=* | --config-cache | -C | -disable-* | --disable-* \
2025 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2026 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2027 | -with-* | --with-* | -without-* | --without-* | --x)
2028 case "$ac_configure_args0 " in
2029 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2030 esac
2031 ;;
2032 -* ) ac_must_keep_next=true ;;
2033 esac
2034 fi
2035 as_fn_append ac_configure_args " '$ac_arg'"
2036 ;;
2037 esac
2038 done
2039 done
2040 { ac_configure_args0=; unset ac_configure_args0;}
2041 { ac_configure_args1=; unset ac_configure_args1;}
2042
2043 # When interrupted or exit'd, cleanup temporary files, and complete
2044 # config.log. We remove comments because anyway the quotes in there
2045 # would cause problems or look ugly.
2046 # WARNING: Use '\'' to represent an apostrophe within the trap.
2047 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2048 trap 'exit_status=$?
2049 # Save into config.log some information that might help in debugging.
2050 {
2051 echo
2052
2053 $as_echo "## ---------------- ##
2054 ## Cache variables. ##
2055 ## ---------------- ##"
2056 echo
2057 # The following way of writing the cache mishandles newlines in values,
2058 (
2059 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2060 eval ac_val=\$$ac_var
2061 case $ac_val in #(
2062 *${as_nl}*)
2063 case $ac_var in #(
2064 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2065 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2066 esac
2067 case $ac_var in #(
2068 _ | IFS | as_nl) ;; #(
2069 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2070 *) { eval $ac_var=; unset $ac_var;} ;;
2071 esac ;;
2072 esac
2073 done
2074 (set) 2>&1 |
2075 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2076 *${as_nl}ac_space=\ *)
2077 sed -n \
2078 "s/'\''/'\''\\\\'\'''\''/g;
2079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2080 ;; #(
2081 *)
2082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2083 ;;
2084 esac |
2085 sort
2086 )
2087 echo
2088
2089 $as_echo "## ----------------- ##
2090 ## Output variables. ##
2091 ## ----------------- ##"
2092 echo
2093 for ac_var in $ac_subst_vars
2094 do
2095 eval ac_val=\$$ac_var
2096 case $ac_val in
2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 esac
2099 $as_echo "$ac_var='\''$ac_val'\''"
2100 done | sort
2101 echo
2102
2103 if test -n "$ac_subst_files"; then
2104 $as_echo "## ------------------- ##
2105 ## File substitutions. ##
2106 ## ------------------- ##"
2107 echo
2108 for ac_var in $ac_subst_files
2109 do
2110 eval ac_val=\$$ac_var
2111 case $ac_val in
2112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113 esac
2114 $as_echo "$ac_var='\''$ac_val'\''"
2115 done | sort
2116 echo
2117 fi
2118
2119 if test -s confdefs.h; then
2120 $as_echo "## ----------- ##
2121 ## confdefs.h. ##
2122 ## ----------- ##"
2123 echo
2124 cat confdefs.h
2125 echo
2126 fi
2127 test "$ac_signal" != 0 &&
2128 $as_echo "$as_me: caught signal $ac_signal"
2129 $as_echo "$as_me: exit $exit_status"
2130 } >&5
2131 rm -f core *.core core.conftest.* &&
2132 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2133 exit $exit_status
2134 ' 0
2135 for ac_signal in 1 2 13 15; do
2136 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2137 done
2138 ac_signal=0
2139
2140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2141 rm -f -r conftest* confdefs.h
2142
2143 $as_echo "/* confdefs.h */" > confdefs.h
2144
2145 # Predefined preprocessor variables.
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_NAME "$PACKAGE_NAME"
2149 _ACEOF
2150
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2153 _ACEOF
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2157 _ACEOF
2158
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_STRING "$PACKAGE_STRING"
2161 _ACEOF
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2165 _ACEOF
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_URL "$PACKAGE_URL"
2169 _ACEOF
2170
2171
2172 # Let the site file select an alternate cache file if it wants to.
2173 # Prefer an explicitly selected file to automatically selected ones.
2174 ac_site_file1=NONE
2175 ac_site_file2=NONE
2176 if test -n "$CONFIG_SITE"; then
2177 # We do not want a PATH search for config.site.
2178 case $CONFIG_SITE in #((
2179 -*) ac_site_file1=./$CONFIG_SITE;;
2180 */*) ac_site_file1=$CONFIG_SITE;;
2181 *) ac_site_file1=./$CONFIG_SITE;;
2182 esac
2183 elif test "x$prefix" != xNONE; then
2184 ac_site_file1=$prefix/share/config.site
2185 ac_site_file2=$prefix/etc/config.site
2186 else
2187 ac_site_file1=$ac_default_prefix/share/config.site
2188 ac_site_file2=$ac_default_prefix/etc/config.site
2189 fi
2190 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2191 do
2192 test "x$ac_site_file" = xNONE && continue
2193 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2195 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2196 sed 's/^/| /' "$ac_site_file" >&5
2197 . "$ac_site_file" \
2198 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2200 as_fn_error $? "failed to load site script $ac_site_file
2201 See \`config.log' for more details" "$LINENO" 5; }
2202 fi
2203 done
2204
2205 if test -r "$cache_file"; then
2206 # Some versions of bash will fail to source /dev/null (special files
2207 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2208 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2210 $as_echo "$as_me: loading cache $cache_file" >&6;}
2211 case $cache_file in
2212 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2213 *) . "./$cache_file";;
2214 esac
2215 fi
2216 else
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2218 $as_echo "$as_me: creating cache $cache_file" >&6;}
2219 >$cache_file
2220 fi
2221
2222 # Check that the precious variables saved in the cache have kept the same
2223 # value.
2224 ac_cache_corrupted=false
2225 for ac_var in $ac_precious_vars; do
2226 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2227 eval ac_new_set=\$ac_env_${ac_var}_set
2228 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2229 eval ac_new_val=\$ac_env_${ac_var}_value
2230 case $ac_old_set,$ac_new_set in
2231 set,)
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2233 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2234 ac_cache_corrupted=: ;;
2235 ,set)
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2237 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2238 ac_cache_corrupted=: ;;
2239 ,);;
2240 *)
2241 if test "x$ac_old_val" != "x$ac_new_val"; then
2242 # differences in whitespace do not lead to failure.
2243 ac_old_val_w=`echo x $ac_old_val`
2244 ac_new_val_w=`echo x $ac_new_val`
2245 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2247 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2248 ac_cache_corrupted=:
2249 else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2251 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2252 eval $ac_var=\$ac_old_val
2253 fi
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2255 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2257 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2258 fi;;
2259 esac
2260 # Pass precious variables to config.status.
2261 if test "$ac_new_set" = set; then
2262 case $ac_new_val in
2263 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2264 *) ac_arg=$ac_var=$ac_new_val ;;
2265 esac
2266 case " $ac_configure_args " in
2267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2268 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2269 esac
2270 fi
2271 done
2272 if $ac_cache_corrupted; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2276 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2277 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2278 fi
2279 ## -------------------- ##
2280 ## Main body of script. ##
2281 ## -------------------- ##
2282
2283 ac_ext=c
2284 ac_cpp='$CPP $CPPFLAGS'
2285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288
2289
2290
2291
2292
2293
2294
2295
2296 progname=$0
2297 # if PWD already has a value, it is probably wrong.
2298 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2299
2300 # Export original configure arguments for use by sub-configures.
2301 # Quote arguments with shell meta charatcers.
2302 TOPLEVEL_CONFIGURE_ARGUMENTS=
2303 set -- "$progname" "$@"
2304 for ac_arg
2305 do
2306 case "$ac_arg" in
2307 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2308 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2309 # if the argument is of the form -foo=baz, quote the baz part only
2310 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2311 *) ;;
2312 esac
2313 # Add the quoted argument to the list.
2314 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2315 done
2316 if test "$silent" = yes; then
2317 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2318 fi
2319 # Remove the initial space we just introduced and, as these will be
2320 # expanded by make, quote '$'.
2321 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2322
2323
2324 # Find the build, host, and target systems.
2325 ac_aux_dir=
2326 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2327 if test -f "$ac_dir/install-sh"; then
2328 ac_aux_dir=$ac_dir
2329 ac_install_sh="$ac_aux_dir/install-sh -c"
2330 break
2331 elif test -f "$ac_dir/install.sh"; then
2332 ac_aux_dir=$ac_dir
2333 ac_install_sh="$ac_aux_dir/install.sh -c"
2334 break
2335 elif test -f "$ac_dir/shtool"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/shtool install -c"
2338 break
2339 fi
2340 done
2341 if test -z "$ac_aux_dir"; then
2342 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2343 fi
2344
2345 # These three variables are undocumented and unsupported,
2346 # and are intended to be withdrawn in a future Autoconf release.
2347 # They can cause serious problems if a builder's source tree is in a directory
2348 # whose full name contains unusual characters.
2349 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2350 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2351 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2352
2353
2354 # Make sure we can run config.sub.
2355 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2356 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2357
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2359 $as_echo_n "checking build system type... " >&6; }
2360 if ${ac_cv_build+:} false; then :
2361 $as_echo_n "(cached) " >&6
2362 else
2363 ac_build_alias=$build_alias
2364 test "x$ac_build_alias" = x &&
2365 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2366 test "x$ac_build_alias" = x &&
2367 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2368 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2369 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2370
2371 fi
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2373 $as_echo "$ac_cv_build" >&6; }
2374 case $ac_cv_build in
2375 *-*-*) ;;
2376 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2377 esac
2378 build=$ac_cv_build
2379 ac_save_IFS=$IFS; IFS='-'
2380 set x $ac_cv_build
2381 shift
2382 build_cpu=$1
2383 build_vendor=$2
2384 shift; shift
2385 # Remember, the first character of IFS is used to create $*,
2386 # except with old shells:
2387 build_os=$*
2388 IFS=$ac_save_IFS
2389 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2390
2391
2392 case ${build_alias} in
2393 "") build_noncanonical=${build} ;;
2394 *) build_noncanonical=${build_alias} ;;
2395 esac
2396
2397
2398
2399 case ${host_alias} in
2400 "") host_noncanonical=${build_noncanonical} ;;
2401 *) host_noncanonical=${host_alias} ;;
2402 esac
2403
2404
2405
2406 case ${target_alias} in
2407 "") target_noncanonical=${host_noncanonical} ;;
2408 *) target_noncanonical=${target_alias} ;;
2409 esac
2410
2411
2412
2413
2414 test "$host_noncanonical" = "$target_noncanonical" &&
2415 test "$program_prefix$program_suffix$program_transform_name" = \
2416 NONENONEs,x,x, &&
2417 program_transform_name=s,y,y,
2418
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2420 $as_echo_n "checking host system type... " >&6; }
2421 if ${ac_cv_host+:} false; then :
2422 $as_echo_n "(cached) " >&6
2423 else
2424 if test "x$host_alias" = x; then
2425 ac_cv_host=$ac_cv_build
2426 else
2427 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2428 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2429 fi
2430
2431 fi
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2433 $as_echo "$ac_cv_host" >&6; }
2434 case $ac_cv_host in
2435 *-*-*) ;;
2436 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2437 esac
2438 host=$ac_cv_host
2439 ac_save_IFS=$IFS; IFS='-'
2440 set x $ac_cv_host
2441 shift
2442 host_cpu=$1
2443 host_vendor=$2
2444 shift; shift
2445 # Remember, the first character of IFS is used to create $*,
2446 # except with old shells:
2447 host_os=$*
2448 IFS=$ac_save_IFS
2449 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2450
2451
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2453 $as_echo_n "checking target system type... " >&6; }
2454 if ${ac_cv_target+:} false; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test "x$target_alias" = x; then
2458 ac_cv_target=$ac_cv_host
2459 else
2460 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2461 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2462 fi
2463
2464 fi
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2466 $as_echo "$ac_cv_target" >&6; }
2467 case $ac_cv_target in
2468 *-*-*) ;;
2469 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2470 esac
2471 target=$ac_cv_target
2472 ac_save_IFS=$IFS; IFS='-'
2473 set x $ac_cv_target
2474 shift
2475 target_cpu=$1
2476 target_vendor=$2
2477 shift; shift
2478 # Remember, the first character of IFS is used to create $*,
2479 # except with old shells:
2480 target_os=$*
2481 IFS=$ac_save_IFS
2482 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2483
2484
2485 # The aliases save the names the user supplied, while $host etc.
2486 # will get canonicalized.
2487 test -n "$target_alias" &&
2488 test "$program_prefix$program_suffix$program_transform_name" = \
2489 NONENONEs,x,x, &&
2490 program_prefix=${target_alias}-
2491
2492 test "$program_prefix" != NONE &&
2493 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2494 # Use a double $ so make ignores it.
2495 test "$program_suffix" != NONE &&
2496 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2497 # Double any \ or $.
2498 # By default was `s,x,x', remove it if useless.
2499 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2500 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2501
2502
2503
2504 # Get 'install' or 'install-sh' and its variants.
2505 # Find a good install program. We prefer a C program (faster),
2506 # so one script is as good as another. But avoid the broken or
2507 # incompatible versions:
2508 # SysV /etc/install, /usr/sbin/install
2509 # SunOS /usr/etc/install
2510 # IRIX /sbin/install
2511 # AIX /bin/install
2512 # AmigaOS /C/install, which installs bootblocks on floppy discs
2513 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2514 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2515 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2516 # OS/2's system install, which has a completely different semantic
2517 # ./install, which can be erroneously created by make from ./install.sh.
2518 # Reject install programs that cannot install multiple files.
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2520 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2521 if test -z "$INSTALL"; then
2522 if ${ac_cv_path_install+:} false; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 # Account for people who put trailing slashes in PATH elements.
2531 case $as_dir/ in #((
2532 ./ | .// | /[cC]/* | \
2533 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2534 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2535 /usr/ucb/* ) ;;
2536 *)
2537 # OSF1 and SCO ODT 3.0 have their own names for install.
2538 # Don't use installbsd from OSF since it installs stuff as root
2539 # by default.
2540 for ac_prog in ginstall scoinst install; do
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2543 if test $ac_prog = install &&
2544 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2545 # AIX install. It has an incompatible calling convention.
2546 :
2547 elif test $ac_prog = install &&
2548 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2549 # program-specific install script used by HP pwplus--don't use.
2550 :
2551 else
2552 rm -rf conftest.one conftest.two conftest.dir
2553 echo one > conftest.one
2554 echo two > conftest.two
2555 mkdir conftest.dir
2556 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2557 test -s conftest.one && test -s conftest.two &&
2558 test -s conftest.dir/conftest.one &&
2559 test -s conftest.dir/conftest.two
2560 then
2561 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2562 break 3
2563 fi
2564 fi
2565 fi
2566 done
2567 done
2568 ;;
2569 esac
2570
2571 done
2572 IFS=$as_save_IFS
2573
2574 rm -rf conftest.one conftest.two conftest.dir
2575
2576 fi
2577 if test "${ac_cv_path_install+set}" = set; then
2578 INSTALL=$ac_cv_path_install
2579 else
2580 # As a last resort, use the slow shell script. Don't cache a
2581 # value for INSTALL within a source directory, because that will
2582 # break other packages using the cache if that directory is
2583 # removed, or if the value is a relative name.
2584 INSTALL=$ac_install_sh
2585 fi
2586 fi
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2588 $as_echo "$INSTALL" >&6; }
2589
2590 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2591 # It thinks the first close brace ends the variable substitution.
2592 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2593
2594 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2595
2596 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2597
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2599 $as_echo_n "checking whether ln works... " >&6; }
2600 if ${acx_cv_prog_LN+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 rm -f conftestdata_t
2604 echo >conftestdata_f
2605 if ln conftestdata_f conftestdata_t 2>/dev/null
2606 then
2607 acx_cv_prog_LN=ln
2608 else
2609 acx_cv_prog_LN=no
2610 fi
2611 rm -f conftestdata_f conftestdata_t
2612
2613 fi
2614 if test $acx_cv_prog_LN = no; then
2615 LN="cp"
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2617 $as_echo "no, using $LN" >&6; }
2618 else
2619 LN="$acx_cv_prog_LN"
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2621 $as_echo "yes" >&6; }
2622 fi
2623
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2625 $as_echo_n "checking whether ln -s works... " >&6; }
2626 LN_S=$as_ln_s
2627 if test "$LN_S" = "ln -s"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2629 $as_echo "yes" >&6; }
2630 else
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2632 $as_echo "no, using $LN_S" >&6; }
2633 fi
2634
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2636 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2637 if ${ac_cv_path_SED+:} false; then :
2638 $as_echo_n "(cached) " >&6
2639 else
2640 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2641 for ac_i in 1 2 3 4 5 6 7; do
2642 ac_script="$ac_script$as_nl$ac_script"
2643 done
2644 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2645 { ac_script=; unset ac_script;}
2646 if test -z "$SED"; then
2647 ac_path_SED_found=false
2648 # Loop through the user's path and test for each of PROGNAME-LIST
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_prog in sed gsed; do
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2657 as_fn_executable_p "$ac_path_SED" || continue
2658 # Check for GNU ac_path_SED and select it if it is found.
2659 # Check for GNU $ac_path_SED
2660 case `"$ac_path_SED" --version 2>&1` in
2661 *GNU*)
2662 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2663 *)
2664 ac_count=0
2665 $as_echo_n 0123456789 >"conftest.in"
2666 while :
2667 do
2668 cat "conftest.in" "conftest.in" >"conftest.tmp"
2669 mv "conftest.tmp" "conftest.in"
2670 cp "conftest.in" "conftest.nl"
2671 $as_echo '' >> "conftest.nl"
2672 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2673 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2674 as_fn_arith $ac_count + 1 && ac_count=$as_val
2675 if test $ac_count -gt ${ac_path_SED_max-0}; then
2676 # Best one so far, save it but keep looking for a better one
2677 ac_cv_path_SED="$ac_path_SED"
2678 ac_path_SED_max=$ac_count
2679 fi
2680 # 10*(2^10) chars as input seems more than enough
2681 test $ac_count -gt 10 && break
2682 done
2683 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2684 esac
2685
2686 $ac_path_SED_found && break 3
2687 done
2688 done
2689 done
2690 IFS=$as_save_IFS
2691 if test -z "$ac_cv_path_SED"; then
2692 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2693 fi
2694 else
2695 ac_cv_path_SED=$SED
2696 fi
2697
2698 fi
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2700 $as_echo "$ac_cv_path_SED" >&6; }
2701 SED="$ac_cv_path_SED"
2702 rm -f conftest.sed
2703
2704 for ac_prog in gawk mawk nawk awk
2705 do
2706 # Extract the first word of "$ac_prog", so it can be a program name with args.
2707 set dummy $ac_prog; ac_word=$2
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709 $as_echo_n "checking for $ac_word... " >&6; }
2710 if ${ac_cv_prog_AWK+:} false; then :
2711 $as_echo_n "(cached) " >&6
2712 else
2713 if test -n "$AWK"; then
2714 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2715 else
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2718 do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2723 ac_cv_prog_AWK="$ac_prog"
2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 break 2
2726 fi
2727 done
2728 done
2729 IFS=$as_save_IFS
2730
2731 fi
2732 fi
2733 AWK=$ac_cv_prog_AWK
2734 if test -n "$AWK"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2736 $as_echo "$AWK" >&6; }
2737 else
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739 $as_echo "no" >&6; }
2740 fi
2741
2742
2743 test -n "$AWK" && break
2744 done
2745
2746
2747 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2748
2749 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2750 # a relative path.
2751 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2752 INSTALL="${srcpwd}/install-sh -c"
2753 fi
2754
2755 # Set srcdir to "." if that's what it is.
2756 # This is important for multilib support.
2757 pwd=`${PWDCMD-pwd}`
2758 if test "${pwd}" = "${srcpwd}" ; then
2759 srcdir=.
2760 fi
2761
2762 topsrcdir=$srcpwd
2763
2764 extra_host_args=
2765
2766 ### To add a new directory to the tree, first choose whether it is a target
2767 ### or a host dependent tool. Then put it into the appropriate list
2768 ### (library or tools, host or target), doing a dependency sort.
2769
2770 # Subdirs will be configured in the order listed in build_configdirs,
2771 # configdirs, or target_configdirs; see the serialization section below.
2772
2773 # Dependency sorting is only needed when *configuration* must be done in
2774 # a particular order. In all cases a dependency should be specified in
2775 # the Makefile, whether or not it's implicitly specified here.
2776
2777 # Double entries in build_configdirs, configdirs, or target_configdirs may
2778 # cause circular dependencies and break everything horribly.
2779
2780 # these library is used by various programs built for the build
2781 # environment
2782 #
2783 build_libs="build-libiberty build-libcpp"
2784
2785 # these tools are built for the build environment
2786 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2787
2788 # these libraries are used by various programs built for the host environment
2789 #f
2790 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2791
2792 # these tools are built for the host environment
2793 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2794 # know that we are building the simulator.
2795 # binutils, gas and ld appear in that order because it makes sense to run
2796 # "make check" in that particular order.
2797 # If --enable-gold is used, "gold" may replace "ld".
2798 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"
2799
2800 # these libraries are built for the target environment, and are built after
2801 # the host libraries and the host tools (which may be a cross compiler)
2802 # Note that libiberty is not a target library.
2803 target_libraries="target-libgcc \
2804 target-libbacktrace \
2805 target-libgloss \
2806 target-newlib \
2807 target-libgomp \
2808 target-liboffloadmic \
2809 target-libhsail-rt \
2810 target-libatomic \
2811 target-libitm \
2812 target-libstdc++-v3 \
2813 target-libsanitizer \
2814 target-libvtv \
2815 target-libssp \
2816 target-libquadmath \
2817 target-libgfortran \
2818 target-libffi \
2819 target-libobjc \
2820 target-libada \
2821 target-libgo"
2822
2823 # these tools are built using the target libraries, and are intended to
2824 # run only in the target environment
2825 #
2826 # note: any program that *uses* libraries that are in the "target_libraries"
2827 # list belongs in this list.
2828 #
2829 target_tools="target-rda"
2830
2831 ################################################################################
2832
2833 ## All tools belong in one of the four categories, and are assigned above
2834 ## We assign ${configdirs} this way to remove all embedded newlines. This
2835 ## is important because configure will choke if they ever get through.
2836 ## ${configdirs} is directories we build using the host tools.
2837 ## ${target_configdirs} is directories we build using the target tools.
2838 configdirs=`echo ${host_libs} ${host_tools}`
2839 target_configdirs=`echo ${target_libraries} ${target_tools}`
2840 build_configdirs=`echo ${build_libs} ${build_tools}`
2841
2842
2843
2844 ################################################################################
2845
2846 srcname="gnu development package"
2847
2848 # This gets set non-empty for some net releases of packages.
2849 appdirs=""
2850
2851 # Define is_cross_compiler to save on calls to 'test'.
2852 is_cross_compiler=
2853 if test x"${host}" = x"${target}" ; then
2854 is_cross_compiler=no
2855 else
2856 is_cross_compiler=yes
2857 fi
2858
2859 # Find the build and target subdir names.
2860
2861 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2862 # have matching libraries, they should use host libraries: Makefile.tpl
2863 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2864 # However, they still use the build modules, because the corresponding
2865 # host modules (e.g. bison) are only built for the host when bootstrap
2866 # finishes. So:
2867 # - build_subdir is where we find build modules, and never changes.
2868 # - build_libsubdir is where we find build libraries, and can be overridden.
2869
2870 # Prefix 'build-' so this never conflicts with target_subdir.
2871 build_subdir="build-${build_noncanonical}"
2872
2873 # Check whether --with-build-libsubdir was given.
2874 if test "${with_build_libsubdir+set}" = set; then :
2875 withval=$with_build_libsubdir; build_libsubdir="$withval"
2876 else
2877 build_libsubdir="$build_subdir"
2878 fi
2879
2880 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2881 if ( test $srcdir = . && test -d gcc ) \
2882 || test -d $srcdir/../host-${host_noncanonical}; then
2883 host_subdir="host-${host_noncanonical}"
2884 else
2885 host_subdir=.
2886 fi
2887 # No prefix.
2888 target_subdir=${target_noncanonical}
2889
2890 # Be sure to cover against remnants of an in-tree build.
2891 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2892 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2893 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2894 fi
2895
2896 # Skipdirs are removed silently.
2897 skipdirs=
2898 # Noconfigdirs are removed loudly.
2899 noconfigdirs=""
2900
2901 use_gnu_ld=
2902 # Make sure we don't let GNU ld be added if we didn't want it.
2903 if test x$with_gnu_ld = xno ; then
2904 use_gnu_ld=no
2905 noconfigdirs="$noconfigdirs ld gold"
2906 fi
2907
2908 use_gnu_as=
2909 # Make sure we don't let GNU as be added if we didn't want it.
2910 if test x$with_gnu_as = xno ; then
2911 use_gnu_as=no
2912 noconfigdirs="$noconfigdirs gas"
2913 fi
2914
2915 use_included_zlib=
2916
2917 # Check whether --with-system-zlib was given.
2918 if test "${with_system_zlib+set}" = set; then :
2919 withval=$with_system_zlib;
2920 fi
2921
2922 # Make sure we don't let ZLIB be added if we didn't want it.
2923 if test x$with_system_zlib = xyes ; then
2924 use_included_zlib=no
2925 noconfigdirs="$noconfigdirs zlib"
2926 fi
2927
2928 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2929 # is provided.
2930 if test x$with_system_readline = xyes ; then
2931 noconfigdirs="$noconfigdirs readline"
2932 fi
2933
2934 # some tools are so dependent upon X11 that if we're not building with X,
2935 # it's not even worth trying to configure, much less build, that tool.
2936
2937 case ${with_x} in
2938 yes | "") ;; # the default value for this tree is that X11 is available
2939 no)
2940 skipdirs="${skipdirs} tk itcl libgui"
2941 # We won't be able to build gdbtk without X.
2942 enable_gdbtk=no
2943 ;;
2944 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2945 esac
2946
2947 # Some are only suitable for cross toolchains.
2948 # Remove these if host=target.
2949 cross_only="target-libgloss target-newlib target-opcodes"
2950
2951 case $is_cross_compiler in
2952 no) skipdirs="${skipdirs} ${cross_only}" ;;
2953 esac
2954
2955 # If both --with-headers and --with-libs are specified, default to
2956 # --without-newlib.
2957 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2958 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2959 if test x"${with_newlib}" = x ; then
2960 with_newlib=no
2961 fi
2962 fi
2963
2964 # Recognize --with-newlib/--without-newlib.
2965 case ${with_newlib} in
2966 no) skipdirs="${skipdirs} target-newlib" ;;
2967 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2968 esac
2969
2970 # Check whether --enable-as-accelerator-for was given.
2971 if test "${enable_as_accelerator_for+set}" = set; then :
2972 enableval=$enable_as_accelerator_for;
2973 fi
2974
2975
2976 # Check whether --enable-offload-targets was given.
2977 if test "${enable_offload_targets+set}" = set; then :
2978 enableval=$enable_offload_targets;
2979 if test x"$enable_offload_targets" = x; then
2980 as_fn_error $? "no offload targets specified" "$LINENO" 5
2981 fi
2982
2983 else
2984 enable_offload_targets=
2985 fi
2986
2987
2988 # Handle --enable-gold, --enable-ld.
2989 # --disable-gold [--enable-ld]
2990 # Build only ld. Default option.
2991 # --enable-gold [--enable-ld]
2992 # Build both gold and ld. Install gold as "ld.gold", install ld
2993 # as "ld.bfd" and "ld".
2994 # --enable-gold=default [--enable-ld]
2995 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2996 # install ld as "ld.bfd".
2997 # --enable-gold[=default] --disable-ld
2998 # Build only gold, which is then installed as both "ld.gold" and "ld".
2999 # --enable-gold --enable-ld=default
3000 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3001 # and ld.bfd).
3002 # In other words, ld is default
3003 # --enable-gold=default --enable-ld=default
3004 # Error.
3005
3006 default_ld=
3007 # Check whether --enable-gold was given.
3008 if test "${enable_gold+set}" = set; then :
3009 enableval=$enable_gold; ENABLE_GOLD=$enableval
3010 else
3011 ENABLE_GOLD=no
3012 fi
3013
3014 case "${ENABLE_GOLD}" in
3015 yes|default)
3016 # Check for ELF target.
3017 is_elf=no
3018 case "${target}" in
3019 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3020 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3021 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3022 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3023 case "${target}" in
3024 *-*-linux*aout* | *-*-linux*oldld*)
3025 ;;
3026 *)
3027 is_elf=yes
3028 ;;
3029 esac
3030 esac
3031
3032 if test "$is_elf" = "yes"; then
3033 # Check for target supported by gold.
3034 case "${target}" in
3035 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3036 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3037 configdirs="$configdirs gold"
3038 if test x${ENABLE_GOLD} = xdefault; then
3039 default_ld=gold
3040 fi
3041 ENABLE_GOLD=yes
3042 ;;
3043 esac
3044 fi
3045 ;;
3046 no)
3047 ;;
3048 *)
3049 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3050 ;;
3051 esac
3052
3053 # Check whether --enable-ld was given.
3054 if test "${enable_ld+set}" = set; then :
3055 enableval=$enable_ld; ENABLE_LD=$enableval
3056 else
3057 ENABLE_LD=yes
3058 fi
3059
3060
3061 case "${ENABLE_LD}" in
3062 default)
3063 if test x${default_ld} != x; then
3064 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3065 fi
3066 ;;
3067 yes)
3068 ;;
3069 no)
3070 if test x${ENABLE_GOLD} != xyes; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3072 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3073 fi
3074 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3075 ;;
3076 *)
3077 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3078 ;;
3079 esac
3080
3081 # Check whether --enable-gprofng was given.
3082 if test "${enable_gprofng+set}" = set; then :
3083 enableval=$enable_gprofng; enable_gprofng=$enableval
3084 else
3085 enable_gprofng=yes
3086 fi
3087
3088 if test "$enable_gprofng" = "yes"; then
3089 case "${target}" in
3090 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3091 configdirs="$configdirs gprofng"
3092 ;;
3093 esac
3094 fi
3095
3096
3097 # PR gas/19109
3098 # Decide the default method for compressing debug sections.
3099 # Provide a configure time option to override our default.
3100 # Check whether --enable-compressed_debug_sections was given.
3101 if test "${enable_compressed_debug_sections+set}" = set; then :
3102 enableval=$enable_compressed_debug_sections;
3103 if test x"$enable_compressed_debug_sections" = xyes; then
3104 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3105 fi
3106
3107 else
3108 enable_compressed_debug_sections=
3109 fi
3110
3111
3112 # Configure extra directories which are host specific
3113
3114 case "${host}" in
3115 *-cygwin*)
3116 configdirs="$configdirs libtermcap" ;;
3117 esac
3118
3119 # A target can indicate whether a language isn't supported for some reason.
3120 # Only spaces may be used in this macro; not newlines or tabs.
3121 unsupported_languages=
3122
3123 # Remove more programs from consideration, based on the host or
3124 # target this usually means that a port of the program doesn't
3125 # exist yet.
3126
3127 case "${host}" in
3128 i[3456789]86-*-msdosdjgpp*)
3129 noconfigdirs="$noconfigdirs tcl tk itcl"
3130 ;;
3131 esac
3132
3133 # Default to --disable-year2038 until we can handle differences between
3134 # projects that use gnulib (which understands year 2038) and projects that
3135 # do not (like BFD).
3136 # Check whether --enable-year2038 was given.
3137 if test "${enable_year2038+set}" = set; then :
3138 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3139 else
3140 ENABLE_YEAR2038=no
3141 fi
3142
3143 enable_year2038=
3144 if test "${ENABLE_YEAR2038}" = "no" ; then
3145 enable_year2038=no
3146 fi
3147
3148 # Check whether --enable-libquadmath was given.
3149 if test "${enable_libquadmath+set}" = set; then :
3150 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3151 else
3152 ENABLE_LIBQUADMATH=yes
3153 fi
3154
3155 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3156 noconfigdirs="$noconfigdirs target-libquadmath"
3157 fi
3158
3159
3160 # Check whether --enable-libquadmath-support was given.
3161 if test "${enable_libquadmath_support+set}" = set; then :
3162 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3163 else
3164 ENABLE_LIBQUADMATH_SUPPORT=yes
3165 fi
3166
3167 enable_libquadmath_support=
3168 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3169 enable_libquadmath_support=no
3170 fi
3171
3172
3173 # Check whether --enable-libada was given.
3174 if test "${enable_libada+set}" = set; then :
3175 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3176 else
3177 ENABLE_LIBADA=yes
3178 fi
3179
3180 if test "${ENABLE_LIBADA}" != "yes" ; then
3181 noconfigdirs="$noconfigdirs gnattools"
3182 fi
3183
3184 # Check whether --enable-libssp was given.
3185 if test "${enable_libssp+set}" = set; then :
3186 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3187 else
3188 ENABLE_LIBSSP=yes
3189 fi
3190
3191
3192 # Check whether --enable-libstdcxx was given.
3193 if test "${enable_libstdcxx+set}" = set; then :
3194 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3195 else
3196 ENABLE_LIBSTDCXX=default
3197 fi
3198
3199 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3200 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3201 fi
3202
3203 # If this is accelerator compiler and its target is intelmic we enable
3204 # target liboffloadmic by default. If this is compiler with offloading
3205 # for intelmic we enable host liboffloadmic by default. Otherwise
3206 # liboffloadmic is disabled by default.
3207 # Check whether --enable-liboffloadmic was given.
3208 if test "${enable_liboffloadmic+set}" = set; then :
3209 enableval=$enable_liboffloadmic; case "$enableval" in
3210 no | host | target)
3211 enable_liboffloadmic=$enableval ;;
3212 *)
3213 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3214 esac
3215 else
3216 if test x"$enable_as_accelerator_for" != x; then
3217 case "${target}" in
3218 *-intelmic-* | *-intelmicemul-*)
3219 enable_liboffloadmic=target
3220 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3221 ;;
3222 *)
3223 enable_liboffloadmic=no
3224 ;;
3225 esac
3226 else
3227 case "${enable_offload_targets}" in
3228 *-intelmic-* | *-intelmicemul-*)
3229 enable_liboffloadmic=host
3230 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3231 ;;
3232 *)
3233 enable_liboffloadmic=no
3234 ;;
3235 esac
3236 fi
3237 fi
3238
3239
3240
3241 # Enable libgomp by default on hosted POSIX systems, and a few others.
3242 if test x$enable_libgomp = x ; then
3243 case "${target}" in
3244 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3245 ;;
3246 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3247 ;;
3248 *-*-solaris2* | *-*-hpux11*)
3249 ;;
3250 *-*-darwin* | *-*-aix*)
3251 ;;
3252 nvptx*-*-*)
3253 ;;
3254 *)
3255 noconfigdirs="$noconfigdirs target-libgomp"
3256 ;;
3257 esac
3258 fi
3259
3260 # Disable libatomic on unsupported systems.
3261 if test -d ${srcdir}/libatomic; then
3262 if test x$enable_libatomic = x; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3264 $as_echo_n "checking for libatomic support... " >&6; }
3265 if (srcdir=${srcdir}/libatomic; \
3266 . ${srcdir}/configure.tgt; \
3267 test -n "$UNSUPPORTED")
3268 then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 noconfigdirs="$noconfigdirs target-libatomic"
3272 else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3274 $as_echo "yes" >&6; }
3275 fi
3276 fi
3277 fi
3278
3279 # Disable liboffloadmic on unsupported systems.
3280 if test -d ${srcdir}/liboffloadmic; then
3281 if test x$enable_liboffloadmic != xno; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3283 $as_echo_n "checking for liboffloadmic support... " >&6; }
3284 if (srcdir=${srcdir}/liboffloadmic; \
3285 . ${srcdir}/configure.tgt; \
3286 test -n "$UNSUPPORTED")
3287 then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 noconfigdirs="$noconfigdirs target-liboffloadmic"
3291 else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3293 $as_echo "yes" >&6; }
3294 fi
3295 fi
3296 fi
3297
3298 # Disable libitm on unsupported systems.
3299 if test -d ${srcdir}/libitm; then
3300 if test x$enable_libitm = x; then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3302 $as_echo_n "checking for libitm support... " >&6; }
3303 if (srcdir=${srcdir}/libitm; \
3304 . ${srcdir}/configure.tgt; \
3305 test -n "$UNSUPPORTED")
3306 then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3309 noconfigdirs="$noconfigdirs target-libitm"
3310 else
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3312 $as_echo "yes" >&6; }
3313 fi
3314 fi
3315 fi
3316
3317 # Disable libsanitizer on unsupported systems.
3318 if test -d ${srcdir}/libsanitizer; then
3319 if test x$enable_libsanitizer = x; then
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3321 $as_echo_n "checking for libsanitizer support... " >&6; }
3322 if (srcdir=${srcdir}/libsanitizer; \
3323 . ${srcdir}/configure.tgt; \
3324 test -n "$UNSUPPORTED")
3325 then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3328 noconfigdirs="$noconfigdirs target-libsanitizer"
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331 $as_echo "yes" >&6; }
3332 fi
3333 fi
3334 fi
3335
3336 # Disable libvtv on unsupported systems.
3337 if test -d ${srcdir}/libvtv; then
3338 if test x$enable_libvtv = x; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3340 $as_echo_n "checking for libvtv support... " >&6; }
3341 if (srcdir=${srcdir}/libvtv; \
3342 . ${srcdir}/configure.tgt; \
3343 test "$VTV_SUPPORTED" != "yes")
3344 then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3347 noconfigdirs="$noconfigdirs target-libvtv"
3348 else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3350 $as_echo "yes" >&6; }
3351 fi
3352 fi
3353 fi
3354
3355
3356 # Disable libhsail-rt on unsupported systems.
3357 if test -d ${srcdir}/libhsail-rt; then
3358 if test x$enable_libhsail_rt = x; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3360 $as_echo_n "checking for libhsail-rt support... " >&6; }
3361 if (srcdir=${srcdir}/libhsail-rt; \
3362 . ${srcdir}/configure.tgt; \
3363 test -n "$UNSUPPORTED")
3364 then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 unsupported_languages="$unsupported_languages brig"
3368 # This implicitly disables also target-libhsail-rt as it won't
3369 # get added to the build without BRIG FE.
3370 else
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3372 $as_echo "yes" >&6; }
3373 fi
3374 fi
3375 fi
3376
3377
3378 # Disable libquadmath for some systems.
3379 case "${target}" in
3380 avr-*-*)
3381 noconfigdirs="$noconfigdirs target-libquadmath"
3382 ;;
3383 # libquadmath is unused on AIX and libquadmath build process use of
3384 # LD_LIBRARY_PATH can break AIX bootstrap.
3385 powerpc-*-aix* | rs6000-*-aix*)
3386 noconfigdirs="$noconfigdirs target-libquadmath"
3387 ;;
3388 esac
3389
3390 # Disable libssp for some systems.
3391 case "${target}" in
3392 avr-*-*)
3393 # No hosted I/O support.
3394 noconfigdirs="$noconfigdirs target-libssp"
3395 ;;
3396 powerpc-*-aix* | rs6000-*-aix*)
3397 noconfigdirs="$noconfigdirs target-libssp"
3398 ;;
3399 rl78-*-*)
3400 # libssp uses a misaligned load to trigger a fault, but the RL78
3401 # doesn't fault for those - instead, it gives a build-time error
3402 # for explicit misaligned loads.
3403 noconfigdirs="$noconfigdirs target-libssp"
3404 ;;
3405 visium-*-*)
3406 # No hosted I/O support.
3407 noconfigdirs="$noconfigdirs target-libssp"
3408 ;;
3409 esac
3410
3411 # Disable libstdc++-v3 for some systems.
3412 # Allow user to override this if they pass --enable-libstdc++-v3
3413 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3414 case "${target}" in
3415 *-*-vxworks*)
3416 # VxWorks uses the Dinkumware C++ library.
3417 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3418 ;;
3419 arm*-wince-pe*)
3420 # the C++ libraries don't build on top of CE's C libraries
3421 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3422 ;;
3423 avr-*-*)
3424 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3425 ;;
3426 ft32-*-*)
3427 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3428 ;;
3429 esac
3430 fi
3431
3432 # Disable Fortran for some systems.
3433 case "${target}" in
3434 mmix-*-*)
3435 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3436 unsupported_languages="$unsupported_languages fortran"
3437 ;;
3438 esac
3439
3440 # Disable libffi for some systems.
3441 case "${target}" in
3442 powerpc-*-darwin*)
3443 ;;
3444 i[3456789]86-*-darwin*)
3445 ;;
3446 x86_64-*-darwin[912]*)
3447 ;;
3448 *-*-darwin*)
3449 noconfigdirs="$noconfigdirs target-libffi"
3450 ;;
3451 *-*-netware*)
3452 noconfigdirs="$noconfigdirs target-libffi"
3453 ;;
3454 *-*-phoenix*)
3455 noconfigdirs="$noconfigdirs target-libffi"
3456 ;;
3457 *-*-rtems*)
3458 noconfigdirs="$noconfigdirs target-libffi"
3459 ;;
3460 *-*-tpf*)
3461 noconfigdirs="$noconfigdirs target-libffi"
3462 ;;
3463 *-*-uclinux*)
3464 noconfigdirs="$noconfigdirs target-libffi"
3465 ;;
3466 *-*-vxworks*)
3467 noconfigdirs="$noconfigdirs target-libffi"
3468 ;;
3469 aarch64*-*-freebsd*)
3470 noconfigdirs="$noconfigdirs target-libffi"
3471 ;;
3472 alpha*-*-*vms*)
3473 noconfigdirs="$noconfigdirs target-libffi"
3474 ;;
3475 arm*-*-freebsd*)
3476 noconfigdirs="$noconfigdirs target-libffi"
3477 ;;
3478 arm-wince-pe)
3479 noconfigdirs="$noconfigdirs target-libffi"
3480 ;;
3481 cris-*-* | crisv32-*-*)
3482 case "${target}" in
3483 *-*-linux*)
3484 ;;
3485 *) # See PR46792 regarding target-libffi.
3486 noconfigdirs="$noconfigdirs target-libffi";;
3487 esac
3488 ;;
3489 hppa*64*-*-hpux*)
3490 noconfigdirs="$noconfigdirs target-libffi"
3491 ;;
3492 hppa*-hp-hpux11*)
3493 ;;
3494 hppa*-*-hpux*)
3495 noconfigdirs="$noconfigdirs target-libffi"
3496 ;;
3497 ia64*-*-*vms*)
3498 noconfigdirs="$noconfigdirs target-libffi"
3499 ;;
3500 i[3456789]86-w64-mingw*)
3501 noconfigdirs="$noconfigdirs target-libffi"
3502 ;;
3503 i[3456789]86-*-mingw*)
3504 noconfigdirs="$noconfigdirs target-libffi"
3505 ;;
3506 x86_64-*-mingw*)
3507 noconfigdirs="$noconfigdirs target-libffi"
3508 ;;
3509 mmix-*-*)
3510 noconfigdirs="$noconfigdirs target-libffi"
3511 ;;
3512 powerpc-*-aix*)
3513 ;;
3514 rs6000-*-aix*)
3515 ;;
3516 ft32-*-*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3518 ;;
3519 *-*-lynxos*)
3520 noconfigdirs="$noconfigdirs target-libffi"
3521 ;;
3522 esac
3523
3524 # Disable the go frontend on systems where it is known to not work. Please keep
3525 # this in sync with contrib/config-list.mk.
3526 case "${target}" in
3527 *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3528 unsupported_languages="$unsupported_languages go"
3529 ;;
3530 esac
3531
3532 # Only allow gdbserver on some systems.
3533 if test -d ${srcdir}/gdbserver; then
3534 if test x$enable_gdbserver = x; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3536 $as_echo_n "checking for gdbserver support... " >&6; }
3537 if (srcdir=${srcdir}/gdbserver; \
3538 . ${srcdir}/configure.srv; \
3539 test -n "$UNSUPPORTED")
3540 then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3543 noconfigdirs="$noconfigdirs gdbserver"
3544 else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3546 $as_echo "yes" >&6; }
3547 fi
3548 fi
3549 fi
3550
3551 # Disable libgo for some systems where it is known to not work.
3552 # For testing, you can easily override this with --enable-libgo.
3553 if test x$enable_libgo = x; then
3554 case "${target}" in
3555 *-*-darwin*)
3556 # PR 46986
3557 noconfigdirs="$noconfigdirs target-libgo"
3558 ;;
3559 *-*-cygwin* | *-*-mingw*)
3560 noconfigdirs="$noconfigdirs target-libgo"
3561 ;;
3562 esac
3563 fi
3564
3565 # Default libgloss CPU subdirectory.
3566 libgloss_dir="$target_cpu"
3567
3568 case "${target}" in
3569 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3570 libgloss_dir=wince
3571 ;;
3572 aarch64*-*-* )
3573 libgloss_dir=aarch64
3574 ;;
3575 arm*-*-*)
3576 libgloss_dir=arm
3577 ;;
3578 cris-*-* | crisv32-*-*)
3579 libgloss_dir=cris
3580 ;;
3581 hppa*-*-*)
3582 libgloss_dir=pa
3583 ;;
3584 i[3456789]86-*-*)
3585 libgloss_dir=i386
3586 ;;
3587 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3588 libgloss_dir=m68hc11
3589 ;;
3590 m68*-*-* | fido-*-*)
3591 libgloss_dir=m68k
3592 ;;
3593 mips*-*-*)
3594 libgloss_dir=mips
3595 ;;
3596 powerpc*-*-*)
3597 libgloss_dir=rs6000
3598 ;;
3599 sparc*-*-*)
3600 libgloss_dir=sparc
3601 ;;
3602 esac
3603
3604 # Disable newlib and libgloss for various target OSes.
3605 case "${target}" in
3606 alpha*-dec-osf*)
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608 ;;
3609 i[3456789]86-*-linux*)
3610 # This section makes it possible to build newlib natively on linux.
3611 # If we are using a cross compiler then don't configure newlib.
3612 if test x${is_cross_compiler} != xno ; then
3613 noconfigdirs="$noconfigdirs target-newlib"
3614 fi
3615 noconfigdirs="$noconfigdirs target-libgloss"
3616 # If we are not using a cross compiler, do configure newlib.
3617 # Note however, that newlib will only be configured in this situation
3618 # if the --with-newlib option has been given, because otherwise
3619 # 'target-newlib' will appear in skipdirs.
3620 ;;
3621 i[3456789]86-*-rdos*)
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 ;;
3624 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626 ;;
3627 sparc-*-sunos4*)
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629 ;;
3630 *-*-aix*)
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632 ;;
3633 *-*-beos*)
3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635 ;;
3636 *-*-chorusos)
3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3638 ;;
3639 *-*-dragonfly*)
3640 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3641 ;;
3642 *-*-freebsd*)
3643 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3644 ;;
3645 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3646 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3647 ;;
3648 *-*-lynxos*)
3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650 ;;
3651 *-*-mingw*)
3652 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653 ;;
3654 *-*-netbsd*)
3655 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656 ;;
3657 *-*-netware*)
3658 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659 ;;
3660 *-*-tpf*)
3661 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662 ;;
3663 *-*-uclinux*)
3664 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665 ;;
3666 *-*-vxworks*)
3667 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3668 ;;
3669 esac
3670
3671 case "${target}" in
3672 *-*-chorusos)
3673 ;;
3674 aarch64-*-darwin*)
3675 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3676 noconfigdirs="$noconfigdirs sim target-rda"
3677 ;;
3678 arm-*-darwin*)
3679 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3680 noconfigdirs="$noconfigdirs sim target-rda"
3681 ;;
3682 powerpc-*-darwin*)
3683 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3684 noconfigdirs="$noconfigdirs sim target-rda"
3685 ;;
3686 i[3456789]86-*-darwin*)
3687 noconfigdirs="$noconfigdirs ld gprof"
3688 noconfigdirs="$noconfigdirs sim target-rda"
3689 ;;
3690 x86_64-*-darwin[912]*)
3691 noconfigdirs="$noconfigdirs ld gas gprof"
3692 noconfigdirs="$noconfigdirs sim target-rda"
3693 ;;
3694 *-*-darwin*)
3695 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3696 noconfigdirs="$noconfigdirs sim target-rda"
3697 ;;
3698 *-*-dragonfly*)
3699 ;;
3700 *-*-freebsd*)
3701 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3702 && test -f /usr/local/include/gmp.h; then
3703 with_gmp=/usr/local
3704 fi
3705 ;;
3706 *-*-kaos*)
3707 # Remove unsupported stuff on all kaOS configurations.
3708 noconfigdirs="$noconfigdirs target-libgloss"
3709 ;;
3710 *-*-netbsd*)
3711 ;;
3712 *-*-netware*)
3713 ;;
3714 *-*-phoenix*)
3715 noconfigdirs="$noconfigdirs target-libgloss"
3716 ;;
3717 *-*-rtems*)
3718 noconfigdirs="$noconfigdirs target-libgloss"
3719 ;;
3720 # The tpf target doesn't support gdb yet.
3721 *-*-tpf*)
3722 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3723 ;;
3724 *-*-uclinux*)
3725 noconfigdirs="$noconfigdirs target-rda"
3726 ;;
3727 *-*-vxworks*)
3728 ;;
3729 alpha*-dec-osf*)
3730 # ld works, but does not support shared libraries.
3731 # gas doesn't generate exception information.
3732 noconfigdirs="$noconfigdirs gas ld"
3733 ;;
3734 alpha*-*-*vms*)
3735 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3736 ;;
3737 alpha*-*-*)
3738 # newlib is not 64 bit ready
3739 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3740 ;;
3741 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3742 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3743 ;;
3744 arc*-*-*)
3745 noconfigdirs="$noconfigdirs sim"
3746 ;;
3747 arm-*-pe*)
3748 noconfigdirs="$noconfigdirs target-libgloss"
3749 ;;
3750 arm-*-riscix*)
3751 noconfigdirs="$noconfigdirs ld target-libgloss"
3752 ;;
3753 avr-*-*)
3754 if test x${with_avrlibc} != xno; then
3755 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3756 fi
3757 ;;
3758 c4x-*-* | tic4x-*-*)
3759 noconfigdirs="$noconfigdirs target-libgloss"
3760 ;;
3761 tic54x-*-*)
3762 noconfigdirs="$noconfigdirs target-libgloss gdb"
3763 ;;
3764 d10v-*-*)
3765 noconfigdirs="$noconfigdirs target-libgloss"
3766 ;;
3767 d30v-*-*)
3768 noconfigdirs="$noconfigdirs gdb"
3769 ;;
3770 fr30-*-elf*)
3771 noconfigdirs="$noconfigdirs gdb"
3772 ;;
3773 ft32-*-*)
3774 noconfigdirs="$noconfigdirs target-rda gprof"
3775 ;;
3776 moxie-*-*)
3777 noconfigdirs="$noconfigdirs"
3778 ;;
3779 h8300*-*-*)
3780 noconfigdirs="$noconfigdirs target-libgloss"
3781 ;;
3782 h8500-*-*)
3783 noconfigdirs="$noconfigdirs target-libgloss"
3784 ;;
3785 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3786 ;;
3787 hppa*64*-*-hpux*)
3788 noconfigdirs="$noconfigdirs gdb"
3789 ;;
3790 hppa*-*-hpux11*)
3791 noconfigdirs="$noconfigdirs gdb ld"
3792 ;;
3793 hppa*64*-*-linux*)
3794 ;;
3795 hppa*-*-linux*)
3796 ;;
3797 hppa*-*-*elf* | \
3798 hppa*-*-lites* | \
3799 hppa*-*-openbsd* | \
3800 hppa*64*-*-*)
3801 ;;
3802 hppa*-*-pro*)
3803 ;;
3804 hppa*-*-*)
3805 noconfigdirs="$noconfigdirs ld"
3806 ;;
3807 i960-*-*)
3808 noconfigdirs="$noconfigdirs gdb"
3809 ;;
3810 ia64*-*-elf*)
3811 # No gdb support yet.
3812 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3813 ;;
3814 ia64*-**-hpux*)
3815 # No ld support yet.
3816 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3817 ;;
3818 ia64*-*-*vms*)
3819 # No ld support yet.
3820 noconfigdirs="$noconfigdirs libgui itcl ld"
3821 ;;
3822 i[3456789]86-w64-mingw*)
3823 ;;
3824 i[3456789]86-*-mingw*)
3825 target_configdirs="$target_configdirs target-winsup"
3826 ;;
3827 *-*-cygwin*)
3828 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3829 noconfigdirs="$noconfigdirs target-libgloss"
3830 # always build newlib if winsup directory is present.
3831 if test -d "$srcdir/winsup/cygwin"; then
3832 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3833 elif test -d "$srcdir/newlib"; then
3834 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3835 fi
3836 ;;
3837 i[3456789]86-*-pe)
3838 noconfigdirs="$noconfigdirs target-libgloss"
3839 ;;
3840 i[3456789]86-*-sco3.2v5*)
3841 # The linker does not yet know about weak symbols in COFF,
3842 # and is not configured to handle mixed ELF and COFF.
3843 noconfigdirs="$noconfigdirs ld target-libgloss"
3844 ;;
3845 i[3456789]86-*-sco*)
3846 noconfigdirs="$noconfigdirs gprof target-libgloss"
3847 ;;
3848 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3849 noconfigdirs="$noconfigdirs target-libgloss"
3850 ;;
3851 i[3456789]86-*-sysv4*)
3852 noconfigdirs="$noconfigdirs target-libgloss"
3853 ;;
3854 i[3456789]86-*-beos*)
3855 noconfigdirs="$noconfigdirs gdb"
3856 ;;
3857 i[3456789]86-*-rdos*)
3858 noconfigdirs="$noconfigdirs gdb"
3859 ;;
3860 mmix-*-*)
3861 noconfigdirs="$noconfigdirs gdb"
3862 ;;
3863 mt-*-*)
3864 noconfigdirs="$noconfigdirs sim"
3865 ;;
3866 nfp-*-*)
3867 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3868 noconfigdirs="$noconfigdirs $target_libraries"
3869 ;;
3870 pdp11-*-*)
3871 noconfigdirs="$noconfigdirs gdb gprof"
3872 ;;
3873 powerpc-*-aix*)
3874 # copied from rs6000-*-* entry
3875 noconfigdirs="$noconfigdirs gprof"
3876 ;;
3877 powerpc*-*-winnt* | powerpc*-*-pe*)
3878 target_configdirs="$target_configdirs target-winsup"
3879 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3880 # always build newlib.
3881 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3882 ;;
3883 # This is temporary until we can link against shared libraries
3884 powerpcle-*-solaris*)
3885 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3886 ;;
3887 powerpc-*-beos*)
3888 noconfigdirs="$noconfigdirs gdb"
3889 ;;
3890 rs6000-*-lynxos*)
3891 noconfigdirs="$noconfigdirs gprof"
3892 ;;
3893 rs6000-*-aix*)
3894 noconfigdirs="$noconfigdirs gprof"
3895 ;;
3896 rs6000-*-*)
3897 noconfigdirs="$noconfigdirs gprof"
3898 ;;
3899 m68k-apollo-*)
3900 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3901 ;;
3902 microblaze*)
3903 noconfigdirs="$noconfigdirs gprof"
3904 ;;
3905 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3906 if test x$with_newlib = xyes; then
3907 noconfigdirs="$noconfigdirs gprof"
3908 fi
3909 ;;
3910 mips*-*-irix5*)
3911 noconfigdirs="$noconfigdirs gprof target-libgloss"
3912 ;;
3913 mips*-*-irix6*)
3914 noconfigdirs="$noconfigdirs gprof target-libgloss"
3915 ;;
3916 mips*-*-bsd*)
3917 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3918 ;;
3919 mips*-*-linux*)
3920 ;;
3921 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3922 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3923 noconfigdirs="$noconfigdirs ld gas gprof"
3924 ;;
3925 mips*-*-*)
3926 noconfigdirs="$noconfigdirs gprof"
3927 ;;
3928 nvptx*-*-*)
3929 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3930 ;;
3931 sh-*-*)
3932 case "${target}" in
3933 sh*-*-elf)
3934 ;;
3935 *)
3936 noconfigdirs="$noconfigdirs target-libgloss" ;;
3937 esac
3938 ;;
3939 sparc-*-sunos4*)
3940 if test x${is_cross_compiler} = xno ; then
3941 use_gnu_ld=no
3942 fi
3943 ;;
3944 tic6x-*-*)
3945 noconfigdirs="$noconfigdirs sim"
3946 ;;
3947 tilepro*-*-* | tilegx*-*-*)
3948 noconfigdirs="$noconfigdirs sim"
3949 ;;
3950 v810-*-*)
3951 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3952 ;;
3953 vax-*-*)
3954 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3955 ;;
3956 wasm32-*-*)
3957 noconfigdirs="$noconfigdirs ld"
3958 ;;
3959 esac
3960
3961 # If we aren't building newlib, then don't build libgloss, since libgloss
3962 # depends upon some newlib header files.
3963 case "${noconfigdirs}" in
3964 *target-libgloss*) ;;
3965 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3966 esac
3967
3968 # Work in distributions that contain no compiler tools, like Autoconf.
3969 host_makefile_frag=/dev/null
3970 if test -d ${srcdir}/config ; then
3971 case "${host}" in
3972 i[3456789]86-*-msdosdjgpp*)
3973 host_makefile_frag="config/mh-djgpp"
3974 ;;
3975 *-cygwin*)
3976
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3978 $as_echo_n "checking to see if cat works as expected... " >&6; }
3979 echo a >cygwin-cat-check
3980 if test `cat cygwin-cat-check` = a ; then
3981 rm cygwin-cat-check
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3983 $as_echo "yes" >&6; }
3984 else
3985 rm cygwin-cat-check
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987 $as_echo "no" >&6; }
3988 as_fn_error $? "The cat command does not ignore carriage return characters.
3989 Please either mount the build directory in binary mode or run the following
3990 commands before running any configure script:
3991 set -o igncr
3992 export SHELLOPTS
3993 " "$LINENO" 5
3994 fi
3995
3996 host_makefile_frag="config/mh-cygwin"
3997 ;;
3998 *-mingw*)
3999 host_makefile_frag="config/mh-mingw"
4000 ;;
4001 alpha*-linux*)
4002 host_makefile_frag="config/mh-alpha-linux"
4003 ;;
4004 hppa*-hp-hpux10*)
4005 host_makefile_frag="config/mh-pa-hpux10"
4006 ;;
4007 hppa*-hp-hpux*)
4008 host_makefile_frag="config/mh-pa"
4009 ;;
4010 hppa*-*)
4011 host_makefile_frag="config/mh-pa"
4012 ;;
4013 *-*-darwin*)
4014 host_makefile_frag="config/mh-darwin"
4015 ;;
4016 powerpc-*-aix*)
4017 host_makefile_frag="config/mh-ppc-aix"
4018 ;;
4019 rs6000-*-aix*)
4020 host_makefile_frag="config/mh-ppc-aix"
4021 ;;
4022 esac
4023 fi
4024
4025 if test "${build}" != "${host}" ; then
4026 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4027 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4028 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4029 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4030 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4031 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4032 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4033 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4034 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4035 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4036 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4037 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4038 else
4039 AR_FOR_BUILD="\$(AR)"
4040 AS_FOR_BUILD="\$(AS)"
4041 CC_FOR_BUILD="\$(CC)"
4042 CXX_FOR_BUILD="\$(CXX)"
4043 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4044 GOC_FOR_BUILD="\$(GOC)"
4045 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4046 LD_FOR_BUILD="\$(LD)"
4047 NM_FOR_BUILD="\$(NM)"
4048 RANLIB_FOR_BUILD="\$(RANLIB)"
4049 WINDRES_FOR_BUILD="\$(WINDRES)"
4050 WINDMC_FOR_BUILD="\$(WINDMC)"
4051 fi
4052
4053 ac_ext=c
4054 ac_cpp='$CPP $CPPFLAGS'
4055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058 if test -n "$ac_tool_prefix"; then
4059 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4060 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062 $as_echo_n "checking for $ac_word... " >&6; }
4063 if ${ac_cv_prog_CC+:} false; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 if test -n "$CC"; then
4067 ac_cv_prog_CC="$CC" # Let the user override the test.
4068 else
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH
4071 do
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4076 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 break 2
4079 fi
4080 done
4081 done
4082 IFS=$as_save_IFS
4083
4084 fi
4085 fi
4086 CC=$ac_cv_prog_CC
4087 if test -n "$CC"; then
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4089 $as_echo "$CC" >&6; }
4090 else
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092 $as_echo "no" >&6; }
4093 fi
4094
4095
4096 fi
4097 if test -z "$ac_cv_prog_CC"; then
4098 ac_ct_CC=$CC
4099 # Extract the first word of "gcc", so it can be a program name with args.
4100 set dummy gcc; ac_word=$2
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4104 $as_echo_n "(cached) " >&6
4105 else
4106 if test -n "$ac_ct_CC"; then
4107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4111 do
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_prog_ac_ct_CC="gcc"
4117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 break 2
4119 fi
4120 done
4121 done
4122 IFS=$as_save_IFS
4123
4124 fi
4125 fi
4126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4127 if test -n "$ac_ct_CC"; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4129 $as_echo "$ac_ct_CC" >&6; }
4130 else
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4133 fi
4134
4135 if test "x$ac_ct_CC" = x; then
4136 CC=""
4137 else
4138 case $cross_compiling:$ac_tool_warned in
4139 yes:)
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4142 ac_tool_warned=yes ;;
4143 esac
4144 CC=$ac_ct_CC
4145 fi
4146 else
4147 CC="$ac_cv_prog_CC"
4148 fi
4149
4150 if test -z "$CC"; then
4151 if test -n "$ac_tool_prefix"; then
4152 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4153 set dummy ${ac_tool_prefix}cc; ac_word=$2
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155 $as_echo_n "checking for $ac_word... " >&6; }
4156 if ${ac_cv_prog_CC+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 if test -n "$CC"; then
4160 ac_cv_prog_CC="$CC" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4164 do
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169 ac_cv_prog_CC="${ac_tool_prefix}cc"
4170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 break 2
4172 fi
4173 done
4174 done
4175 IFS=$as_save_IFS
4176
4177 fi
4178 fi
4179 CC=$ac_cv_prog_CC
4180 if test -n "$CC"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4182 $as_echo "$CC" >&6; }
4183 else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4186 fi
4187
4188
4189 fi
4190 fi
4191 if test -z "$CC"; then
4192 # Extract the first word of "cc", so it can be a program name with args.
4193 set dummy cc; ac_word=$2
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195 $as_echo_n "checking for $ac_word... " >&6; }
4196 if ${ac_cv_prog_CC+:} false; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 if test -n "$CC"; then
4200 ac_cv_prog_CC="$CC" # Let the user override the test.
4201 else
4202 ac_prog_rejected=no
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4211 ac_prog_rejected=yes
4212 continue
4213 fi
4214 ac_cv_prog_CC="cc"
4215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 break 2
4217 fi
4218 done
4219 done
4220 IFS=$as_save_IFS
4221
4222 if test $ac_prog_rejected = yes; then
4223 # We found a bogon in the path, so make sure we never use it.
4224 set dummy $ac_cv_prog_CC
4225 shift
4226 if test $# != 0; then
4227 # We chose a different compiler from the bogus one.
4228 # However, it has the same basename, so the bogon will be chosen
4229 # first if we set CC to just the basename; use the full file name.
4230 shift
4231 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4232 fi
4233 fi
4234 fi
4235 fi
4236 CC=$ac_cv_prog_CC
4237 if test -n "$CC"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4239 $as_echo "$CC" >&6; }
4240 else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4243 fi
4244
4245
4246 fi
4247 if test -z "$CC"; then
4248 if test -n "$ac_tool_prefix"; then
4249 for ac_prog in cl.exe
4250 do
4251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4254 $as_echo_n "checking for $ac_word... " >&6; }
4255 if ${ac_cv_prog_CC+:} false; then :
4256 $as_echo_n "(cached) " >&6
4257 else
4258 if test -n "$CC"; then
4259 ac_cv_prog_CC="$CC" # Let the user override the test.
4260 else
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4263 do
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4268 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 break 2
4271 fi
4272 done
4273 done
4274 IFS=$as_save_IFS
4275
4276 fi
4277 fi
4278 CC=$ac_cv_prog_CC
4279 if test -n "$CC"; then
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4281 $as_echo "$CC" >&6; }
4282 else
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284 $as_echo "no" >&6; }
4285 fi
4286
4287
4288 test -n "$CC" && break
4289 done
4290 fi
4291 if test -z "$CC"; then
4292 ac_ct_CC=$CC
4293 for ac_prog in cl.exe
4294 do
4295 # Extract the first word of "$ac_prog", so it can be a program name with args.
4296 set dummy $ac_prog; ac_word=$2
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298 $as_echo_n "checking for $ac_word... " >&6; }
4299 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4300 $as_echo_n "(cached) " >&6
4301 else
4302 if test -n "$ac_ct_CC"; then
4303 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312 ac_cv_prog_ac_ct_CC="$ac_prog"
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316 done
4317 done
4318 IFS=$as_save_IFS
4319
4320 fi
4321 fi
4322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4323 if test -n "$ac_ct_CC"; then
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4325 $as_echo "$ac_ct_CC" >&6; }
4326 else
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 $as_echo "no" >&6; }
4329 fi
4330
4331
4332 test -n "$ac_ct_CC" && break
4333 done
4334
4335 if test "x$ac_ct_CC" = x; then
4336 CC=""
4337 else
4338 case $cross_compiling:$ac_tool_warned in
4339 yes:)
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4342 ac_tool_warned=yes ;;
4343 esac
4344 CC=$ac_ct_CC
4345 fi
4346 fi
4347
4348 fi
4349
4350
4351 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4353 as_fn_error $? "no acceptable C compiler found in \$PATH
4354 See \`config.log' for more details" "$LINENO" 5; }
4355
4356 # Provide some information about the compiler.
4357 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4358 set X $ac_compile
4359 ac_compiler=$2
4360 for ac_option in --version -v -V -qversion; do
4361 { { ac_try="$ac_compiler $ac_option >&5"
4362 case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365 esac
4366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4367 $as_echo "$ac_try_echo"; } >&5
4368 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4369 ac_status=$?
4370 if test -s conftest.err; then
4371 sed '10a\
4372 ... rest of stderr output deleted ...
4373 10q' conftest.err >conftest.er1
4374 cat conftest.er1 >&5
4375 fi
4376 rm -f conftest.er1 conftest.err
4377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4378 test $ac_status = 0; }
4379 done
4380
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383
4384 int
4385 main ()
4386 {
4387
4388 ;
4389 return 0;
4390 }
4391 _ACEOF
4392 ac_clean_files_save=$ac_clean_files
4393 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4394 # Try to create an executable without -o first, disregard a.out.
4395 # It will help us diagnose broken compilers, and finding out an intuition
4396 # of exeext.
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4398 $as_echo_n "checking whether the C compiler works... " >&6; }
4399 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4400
4401 # The possible output files:
4402 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4403
4404 ac_rmfiles=
4405 for ac_file in $ac_files
4406 do
4407 case $ac_file in
4408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4409 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4410 esac
4411 done
4412 rm -f $ac_rmfiles
4413
4414 if { { ac_try="$ac_link_default"
4415 case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4418 esac
4419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420 $as_echo "$ac_try_echo"; } >&5
4421 (eval "$ac_link_default") 2>&5
4422 ac_status=$?
4423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4424 test $ac_status = 0; }; then :
4425 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4426 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4427 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4428 # so that the user can short-circuit this test for compilers unknown to
4429 # Autoconf.
4430 for ac_file in $ac_files ''
4431 do
4432 test -f "$ac_file" || continue
4433 case $ac_file in
4434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4435 ;;
4436 [ab].out )
4437 # We found the default executable, but exeext='' is most
4438 # certainly right.
4439 break;;
4440 *.* )
4441 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4442 then :; else
4443 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4444 fi
4445 # We set ac_cv_exeext here because the later test for it is not
4446 # safe: cross compilers may not add the suffix if given an `-o'
4447 # argument, so we may need to know it at that point already.
4448 # Even if this section looks crufty: it has the advantage of
4449 # actually working.
4450 break;;
4451 * )
4452 break;;
4453 esac
4454 done
4455 test "$ac_cv_exeext" = no && ac_cv_exeext=
4456
4457 else
4458 ac_file=''
4459 fi
4460 if test -z "$ac_file"; then :
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4463 $as_echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4465
4466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4468 as_fn_error 77 "C compiler cannot create executables
4469 See \`config.log' for more details" "$LINENO" 5; }
4470 else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4472 $as_echo "yes" >&6; }
4473 fi
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4475 $as_echo_n "checking for C compiler default output file name... " >&6; }
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4477 $as_echo "$ac_file" >&6; }
4478 ac_exeext=$ac_cv_exeext
4479
4480 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4481 ac_clean_files=$ac_clean_files_save
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4483 $as_echo_n "checking for suffix of executables... " >&6; }
4484 if { { ac_try="$ac_link"
4485 case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488 esac
4489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4490 $as_echo "$ac_try_echo"; } >&5
4491 (eval "$ac_link") 2>&5
4492 ac_status=$?
4493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4494 test $ac_status = 0; }; then :
4495 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4496 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4497 # work properly (i.e., refer to `conftest.exe'), while it won't with
4498 # `rm'.
4499 for ac_file in conftest.exe conftest conftest.*; do
4500 test -f "$ac_file" || continue
4501 case $ac_file in
4502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4503 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4504 break;;
4505 * ) break;;
4506 esac
4507 done
4508 else
4509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4511 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4512 See \`config.log' for more details" "$LINENO" 5; }
4513 fi
4514 rm -f conftest conftest$ac_cv_exeext
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4516 $as_echo "$ac_cv_exeext" >&6; }
4517
4518 rm -f conftest.$ac_ext
4519 EXEEXT=$ac_cv_exeext
4520 ac_exeext=$EXEEXT
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523 #include <stdio.h>
4524 int
4525 main ()
4526 {
4527 FILE *f = fopen ("conftest.out", "w");
4528 return ferror (f) || fclose (f) != 0;
4529
4530 ;
4531 return 0;
4532 }
4533 _ACEOF
4534 ac_clean_files="$ac_clean_files conftest.out"
4535 # Check that the compiler produces executables we can run. If not, either
4536 # the compiler is broken, or we cross compile.
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4538 $as_echo_n "checking whether we are cross compiling... " >&6; }
4539 if test "$cross_compiling" != yes; then
4540 { { ac_try="$ac_link"
4541 case "(($ac_try" in
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4544 esac
4545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4546 $as_echo "$ac_try_echo"; } >&5
4547 (eval "$ac_link") 2>&5
4548 ac_status=$?
4549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550 test $ac_status = 0; }
4551 if { ac_try='./conftest$ac_cv_exeext'
4552 { { case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555 esac
4556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4557 $as_echo "$ac_try_echo"; } >&5
4558 (eval "$ac_try") 2>&5
4559 ac_status=$?
4560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561 test $ac_status = 0; }; }; then
4562 cross_compiling=no
4563 else
4564 if test "$cross_compiling" = maybe; then
4565 cross_compiling=yes
4566 else
4567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4569 as_fn_error $? "cannot run C compiled programs.
4570 If you meant to cross compile, use \`--host'.
4571 See \`config.log' for more details" "$LINENO" 5; }
4572 fi
4573 fi
4574 fi
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4576 $as_echo "$cross_compiling" >&6; }
4577
4578 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4579 ac_clean_files=$ac_clean_files_save
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4581 $as_echo_n "checking for suffix of object files... " >&6; }
4582 if ${ac_cv_objext+:} false; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4587
4588 int
4589 main ()
4590 {
4591
4592 ;
4593 return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest.o conftest.obj
4597 if { { ac_try="$ac_compile"
4598 case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601 esac
4602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4603 $as_echo "$ac_try_echo"; } >&5
4604 (eval "$ac_compile") 2>&5
4605 ac_status=$?
4606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4607 test $ac_status = 0; }; then :
4608 for ac_file in conftest.o conftest.obj conftest.*; do
4609 test -f "$ac_file" || continue;
4610 case $ac_file in
4611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4612 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4613 break;;
4614 esac
4615 done
4616 else
4617 $as_echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4622 as_fn_error $? "cannot compute suffix of object files: cannot compile
4623 See \`config.log' for more details" "$LINENO" 5; }
4624 fi
4625 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4626 fi
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4628 $as_echo "$ac_cv_objext" >&6; }
4629 OBJEXT=$ac_cv_objext
4630 ac_objext=$OBJEXT
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4632 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4633 if ${ac_cv_c_compiler_gnu+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4638
4639 int
4640 main ()
4641 {
4642 #ifndef __GNUC__
4643 choke me
4644 #endif
4645
4646 ;
4647 return 0;
4648 }
4649 _ACEOF
4650 if ac_fn_c_try_compile "$LINENO"; then :
4651 ac_compiler_gnu=yes
4652 else
4653 ac_compiler_gnu=no
4654 fi
4655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4657
4658 fi
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4660 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4661 if test $ac_compiler_gnu = yes; then
4662 GCC=yes
4663 else
4664 GCC=
4665 fi
4666 ac_test_CFLAGS=${CFLAGS+set}
4667 ac_save_CFLAGS=$CFLAGS
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4669 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4670 if ${ac_cv_prog_cc_g+:} false; then :
4671 $as_echo_n "(cached) " >&6
4672 else
4673 ac_save_c_werror_flag=$ac_c_werror_flag
4674 ac_c_werror_flag=yes
4675 ac_cv_prog_cc_g=no
4676 CFLAGS="-g"
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679
4680 int
4681 main ()
4682 {
4683
4684 ;
4685 return 0;
4686 }
4687 _ACEOF
4688 if ac_fn_c_try_compile "$LINENO"; then :
4689 ac_cv_prog_cc_g=yes
4690 else
4691 CFLAGS=""
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4694
4695 int
4696 main ()
4697 {
4698
4699 ;
4700 return 0;
4701 }
4702 _ACEOF
4703 if ac_fn_c_try_compile "$LINENO"; then :
4704
4705 else
4706 ac_c_werror_flag=$ac_save_c_werror_flag
4707 CFLAGS="-g"
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4710
4711 int
4712 main ()
4713 {
4714
4715 ;
4716 return 0;
4717 }
4718 _ACEOF
4719 if ac_fn_c_try_compile "$LINENO"; then :
4720 ac_cv_prog_cc_g=yes
4721 fi
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 fi
4724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725 fi
4726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 ac_c_werror_flag=$ac_save_c_werror_flag
4728 fi
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4730 $as_echo "$ac_cv_prog_cc_g" >&6; }
4731 if test "$ac_test_CFLAGS" = set; then
4732 CFLAGS=$ac_save_CFLAGS
4733 elif test $ac_cv_prog_cc_g = yes; then
4734 if test "$GCC" = yes; then
4735 CFLAGS="-g -O2"
4736 else
4737 CFLAGS="-g"
4738 fi
4739 else
4740 if test "$GCC" = yes; then
4741 CFLAGS="-O2"
4742 else
4743 CFLAGS=
4744 fi
4745 fi
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4747 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4748 if ${ac_cv_prog_cc_c89+:} false; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 ac_cv_prog_cc_c89=no
4752 ac_save_CC=$CC
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4755 #include <stdarg.h>
4756 #include <stdio.h>
4757 struct stat;
4758 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4759 struct buf { int x; };
4760 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4761 static char *e (p, i)
4762 char **p;
4763 int i;
4764 {
4765 return p[i];
4766 }
4767 static char *f (char * (*g) (char **, int), char **p, ...)
4768 {
4769 char *s;
4770 va_list v;
4771 va_start (v,p);
4772 s = g (p, va_arg (v,int));
4773 va_end (v);
4774 return s;
4775 }
4776
4777 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4778 function prototypes and stuff, but not '\xHH' hex character constants.
4779 These don't provoke an error unfortunately, instead are silently treated
4780 as 'x'. The following induces an error, until -std is added to get
4781 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4782 array size at least. It's necessary to write '\x00'==0 to get something
4783 that's true only with -std. */
4784 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4785
4786 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4787 inside strings and character constants. */
4788 #define FOO(x) 'x'
4789 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4790
4791 int test (int i, double x);
4792 struct s1 {int (*f) (int a);};
4793 struct s2 {int (*f) (double a);};
4794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4795 int argc;
4796 char **argv;
4797 int
4798 main ()
4799 {
4800 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4801 ;
4802 return 0;
4803 }
4804 _ACEOF
4805 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4806 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4807 do
4808 CC="$ac_save_CC $ac_arg"
4809 if ac_fn_c_try_compile "$LINENO"; then :
4810 ac_cv_prog_cc_c89=$ac_arg
4811 fi
4812 rm -f core conftest.err conftest.$ac_objext
4813 test "x$ac_cv_prog_cc_c89" != "xno" && break
4814 done
4815 rm -f conftest.$ac_ext
4816 CC=$ac_save_CC
4817
4818 fi
4819 # AC_CACHE_VAL
4820 case "x$ac_cv_prog_cc_c89" in
4821 x)
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4823 $as_echo "none needed" >&6; } ;;
4824 xno)
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4826 $as_echo "unsupported" >&6; } ;;
4827 *)
4828 CC="$CC $ac_cv_prog_cc_c89"
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4830 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4831 esac
4832 if test "x$ac_cv_prog_cc_c89" != xno; then :
4833
4834 fi
4835
4836 ac_ext=c
4837 ac_cpp='$CPP $CPPFLAGS'
4838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4841
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4843 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4844 if ${ac_cv_prog_cc_c99+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 ac_cv_prog_cc_c99=no
4848 ac_save_CC=$CC
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4851 #include <stdarg.h>
4852 #include <stdbool.h>
4853 #include <stdlib.h>
4854 #include <wchar.h>
4855 #include <stdio.h>
4856
4857 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4858 #define debug(...) fprintf (stderr, __VA_ARGS__)
4859 #define showlist(...) puts (#__VA_ARGS__)
4860 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4861 static void
4862 test_varargs_macros (void)
4863 {
4864 int x = 1234;
4865 int y = 5678;
4866 debug ("Flag");
4867 debug ("X = %d\n", x);
4868 showlist (The first, second, and third items.);
4869 report (x>y, "x is %d but y is %d", x, y);
4870 }
4871
4872 // Check long long types.
4873 #define BIG64 18446744073709551615ull
4874 #define BIG32 4294967295ul
4875 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4876 #if !BIG_OK
4877 your preprocessor is broken;
4878 #endif
4879 #if BIG_OK
4880 #else
4881 your preprocessor is broken;
4882 #endif
4883 static long long int bignum = -9223372036854775807LL;
4884 static unsigned long long int ubignum = BIG64;
4885
4886 struct incomplete_array
4887 {
4888 int datasize;
4889 double data[];
4890 };
4891
4892 struct named_init {
4893 int number;
4894 const wchar_t *name;
4895 double average;
4896 };
4897
4898 typedef const char *ccp;
4899
4900 static inline int
4901 test_restrict (ccp restrict text)
4902 {
4903 // See if C++-style comments work.
4904 // Iterate through items via the restricted pointer.
4905 // Also check for declarations in for loops.
4906 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4907 continue;
4908 return 0;
4909 }
4910
4911 // Check varargs and va_copy.
4912 static void
4913 test_varargs (const char *format, ...)
4914 {
4915 va_list args;
4916 va_start (args, format);
4917 va_list args_copy;
4918 va_copy (args_copy, args);
4919
4920 const char *str;
4921 int number;
4922 float fnumber;
4923
4924 while (*format)
4925 {
4926 switch (*format++)
4927 {
4928 case 's': // string
4929 str = va_arg (args_copy, const char *);
4930 break;
4931 case 'd': // int
4932 number = va_arg (args_copy, int);
4933 break;
4934 case 'f': // float
4935 fnumber = va_arg (args_copy, double);
4936 break;
4937 default:
4938 break;
4939 }
4940 }
4941 va_end (args_copy);
4942 va_end (args);
4943 }
4944
4945 int
4946 main ()
4947 {
4948
4949 // Check bool.
4950 _Bool success = false;
4951
4952 // Check restrict.
4953 if (test_restrict ("String literal") == 0)
4954 success = true;
4955 char *restrict newvar = "Another string";
4956
4957 // Check varargs.
4958 test_varargs ("s, d' f .", "string", 65, 34.234);
4959 test_varargs_macros ();
4960
4961 // Check flexible array members.
4962 struct incomplete_array *ia =
4963 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4964 ia->datasize = 10;
4965 for (int i = 0; i < ia->datasize; ++i)
4966 ia->data[i] = i * 1.234;
4967
4968 // Check named initializers.
4969 struct named_init ni = {
4970 .number = 34,
4971 .name = L"Test wide string",
4972 .average = 543.34343,
4973 };
4974
4975 ni.number = 58;
4976
4977 int dynamic_array[ni.number];
4978 dynamic_array[ni.number - 1] = 543;
4979
4980 // work around unused variable warnings
4981 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4982 || dynamic_array[ni.number - 1] != 543);
4983
4984 ;
4985 return 0;
4986 }
4987 _ACEOF
4988 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4989 do
4990 CC="$ac_save_CC $ac_arg"
4991 if ac_fn_c_try_compile "$LINENO"; then :
4992 ac_cv_prog_cc_c99=$ac_arg
4993 fi
4994 rm -f core conftest.err conftest.$ac_objext
4995 test "x$ac_cv_prog_cc_c99" != "xno" && break
4996 done
4997 rm -f conftest.$ac_ext
4998 CC=$ac_save_CC
4999
5000 fi
5001 # AC_CACHE_VAL
5002 case "x$ac_cv_prog_cc_c99" in
5003 x)
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5005 $as_echo "none needed" >&6; } ;;
5006 xno)
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5008 $as_echo "unsupported" >&6; } ;;
5009 *)
5010 CC="$CC $ac_cv_prog_cc_c99"
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5012 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5013 esac
5014 if test "x$ac_cv_prog_cc_c99" != xno; then :
5015
5016 fi
5017
5018
5019 ac_ext=cpp
5020 ac_cpp='$CXXCPP $CPPFLAGS'
5021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5024 if test -z "$CXX"; then
5025 if test -n "$CCC"; then
5026 CXX=$CCC
5027 else
5028 if test -n "$ac_tool_prefix"; then
5029 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5030 do
5031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_prog_CXX+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$CXX"; then
5039 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5048 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5051 fi
5052 done
5053 done
5054 IFS=$as_save_IFS
5055
5056 fi
5057 fi
5058 CXX=$ac_cv_prog_CXX
5059 if test -n "$CXX"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5061 $as_echo "$CXX" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5065 fi
5066
5067
5068 test -n "$CXX" && break
5069 done
5070 fi
5071 if test -z "$CXX"; then
5072 ac_ct_CXX=$CXX
5073 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5074 do
5075 # Extract the first word of "$ac_prog", so it can be a program name with args.
5076 set dummy $ac_prog; ac_word=$2
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 $as_echo_n "checking for $ac_word... " >&6; }
5079 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5080 $as_echo_n "(cached) " >&6
5081 else
5082 if test -n "$ac_ct_CXX"; then
5083 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5084 else
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5087 do
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5092 ac_cv_prog_ac_ct_CXX="$ac_prog"
5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 break 2
5095 fi
5096 done
5097 done
5098 IFS=$as_save_IFS
5099
5100 fi
5101 fi
5102 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5103 if test -n "$ac_ct_CXX"; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5105 $as_echo "$ac_ct_CXX" >&6; }
5106 else
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5109 fi
5110
5111
5112 test -n "$ac_ct_CXX" && break
5113 done
5114
5115 if test "x$ac_ct_CXX" = x; then
5116 CXX="g++"
5117 else
5118 case $cross_compiling:$ac_tool_warned in
5119 yes:)
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5122 ac_tool_warned=yes ;;
5123 esac
5124 CXX=$ac_ct_CXX
5125 fi
5126 fi
5127
5128 fi
5129 fi
5130 # Provide some information about the compiler.
5131 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5132 set X $ac_compile
5133 ac_compiler=$2
5134 for ac_option in --version -v -V -qversion; do
5135 { { ac_try="$ac_compiler $ac_option >&5"
5136 case "(($ac_try" in
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5139 esac
5140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5141 $as_echo "$ac_try_echo"; } >&5
5142 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5143 ac_status=$?
5144 if test -s conftest.err; then
5145 sed '10a\
5146 ... rest of stderr output deleted ...
5147 10q' conftest.err >conftest.er1
5148 cat conftest.er1 >&5
5149 fi
5150 rm -f conftest.er1 conftest.err
5151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5152 test $ac_status = 0; }
5153 done
5154
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5156 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5157 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162
5163 int
5164 main ()
5165 {
5166 #ifndef __GNUC__
5167 choke me
5168 #endif
5169
5170 ;
5171 return 0;
5172 }
5173 _ACEOF
5174 if ac_fn_cxx_try_compile "$LINENO"; then :
5175 ac_compiler_gnu=yes
5176 else
5177 ac_compiler_gnu=no
5178 fi
5179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5181
5182 fi
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5184 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5185 if test $ac_compiler_gnu = yes; then
5186 GXX=yes
5187 else
5188 GXX=
5189 fi
5190 ac_test_CXXFLAGS=${CXXFLAGS+set}
5191 ac_save_CXXFLAGS=$CXXFLAGS
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5193 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5194 if ${ac_cv_prog_cxx_g+:} false; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5198 ac_cxx_werror_flag=yes
5199 ac_cv_prog_cxx_g=no
5200 CXXFLAGS="-g"
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5203
5204 int
5205 main ()
5206 {
5207
5208 ;
5209 return 0;
5210 }
5211 _ACEOF
5212 if ac_fn_cxx_try_compile "$LINENO"; then :
5213 ac_cv_prog_cxx_g=yes
5214 else
5215 CXXFLAGS=""
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h. */
5218
5219 int
5220 main ()
5221 {
5222
5223 ;
5224 return 0;
5225 }
5226 _ACEOF
5227 if ac_fn_cxx_try_compile "$LINENO"; then :
5228
5229 else
5230 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5231 CXXFLAGS="-g"
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5234
5235 int
5236 main ()
5237 {
5238
5239 ;
5240 return 0;
5241 }
5242 _ACEOF
5243 if ac_fn_cxx_try_compile "$LINENO"; then :
5244 ac_cv_prog_cxx_g=yes
5245 fi
5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247 fi
5248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5249 fi
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5252 fi
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5254 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5255 if test "$ac_test_CXXFLAGS" = set; then
5256 CXXFLAGS=$ac_save_CXXFLAGS
5257 elif test $ac_cv_prog_cxx_g = yes; then
5258 if test "$GXX" = yes; then
5259 CXXFLAGS="-g -O2"
5260 else
5261 CXXFLAGS="-g"
5262 fi
5263 else
5264 if test "$GXX" = yes; then
5265 CXXFLAGS="-O2"
5266 else
5267 CXXFLAGS=
5268 fi
5269 fi
5270 ac_ext=c
5271 ac_cpp='$CPP $CPPFLAGS'
5272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5275
5276
5277 # We must set the default linker to the linker used by gcc for the correct
5278 # operation of libtool. If LD is not defined and we are using gcc, try to
5279 # set the LD default to the ld used by gcc.
5280 if test -z "$LD"; then
5281 if test "$GCC" = yes; then
5282 case $build in
5283 *-*-mingw*)
5284 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5285 *)
5286 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5287 esac
5288 case $gcc_prog_ld in
5289 # Accept absolute paths.
5290 [\\/]* | [A-Za-z]:[\\/]*)
5291 LD="$gcc_prog_ld" ;;
5292 esac
5293 fi
5294 fi
5295
5296 # Check whether -static-libstdc++ -static-libgcc is supported.
5297 have_static_libs=no
5298 if test "$GCC" = yes; then
5299 saved_LDFLAGS="$LDFLAGS"
5300
5301 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5303 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5304 ac_ext=cpp
5305 ac_cpp='$CXXCPP $CPPFLAGS'
5306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5309
5310
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5313
5314 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5315 #error -static-libstdc++ not implemented
5316 #endif
5317 int main() {}
5318 _ACEOF
5319 if ac_fn_cxx_try_link "$LINENO"; then :
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5321 $as_echo "yes" >&6; }; have_static_libs=yes
5322 else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5325 fi
5326 rm -f core conftest.err conftest.$ac_objext \
5327 conftest$ac_exeext conftest.$ac_ext
5328 ac_ext=c
5329 ac_cpp='$CPP $CPPFLAGS'
5330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5333
5334
5335 LDFLAGS="$saved_LDFLAGS"
5336 fi
5337
5338
5339
5340
5341 if test -n "$ac_tool_prefix"; then
5342 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5343 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if ${ac_cv_prog_GNATBIND+:} false; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 if test -n "$GNATBIND"; then
5350 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 break 2
5362 fi
5363 done
5364 done
5365 IFS=$as_save_IFS
5366
5367 fi
5368 fi
5369 GNATBIND=$ac_cv_prog_GNATBIND
5370 if test -n "$GNATBIND"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5372 $as_echo "$GNATBIND" >&6; }
5373 else
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376 fi
5377
5378
5379 fi
5380 if test -z "$ac_cv_prog_GNATBIND"; then
5381 ac_ct_GNATBIND=$GNATBIND
5382 # Extract the first word of "gnatbind", so it can be a program name with args.
5383 set dummy gnatbind; ac_word=$2
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385 $as_echo_n "checking for $ac_word... " >&6; }
5386 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 if test -n "$ac_ct_GNATBIND"; then
5390 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5391 else
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH
5394 do
5395 IFS=$as_save_IFS
5396 test -z "$as_dir" && as_dir=.
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5399 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 break 2
5402 fi
5403 done
5404 done
5405 IFS=$as_save_IFS
5406
5407 fi
5408 fi
5409 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5410 if test -n "$ac_ct_GNATBIND"; then
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5412 $as_echo "$ac_ct_GNATBIND" >&6; }
5413 else
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5416 fi
5417
5418 if test "x$ac_ct_GNATBIND" = x; then
5419 GNATBIND="no"
5420 else
5421 case $cross_compiling:$ac_tool_warned in
5422 yes:)
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5425 ac_tool_warned=yes ;;
5426 esac
5427 GNATBIND=$ac_ct_GNATBIND
5428 fi
5429 else
5430 GNATBIND="$ac_cv_prog_GNATBIND"
5431 fi
5432
5433 if test -n "$ac_tool_prefix"; then
5434 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5435 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if ${ac_cv_prog_GNATMAKE+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 if test -n "$GNATMAKE"; then
5442 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5446 do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5454 fi
5455 done
5456 done
5457 IFS=$as_save_IFS
5458
5459 fi
5460 fi
5461 GNATMAKE=$ac_cv_prog_GNATMAKE
5462 if test -n "$GNATMAKE"; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5464 $as_echo "$GNATMAKE" >&6; }
5465 else
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5468 fi
5469
5470
5471 fi
5472 if test -z "$ac_cv_prog_GNATMAKE"; then
5473 ac_ct_GNATMAKE=$GNATMAKE
5474 # Extract the first word of "gnatmake", so it can be a program name with args.
5475 set dummy gnatmake; ac_word=$2
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5477 $as_echo_n "checking for $ac_word... " >&6; }
5478 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 if test -n "$ac_ct_GNATMAKE"; then
5482 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5494 fi
5495 done
5496 done
5497 IFS=$as_save_IFS
5498
5499 fi
5500 fi
5501 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5502 if test -n "$ac_ct_GNATMAKE"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5504 $as_echo "$ac_ct_GNATMAKE" >&6; }
5505 else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5508 fi
5509
5510 if test "x$ac_ct_GNATMAKE" = x; then
5511 GNATMAKE="no"
5512 else
5513 case $cross_compiling:$ac_tool_warned in
5514 yes:)
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5517 ac_tool_warned=yes ;;
5518 esac
5519 GNATMAKE=$ac_ct_GNATMAKE
5520 fi
5521 else
5522 GNATMAKE="$ac_cv_prog_GNATMAKE"
5523 fi
5524
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5526 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5527 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 cat >conftest.adb <<EOF
5531 procedure conftest is begin null; end conftest;
5532 EOF
5533 acx_cv_cc_gcc_supports_ada=no
5534 # There is a bug in old released versions of GCC which causes the
5535 # driver to exit successfully when the appropriate language module
5536 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5537 # Therefore we must check for the error message as well as an
5538 # unsuccessful exit.
5539 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5540 # given a .adb file, but produce no object file. So we must check
5541 # if an object file was really produced to guard against this.
5542 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5543 if test x"$errors" = x && test -f conftest.$ac_objext; then
5544 acx_cv_cc_gcc_supports_ada=yes
5545 fi
5546 rm -f conftest.*
5547 fi
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5549 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5550
5551 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5552 have_gnat=yes
5553 else
5554 have_gnat=no
5555 fi
5556
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5558 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5559 if ${gcc_cv_prog_cmp_skip+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 echo abfoo >t1
5563 echo cdfoo >t2
5564 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5565 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5566 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5567 :
5568 else
5569 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5570 fi
5571 fi
5572 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5573 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5574 :
5575 else
5576 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5577 fi
5578 fi
5579 rm t1 t2
5580
5581 fi
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5583 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5584 do_compare="$gcc_cv_prog_cmp_skip"
5585
5586
5587
5588 # Check whether --enable-bootstrap was given.
5589 if test "${enable_bootstrap+set}" = set; then :
5590 enableval=$enable_bootstrap;
5591 else
5592 enable_bootstrap=default
5593 fi
5594
5595
5596 # Issue errors and warnings for invalid/strange bootstrap combinations.
5597 if test -r $srcdir/gcc/configure; then
5598 have_compiler=yes
5599 else
5600 have_compiler=no
5601 fi
5602
5603 case "$have_compiler:$host:$target:$enable_bootstrap" in
5604 *:*:*:no) ;;
5605
5606 # Default behavior. Enable bootstrap if we have a compiler
5607 # and we are in a native configuration.
5608 yes:$build:$build:default)
5609 enable_bootstrap=yes ;;
5610
5611 *:*:*:default)
5612 enable_bootstrap=no ;;
5613
5614 # We have a compiler and we are in a native configuration, bootstrap is ok
5615 yes:$build:$build:yes)
5616 ;;
5617
5618 # Other configurations, but we have a compiler. Assume the user knows
5619 # what he's doing.
5620 yes:*:*:yes)
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5622 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5623 ;;
5624
5625 # No compiler: if they passed --enable-bootstrap explicitly, fail
5626 no:*:*:yes)
5627 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5628
5629 # Fail if wrong command line
5630 *)
5631 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5632 ;;
5633 esac
5634
5635 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5636 # C++98 compiler can still start the bootstrap.
5637 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5638 CXX="$CXX -std=gnu++98"
5639 fi
5640
5641 # Check whether --enable-pgo-build was given.
5642 if test "${enable_pgo_build+set}" = set; then :
5643 enableval=$enable_pgo_build; enable_pgo_build=$enableval
5644 else
5645 enable_pgo_build=no
5646 fi
5647
5648
5649 # Issue errors and warnings for invalid/strange PGO build combinations.
5650 case "$have_compiler:$host:$target:$enable_pgo_build" in
5651 *:*:*:no) ;;
5652
5653 # Allow the PGO build only if we aren't building a compiler and
5654 # we are in a native configuration.
5655 no:$build:$build:yes | no:$build:$build:lto) ;;
5656
5657 # Disallow the PGO bootstrap if we are building a compiler.
5658 yes:*:*:yes | yes:*:*:lto)
5659 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
5660
5661 *)
5662 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
5663 ;;
5664 esac
5665
5666 if test "$enable_pgo_build" != "no"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
5668 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
5669 old_CFLAGS="$CFLAGS"
5670 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
5671 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
5672
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 int foo;
5676 _ACEOF
5677 if ac_fn_c_try_compile "$LINENO"; then :
5678
5679 else
5680 PGO_BUILD_GEN_CFLAGS=
5681 fi
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 CFLAGS="$old_CFLAGS"
5684 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5686 $as_echo "yes" >&6; }
5687 PGO_BUILD_USE_CFLAGS="-fprofile-use"
5688 else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5691 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
5692 fi
5693
5694 if test "$enable_pgo_build" = "lto"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
5696 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
5697 old_CFLAGS="$CFLAGS"
5698 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
5699 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5702 int foo;
5703 _ACEOF
5704 if ac_fn_c_try_compile "$LINENO"; then :
5705
5706 else
5707 PGO_BUILD_LTO_CFLAGS=
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 CFLAGS="$old_CFLAGS"
5711 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5713 $as_echo "yes" >&6; }
5714 else
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
5718 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
5719 fi
5720 fi
5721 fi
5722
5723
5724
5725
5726 # Used for setting $lt_cv_objdir
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5728 $as_echo_n "checking for objdir... " >&6; }
5729 if ${lt_cv_objdir+:} false; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 rm -f .libs 2>/dev/null
5733 mkdir .libs 2>/dev/null
5734 if test -d .libs; then
5735 lt_cv_objdir=.libs
5736 else
5737 # MS-DOS does not allow filenames that begin with a dot.
5738 lt_cv_objdir=_libs
5739 fi
5740 rmdir .libs 2>/dev/null
5741 fi
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5743 $as_echo "$lt_cv_objdir" >&6; }
5744 objdir=$lt_cv_objdir
5745
5746
5747
5748
5749
5750 cat >>confdefs.h <<_ACEOF
5751 #define LT_OBJDIR "$lt_cv_objdir/"
5752 _ACEOF
5753
5754
5755
5756 # Check for GMP, MPFR and MPC
5757 gmplibs="-lmpc -lmpfr -lgmp"
5758 gmpinc=
5759 have_gmp=no
5760
5761 # Specify a location for mpc
5762 # check for this first so it ends up on the link line before mpfr.
5763
5764 # Check whether --with-mpc was given.
5765 if test "${with_mpc+set}" = set; then :
5766 withval=$with_mpc;
5767 fi
5768
5769
5770 # Check whether --with-mpc-include was given.
5771 if test "${with_mpc_include+set}" = set; then :
5772 withval=$with_mpc_include;
5773 fi
5774
5775
5776 # Check whether --with-mpc-lib was given.
5777 if test "${with_mpc_lib+set}" = set; then :
5778 withval=$with_mpc_lib;
5779 fi
5780
5781
5782 if test "x$with_mpc" != x; then
5783 gmplibs="-L$with_mpc/lib $gmplibs"
5784 gmpinc="-I$with_mpc/include $gmpinc"
5785 fi
5786 if test "x$with_mpc_include" != x; then
5787 gmpinc="-I$with_mpc_include $gmpinc"
5788 fi
5789 if test "x$with_mpc_lib" != x; then
5790 gmplibs="-L$with_mpc_lib $gmplibs"
5791 fi
5792 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5793 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5794 gmpinc='-I$$s/mpc/src '"$gmpinc"
5795 # Do not test the mpc version. Assume that it is sufficient, since
5796 # it is in the source tree, and the library has not been built yet
5797 # but it would be included on the link line in the version check below
5798 # hence making the test fail.
5799 have_gmp=yes
5800 fi
5801
5802 # Specify a location for mpfr
5803 # check for this first so it ends up on the link line before gmp.
5804
5805 # Check whether --with-mpfr-dir was given.
5806 if test "${with_mpfr_dir+set}" = set; then :
5807 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5808 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5809 fi
5810
5811
5812
5813 # Check whether --with-mpfr was given.
5814 if test "${with_mpfr+set}" = set; then :
5815 withval=$with_mpfr;
5816 fi
5817
5818
5819 # Check whether --with-mpfr-include was given.
5820 if test "${with_mpfr_include+set}" = set; then :
5821 withval=$with_mpfr_include;
5822 fi
5823
5824
5825 # Check whether --with-mpfr-lib was given.
5826 if test "${with_mpfr_lib+set}" = set; then :
5827 withval=$with_mpfr_lib;
5828 fi
5829
5830
5831 if test "x$with_mpfr" != x; then
5832 gmplibs="-L$with_mpfr/lib $gmplibs"
5833 gmpinc="-I$with_mpfr/include $gmpinc"
5834 fi
5835 if test "x$with_mpfr_include" != x; then
5836 gmpinc="-I$with_mpfr_include $gmpinc"
5837 fi
5838 if test "x$with_mpfr_lib" != x; then
5839 gmplibs="-L$with_mpfr_lib $gmplibs"
5840 fi
5841 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5842 # MPFR v3.1.0 moved the sources into a src sub-directory.
5843 if ! test -d ${srcdir}/mpfr/src; then
5844 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5845 fi
5846 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5847 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5848 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5849 # Do not test the mpfr version. Assume that it is sufficient, since
5850 # it is in the source tree, and the library has not been built yet
5851 # but it would be included on the link line in the version check below
5852 # hence making the test fail.
5853 have_gmp=yes
5854 fi
5855
5856 # Specify a location for gmp
5857
5858 # Check whether --with-gmp-dir was given.
5859 if test "${with_gmp_dir+set}" = set; then :
5860 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5861 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5862 fi
5863
5864
5865
5866 # Check whether --with-gmp was given.
5867 if test "${with_gmp+set}" = set; then :
5868 withval=$with_gmp;
5869 fi
5870
5871
5872 # Check whether --with-gmp-include was given.
5873 if test "${with_gmp_include+set}" = set; then :
5874 withval=$with_gmp_include;
5875 fi
5876
5877
5878 # Check whether --with-gmp-lib was given.
5879 if test "${with_gmp_lib+set}" = set; then :
5880 withval=$with_gmp_lib;
5881 fi
5882
5883
5884
5885 if test "x$with_gmp" != x; then
5886 gmplibs="-L$with_gmp/lib $gmplibs"
5887 gmpinc="-I$with_gmp/include $gmpinc"
5888 fi
5889 if test "x$with_gmp_include" != x; then
5890 gmpinc="-I$with_gmp_include $gmpinc"
5891 fi
5892 if test "x$with_gmp_lib" != x; then
5893 gmplibs="-L$with_gmp_lib $gmplibs"
5894 fi
5895 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5896 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5897 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5898 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5899 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5900 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5901 # Do not test the gmp version. Assume that it is sufficient, since
5902 # it is in the source tree, and the library has not been built yet
5903 # but it would be included on the link line in the version check below
5904 # hence making the test fail.
5905 have_gmp=yes
5906 fi
5907
5908 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5909 have_gmp=yes
5910 saved_CFLAGS="$CFLAGS"
5911 CFLAGS="$CFLAGS $gmpinc"
5912 # Check for the recommended and required versions of GMP.
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5914 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 #include "gmp.h"
5918 int
5919 main ()
5920 {
5921
5922 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5923 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5924 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5925 choke me
5926 #endif
5927
5928 ;
5929 return 0;
5930 }
5931 _ACEOF
5932 if ac_fn_c_try_compile "$LINENO"; then :
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5935 #include <gmp.h>
5936 int
5937 main ()
5938 {
5939
5940 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5941 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5942 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5943 choke me
5944 #endif
5945
5946 ;
5947 return 0;
5948 }
5949 _ACEOF
5950 if ac_fn_c_try_compile "$LINENO"; then :
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5952 $as_echo "yes" >&6; }
5953 else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5955 $as_echo "buggy but acceptable" >&6; }
5956 fi
5957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }; have_gmp=no
5961 fi
5962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963
5964 # If we have GMP, check the MPFR version.
5965 if test x"$have_gmp" = xyes; then
5966 # Check for the recommended and required versions of MPFR.
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5968 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5971 #include <gmp.h>
5972 #include <mpfr.h>
5973 int
5974 main ()
5975 {
5976
5977 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5978 choke me
5979 #endif
5980
5981 ;
5982 return 0;
5983 }
5984 _ACEOF
5985 if ac_fn_c_try_compile "$LINENO"; then :
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988 #include <gmp.h>
5989 #include <mpfr.h>
5990 int
5991 main ()
5992 {
5993
5994 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5995 choke me
5996 #endif
5997
5998 ;
5999 return 0;
6000 }
6001 _ACEOF
6002 if ac_fn_c_try_compile "$LINENO"; then :
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6004 $as_echo "yes" >&6; }
6005 else
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6007 $as_echo "buggy but acceptable" >&6; }
6008 fi
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 else
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 $as_echo "no" >&6; }; have_gmp=no
6013 fi
6014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 fi
6016
6017 # Check for the MPC header version.
6018 if test x"$have_gmp" = xyes ; then
6019 # Check for the recommended and required versions of MPC.
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
6021 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6024 #include <mpc.h>
6025 int
6026 main ()
6027 {
6028
6029 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
6030 choke me
6031 #endif
6032
6033 ;
6034 return 0;
6035 }
6036 _ACEOF
6037 if ac_fn_c_try_compile "$LINENO"; then :
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6040 #include <mpc.h>
6041 int
6042 main ()
6043 {
6044
6045 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
6046 choke me
6047 #endif
6048
6049 ;
6050 return 0;
6051 }
6052 _ACEOF
6053 if ac_fn_c_try_compile "$LINENO"; then :
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6055 $as_echo "yes" >&6; }
6056 else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6058 $as_echo "buggy but acceptable" >&6; }
6059 fi
6060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061 else
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }; have_gmp=no
6064 fi
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 fi
6067
6068 # Now check the MPFR library.
6069 if test x"$have_gmp" = xyes; then
6070 saved_LIBS="$LIBS"
6071 LIBS="$LIBS $gmplibs"
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
6073 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076 #include <mpc.h>
6077 int
6078 main ()
6079 {
6080
6081 mpfr_t n;
6082 mpfr_t x;
6083 mpc_t c;
6084 int t;
6085 mpfr_init (n);
6086 mpfr_init (x);
6087 mpfr_atan2 (n, n, x, GMP_RNDN);
6088 mpfr_erfc (n, x, GMP_RNDN);
6089 mpfr_subnormalize (x, t, GMP_RNDN);
6090 mpfr_clear(n);
6091 mpfr_clear(x);
6092 mpc_init2 (c, 53);
6093 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
6094 mpc_cosh (c, c, MPC_RNDNN);
6095 mpc_pow (c, c, c, MPC_RNDNN);
6096 mpc_acosh (c, c, MPC_RNDNN);
6097 mpc_clear (c);
6098
6099 ;
6100 return 0;
6101 }
6102 _ACEOF
6103 if ac_fn_c_try_link "$LINENO"; then :
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6105 $as_echo "yes" >&6; }
6106 else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }; have_gmp=no
6109 fi
6110 rm -f core conftest.err conftest.$ac_objext \
6111 conftest$ac_exeext conftest.$ac_ext
6112 LIBS="$saved_LIBS"
6113 fi
6114
6115 CFLAGS="$saved_CFLAGS"
6116
6117 # The library versions listed in the error message below should match
6118 # the HARD-minimums enforced above.
6119 if test x$have_gmp != xyes; then
6120 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
6121 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
6122 their locations. Source code for these libraries can be found at
6123 their respective hosting sites as well as at
6124 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
6125 http://gcc.gnu.org/install/prerequisites.html for additional info. If
6126 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
6127 make sure that you have installed both the libraries and the header
6128 files. They may be located in separate packages." "$LINENO" 5
6129 fi
6130 fi
6131
6132 # Flags needed for both GMP, MPFR and/or MPC.
6133
6134
6135
6136
6137
6138
6139
6140 # Libraries to use for stage1 or when not bootstrapping.
6141
6142 # Check whether --with-stage1-libs was given.
6143 if test "${with_stage1_libs+set}" = set; then :
6144 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6145 stage1_libs=
6146 else
6147 stage1_libs=$withval
6148 fi
6149 else
6150 stage1_libs=
6151 fi
6152
6153
6154
6155 # Whether or not to use -static-libstdc++ and -static-libgcc. The
6156 # default is yes if gcc is being built; no otherwise. The reason for
6157 # this default is that gdb is sometimes linked against GNU Source
6158 # Highlight, which is a shared library that uses C++ exceptions. In
6159 # this case, -static-libstdc++ will cause crashes.
6160
6161 # Check whether --with-static-standard-libraries was given.
6162 if test "${with_static_standard_libraries+set}" = set; then :
6163 withval=$with_static_standard_libraries;
6164 else
6165 with_static_standard_libraries=auto
6166 fi
6167
6168 if test "$with_static_standard_libraries" = auto; then
6169 with_static_standard_libraries=$have_compiler
6170 fi
6171
6172 # Linker flags to use for stage1 or when not bootstrapping.
6173
6174 # Check whether --with-stage1-ldflags was given.
6175 if test "${with_stage1_ldflags+set}" = set; then :
6176 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6177 stage1_ldflags=
6178 else
6179 stage1_ldflags=$withval
6180 fi
6181 else
6182 stage1_ldflags=
6183 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
6184 # if supported. But if the user explicitly specified the libraries to use,
6185 # trust that they are doing what they want.
6186 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
6187 -a "$have_static_libs" = yes; then
6188 stage1_ldflags="-static-libstdc++ -static-libgcc"
6189 fi
6190 fi
6191
6192
6193
6194 # Libraries to use for stage2 and later builds.
6195
6196 # Check whether --with-boot-libs was given.
6197 if test "${with_boot_libs+set}" = set; then :
6198 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6199 poststage1_libs=
6200 else
6201 poststage1_libs=$withval
6202 fi
6203 else
6204 poststage1_libs=
6205 fi
6206
6207
6208
6209 # Linker flags to use for stage2 and later builds.
6210
6211 # Check whether --with-boot-ldflags was given.
6212 if test "${with_boot_ldflags+set}" = set; then :
6213 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6214 poststage1_ldflags=
6215 else
6216 poststage1_ldflags=$withval
6217 fi
6218 else
6219 poststage1_ldflags=
6220 # In stages 2 and 3, default to linking libstdc++ and libgcc
6221 # statically. But if the user explicitly specified the libraries to
6222 # use, trust that they are doing what they want.
6223 if test "$poststage1_libs" = ""; then
6224 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6225 fi
6226 fi
6227
6228
6229
6230 # GCC GRAPHITE dependency isl.
6231 # Basic setup is inlined here, actual checks are in config/isl.m4
6232
6233
6234 # Check whether --with-isl was given.
6235 if test "${with_isl+set}" = set; then :
6236 withval=$with_isl;
6237 fi
6238
6239
6240 # Treat --without-isl as a request to disable
6241 # GRAPHITE support and skip all following checks.
6242 if test "x$with_isl" != "xno"; then
6243 # Check for isl
6244
6245
6246 # Check whether --with-isl-include was given.
6247 if test "${with_isl_include+set}" = set; then :
6248 withval=$with_isl_include;
6249 fi
6250
6251
6252 # Check whether --with-isl-lib was given.
6253 if test "${with_isl_lib+set}" = set; then :
6254 withval=$with_isl_lib;
6255 fi
6256
6257
6258 # Check whether --enable-isl-version-check was given.
6259 if test "${enable_isl_version_check+set}" = set; then :
6260 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6261 else
6262 ENABLE_ISL_CHECK=yes
6263 fi
6264
6265
6266 # Initialize isllibs and islinc.
6267 case $with_isl in
6268 no)
6269 isllibs=
6270 islinc=
6271 ;;
6272 "" | yes)
6273 ;;
6274 *)
6275 isllibs="-L$with_isl/lib"
6276 islinc="-I$with_isl/include"
6277 ;;
6278 esac
6279 if test "x${with_isl_include}" != x ; then
6280 islinc="-I$with_isl_include"
6281 fi
6282 if test "x${with_isl_lib}" != x; then
6283 isllibs="-L$with_isl_lib"
6284 fi
6285 if test "x${islinc}" = x && test "x${isllibs}" = x \
6286 && test -d ${srcdir}/isl; then
6287 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6288 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6289 ENABLE_ISL_CHECK=no
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6291 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6292 fi
6293
6294 isllibs="${isllibs} -lisl"
6295
6296
6297
6298 if test "${ENABLE_ISL_CHECK}" = yes ; then
6299 _isl_saved_CFLAGS=$CFLAGS
6300 _isl_saved_LDFLAGS=$LDFLAGS
6301 _isl_saved_LIBS=$LIBS
6302
6303 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6304 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6305 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6306
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6308 $as_echo_n "checking for isl 0.15 or later... " >&6; }
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6311 #include <isl/schedule.h>
6312 int
6313 main ()
6314 {
6315 isl_options_set_schedule_serialize_sccs (NULL, 0);
6316 ;
6317 return 0;
6318 }
6319 _ACEOF
6320 if ac_fn_c_try_link "$LINENO"; then :
6321 gcc_cv_isl=yes
6322 else
6323 gcc_cv_isl=no
6324 fi
6325 rm -f core conftest.err conftest.$ac_objext \
6326 conftest$ac_exeext conftest.$ac_ext
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6328 $as_echo "$gcc_cv_isl" >&6; }
6329
6330 if test "${gcc_cv_isl}" = no ; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6332 $as_echo "required isl version is 0.15 or later" >&6; }
6333 fi
6334
6335 CFLAGS=$_isl_saved_CFLAGS
6336 LDFLAGS=$_isl_saved_LDFLAGS
6337 LIBS=$_isl_saved_LIBS
6338 fi
6339
6340
6341
6342
6343
6344
6345 if test "x${with_isl}" = xno; then
6346 graphite_requested=no
6347 elif test "x${with_isl}" != x \
6348 || test "x${with_isl_include}" != x \
6349 || test "x${with_isl_lib}" != x ; then
6350 graphite_requested=yes
6351 else
6352 graphite_requested=no
6353 fi
6354
6355
6356
6357 if test "${gcc_cv_isl}" = no ; then
6358 isllibs=
6359 islinc=
6360 fi
6361
6362 if test "${graphite_requested}" = yes \
6363 && test "x${isllibs}" = x \
6364 && test "x${islinc}" = x ; then
6365
6366 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6367 fi
6368
6369
6370 fi
6371
6372 # If the isl check failed, disable builds of in-tree variant of isl
6373 if test "x$with_isl" = xno ||
6374 test "x$gcc_cv_isl" = xno; then
6375 noconfigdirs="$noconfigdirs isl"
6376 islinc=
6377 fi
6378
6379
6380
6381
6382 # Check for LTO support.
6383 # Check whether --enable-lto was given.
6384 if test "${enable_lto+set}" = set; then :
6385 enableval=$enable_lto; enable_lto=$enableval
6386 else
6387 enable_lto=yes; default_enable_lto=yes
6388 fi
6389
6390
6391
6392
6393
6394 target_elf=no
6395 case $target in
6396 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6397 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6398 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6399 nvptx-*-none)
6400 target_elf=no
6401 ;;
6402 *)
6403 target_elf=yes
6404 ;;
6405 esac
6406
6407 if test $target_elf = yes; then :
6408 # ELF platforms build the lto-plugin always.
6409 build_lto_plugin=yes
6410
6411 else
6412 if test x"$default_enable_lto" = x"yes" ; then
6413 case $target in
6414 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6415 # On other non-ELF platforms, LTO has yet to be validated.
6416 *) enable_lto=no ;;
6417 esac
6418 else
6419 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6420 # It would also be nice to check the binutils support, but we don't
6421 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6422 # warn during gcc/ subconfigure; unless you're bootstrapping with
6423 # -flto it won't be needed until after installation anyway.
6424 case $target in
6425 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6426 *) if test x"$enable_lto" = x"yes"; then
6427 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6428 fi
6429 ;;
6430 esac
6431 fi
6432 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6433 # Build it unless LTO was explicitly disabled.
6434 case $target in
6435 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6436 *) ;;
6437 esac
6438
6439 fi
6440
6441
6442 # Check whether --enable-linker-plugin-configure-flags was given.
6443 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6444 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6445 else
6446 extra_linker_plugin_configure_flags=
6447 fi
6448
6449
6450 # Check whether --enable-linker-plugin-flags was given.
6451 if test "${enable_linker_plugin_flags+set}" = set; then :
6452 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6453 else
6454 extra_linker_plugin_flags=
6455 fi
6456
6457
6458
6459 # Enable --enable-host-shared.
6460 # Checked early to determine whether jit is an 'all' language
6461 # Check whether --enable-host-shared was given.
6462 if test "${enable_host_shared+set}" = set; then :
6463 enableval=$enable_host_shared; host_shared=$enableval
6464 else
6465 host_shared=no
6466 fi
6467
6468
6469
6470 # By default, C and C++ are the only stage 1 languages.
6471 stage1_languages=,c,
6472
6473 # Target libraries that we bootstrap.
6474 bootstrap_target_libs=,target-libgcc,
6475
6476 # Figure out what language subdirectories are present.
6477 # Look if the user specified --enable-languages="..."; if not, use
6478 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6479 # go away some day.
6480 # NB: embedded tabs in this IF block -- do not untabify
6481 if test -d ${srcdir}/gcc; then
6482 if test x"${enable_languages+set}" != xset; then
6483 if test x"${LANGUAGES+set}" = xset; then
6484 enable_languages="${LANGUAGES}"
6485 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6486 else
6487 enable_languages=default
6488 fi
6489 else
6490 if test x"${enable_languages}" = x ||
6491 test x"${enable_languages}" = xyes;
6492 then
6493 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6494 exit 1
6495 fi
6496 fi
6497 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6498
6499 # 'f95' is the old name for the 'fortran' language. We issue a warning
6500 # and make the substitution.
6501 case ,${enable_languages}, in
6502 *,f95,*)
6503 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6504 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6505 ;;
6506 esac
6507
6508 # If bootstrapping, C++ must be enabled.
6509 case ",$enable_languages,:$enable_bootstrap" in
6510 *,c++,*:*) ;;
6511 *:yes)
6512 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6513 enable_languages="${enable_languages},c++"
6514 else
6515 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6516 fi
6517 ;;
6518 esac
6519
6520 # First scan to see if an enabled language requires some other language.
6521 # We assume that a given config-lang.in will list all the language
6522 # front ends it requires, even if some are required indirectly.
6523 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6524 case ${lang_frag} in
6525 ..) ;;
6526 # The odd quoting in the next line works around
6527 # an apparent bug in bash 1.12 on linux.
6528 ${srcdir}/gcc/[*]/config-lang.in) ;;
6529 *)
6530 # From the config-lang.in, get $language, $lang_requires, and
6531 # $lang_requires_boot_languages.
6532 language=
6533 lang_requires=
6534 lang_requires_boot_languages=
6535 # set srcdir during sourcing lang_frag to the gcc dir.
6536 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6537 # polutes this shell
6538 saved_srcdir=${srcdir}
6539 srcdir=${srcdir}/gcc . ${lang_frag}
6540 srcdir=${saved_srcdir}
6541 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6542 case ,${enable_languages}, in
6543 *,$other,*) ;;
6544 *,default,*) ;;
6545 *,all,*) ;;
6546 *,$language,*)
6547 echo " \`$other' language required by \`$language'; enabling" 1>&2
6548 enable_languages="${enable_languages},${other}"
6549 ;;
6550 esac
6551 done
6552 for other in ${lang_requires_boot_languages} ; do
6553 if test "$other" != "c"; then
6554 case ,${enable_stage1_languages}, in
6555 *,$other,*) ;;
6556 *,default,*) ;;
6557 *,all,*) ;;
6558 *)
6559 case ,${enable_languages}, in
6560 *,$language,*)
6561 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6562 enable_stage1_languages="$enable_stage1_languages,${other}"
6563 ;;
6564 esac
6565 ;;
6566 esac
6567 fi
6568 done
6569 ;;
6570 esac
6571 done
6572
6573 new_enable_languages=,c,
6574
6575 # If LTO is enabled, add the LTO front end.
6576 if test "$enable_lto" = "yes" ; then
6577 case ,${enable_languages}, in
6578 *,lto,*) ;;
6579 *) enable_languages="${enable_languages},lto" ;;
6580 esac
6581 if test "${build_lto_plugin}" = "yes" ; then
6582 configdirs="$configdirs lto-plugin"
6583 fi
6584 fi
6585
6586 # If we're building an offloading compiler, add the LTO front end.
6587 if test x"$enable_as_accelerator_for" != x ; then
6588 case ,${enable_languages}, in
6589 *,lto,*) ;;
6590 *) enable_languages="${enable_languages},lto" ;;
6591 esac
6592 fi
6593
6594 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6595 potential_languages=,c,
6596
6597 enabled_target_libs=
6598 disabled_target_libs=
6599
6600 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6601 case ${lang_frag} in
6602 ..) ;;
6603 # The odd quoting in the next line works around
6604 # an apparent bug in bash 1.12 on linux.
6605 ${srcdir}/gcc/[*]/config-lang.in) ;;
6606 *)
6607 # From the config-lang.in, get $language, $target_libs,
6608 # $lang_dirs, $boot_language, and $build_by_default
6609 language=
6610 target_libs=
6611 lang_dirs=
6612 subdir_requires=
6613 boot_language=no
6614 build_by_default=yes
6615 # set srcdir during sourcing. See above about save & restore
6616 saved_srcdir=${srcdir}
6617 srcdir=${srcdir}/gcc . ${lang_frag}
6618 srcdir=${saved_srcdir}
6619 if test x${language} = x; then
6620 echo "${lang_frag} doesn't set \$language." 1>&2
6621 exit 1
6622 fi
6623
6624 if test "$language" = "c++"; then
6625 boot_language=yes
6626 fi
6627
6628 add_this_lang=no
6629 # C is always enabled, so no need to add it again
6630 if test "$language" != "c"; then
6631 case ,${enable_languages}, in
6632 *,${language},*)
6633 # Language was explicitly selected; include it
6634 add_this_lang=yes
6635 ;;
6636 *,all,*)
6637 # All languages are enabled
6638 add_this_lang=all
6639 ;;
6640 *,default,*)
6641 # 'default' was selected, select it if it is a default language
6642 add_this_lang=${build_by_default}
6643 ;;
6644 esac
6645 fi
6646
6647 # Disable languages that need other directories if these aren't available.
6648 for i in $subdir_requires; do
6649 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6650 case ${add_this_lang} in
6651 yes)
6652 # Specifically requested language; tell them.
6653 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6654 ;;
6655 all)
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6657 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6658 add_this_lang=unsupported
6659 ;;
6660 *)
6661 # Silently disable.
6662 add_this_lang=unsupported
6663 ;;
6664 esac
6665 done
6666
6667 # Disable Ada if no preexisting GNAT is available.
6668 case ${add_this_lang}:${language}:${have_gnat} in
6669 yes:ada:no)
6670 # Specifically requested language; tell them.
6671 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6672 ;;
6673 all:ada:no)
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6675 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6676 add_this_lang=unsupported
6677 ;;
6678 *:ada:no)
6679 # Silently disable.
6680 add_this_lang=unsupported
6681 ;;
6682 esac
6683
6684 # Disable jit if -enable-host-shared not specified
6685 case ${add_this_lang}:${language}:${host_shared} in
6686 yes:jit:no)
6687 # PR jit/64780: explicitly specify --enable-host-shared
6688 as_fn_error $? "
6689 Enabling language \"jit\" requires --enable-host-shared.
6690
6691 --enable-host-shared typically slows the rest of the compiler down by
6692 a few %, so you must explicitly enable it.
6693
6694 If you want to build both the jit and the regular compiler, it is often
6695 best to do this via two separate configure/builds, in separate
6696 directories, to avoid imposing the performance cost of
6697 --enable-host-shared on the regular compiler." "$LINENO" 5
6698 ;;
6699 all:jit:no)
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6701 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6702 add_this_lang=unsupported
6703 ;;
6704 *:jit:no)
6705 # Silently disable.
6706 add_this_lang=unsupported
6707 ;;
6708 esac
6709
6710 # Disable a language that is unsupported by the target.
6711 case "${add_this_lang}: $unsupported_languages " in
6712 no:*) ;;
6713 unsupported:*) ;;
6714 *:*" $language "*)
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6716 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6717 add_this_lang=unsupported
6718 ;;
6719 esac
6720
6721 case $add_this_lang in
6722 unsupported)
6723 # Remove language-dependent dirs.
6724 disabled_target_libs="$disabled_target_libs $target_libs"
6725 noconfigdirs="$noconfigdirs $lang_dirs"
6726 ;;
6727 no)
6728 # Remove language-dependent dirs; still show language as supported.
6729 disabled_target_libs="$disabled_target_libs $target_libs"
6730 noconfigdirs="$noconfigdirs $lang_dirs"
6731 potential_languages="${potential_languages}${language},"
6732 ;;
6733 all|yes)
6734 new_enable_languages="${new_enable_languages}${language},"
6735 potential_languages="${potential_languages}${language},"
6736 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6737 enabled_target_libs="$enabled_target_libs $target_libs"
6738 case "${boot_language}:,$enable_stage1_languages," in
6739 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6740 # Add to (comma-separated) list of stage 1 languages.
6741 case ",$stage1_languages," in
6742 *,$language,* | ,yes, | ,all,) ;;
6743 *) stage1_languages="${stage1_languages}${language}," ;;
6744 esac
6745 # We need to bootstrap any supporting libraries.
6746 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6747 ;;
6748 esac
6749 ;;
6750 esac
6751 ;;
6752 esac
6753 done
6754
6755 # Add target libraries which are only needed for disabled languages
6756 # to noconfigdirs.
6757 if test -n "$disabled_target_libs"; then
6758 for dir in $disabled_target_libs; do
6759 case " $enabled_target_libs " in
6760 *" ${dir} "*) ;;
6761 *) noconfigdirs="$noconfigdirs $dir" ;;
6762 esac
6763 done
6764 fi
6765
6766 # Check whether --enable-stage1-languages was given.
6767 if test "${enable_stage1_languages+set}" = set; then :
6768 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6769 ,no,|,,)
6770 # Set it to something that will have no effect in the loop below
6771 enable_stage1_languages=c ;;
6772 ,yes,)
6773 enable_stage1_languages=`echo $new_enable_languages | \
6774 sed -e "s/^,//" -e "s/,$//" ` ;;
6775 *,all,*)
6776 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6777 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6778 esac
6779
6780 # Add "good" languages from enable_stage1_languages to stage1_languages,
6781 # while "bad" languages go in missing_languages. Leave no duplicates.
6782 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6783 case $potential_languages in
6784 *,$i,*)
6785 case $stage1_languages in
6786 *,$i,*) ;;
6787 *) stage1_languages="$stage1_languages$i," ;;
6788 esac ;;
6789 *)
6790 case $missing_languages in
6791 *,$i,*) ;;
6792 *) missing_languages="$missing_languages$i," ;;
6793 esac ;;
6794 esac
6795 done
6796 fi
6797
6798
6799 # Remove leading/trailing commas that were added for simplicity
6800 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6801 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6802 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6803 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6804
6805 if test "x$missing_languages" != x; then
6806 as_fn_error $? "
6807 The following requested languages could not be built: ${missing_languages}
6808 Supported languages are: ${potential_languages}" "$LINENO" 5
6809 fi
6810 if test "x$new_enable_languages" != "x$enable_languages"; then
6811 echo The following languages will be built: ${new_enable_languages}
6812 enable_languages="$new_enable_languages"
6813 fi
6814
6815
6816 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6817 fi
6818
6819 # Handle --disable-<component> generically.
6820 for dir in $configdirs $build_configdirs $target_configdirs ; do
6821 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6822 varname=`echo $dirname | sed -e s/+/_/g`
6823 if eval test x\${enable_${varname}} "=" xno ; then
6824 noconfigdirs="$noconfigdirs $dir"
6825 fi
6826 done
6827
6828 # Check for Boehm's garbage collector
6829 # Check whether --enable-objc-gc was given.
6830 if test "${enable_objc_gc+set}" = set; then :
6831 enableval=$enable_objc_gc;
6832 fi
6833
6834
6835 # Check whether --with-target-bdw-gc was given.
6836 if test "${with_target_bdw_gc+set}" = set; then :
6837 withval=$with_target_bdw_gc;
6838 fi
6839
6840
6841 # Check whether --with-target-bdw-gc-include was given.
6842 if test "${with_target_bdw_gc_include+set}" = set; then :
6843 withval=$with_target_bdw_gc_include;
6844 fi
6845
6846
6847 # Check whether --with-target-bdw-gc-lib was given.
6848 if test "${with_target_bdw_gc_lib+set}" = set; then :
6849 withval=$with_target_bdw_gc_lib;
6850 fi
6851
6852
6853 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6855 $as_echo_n "checking for bdw garbage collector... " >&6; }
6856 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6858 $as_echo "using bdw-gc in default locations" >&6; }
6859 else
6860 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6861 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6862 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6863 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6864 else
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6866 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6867 fi
6868 fi
6869 esac
6870
6871 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6872 case ,${enable_languages}, in
6873 *,c++,*)
6874 # Disable libitm, libsanitizer if we're not building libstdc++
6875 case "${noconfigdirs}" in
6876 *target-libstdc++-v3*)
6877 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6878 ;;
6879 *) ;;
6880 esac
6881 ;;
6882 *)
6883 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6884 ;;
6885 esac
6886
6887 # If gcc/ is not in the source tree then we'll not be building a
6888 # target compiler, assume in that case we don't want to build any
6889 # target libraries or tools.
6890 #
6891 # This was added primarily for the benefit for binutils-gdb who reuse
6892 # this configure script, but don't always have target tools available.
6893 if test ! -d ${srcdir}/gcc; then
6894 skipdirs="${skipdirs} ${target_configdirs}"
6895 fi
6896
6897 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6898 # $build_configdirs and $target_configdirs.
6899 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6900
6901 notsupp=""
6902 for dir in . $skipdirs $noconfigdirs ; do
6903 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6904 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6905 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6906 if test -r $srcdir/$dirname/configure ; then
6907 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6908 true
6909 else
6910 notsupp="$notsupp $dir"
6911 fi
6912 fi
6913 fi
6914 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6915 build_configdirs=`echo " ${build_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 " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6925 target_configdirs=`echo " ${target_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 done
6935
6936 # Quietly strip out all directories which aren't configurable in this tree.
6937 # This relies on all configurable subdirectories being autoconfiscated, which
6938 # is now the case.
6939 build_configdirs_all="$build_configdirs"
6940 build_configdirs=
6941 for i in ${build_configdirs_all} ; do
6942 j=`echo $i | sed -e s/build-//g`
6943 if test -f ${srcdir}/$j/configure ; then
6944 build_configdirs="${build_configdirs} $i"
6945 fi
6946 done
6947
6948 configdirs_all="$configdirs"
6949 configdirs=
6950 for i in ${configdirs_all} ; do
6951 if test -f ${srcdir}/$i/configure ; then
6952 configdirs="${configdirs} $i"
6953 fi
6954 done
6955
6956 target_configdirs_all="$target_configdirs"
6957 target_configdirs=
6958 for i in ${target_configdirs_all} ; do
6959 j=`echo $i | sed -e s/target-//g`
6960 if test -f ${srcdir}/$j/configure ; then
6961 target_configdirs="${target_configdirs} $i"
6962 fi
6963 done
6964
6965 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6966 # so we have to add it after the preceding checks.
6967 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6968 then
6969 case " $configdirs " in
6970 *" libiberty "*)
6971 # If we can build libiberty, we can also build libiberty-linker-plugin.
6972 configdirs="$configdirs libiberty-linker-plugin"
6973 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6974 --with-libiberty=../libiberty-linker-plugin";;
6975 *)
6976 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6977 esac
6978 fi
6979
6980 # Sometimes we have special requirements for the host libiberty.
6981 extra_host_libiberty_configure_flags=
6982 case " $configdirs " in
6983 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
6984 # When these are to be built as shared libraries, the same applies to
6985 # libiberty.
6986 extra_host_libiberty_configure_flags=--enable-shared
6987 ;;
6988 esac
6989
6990
6991 # Sometimes we have special requirements for the host zlib.
6992 extra_host_zlib_configure_flags=
6993 case " $configdirs " in
6994 *" bfd "*)
6995 # When bfd is to be built as a shared library, the same applies to
6996 # zlib.
6997 if test "$enable_shared" = "yes"; then
6998 extra_host_zlib_configure_flags=--enable-host-shared
6999 fi
7000 ;;
7001 esac
7002
7003
7004 # Produce a warning message for the subdirs we can't configure.
7005 # This isn't especially interesting in the Cygnus tree, but in the individual
7006 # FSF releases, it's important to let people know when their machine isn't
7007 # supported by the one or two programs in a package.
7008
7009 if test -n "${notsupp}" && test -z "${norecursion}" ; then
7010 # If $appdirs is non-empty, at least one of those directories must still
7011 # be configured, or we error out. (E.g., if the gas release supports a
7012 # specified target in some subdirs but not the gas subdir, we shouldn't
7013 # pretend that all is well.)
7014 if test -n "$appdirs" ; then
7015 for dir in $appdirs ; do
7016 if test -r $dir/Makefile.in ; then
7017 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7018 appdirs=""
7019 break
7020 fi
7021 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
7022 appdirs=""
7023 break
7024 fi
7025 fi
7026 done
7027 if test -n "$appdirs" ; then
7028 echo "*** This configuration is not supported by this package." 1>&2
7029 exit 1
7030 fi
7031 fi
7032 # Okay, some application will build, or we don't care to check. Still
7033 # notify of subdirs not getting built.
7034 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7035 echo " ${notsupp}" 1>&2
7036 echo " (Any other directories should still work fine.)" 1>&2
7037 fi
7038
7039 case "$host" in
7040 *msdosdjgpp*)
7041 enable_gdbtk=no ;;
7042 esac
7043
7044 # To find our prefix, in gcc_cv_tool_prefix.
7045
7046 # The user is always right.
7047 if test "${PATH_SEPARATOR+set}" != set; then
7048 echo "#! /bin/sh" >conf$$.sh
7049 echo "exit 0" >>conf$$.sh
7050 chmod +x conf$$.sh
7051 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7052 PATH_SEPARATOR=';'
7053 else
7054 PATH_SEPARATOR=:
7055 fi
7056 rm -f conf$$.sh
7057 fi
7058
7059
7060 get_gcc_base_ver="cat"
7061
7062 # Check whether --with-gcc-major-version-only was given.
7063 if test "${with_gcc_major_version_only+set}" = set; then :
7064 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
7065 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
7066 fi
7067
7068 fi
7069
7070
7071
7072
7073
7074
7075 if test "x$exec_prefix" = xNONE; then
7076 if test "x$prefix" = xNONE; then
7077 gcc_cv_tool_prefix=$ac_default_prefix
7078 else
7079 gcc_cv_tool_prefix=$prefix
7080 fi
7081 else
7082 gcc_cv_tool_prefix=$exec_prefix
7083 fi
7084
7085 # If there is no compiler in the tree, use the PATH only. In any
7086 # case, if there is no compiler in the tree nobody should use
7087 # AS_FOR_TARGET and LD_FOR_TARGET.
7088 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7089 if test x$with_gcc_major_version_only = xyes ; then
7090 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
7091 else
7092 gcc_version=`cat $srcdir/gcc/BASE-VER`
7093 fi
7094 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7095 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7096 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7097 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7098 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7099 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7100 else
7101 gcc_cv_tool_dirs=
7102 fi
7103
7104 if test x$build = x$target && test -n "$md_exec_prefix"; then
7105 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7106 fi
7107
7108
7109
7110 copy_dirs=
7111
7112
7113 # Check whether --with-build-sysroot was given.
7114 if test "${with_build_sysroot+set}" = set; then :
7115 withval=$with_build_sysroot; if test x"$withval" != x ; then
7116 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7117 fi
7118 else
7119 SYSROOT_CFLAGS_FOR_TARGET=
7120 fi
7121
7122
7123
7124
7125 # Check whether --with-debug-prefix-map was given.
7126 if test "${with_debug_prefix_map+set}" = set; then :
7127 withval=$with_debug_prefix_map; if test x"$withval" != x; then
7128 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7129 for debug_map in $withval; do
7130 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7131 done
7132 fi
7133 else
7134 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7135 fi
7136
7137
7138
7139 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7140 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7141 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7142 # We want to ensure that TARGET libraries (which we know are built with
7143 # gcc) are built with "-O2 -g", so include those options when setting
7144 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7145 if test "x$CFLAGS_FOR_TARGET" = x; then
7146 if test "x${is_cross_compiler}" = xyes; then
7147 CFLAGS_FOR_TARGET="-g -O2"
7148 else
7149 CFLAGS_FOR_TARGET=$CFLAGS
7150 case " $CFLAGS " in
7151 *" -O2 "*) ;;
7152 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7153 esac
7154 case " $CFLAGS " in
7155 *" -g "* | *" -g3 "*) ;;
7156 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7157 esac
7158 fi
7159 fi
7160
7161
7162 if test "x$CXXFLAGS_FOR_TARGET" = x; then
7163 if test "x${is_cross_compiler}" = xyes; then
7164 CXXFLAGS_FOR_TARGET="-g -O2"
7165 else
7166 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7167 case " $CXXFLAGS " in
7168 *" -O2 "*) ;;
7169 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7170 esac
7171 case " $CXXFLAGS " in
7172 *" -g "* | *" -g3 "*) ;;
7173 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7174 esac
7175 fi
7176 fi
7177
7178
7179
7180
7181 # Handle --with-headers=XXX. If the value is not "yes", the contents of
7182 # the named directory are copied to $(tooldir)/sys-include.
7183 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7184 if test x${is_cross_compiler} = xno ; then
7185 echo 1>&2 '***' --with-headers is only supported when cross compiling
7186 exit 1
7187 fi
7188 if test x"${with_headers}" != xyes ; then
7189 x=${gcc_cv_tool_prefix}
7190 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
7191 fi
7192 fi
7193
7194 # Handle --with-libs=XXX. If the value is not "yes", the contents of
7195 # the name directories are copied to $(tooldir)/lib. Multiple directories
7196 # are permitted.
7197 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7198 if test x${is_cross_compiler} = xno ; then
7199 echo 1>&2 '***' --with-libs is only supported when cross compiling
7200 exit 1
7201 fi
7202 if test x"${with_libs}" != xyes ; then
7203 # Copy the libraries in reverse order, so that files in the first named
7204 # library override files in subsequent libraries.
7205 x=${gcc_cv_tool_prefix}
7206 for l in ${with_libs}; do
7207 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7208 done
7209 fi
7210 fi
7211
7212 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7213 #
7214 # This is done by determining whether or not the appropriate directory
7215 # is available, and by checking whether or not specific configurations
7216 # have requested that this magic not happen.
7217 #
7218 # The command line options always override the explicit settings in
7219 # configure.ac, and the settings in configure.ac override this magic.
7220 #
7221 # If the default for a toolchain is to use GNU as and ld, and you don't
7222 # want to do that, then you should use the --without-gnu-as and
7223 # --without-gnu-ld options for the configure script. Similarly, if
7224 # the default is to use the included zlib and you don't want to do that,
7225 # you should use the --with-system-zlib option for the configure script.
7226
7227 if test x${use_gnu_as} = x &&
7228 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7229 with_gnu_as=yes
7230 extra_host_args="$extra_host_args --with-gnu-as"
7231 fi
7232
7233 if test x${use_gnu_ld} = x &&
7234 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7235 with_gnu_ld=yes
7236 extra_host_args="$extra_host_args --with-gnu-ld"
7237 fi
7238
7239 if test x${use_included_zlib} = x &&
7240 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7241 :
7242 else
7243 with_system_zlib=yes
7244 extra_host_args="$extra_host_args --with-system-zlib"
7245 fi
7246
7247 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7248 # can detect this case.
7249
7250 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7251 with_newlib=yes
7252 extra_host_args="$extra_host_args --with-newlib"
7253 fi
7254
7255 # Handle ${copy_dirs}
7256 set fnord ${copy_dirs}
7257 shift
7258 while test $# != 0 ; do
7259 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7260 :
7261 else
7262 echo Copying $1 to $2
7263
7264 # Use the install script to create the directory and all required
7265 # parent directories.
7266 if test -d $2 ; then
7267 :
7268 else
7269 echo >config.temp
7270 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7271 fi
7272
7273 # Copy the directory, assuming we have tar.
7274 # FIXME: Should we use B in the second tar? Not all systems support it.
7275 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7276
7277 # It is the responsibility of the user to correctly adjust all
7278 # symlinks. If somebody can figure out how to handle them correctly
7279 # here, feel free to add the code.
7280
7281 echo $1 > $2/COPIED
7282 fi
7283 shift; shift
7284 done
7285
7286 # Determine a target-dependent exec_prefix that the installed
7287 # gcc will search in. Keep this list sorted by triplet, with
7288 # the *-*-osname triplets last.
7289 md_exec_prefix=
7290 case "${target}" in
7291 i[34567]86-pc-msdosdjgpp*)
7292 md_exec_prefix=/dev/env/DJDIR/bin
7293 ;;
7294 *-*-hpux* | \
7295 *-*-nto-qnx* | \
7296 *-*-solaris2*)
7297 md_exec_prefix=/usr/ccs/bin
7298 ;;
7299 esac
7300
7301 extra_arflags_for_target=
7302 extra_nmflags_for_target=
7303 extra_ranlibflags_for_target=
7304 target_makefile_frag=/dev/null
7305 case "${target}" in
7306 spu-*-*)
7307 target_makefile_frag="config/mt-spu"
7308 ;;
7309 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
7310 target_makefile_frag="config/mt-sde"
7311 ;;
7312 mipsisa*-*-elfoabi*)
7313 target_makefile_frag="config/mt-mips-elfoabi"
7314 ;;
7315 mips*-*-*linux* | mips*-*-gnu*)
7316 target_makefile_frag="config/mt-mips-gnu"
7317 ;;
7318 nios2-*-elf*)
7319 target_makefile_frag="config/mt-nios2-elf"
7320 ;;
7321 *-*-linux-android*)
7322 target_makefile_frag="config/mt-android"
7323 ;;
7324 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7325 target_makefile_frag="config/mt-gnu"
7326 ;;
7327 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7328 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7329 # commands to handle both 32-bit and 64-bit objects. These flags are
7330 # harmless if we're using GNU nm or ar.
7331 extra_arflags_for_target=" -X32_64"
7332 extra_nmflags_for_target=" -B -X32_64"
7333 ;;
7334 esac
7335
7336 alphaieee_frag=/dev/null
7337 case $target in
7338 alpha*-*-*)
7339 # This just makes sure to use the -mieee option to build target libs.
7340 # This should probably be set individually by each library.
7341 alphaieee_frag="config/mt-alphaieee"
7342 ;;
7343 esac
7344
7345 # If --enable-target-optspace always use -Os instead of -O2 to build
7346 # the target libraries, similarly if it is not specified, use -Os
7347 # on selected platforms.
7348 ospace_frag=/dev/null
7349 case "${enable_target_optspace}:${target}" in
7350 yes:*)
7351 ospace_frag="config/mt-ospace"
7352 ;;
7353 :d30v-*)
7354 ospace_frag="config/mt-d30v"
7355 ;;
7356 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7357 ospace_frag="config/mt-ospace"
7358 ;;
7359 no:* | :*)
7360 ;;
7361 *)
7362 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7363 ;;
7364 esac
7365
7366 # Some systems (e.g., one of the i386-aix systems the gas testers are
7367 # using) don't handle "\$" correctly, so don't use it here.
7368 tooldir='${exec_prefix}'/${target_noncanonical}
7369 build_tooldir=${tooldir}
7370
7371 # Create a .gdbinit file which runs the one in srcdir
7372 # and tells GDB to look there for source files.
7373
7374 if test -r ${srcdir}/.gdbinit ; then
7375 case ${srcdir} in
7376 .) ;;
7377 *) cat > ./.gdbinit <<EOF
7378 # ${NO_EDIT}
7379 dir ${srcdir}
7380 dir .
7381 source ${srcdir}/.gdbinit
7382 EOF
7383 ;;
7384 esac
7385 fi
7386
7387 # Make sure that the compiler is able to generate an executable. If it
7388 # can't, we are probably in trouble. We don't care whether we can run the
7389 # executable--we might be using a cross compiler--we only care whether it
7390 # can be created. At this point the main configure script has set CC.
7391 we_are_ok=no
7392 echo "int main () { return 0; }" > conftest.c
7393 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7394 if test $? = 0 ; then
7395 if test -s conftest || test -s conftest.exe ; then
7396 we_are_ok=yes
7397 fi
7398 fi
7399 case $we_are_ok in
7400 no)
7401 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7402 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7403 rm -f conftest*
7404 exit 1
7405 ;;
7406 esac
7407 rm -f conftest*
7408
7409 # Decide which environment variable is used to find dynamic libraries.
7410 case "${host}" in
7411 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7412 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7413 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7414 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7415 esac
7416
7417 # On systems where the dynamic library environment variable is PATH,
7418 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7419 # built executables to PATH.
7420 if test "$RPATH_ENVVAR" = PATH; then
7421 GCC_SHLIB_SUBDIR=/shlib
7422 else
7423 GCC_SHLIB_SUBDIR=
7424 fi
7425
7426 # Adjust the toplevel makefile according to whether bootstrap was selected.
7427 case $enable_bootstrap in
7428 yes)
7429 bootstrap_suffix=bootstrap
7430 BUILD_CONFIG=bootstrap-debug
7431 ;;
7432 no)
7433 bootstrap_suffix=no-bootstrap
7434 BUILD_CONFIG=
7435 ;;
7436 esac
7437
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7439 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7440
7441
7442 # Check whether --with-build-config was given.
7443 if test "${with_build_config+set}" = set; then :
7444 withval=$with_build_config; case $with_build_config in
7445 yes) with_build_config= ;;
7446 no) with_build_config= BUILD_CONFIG= ;;
7447 esac
7448 fi
7449
7450
7451 if test "x${with_build_config}" != x; then
7452 BUILD_CONFIG=$with_build_config
7453 else
7454 case $BUILD_CONFIG in
7455 bootstrap-debug)
7456 if echo "int f (void) { return 0; }" > conftest.c &&
7457 ${CC} -c conftest.c &&
7458 mv conftest.o conftest.o.g0 &&
7459 ${CC} -c -g conftest.c &&
7460 mv conftest.o conftest.o.g &&
7461 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7462 :
7463 else
7464 BUILD_CONFIG=
7465 fi
7466 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7467 ;;
7468 esac
7469 fi
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7471 $as_echo "$BUILD_CONFIG" >&6; }
7472
7473
7474 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7476 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7477 # Check whether --enable-vtable-verify was given.
7478 if test "${enable_vtable_verify+set}" = set; then :
7479 enableval=$enable_vtable_verify; case "$enableval" in
7480 yes) enable_vtable_verify=yes ;;
7481 no) enable_vtable_verify=no ;;
7482 *) enable_vtable_verify=no;;
7483 esac
7484 else
7485 enable_vtable_verify=no
7486 fi
7487
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7489 $as_echo "$enable_vtable_verify" >&6; }
7490
7491 # Record target_configdirs and the configure arguments for target and
7492 # build configuration in Makefile.
7493 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7494 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7495 bootstrap_fixincludes=no
7496
7497 # If we are building libgomp, bootstrap it.
7498 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7499 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7500 fi
7501
7502 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7503 # or bootstrap-ubsan, bootstrap it.
7504 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7505 case "$BUILD_CONFIG" in
7506 *bootstrap-asan* | *bootstrap-ubsan* )
7507 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7508 bootstrap_fixincludes=yes
7509 ;;
7510 esac
7511 fi
7512
7513 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7514 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7515 test "$enable_vtable_verify" != no; then
7516 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7517 fi
7518
7519 # Determine whether gdb needs tk/tcl or not.
7520 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7521 # and in that case we want gdb to be built without tk. Ugh!
7522 # In fact I believe gdb is the *only* package directly dependent on tk,
7523 # so we should be able to put the 'maybe's in unconditionally and
7524 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7525 # 100% sure that that's safe though.
7526
7527 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7528 case "$enable_gdbtk" in
7529 no)
7530 GDB_TK="" ;;
7531 yes)
7532 GDB_TK="${gdb_tk}" ;;
7533 *)
7534 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7535 # distro. Eventually someone will fix this and move Insight, nee
7536 # gdbtk to a separate directory.
7537 if test -d ${srcdir}/gdb/gdbtk ; then
7538 GDB_TK="${gdb_tk}"
7539 else
7540 GDB_TK=""
7541 fi
7542 ;;
7543 esac
7544 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7545 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7546
7547 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7548 # else does, only include them if one of these is built. The Makefile
7549 # provides the ordering, so it's enough here to add to the list.
7550 case " ${configdirs} " in
7551 *\ gdb\ *)
7552 configdirs="${configdirs} gnulib gdbsupport"
7553 ;;
7554 *\ gdbserver\ *)
7555 configdirs="${configdirs} gnulib gdbsupport"
7556 ;;
7557 *\ sim\ *)
7558 configdirs="${configdirs} gnulib"
7559 ;;
7560 esac
7561
7562 # Strip out unwanted targets.
7563
7564 # While at that, we remove Makefiles if we were started for recursive
7565 # configuration, so that the top-level Makefile reconfigures them,
7566 # like we used to do when configure itself was recursive.
7567
7568 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7569 # but now we're fixing up the Makefile ourselves with the additional
7570 # commands passed to AC_CONFIG_FILES. Use separate variables
7571 # extrasub-{build,host,target} not because there is any reason to split
7572 # the substitutions up that way, but only to remain below the limit of
7573 # 99 commands in a script, for HP-UX sed.
7574
7575 # Do not nest @if/@endif or @unless/@endunless pairs, because
7576 # configure will not warn you at all.
7577
7578 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7579 yes:yes:*\ gold\ *:*,c++,*) ;;
7580 yes:yes:*\ gold\ *:*)
7581 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7582 ;;
7583 esac
7584
7585 extrasub_build=
7586 for module in ${build_configdirs} ; do
7587 if test -z "${no_recursion}" \
7588 && test -f ${build_subdir}/${module}/Makefile; then
7589 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7590 rm -f ${build_subdir}/${module}/Makefile
7591 fi
7592 extrasub_build="$extrasub_build
7593 /^@if build-$module\$/d
7594 /^@endif build-$module\$/d
7595 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7596 /^@if build-$module-$bootstrap_suffix\$/d
7597 /^@endif build-$module-$bootstrap_suffix\$/d
7598 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7599 done
7600 extrasub_host=
7601 for module in ${configdirs} ; do
7602 if test -z "${no_recursion}"; then
7603 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7604 if test -f ${file}; then
7605 echo 1>&2 "*** removing ${file} to force reconfigure"
7606 rm -f ${file}
7607 fi
7608 done
7609 fi
7610 case ${module},${bootstrap_fixincludes} in
7611 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7612 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7613 esac
7614 extrasub_host="$extrasub_host
7615 /^@if $module\$/d
7616 /^@endif $module\$/d
7617 /^@unless $module\$/,/^@endunless $module\$/d
7618 /^@if $module-$host_bootstrap_suffix\$/d
7619 /^@endif $module-$host_bootstrap_suffix\$/d
7620 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7621 done
7622 extrasub_target=
7623 for module in ${target_configdirs} ; do
7624 if test -z "${no_recursion}" \
7625 && test -f ${target_subdir}/${module}/Makefile; then
7626 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7627 rm -f ${target_subdir}/${module}/Makefile
7628 fi
7629
7630 # We only bootstrap target libraries listed in bootstrap_target_libs.
7631 case $bootstrap_target_libs in
7632 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7633 *) target_bootstrap_suffix=no-bootstrap ;;
7634 esac
7635
7636 extrasub_target="$extrasub_target
7637 /^@if target-$module\$/d
7638 /^@endif target-$module\$/d
7639 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7640 /^@if target-$module-$target_bootstrap_suffix\$/d
7641 /^@endif target-$module-$target_bootstrap_suffix\$/d
7642 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7643 done
7644
7645 # Do the final fixup along with target modules.
7646 extrasub_target="$extrasub_target
7647 /^@if /,/^@endif /d
7648 /^@unless /d
7649 /^@endunless /d"
7650
7651 if test "$enable_pgo_build" != "no"; then
7652 extrasub_build="$extrasub_build
7653 /^@if pgo-build\$/d
7654 /^@endif pgo-build\$/d"
7655 fi
7656
7657 # Create the serialization dependencies. This uses a temporary file.
7658
7659 # Check whether --enable-serial-configure was given.
7660 if test "${enable_serial_configure+set}" = set; then :
7661 enableval=$enable_serial_configure;
7662 fi
7663
7664
7665 case ${enable_serial_configure} in
7666 yes)
7667 enable_serial_build_configure=yes
7668 enable_serial_host_configure=yes
7669 enable_serial_target_configure=yes
7670 ;;
7671 esac
7672
7673 # These force 'configure's to be done one at a time, to avoid problems
7674 # with contention over a shared config.cache.
7675 rm -f serdep.tmp
7676 echo '# serdep.tmp' > serdep.tmp
7677 olditem=
7678 test "x${enable_serial_build_configure}" = xyes &&
7679 for item in ${build_configdirs} ; do
7680 case ${olditem} in
7681 "") ;;
7682 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7683 esac
7684 olditem=${item}
7685 done
7686 olditem=
7687 test "x${enable_serial_host_configure}" = xyes &&
7688 for item in ${configdirs} ; do
7689 case ${olditem} in
7690 "") ;;
7691 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7692 esac
7693 olditem=${item}
7694 done
7695 olditem=
7696 test "x${enable_serial_target_configure}" = xyes &&
7697 for item in ${target_configdirs} ; do
7698 case ${olditem} in
7699 "") ;;
7700 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7701 esac
7702 olditem=${item}
7703 done
7704 serialization_dependencies=serdep.tmp
7705
7706
7707 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7708 # target, nonopt, and variable assignments. These are the ones we
7709 # might not want to pass down to subconfigures. The exception being
7710 # --cache-file=/dev/null, which is used to turn off the use of cache
7711 # files altogether, and which should be passed on to subconfigures.
7712 # Also strip program-prefix, program-suffix, and program-transform-name,
7713 # so that we can pass down a consistent program-transform-name.
7714 baseargs=
7715 tbaseargs=
7716 keep_next=no
7717 skip_next=no
7718 eval "set -- $ac_configure_args"
7719 for ac_arg
7720 do
7721 if test X"$skip_next" = X"yes"; then
7722 skip_next=no
7723 continue
7724 fi
7725 if test X"$keep_next" = X"yes"; then
7726 case $ac_arg in
7727 *\'*)
7728 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7729 esac
7730 baseargs="$baseargs '$ac_arg'"
7731 tbaseargs="$tbaseargs '$ac_arg'"
7732 keep_next=no
7733 continue
7734 fi
7735
7736 # Handle separated arguments. Based on the logic generated by
7737 # autoconf 2.59.
7738 case $ac_arg in
7739 *=* | --config-cache | -C | -disable-* | --disable-* \
7740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7742 | -with-* | --with-* | -without-* | --without-* | --x)
7743 separate_arg=no
7744 ;;
7745 -*)
7746 separate_arg=yes
7747 ;;
7748 *)
7749 separate_arg=no
7750 ;;
7751 esac
7752
7753 skip_targ=no
7754 case $ac_arg in
7755
7756 --with-* | --without-*)
7757 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7758
7759 case $libopt in
7760 *[-_]include)
7761 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7762 ;;
7763 *[-_]lib)
7764 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7765 ;;
7766 *)
7767 lib=$libopt
7768 ;;
7769 esac
7770
7771
7772 case $lib in
7773 mpc | mpfr | gmp | isl)
7774 # If we're processing --with-$lib, --with-$lib-include or
7775 # --with-$lib-lib, for one of the libs above, and target is
7776 # different from host, don't pass the current argument to any
7777 # target library's configure.
7778 if test x$is_cross_compiler = xyes; then
7779 skip_targ=yes
7780 fi
7781 ;;
7782 esac
7783 ;;
7784 esac
7785
7786 case "$ac_arg" in
7787 --cache-file=/dev/null | \
7788 -cache-file=/dev/null )
7789 # Handled here to avoid the test to skip args below.
7790 baseargs="$baseargs '$ac_arg'"
7791 tbaseargs="$tbaseargs '$ac_arg'"
7792 # Assert: $separate_arg should always be no.
7793 keep_next=$separate_arg
7794 ;;
7795 --no*)
7796 continue
7797 ;;
7798 --c* | \
7799 --sr* | \
7800 --ho* | \
7801 --bu* | \
7802 --t* | \
7803 --program-* | \
7804 -cache_file* | \
7805 -srcdir* | \
7806 -host* | \
7807 -build* | \
7808 -target* | \
7809 -program-prefix* | \
7810 -program-suffix* | \
7811 -program-transform-name* )
7812 skip_next=$separate_arg
7813 continue
7814 ;;
7815 -*)
7816 # An option. Add it.
7817 case $ac_arg in
7818 *\'*)
7819 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7820 esac
7821 baseargs="$baseargs '$ac_arg'"
7822 if test X"$skip_targ" = Xno; then
7823 tbaseargs="$tbaseargs '$ac_arg'"
7824 fi
7825 keep_next=$separate_arg
7826 ;;
7827 *)
7828 # Either a variable assignment, or a nonopt (triplet). Don't
7829 # pass it down; let the Makefile handle this.
7830 continue
7831 ;;
7832 esac
7833 done
7834 # Remove the initial space we just introduced and, as these will be
7835 # expanded by make, quote '$'.
7836 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7837
7838 # Add in --program-transform-name, after --program-prefix and
7839 # --program-suffix have been applied to it. Autoconf has already
7840 # doubled dollar signs and backslashes in program_transform_name; we want
7841 # the backslashes un-doubled, and then the entire thing wrapped in single
7842 # quotes, because this will be expanded first by make and then by the shell.
7843 # Also, because we want to override the logic in subdir configure scripts to
7844 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7845 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7846 ${program_transform_name}
7847 EOF_SED
7848 gcc_transform_name=`cat conftestsed.out`
7849 rm -f conftestsed.out
7850 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7851 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7852 if test "$silent" = yes; then
7853 baseargs="$baseargs --silent"
7854 tbaseargs="$tbaseargs --silent"
7855 fi
7856
7857 baseargs="$baseargs --disable-option-checking"
7858 tbaseargs="$tbaseargs --disable-option-checking"
7859
7860 if test "$enable_year2038" = no; then
7861 baseargs="$baseargs --disable-year2038"
7862 tbaseargs="$tbaseargs --disable-year2038"
7863 fi
7864
7865 # Record and document user additions to sub configure arguments.
7866
7867
7868
7869
7870 # For the build-side libraries, we just need to pretend we're native,
7871 # and not use the same cache file. Multilibs are neither needed nor
7872 # desired. We can't even use the same cache file for all build-side
7873 # libraries, as they're compiled differently; some with C, some with
7874 # C++ or with different feature-enabling options.
7875 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7876
7877 # For host modules, accept cache file option, or specification as blank.
7878 case "${cache_file}" in
7879 "") # empty
7880 cache_file_option="" ;;
7881 /* | [A-Za-z]:[\\/]* ) # absolute path
7882 cache_file_option="--cache-file=${cache_file}" ;;
7883 *) # relative path
7884 cache_file_option="--cache-file=../${cache_file}" ;;
7885 esac
7886
7887 # Host dirs don't like to share a cache file either, horribly enough.
7888 # This seems to be due to autoconf 2.5x stupidity.
7889 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7890
7891 target_configargs="$target_configargs ${tbaseargs}"
7892
7893 # Passing a --with-cross-host argument lets the target libraries know
7894 # whether they are being built with a cross-compiler or being built
7895 # native. However, it would be better to use other mechanisms to make the
7896 # sorts of decisions they want to make on this basis. Please consider
7897 # this option to be deprecated. FIXME.
7898 if test x${is_cross_compiler} = xyes ; then
7899 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7900 fi
7901
7902 # Special user-friendly check for native x86_64-linux build, if
7903 # multilib is not explicitly enabled.
7904 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7905 x86_64-*linux*:yes:$build:$build:)
7906 # Make sure we have a development environment that handles 32-bit
7907 dev64=no
7908 echo "int main () { return 0; }" > conftest.c
7909 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7910 if test $? = 0 ; then
7911 if test -s conftest || test -s conftest.exe ; then
7912 dev64=yes
7913 fi
7914 fi
7915 rm -f conftest*
7916 if test x${dev64} != xyes ; then
7917 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
7918 fi
7919 ;;
7920 esac
7921
7922 # Default to --enable-multilib.
7923 if test x${enable_multilib} = x ; then
7924 target_configargs="--enable-multilib ${target_configargs}"
7925 fi
7926
7927 # Pass --with-newlib if appropriate. Note that target_configdirs has
7928 # changed from the earlier setting of with_newlib.
7929 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7930 target_configargs="--with-newlib ${target_configargs}"
7931 fi
7932
7933 # Different target subdirs use different values of certain variables
7934 # (notably CXX). Worse, multilibs use *lots* of different values.
7935 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7936 # it doesn't automatically accept command-line overrides of them.
7937 # This means it's not safe for target subdirs to share a cache file,
7938 # which is disgusting, but there you have it. Hopefully this can be
7939 # fixed in future. It's still worthwhile to use a cache file for each
7940 # directory. I think.
7941
7942 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7943 # We need to pass --target, as newer autoconf's requires consistency
7944 # for target_alias and gcc doesn't manage it consistently.
7945 target_configargs="--cache-file=./config.cache ${target_configargs}"
7946
7947 FLAGS_FOR_TARGET=
7948 case " $target_configdirs " in
7949 *" newlib "*)
7950 case " $target_configargs " in
7951 *" --with-newlib "*)
7952 case "$target" in
7953 *-cygwin*)
7954 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7955 ;;
7956 esac
7957
7958 # If we're not building GCC, don't discard standard headers.
7959 if test -d ${srcdir}/gcc; then
7960 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7961
7962 if test "${build}" != "${host}"; then
7963 # On Canadian crosses, CC_FOR_TARGET will have already been set
7964 # by `configure', so we won't have an opportunity to add -Bgcc/
7965 # to it. This is right: we don't want to search that directory
7966 # for binaries, but we want the header files in there, so add
7967 # them explicitly.
7968 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7969
7970 # Someone might think of using the pre-installed headers on
7971 # Canadian crosses, in case the installed compiler is not fully
7972 # compatible with the compiler being built. In this case, it
7973 # would be better to flag an error than risking having
7974 # incompatible object files being constructed. We can't
7975 # guarantee that an error will be flagged, but let's hope the
7976 # compiler will do it, when presented with incompatible header
7977 # files.
7978 fi
7979 fi
7980
7981 case "${target}-${is_cross_compiler}" in
7982 i[3456789]86-*-linux*-no)
7983 # Here host == target, so we don't need to build gcc,
7984 # so we don't want to discard standard headers.
7985 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7986 ;;
7987 *)
7988 # If we're building newlib, use its generic headers last, but search
7989 # for any libc-related directories first (so make it the last -B
7990 # switch).
7991 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7992
7993 # If we're building libgloss, find the startup file, simulator library
7994 # and linker script.
7995 case " $target_configdirs " in
7996 *" libgloss "*)
7997 # Look for startup file, simulator library and maybe linker script.
7998 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7999 # Look for libnosys.a in case the target needs it.
8000 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
8001 # Most targets have the linker script in the source directory.
8002 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
8003 ;;
8004 esac
8005 ;;
8006 esac
8007 ;;
8008 esac
8009 ;;
8010 esac
8011
8012 case "$target" in
8013 x86_64-*mingw* | *-w64-mingw*)
8014 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
8015 # however, use a symlink named 'mingw' in ${prefix} .
8016 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
8017 ;;
8018 *-mingw*)
8019 # MinGW can't be handled as Cygwin above since it does not use newlib.
8020 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'
8021 ;;
8022 esac
8023
8024 # Allow the user to override the flags for
8025 # our build compiler if desired.
8026 if test x"${build}" = x"${host}" ; then
8027 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
8028 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
8029 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8030 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8031 fi
8032
8033 # On Canadian crosses, we'll be searching the right directories for
8034 # the previously-installed cross compiler, so don't bother to add
8035 # flags for directories within the install tree of the compiler
8036 # being built; programs in there won't even run.
8037 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8038 # Search for pre-installed headers if nothing else fits.
8039 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
8040 fi
8041
8042 if test "x${use_gnu_ld}" = x &&
8043 echo " ${configdirs} " | grep " ld " > /dev/null ; then
8044 # Arrange for us to find uninstalled linker scripts.
8045 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
8046 fi
8047
8048 # Search for other target-specific linker scripts and such.
8049 case "${target}" in
8050 mep*)
8051 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8052 ;;
8053 esac
8054
8055 # Makefile fragments.
8056 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8057 do
8058 eval fragval=\$$frag
8059 if test $fragval != /dev/null; then
8060 eval $frag=${srcdir}/$fragval
8061 fi
8062 done
8063
8064
8065
8066
8067
8068 # Miscellanea: directories, flags, etc.
8069
8070
8071
8072
8073
8074
8075
8076
8077 # Build module lists & subconfigure args.
8078
8079
8080
8081 # Host module lists & subconfigure args.
8082
8083
8084
8085
8086 # Target module lists & subconfigure args.
8087
8088
8089
8090 # Build tools.
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108 # Generate default definitions for YACC, M4, LEX and other programs that run
8109 # on the build machine. These are used if the Makefile can't locate these
8110 # programs in objdir.
8111 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8112
8113 for ac_prog in 'bison -y' byacc yacc
8114 do
8115 # Extract the first word of "$ac_prog", so it can be a program name with args.
8116 set dummy $ac_prog; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 $as_echo_n "checking for $ac_word... " >&6; }
8119 if ${ac_cv_prog_YACC+:} false; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 if test -n "$YACC"; then
8123 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8124 else
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8127 do
8128 IFS=$as_save_IFS
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8132 ac_cv_prog_YACC="$ac_prog"
8133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 break 2
8135 fi
8136 done
8137 done
8138 IFS=$as_save_IFS
8139
8140 fi
8141 fi
8142 YACC=$ac_cv_prog_YACC
8143 if test -n "$YACC"; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8145 $as_echo "$YACC" >&6; }
8146 else
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8149 fi
8150
8151
8152 test -n "$YACC" && break
8153 done
8154 test -n "$YACC" || YACC="$MISSING bison -y"
8155
8156 case " $build_configdirs " in
8157 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8158 esac
8159
8160 for ac_prog in bison
8161 do
8162 # Extract the first word of "$ac_prog", so it can be a program name with args.
8163 set dummy $ac_prog; ac_word=$2
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165 $as_echo_n "checking for $ac_word... " >&6; }
8166 if ${ac_cv_prog_BISON+:} false; then :
8167 $as_echo_n "(cached) " >&6
8168 else
8169 if test -n "$BISON"; then
8170 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8171 else
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 for as_dir in $PATH
8174 do
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8179 ac_cv_prog_BISON="$ac_prog"
8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 break 2
8182 fi
8183 done
8184 done
8185 IFS=$as_save_IFS
8186
8187 fi
8188 fi
8189 BISON=$ac_cv_prog_BISON
8190 if test -n "$BISON"; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8192 $as_echo "$BISON" >&6; }
8193 else
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8196 fi
8197
8198
8199 test -n "$BISON" && break
8200 done
8201 test -n "$BISON" || BISON="$MISSING bison"
8202
8203 case " $build_configdirs " in
8204 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8205 esac
8206
8207 for ac_prog in gm4 gnum4 m4
8208 do
8209 # Extract the first word of "$ac_prog", so it can be a program name with args.
8210 set dummy $ac_prog; ac_word=$2
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8212 $as_echo_n "checking for $ac_word... " >&6; }
8213 if ${ac_cv_prog_M4+:} false; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 if test -n "$M4"; then
8217 ac_cv_prog_M4="$M4" # Let the user override the test.
8218 else
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 for as_dir in $PATH
8221 do
8222 IFS=$as_save_IFS
8223 test -z "$as_dir" && as_dir=.
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8226 ac_cv_prog_M4="$ac_prog"
8227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 break 2
8229 fi
8230 done
8231 done
8232 IFS=$as_save_IFS
8233
8234 fi
8235 fi
8236 M4=$ac_cv_prog_M4
8237 if test -n "$M4"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8239 $as_echo "$M4" >&6; }
8240 else
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8243 fi
8244
8245
8246 test -n "$M4" && break
8247 done
8248 test -n "$M4" || M4="$MISSING m4"
8249
8250 case " $build_configdirs " in
8251 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8252 esac
8253
8254 for ac_prog in flex lex
8255 do
8256 # Extract the first word of "$ac_prog", so it can be a program name with args.
8257 set dummy $ac_prog; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if ${ac_cv_prog_LEX+:} false; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 if test -n "$LEX"; then
8264 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8268 do
8269 IFS=$as_save_IFS
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8273 ac_cv_prog_LEX="$ac_prog"
8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8275 break 2
8276 fi
8277 done
8278 done
8279 IFS=$as_save_IFS
8280
8281 fi
8282 fi
8283 LEX=$ac_cv_prog_LEX
8284 if test -n "$LEX"; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8286 $as_echo "$LEX" >&6; }
8287 else
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8290 fi
8291
8292
8293 test -n "$LEX" && break
8294 done
8295 test -n "$LEX" || LEX="$MISSING flex"
8296
8297 case " $build_configdirs " in
8298 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8299 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8300 esac
8301
8302 for ac_prog in flex
8303 do
8304 # Extract the first word of "$ac_prog", so it can be a program name with args.
8305 set dummy $ac_prog; ac_word=$2
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307 $as_echo_n "checking for $ac_word... " >&6; }
8308 if ${ac_cv_prog_FLEX+:} false; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 if test -n "$FLEX"; then
8312 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8313 else
8314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 for as_dir in $PATH
8316 do
8317 IFS=$as_save_IFS
8318 test -z "$as_dir" && as_dir=.
8319 for ac_exec_ext in '' $ac_executable_extensions; do
8320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8321 ac_cv_prog_FLEX="$ac_prog"
8322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 break 2
8324 fi
8325 done
8326 done
8327 IFS=$as_save_IFS
8328
8329 fi
8330 fi
8331 FLEX=$ac_cv_prog_FLEX
8332 if test -n "$FLEX"; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8334 $as_echo "$FLEX" >&6; }
8335 else
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8338 fi
8339
8340
8341 test -n "$FLEX" && break
8342 done
8343 test -n "$FLEX" || FLEX="$MISSING flex"
8344
8345 case " $build_configdirs " in
8346 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8347 esac
8348
8349 for ac_prog in makeinfo
8350 do
8351 # Extract the first word of "$ac_prog", so it can be a program name with args.
8352 set dummy $ac_prog; ac_word=$2
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354 $as_echo_n "checking for $ac_word... " >&6; }
8355 if ${ac_cv_prog_MAKEINFO+:} false; then :
8356 $as_echo_n "(cached) " >&6
8357 else
8358 if test -n "$MAKEINFO"; then
8359 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8360 else
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 for as_dir in $PATH
8363 do
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8368 ac_cv_prog_MAKEINFO="$ac_prog"
8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 break 2
8371 fi
8372 done
8373 done
8374 IFS=$as_save_IFS
8375
8376 fi
8377 fi
8378 MAKEINFO=$ac_cv_prog_MAKEINFO
8379 if test -n "$MAKEINFO"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8381 $as_echo "$MAKEINFO" >&6; }
8382 else
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8385 fi
8386
8387
8388 test -n "$MAKEINFO" && break
8389 done
8390 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8391
8392 case " $build_configdirs " in
8393 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8394 *)
8395
8396 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8397 # higher, else we use the "missing" dummy.
8398 if ${MAKEINFO} --version \
8399 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8400 :
8401 else
8402 MAKEINFO="$MISSING makeinfo"
8403 fi
8404 ;;
8405
8406 esac
8407
8408 # FIXME: expect and dejagnu may become build tools?
8409
8410 for ac_prog in expect
8411 do
8412 # Extract the first word of "$ac_prog", so it can be a program name with args.
8413 set dummy $ac_prog; ac_word=$2
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 $as_echo_n "checking for $ac_word... " >&6; }
8416 if ${ac_cv_prog_EXPECT+:} false; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 if test -n "$EXPECT"; then
8420 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8421 else
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423 for as_dir in $PATH
8424 do
8425 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8429 ac_cv_prog_EXPECT="$ac_prog"
8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 break 2
8432 fi
8433 done
8434 done
8435 IFS=$as_save_IFS
8436
8437 fi
8438 fi
8439 EXPECT=$ac_cv_prog_EXPECT
8440 if test -n "$EXPECT"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8442 $as_echo "$EXPECT" >&6; }
8443 else
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8446 fi
8447
8448
8449 test -n "$EXPECT" && break
8450 done
8451 test -n "$EXPECT" || EXPECT="expect"
8452
8453 case " $configdirs " in
8454 *" expect "*)
8455 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8456 ;;
8457 esac
8458
8459 for ac_prog in runtest
8460 do
8461 # Extract the first word of "$ac_prog", so it can be a program name with args.
8462 set dummy $ac_prog; ac_word=$2
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8464 $as_echo_n "checking for $ac_word... " >&6; }
8465 if ${ac_cv_prog_RUNTEST+:} false; then :
8466 $as_echo_n "(cached) " >&6
8467 else
8468 if test -n "$RUNTEST"; then
8469 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8470 else
8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472 for as_dir in $PATH
8473 do
8474 IFS=$as_save_IFS
8475 test -z "$as_dir" && as_dir=.
8476 for ac_exec_ext in '' $ac_executable_extensions; do
8477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8478 ac_cv_prog_RUNTEST="$ac_prog"
8479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8480 break 2
8481 fi
8482 done
8483 done
8484 IFS=$as_save_IFS
8485
8486 fi
8487 fi
8488 RUNTEST=$ac_cv_prog_RUNTEST
8489 if test -n "$RUNTEST"; then
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8491 $as_echo "$RUNTEST" >&6; }
8492 else
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8494 $as_echo "no" >&6; }
8495 fi
8496
8497
8498 test -n "$RUNTEST" && break
8499 done
8500 test -n "$RUNTEST" || RUNTEST="runtest"
8501
8502 case " $configdirs " in
8503 *" dejagnu "*)
8504 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8505 ;;
8506 esac
8507
8508
8509 # Host tools.
8510 ncn_tool_prefix=
8511 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8512 ncn_target_tool_prefix=
8513 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8514
8515
8516
8517 if test -n "$AR"; then
8518 ac_cv_prog_AR=$AR
8519 elif test -n "$ac_cv_prog_AR"; then
8520 AR=$ac_cv_prog_AR
8521 fi
8522
8523 if test -n "$ac_cv_prog_AR"; then
8524 for ncn_progname in ar; do
8525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8526 set dummy ${ncn_progname}; ac_word=$2
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8528 $as_echo_n "checking for $ac_word... " >&6; }
8529 if ${ac_cv_prog_AR+:} false; then :
8530 $as_echo_n "(cached) " >&6
8531 else
8532 if test -n "$AR"; then
8533 ac_cv_prog_AR="$AR" # Let the user override the test.
8534 else
8535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536 for as_dir in $PATH
8537 do
8538 IFS=$as_save_IFS
8539 test -z "$as_dir" && as_dir=.
8540 for ac_exec_ext in '' $ac_executable_extensions; do
8541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8542 ac_cv_prog_AR="${ncn_progname}"
8543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8544 break 2
8545 fi
8546 done
8547 done
8548 IFS=$as_save_IFS
8549
8550 fi
8551 fi
8552 AR=$ac_cv_prog_AR
8553 if test -n "$AR"; then
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8555 $as_echo "$AR" >&6; }
8556 else
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558 $as_echo "no" >&6; }
8559 fi
8560
8561
8562 done
8563 fi
8564
8565 for ncn_progname in ar; do
8566 if test -n "$ncn_tool_prefix"; then
8567 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8568 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8570 $as_echo_n "checking for $ac_word... " >&6; }
8571 if ${ac_cv_prog_AR+:} false; then :
8572 $as_echo_n "(cached) " >&6
8573 else
8574 if test -n "$AR"; then
8575 ac_cv_prog_AR="$AR" # Let the user override the test.
8576 else
8577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578 for as_dir in $PATH
8579 do
8580 IFS=$as_save_IFS
8581 test -z "$as_dir" && as_dir=.
8582 for ac_exec_ext in '' $ac_executable_extensions; do
8583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8584 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8586 break 2
8587 fi
8588 done
8589 done
8590 IFS=$as_save_IFS
8591
8592 fi
8593 fi
8594 AR=$ac_cv_prog_AR
8595 if test -n "$AR"; then
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8597 $as_echo "$AR" >&6; }
8598 else
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8600 $as_echo "no" >&6; }
8601 fi
8602
8603
8604 fi
8605 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8607 set dummy ${ncn_progname}; ac_word=$2
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609 $as_echo_n "checking for $ac_word... " >&6; }
8610 if ${ac_cv_prog_AR+:} false; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 if test -n "$AR"; then
8614 ac_cv_prog_AR="$AR" # Let the user override the test.
8615 else
8616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617 for as_dir in $PATH
8618 do
8619 IFS=$as_save_IFS
8620 test -z "$as_dir" && as_dir=.
8621 for ac_exec_ext in '' $ac_executable_extensions; do
8622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8623 ac_cv_prog_AR="${ncn_progname}"
8624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8625 break 2
8626 fi
8627 done
8628 done
8629 IFS=$as_save_IFS
8630
8631 fi
8632 fi
8633 AR=$ac_cv_prog_AR
8634 if test -n "$AR"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8636 $as_echo "$AR" >&6; }
8637 else
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639 $as_echo "no" >&6; }
8640 fi
8641
8642
8643 fi
8644 test -n "$ac_cv_prog_AR" && break
8645 done
8646
8647 if test -z "$ac_cv_prog_AR" ; then
8648 set dummy ar
8649 if test $build = $host ; then
8650 AR="$2"
8651 else
8652 AR="${ncn_tool_prefix}$2"
8653 fi
8654 fi
8655
8656
8657
8658 if test -n "$AS"; then
8659 ac_cv_prog_AS=$AS
8660 elif test -n "$ac_cv_prog_AS"; then
8661 AS=$ac_cv_prog_AS
8662 fi
8663
8664 if test -n "$ac_cv_prog_AS"; then
8665 for ncn_progname in as; do
8666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8667 set dummy ${ncn_progname}; ac_word=$2
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669 $as_echo_n "checking for $ac_word... " >&6; }
8670 if ${ac_cv_prog_AS+:} false; then :
8671 $as_echo_n "(cached) " >&6
8672 else
8673 if test -n "$AS"; then
8674 ac_cv_prog_AS="$AS" # Let the user override the test.
8675 else
8676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677 for as_dir in $PATH
8678 do
8679 IFS=$as_save_IFS
8680 test -z "$as_dir" && as_dir=.
8681 for ac_exec_ext in '' $ac_executable_extensions; do
8682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8683 ac_cv_prog_AS="${ncn_progname}"
8684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8685 break 2
8686 fi
8687 done
8688 done
8689 IFS=$as_save_IFS
8690
8691 fi
8692 fi
8693 AS=$ac_cv_prog_AS
8694 if test -n "$AS"; then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8696 $as_echo "$AS" >&6; }
8697 else
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699 $as_echo "no" >&6; }
8700 fi
8701
8702
8703 done
8704 fi
8705
8706 for ncn_progname in as; do
8707 if test -n "$ncn_tool_prefix"; then
8708 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8709 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8711 $as_echo_n "checking for $ac_word... " >&6; }
8712 if ${ac_cv_prog_AS+:} false; then :
8713 $as_echo_n "(cached) " >&6
8714 else
8715 if test -n "$AS"; then
8716 ac_cv_prog_AS="$AS" # Let the user override the test.
8717 else
8718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8719 for as_dir in $PATH
8720 do
8721 IFS=$as_save_IFS
8722 test -z "$as_dir" && as_dir=.
8723 for ac_exec_ext in '' $ac_executable_extensions; do
8724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8725 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8727 break 2
8728 fi
8729 done
8730 done
8731 IFS=$as_save_IFS
8732
8733 fi
8734 fi
8735 AS=$ac_cv_prog_AS
8736 if test -n "$AS"; then
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8738 $as_echo "$AS" >&6; }
8739 else
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741 $as_echo "no" >&6; }
8742 fi
8743
8744
8745 fi
8746 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8748 set dummy ${ncn_progname}; ac_word=$2
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8750 $as_echo_n "checking for $ac_word... " >&6; }
8751 if ${ac_cv_prog_AS+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753 else
8754 if test -n "$AS"; then
8755 ac_cv_prog_AS="$AS" # Let the user override the test.
8756 else
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758 for as_dir in $PATH
8759 do
8760 IFS=$as_save_IFS
8761 test -z "$as_dir" && as_dir=.
8762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8764 ac_cv_prog_AS="${ncn_progname}"
8765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8766 break 2
8767 fi
8768 done
8769 done
8770 IFS=$as_save_IFS
8771
8772 fi
8773 fi
8774 AS=$ac_cv_prog_AS
8775 if test -n "$AS"; then
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8777 $as_echo "$AS" >&6; }
8778 else
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780 $as_echo "no" >&6; }
8781 fi
8782
8783
8784 fi
8785 test -n "$ac_cv_prog_AS" && break
8786 done
8787
8788 if test -z "$ac_cv_prog_AS" ; then
8789 set dummy as
8790 if test $build = $host ; then
8791 AS="$2"
8792 else
8793 AS="${ncn_tool_prefix}$2"
8794 fi
8795 fi
8796
8797
8798
8799 if test -n "$DLLTOOL"; then
8800 ac_cv_prog_DLLTOOL=$DLLTOOL
8801 elif test -n "$ac_cv_prog_DLLTOOL"; then
8802 DLLTOOL=$ac_cv_prog_DLLTOOL
8803 fi
8804
8805 if test -n "$ac_cv_prog_DLLTOOL"; then
8806 for ncn_progname in dlltool; do
8807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8808 set dummy ${ncn_progname}; ac_word=$2
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8810 $as_echo_n "checking for $ac_word... " >&6; }
8811 if ${ac_cv_prog_DLLTOOL+:} false; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 if test -n "$DLLTOOL"; then
8815 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8816 else
8817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818 for as_dir in $PATH
8819 do
8820 IFS=$as_save_IFS
8821 test -z "$as_dir" && as_dir=.
8822 for ac_exec_ext in '' $ac_executable_extensions; do
8823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8824 ac_cv_prog_DLLTOOL="${ncn_progname}"
8825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8826 break 2
8827 fi
8828 done
8829 done
8830 IFS=$as_save_IFS
8831
8832 fi
8833 fi
8834 DLLTOOL=$ac_cv_prog_DLLTOOL
8835 if test -n "$DLLTOOL"; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8837 $as_echo "$DLLTOOL" >&6; }
8838 else
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840 $as_echo "no" >&6; }
8841 fi
8842
8843
8844 done
8845 fi
8846
8847 for ncn_progname in dlltool; do
8848 if test -n "$ncn_tool_prefix"; then
8849 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8850 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8852 $as_echo_n "checking for $ac_word... " >&6; }
8853 if ${ac_cv_prog_DLLTOOL+:} false; then :
8854 $as_echo_n "(cached) " >&6
8855 else
8856 if test -n "$DLLTOOL"; then
8857 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8858 else
8859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860 for as_dir in $PATH
8861 do
8862 IFS=$as_save_IFS
8863 test -z "$as_dir" && as_dir=.
8864 for ac_exec_ext in '' $ac_executable_extensions; do
8865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8866 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8868 break 2
8869 fi
8870 done
8871 done
8872 IFS=$as_save_IFS
8873
8874 fi
8875 fi
8876 DLLTOOL=$ac_cv_prog_DLLTOOL
8877 if test -n "$DLLTOOL"; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8879 $as_echo "$DLLTOOL" >&6; }
8880 else
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8882 $as_echo "no" >&6; }
8883 fi
8884
8885
8886 fi
8887 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8889 set dummy ${ncn_progname}; ac_word=$2
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8891 $as_echo_n "checking for $ac_word... " >&6; }
8892 if ${ac_cv_prog_DLLTOOL+:} false; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 if test -n "$DLLTOOL"; then
8896 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8897 else
8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899 for as_dir in $PATH
8900 do
8901 IFS=$as_save_IFS
8902 test -z "$as_dir" && as_dir=.
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8905 ac_cv_prog_DLLTOOL="${ncn_progname}"
8906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8907 break 2
8908 fi
8909 done
8910 done
8911 IFS=$as_save_IFS
8912
8913 fi
8914 fi
8915 DLLTOOL=$ac_cv_prog_DLLTOOL
8916 if test -n "$DLLTOOL"; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8918 $as_echo "$DLLTOOL" >&6; }
8919 else
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921 $as_echo "no" >&6; }
8922 fi
8923
8924
8925 fi
8926 test -n "$ac_cv_prog_DLLTOOL" && break
8927 done
8928
8929 if test -z "$ac_cv_prog_DLLTOOL" ; then
8930 set dummy dlltool
8931 if test $build = $host ; then
8932 DLLTOOL="$2"
8933 else
8934 DLLTOOL="${ncn_tool_prefix}$2"
8935 fi
8936 fi
8937
8938
8939
8940 if test -n "$LD"; then
8941 ac_cv_prog_LD=$LD
8942 elif test -n "$ac_cv_prog_LD"; then
8943 LD=$ac_cv_prog_LD
8944 fi
8945
8946 if test -n "$ac_cv_prog_LD"; then
8947 for ncn_progname in ld; do
8948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8949 set dummy ${ncn_progname}; ac_word=$2
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8951 $as_echo_n "checking for $ac_word... " >&6; }
8952 if ${ac_cv_prog_LD+:} false; then :
8953 $as_echo_n "(cached) " >&6
8954 else
8955 if test -n "$LD"; then
8956 ac_cv_prog_LD="$LD" # Let the user override the test.
8957 else
8958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8959 for as_dir in $PATH
8960 do
8961 IFS=$as_save_IFS
8962 test -z "$as_dir" && as_dir=.
8963 for ac_exec_ext in '' $ac_executable_extensions; do
8964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8965 ac_cv_prog_LD="${ncn_progname}"
8966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8967 break 2
8968 fi
8969 done
8970 done
8971 IFS=$as_save_IFS
8972
8973 fi
8974 fi
8975 LD=$ac_cv_prog_LD
8976 if test -n "$LD"; then
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8978 $as_echo "$LD" >&6; }
8979 else
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8981 $as_echo "no" >&6; }
8982 fi
8983
8984
8985 done
8986 fi
8987
8988 for ncn_progname in ld; do
8989 if test -n "$ncn_tool_prefix"; then
8990 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8991 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8993 $as_echo_n "checking for $ac_word... " >&6; }
8994 if ${ac_cv_prog_LD+:} false; then :
8995 $as_echo_n "(cached) " >&6
8996 else
8997 if test -n "$LD"; then
8998 ac_cv_prog_LD="$LD" # Let the user override the test.
8999 else
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 for as_dir in $PATH
9002 do
9003 IFS=$as_save_IFS
9004 test -z "$as_dir" && as_dir=.
9005 for ac_exec_ext in '' $ac_executable_extensions; do
9006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9007 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
9008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9009 break 2
9010 fi
9011 done
9012 done
9013 IFS=$as_save_IFS
9014
9015 fi
9016 fi
9017 LD=$ac_cv_prog_LD
9018 if test -n "$LD"; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9020 $as_echo "$LD" >&6; }
9021 else
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023 $as_echo "no" >&6; }
9024 fi
9025
9026
9027 fi
9028 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
9029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9030 set dummy ${ncn_progname}; ac_word=$2
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9032 $as_echo_n "checking for $ac_word... " >&6; }
9033 if ${ac_cv_prog_LD+:} false; then :
9034 $as_echo_n "(cached) " >&6
9035 else
9036 if test -n "$LD"; then
9037 ac_cv_prog_LD="$LD" # Let the user override the test.
9038 else
9039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9040 for as_dir in $PATH
9041 do
9042 IFS=$as_save_IFS
9043 test -z "$as_dir" && as_dir=.
9044 for ac_exec_ext in '' $ac_executable_extensions; do
9045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9046 ac_cv_prog_LD="${ncn_progname}"
9047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9048 break 2
9049 fi
9050 done
9051 done
9052 IFS=$as_save_IFS
9053
9054 fi
9055 fi
9056 LD=$ac_cv_prog_LD
9057 if test -n "$LD"; then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9059 $as_echo "$LD" >&6; }
9060 else
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062 $as_echo "no" >&6; }
9063 fi
9064
9065
9066 fi
9067 test -n "$ac_cv_prog_LD" && break
9068 done
9069
9070 if test -z "$ac_cv_prog_LD" ; then
9071 set dummy ld
9072 if test $build = $host ; then
9073 LD="$2"
9074 else
9075 LD="${ncn_tool_prefix}$2"
9076 fi
9077 fi
9078
9079
9080
9081 if test -n "$LIPO"; then
9082 ac_cv_prog_LIPO=$LIPO
9083 elif test -n "$ac_cv_prog_LIPO"; then
9084 LIPO=$ac_cv_prog_LIPO
9085 fi
9086
9087 if test -n "$ac_cv_prog_LIPO"; then
9088 for ncn_progname in lipo; do
9089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9090 set dummy ${ncn_progname}; ac_word=$2
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9092 $as_echo_n "checking for $ac_word... " >&6; }
9093 if ${ac_cv_prog_LIPO+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 if test -n "$LIPO"; then
9097 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9098 else
9099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 for as_dir in $PATH
9101 do
9102 IFS=$as_save_IFS
9103 test -z "$as_dir" && as_dir=.
9104 for ac_exec_ext in '' $ac_executable_extensions; do
9105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9106 ac_cv_prog_LIPO="${ncn_progname}"
9107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9108 break 2
9109 fi
9110 done
9111 done
9112 IFS=$as_save_IFS
9113
9114 fi
9115 fi
9116 LIPO=$ac_cv_prog_LIPO
9117 if test -n "$LIPO"; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9119 $as_echo "$LIPO" >&6; }
9120 else
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122 $as_echo "no" >&6; }
9123 fi
9124
9125
9126 done
9127 fi
9128
9129 for ncn_progname in lipo; do
9130 if test -n "$ncn_tool_prefix"; then
9131 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9132 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9134 $as_echo_n "checking for $ac_word... " >&6; }
9135 if ${ac_cv_prog_LIPO+:} false; then :
9136 $as_echo_n "(cached) " >&6
9137 else
9138 if test -n "$LIPO"; then
9139 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9140 else
9141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9142 for as_dir in $PATH
9143 do
9144 IFS=$as_save_IFS
9145 test -z "$as_dir" && as_dir=.
9146 for ac_exec_ext in '' $ac_executable_extensions; do
9147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9148 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
9149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9150 break 2
9151 fi
9152 done
9153 done
9154 IFS=$as_save_IFS
9155
9156 fi
9157 fi
9158 LIPO=$ac_cv_prog_LIPO
9159 if test -n "$LIPO"; then
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9161 $as_echo "$LIPO" >&6; }
9162 else
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9164 $as_echo "no" >&6; }
9165 fi
9166
9167
9168 fi
9169 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9171 set dummy ${ncn_progname}; ac_word=$2
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9173 $as_echo_n "checking for $ac_word... " >&6; }
9174 if ${ac_cv_prog_LIPO+:} false; then :
9175 $as_echo_n "(cached) " >&6
9176 else
9177 if test -n "$LIPO"; then
9178 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9179 else
9180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9181 for as_dir in $PATH
9182 do
9183 IFS=$as_save_IFS
9184 test -z "$as_dir" && as_dir=.
9185 for ac_exec_ext in '' $ac_executable_extensions; do
9186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9187 ac_cv_prog_LIPO="${ncn_progname}"
9188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9189 break 2
9190 fi
9191 done
9192 done
9193 IFS=$as_save_IFS
9194
9195 fi
9196 fi
9197 LIPO=$ac_cv_prog_LIPO
9198 if test -n "$LIPO"; then
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9200 $as_echo "$LIPO" >&6; }
9201 else
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203 $as_echo "no" >&6; }
9204 fi
9205
9206
9207 fi
9208 test -n "$ac_cv_prog_LIPO" && break
9209 done
9210
9211 if test -z "$ac_cv_prog_LIPO" ; then
9212 set dummy lipo
9213 if test $build = $host ; then
9214 LIPO="$2"
9215 else
9216 LIPO="${ncn_tool_prefix}$2"
9217 fi
9218 fi
9219
9220
9221
9222 if test -n "$NM"; then
9223 ac_cv_prog_NM=$NM
9224 elif test -n "$ac_cv_prog_NM"; then
9225 NM=$ac_cv_prog_NM
9226 fi
9227
9228 if test -n "$ac_cv_prog_NM"; then
9229 for ncn_progname in nm; do
9230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9231 set dummy ${ncn_progname}; ac_word=$2
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9233 $as_echo_n "checking for $ac_word... " >&6; }
9234 if ${ac_cv_prog_NM+:} false; then :
9235 $as_echo_n "(cached) " >&6
9236 else
9237 if test -n "$NM"; then
9238 ac_cv_prog_NM="$NM" # Let the user override the test.
9239 else
9240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9241 for as_dir in $PATH
9242 do
9243 IFS=$as_save_IFS
9244 test -z "$as_dir" && as_dir=.
9245 for ac_exec_ext in '' $ac_executable_extensions; do
9246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9247 ac_cv_prog_NM="${ncn_progname}"
9248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9249 break 2
9250 fi
9251 done
9252 done
9253 IFS=$as_save_IFS
9254
9255 fi
9256 fi
9257 NM=$ac_cv_prog_NM
9258 if test -n "$NM"; then
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9260 $as_echo "$NM" >&6; }
9261 else
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9263 $as_echo "no" >&6; }
9264 fi
9265
9266
9267 done
9268 fi
9269
9270 for ncn_progname in nm; do
9271 if test -n "$ncn_tool_prefix"; then
9272 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9273 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9275 $as_echo_n "checking for $ac_word... " >&6; }
9276 if ${ac_cv_prog_NM+:} false; then :
9277 $as_echo_n "(cached) " >&6
9278 else
9279 if test -n "$NM"; then
9280 ac_cv_prog_NM="$NM" # Let the user override the test.
9281 else
9282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9283 for as_dir in $PATH
9284 do
9285 IFS=$as_save_IFS
9286 test -z "$as_dir" && as_dir=.
9287 for ac_exec_ext in '' $ac_executable_extensions; do
9288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9289 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9291 break 2
9292 fi
9293 done
9294 done
9295 IFS=$as_save_IFS
9296
9297 fi
9298 fi
9299 NM=$ac_cv_prog_NM
9300 if test -n "$NM"; then
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9302 $as_echo "$NM" >&6; }
9303 else
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9305 $as_echo "no" >&6; }
9306 fi
9307
9308
9309 fi
9310 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9312 set dummy ${ncn_progname}; ac_word=$2
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9314 $as_echo_n "checking for $ac_word... " >&6; }
9315 if ${ac_cv_prog_NM+:} false; then :
9316 $as_echo_n "(cached) " >&6
9317 else
9318 if test -n "$NM"; then
9319 ac_cv_prog_NM="$NM" # Let the user override the test.
9320 else
9321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9322 for as_dir in $PATH
9323 do
9324 IFS=$as_save_IFS
9325 test -z "$as_dir" && as_dir=.
9326 for ac_exec_ext in '' $ac_executable_extensions; do
9327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9328 ac_cv_prog_NM="${ncn_progname}"
9329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9330 break 2
9331 fi
9332 done
9333 done
9334 IFS=$as_save_IFS
9335
9336 fi
9337 fi
9338 NM=$ac_cv_prog_NM
9339 if test -n "$NM"; then
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9341 $as_echo "$NM" >&6; }
9342 else
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9344 $as_echo "no" >&6; }
9345 fi
9346
9347
9348 fi
9349 test -n "$ac_cv_prog_NM" && break
9350 done
9351
9352 if test -z "$ac_cv_prog_NM" ; then
9353 set dummy nm
9354 if test $build = $host ; then
9355 NM="$2"
9356 else
9357 NM="${ncn_tool_prefix}$2"
9358 fi
9359 fi
9360
9361
9362
9363 if test -n "$RANLIB"; then
9364 ac_cv_prog_RANLIB=$RANLIB
9365 elif test -n "$ac_cv_prog_RANLIB"; then
9366 RANLIB=$ac_cv_prog_RANLIB
9367 fi
9368
9369 if test -n "$ac_cv_prog_RANLIB"; then
9370 for ncn_progname in ranlib; do
9371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9372 set dummy ${ncn_progname}; ac_word=$2
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9374 $as_echo_n "checking for $ac_word... " >&6; }
9375 if ${ac_cv_prog_RANLIB+:} false; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9378 if test -n "$RANLIB"; then
9379 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9380 else
9381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382 for as_dir in $PATH
9383 do
9384 IFS=$as_save_IFS
9385 test -z "$as_dir" && as_dir=.
9386 for ac_exec_ext in '' $ac_executable_extensions; do
9387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9388 ac_cv_prog_RANLIB="${ncn_progname}"
9389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9390 break 2
9391 fi
9392 done
9393 done
9394 IFS=$as_save_IFS
9395
9396 fi
9397 fi
9398 RANLIB=$ac_cv_prog_RANLIB
9399 if test -n "$RANLIB"; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9401 $as_echo "$RANLIB" >&6; }
9402 else
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9405 fi
9406
9407
9408 done
9409 fi
9410
9411 for ncn_progname in ranlib; do
9412 if test -n "$ncn_tool_prefix"; then
9413 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9414 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9416 $as_echo_n "checking for $ac_word... " >&6; }
9417 if ${ac_cv_prog_RANLIB+:} false; then :
9418 $as_echo_n "(cached) " >&6
9419 else
9420 if test -n "$RANLIB"; then
9421 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9422 else
9423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424 for as_dir in $PATH
9425 do
9426 IFS=$as_save_IFS
9427 test -z "$as_dir" && as_dir=.
9428 for ac_exec_ext in '' $ac_executable_extensions; do
9429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9430 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9432 break 2
9433 fi
9434 done
9435 done
9436 IFS=$as_save_IFS
9437
9438 fi
9439 fi
9440 RANLIB=$ac_cv_prog_RANLIB
9441 if test -n "$RANLIB"; then
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9443 $as_echo "$RANLIB" >&6; }
9444 else
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9446 $as_echo "no" >&6; }
9447 fi
9448
9449
9450 fi
9451 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9453 set dummy ${ncn_progname}; ac_word=$2
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9455 $as_echo_n "checking for $ac_word... " >&6; }
9456 if ${ac_cv_prog_RANLIB+:} false; then :
9457 $as_echo_n "(cached) " >&6
9458 else
9459 if test -n "$RANLIB"; then
9460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9461 else
9462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463 for as_dir in $PATH
9464 do
9465 IFS=$as_save_IFS
9466 test -z "$as_dir" && as_dir=.
9467 for ac_exec_ext in '' $ac_executable_extensions; do
9468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9469 ac_cv_prog_RANLIB="${ncn_progname}"
9470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9471 break 2
9472 fi
9473 done
9474 done
9475 IFS=$as_save_IFS
9476
9477 fi
9478 fi
9479 RANLIB=$ac_cv_prog_RANLIB
9480 if test -n "$RANLIB"; then
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9482 $as_echo "$RANLIB" >&6; }
9483 else
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485 $as_echo "no" >&6; }
9486 fi
9487
9488
9489 fi
9490 test -n "$ac_cv_prog_RANLIB" && break
9491 done
9492
9493 if test -z "$ac_cv_prog_RANLIB" ; then
9494 RANLIB="true"
9495 fi
9496
9497
9498
9499 if test -n "$STRIP"; then
9500 ac_cv_prog_STRIP=$STRIP
9501 elif test -n "$ac_cv_prog_STRIP"; then
9502 STRIP=$ac_cv_prog_STRIP
9503 fi
9504
9505 if test -n "$ac_cv_prog_STRIP"; then
9506 for ncn_progname in strip; do
9507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9508 set dummy ${ncn_progname}; ac_word=$2
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9510 $as_echo_n "checking for $ac_word... " >&6; }
9511 if ${ac_cv_prog_STRIP+:} false; then :
9512 $as_echo_n "(cached) " >&6
9513 else
9514 if test -n "$STRIP"; then
9515 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9516 else
9517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9518 for as_dir in $PATH
9519 do
9520 IFS=$as_save_IFS
9521 test -z "$as_dir" && as_dir=.
9522 for ac_exec_ext in '' $ac_executable_extensions; do
9523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9524 ac_cv_prog_STRIP="${ncn_progname}"
9525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9526 break 2
9527 fi
9528 done
9529 done
9530 IFS=$as_save_IFS
9531
9532 fi
9533 fi
9534 STRIP=$ac_cv_prog_STRIP
9535 if test -n "$STRIP"; then
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9537 $as_echo "$STRIP" >&6; }
9538 else
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9540 $as_echo "no" >&6; }
9541 fi
9542
9543
9544 done
9545 fi
9546
9547 for ncn_progname in strip; do
9548 if test -n "$ncn_tool_prefix"; then
9549 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9550 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9552 $as_echo_n "checking for $ac_word... " >&6; }
9553 if ${ac_cv_prog_STRIP+:} false; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556 if test -n "$STRIP"; then
9557 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9558 else
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560 for as_dir in $PATH
9561 do
9562 IFS=$as_save_IFS
9563 test -z "$as_dir" && as_dir=.
9564 for ac_exec_ext in '' $ac_executable_extensions; do
9565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9566 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9568 break 2
9569 fi
9570 done
9571 done
9572 IFS=$as_save_IFS
9573
9574 fi
9575 fi
9576 STRIP=$ac_cv_prog_STRIP
9577 if test -n "$STRIP"; then
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9579 $as_echo "$STRIP" >&6; }
9580 else
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582 $as_echo "no" >&6; }
9583 fi
9584
9585
9586 fi
9587 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9588 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9589 set dummy ${ncn_progname}; ac_word=$2
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9591 $as_echo_n "checking for $ac_word... " >&6; }
9592 if ${ac_cv_prog_STRIP+:} false; then :
9593 $as_echo_n "(cached) " >&6
9594 else
9595 if test -n "$STRIP"; then
9596 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9597 else
9598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9599 for as_dir in $PATH
9600 do
9601 IFS=$as_save_IFS
9602 test -z "$as_dir" && as_dir=.
9603 for ac_exec_ext in '' $ac_executable_extensions; do
9604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9605 ac_cv_prog_STRIP="${ncn_progname}"
9606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9607 break 2
9608 fi
9609 done
9610 done
9611 IFS=$as_save_IFS
9612
9613 fi
9614 fi
9615 STRIP=$ac_cv_prog_STRIP
9616 if test -n "$STRIP"; then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9618 $as_echo "$STRIP" >&6; }
9619 else
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9621 $as_echo "no" >&6; }
9622 fi
9623
9624
9625 fi
9626 test -n "$ac_cv_prog_STRIP" && break
9627 done
9628
9629 if test -z "$ac_cv_prog_STRIP" ; then
9630 STRIP="true"
9631 fi
9632
9633
9634
9635 if test -n "$WINDRES"; then
9636 ac_cv_prog_WINDRES=$WINDRES
9637 elif test -n "$ac_cv_prog_WINDRES"; then
9638 WINDRES=$ac_cv_prog_WINDRES
9639 fi
9640
9641 if test -n "$ac_cv_prog_WINDRES"; then
9642 for ncn_progname in windres; do
9643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9644 set dummy ${ncn_progname}; ac_word=$2
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9646 $as_echo_n "checking for $ac_word... " >&6; }
9647 if ${ac_cv_prog_WINDRES+:} false; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650 if test -n "$WINDRES"; then
9651 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9652 else
9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 for as_dir in $PATH
9655 do
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
9658 for ac_exec_ext in '' $ac_executable_extensions; do
9659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9660 ac_cv_prog_WINDRES="${ncn_progname}"
9661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9662 break 2
9663 fi
9664 done
9665 done
9666 IFS=$as_save_IFS
9667
9668 fi
9669 fi
9670 WINDRES=$ac_cv_prog_WINDRES
9671 if test -n "$WINDRES"; then
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9673 $as_echo "$WINDRES" >&6; }
9674 else
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9676 $as_echo "no" >&6; }
9677 fi
9678
9679
9680 done
9681 fi
9682
9683 for ncn_progname in windres; do
9684 if test -n "$ncn_tool_prefix"; then
9685 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9686 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9688 $as_echo_n "checking for $ac_word... " >&6; }
9689 if ${ac_cv_prog_WINDRES+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 if test -n "$WINDRES"; then
9693 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9694 else
9695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9696 for as_dir in $PATH
9697 do
9698 IFS=$as_save_IFS
9699 test -z "$as_dir" && as_dir=.
9700 for ac_exec_ext in '' $ac_executable_extensions; do
9701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9702 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9704 break 2
9705 fi
9706 done
9707 done
9708 IFS=$as_save_IFS
9709
9710 fi
9711 fi
9712 WINDRES=$ac_cv_prog_WINDRES
9713 if test -n "$WINDRES"; then
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9715 $as_echo "$WINDRES" >&6; }
9716 else
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9718 $as_echo "no" >&6; }
9719 fi
9720
9721
9722 fi
9723 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9725 set dummy ${ncn_progname}; ac_word=$2
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727 $as_echo_n "checking for $ac_word... " >&6; }
9728 if ${ac_cv_prog_WINDRES+:} false; then :
9729 $as_echo_n "(cached) " >&6
9730 else
9731 if test -n "$WINDRES"; then
9732 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9733 else
9734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735 for as_dir in $PATH
9736 do
9737 IFS=$as_save_IFS
9738 test -z "$as_dir" && as_dir=.
9739 for ac_exec_ext in '' $ac_executable_extensions; do
9740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9741 ac_cv_prog_WINDRES="${ncn_progname}"
9742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9743 break 2
9744 fi
9745 done
9746 done
9747 IFS=$as_save_IFS
9748
9749 fi
9750 fi
9751 WINDRES=$ac_cv_prog_WINDRES
9752 if test -n "$WINDRES"; then
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9754 $as_echo "$WINDRES" >&6; }
9755 else
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757 $as_echo "no" >&6; }
9758 fi
9759
9760
9761 fi
9762 test -n "$ac_cv_prog_WINDRES" && break
9763 done
9764
9765 if test -z "$ac_cv_prog_WINDRES" ; then
9766 set dummy windres
9767 if test $build = $host ; then
9768 WINDRES="$2"
9769 else
9770 WINDRES="${ncn_tool_prefix}$2"
9771 fi
9772 fi
9773
9774
9775
9776 if test -n "$WINDMC"; then
9777 ac_cv_prog_WINDMC=$WINDMC
9778 elif test -n "$ac_cv_prog_WINDMC"; then
9779 WINDMC=$ac_cv_prog_WINDMC
9780 fi
9781
9782 if test -n "$ac_cv_prog_WINDMC"; then
9783 for ncn_progname in windmc; do
9784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9785 set dummy ${ncn_progname}; ac_word=$2
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9787 $as_echo_n "checking for $ac_word... " >&6; }
9788 if ${ac_cv_prog_WINDMC+:} false; then :
9789 $as_echo_n "(cached) " >&6
9790 else
9791 if test -n "$WINDMC"; then
9792 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9793 else
9794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795 for as_dir in $PATH
9796 do
9797 IFS=$as_save_IFS
9798 test -z "$as_dir" && as_dir=.
9799 for ac_exec_ext in '' $ac_executable_extensions; do
9800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9801 ac_cv_prog_WINDMC="${ncn_progname}"
9802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9803 break 2
9804 fi
9805 done
9806 done
9807 IFS=$as_save_IFS
9808
9809 fi
9810 fi
9811 WINDMC=$ac_cv_prog_WINDMC
9812 if test -n "$WINDMC"; then
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9814 $as_echo "$WINDMC" >&6; }
9815 else
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9817 $as_echo "no" >&6; }
9818 fi
9819
9820
9821 done
9822 fi
9823
9824 for ncn_progname in windmc; do
9825 if test -n "$ncn_tool_prefix"; then
9826 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9827 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9829 $as_echo_n "checking for $ac_word... " >&6; }
9830 if ${ac_cv_prog_WINDMC+:} false; then :
9831 $as_echo_n "(cached) " >&6
9832 else
9833 if test -n "$WINDMC"; then
9834 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9835 else
9836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9837 for as_dir in $PATH
9838 do
9839 IFS=$as_save_IFS
9840 test -z "$as_dir" && as_dir=.
9841 for ac_exec_ext in '' $ac_executable_extensions; do
9842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9843 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9845 break 2
9846 fi
9847 done
9848 done
9849 IFS=$as_save_IFS
9850
9851 fi
9852 fi
9853 WINDMC=$ac_cv_prog_WINDMC
9854 if test -n "$WINDMC"; then
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9856 $as_echo "$WINDMC" >&6; }
9857 else
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9859 $as_echo "no" >&6; }
9860 fi
9861
9862
9863 fi
9864 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9866 set dummy ${ncn_progname}; ac_word=$2
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9868 $as_echo_n "checking for $ac_word... " >&6; }
9869 if ${ac_cv_prog_WINDMC+:} false; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 if test -n "$WINDMC"; then
9873 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9874 else
9875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876 for as_dir in $PATH
9877 do
9878 IFS=$as_save_IFS
9879 test -z "$as_dir" && as_dir=.
9880 for ac_exec_ext in '' $ac_executable_extensions; do
9881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9882 ac_cv_prog_WINDMC="${ncn_progname}"
9883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9884 break 2
9885 fi
9886 done
9887 done
9888 IFS=$as_save_IFS
9889
9890 fi
9891 fi
9892 WINDMC=$ac_cv_prog_WINDMC
9893 if test -n "$WINDMC"; then
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9895 $as_echo "$WINDMC" >&6; }
9896 else
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898 $as_echo "no" >&6; }
9899 fi
9900
9901
9902 fi
9903 test -n "$ac_cv_prog_WINDMC" && break
9904 done
9905
9906 if test -z "$ac_cv_prog_WINDMC" ; then
9907 set dummy windmc
9908 if test $build = $host ; then
9909 WINDMC="$2"
9910 else
9911 WINDMC="${ncn_tool_prefix}$2"
9912 fi
9913 fi
9914
9915
9916
9917 if test -n "$OBJCOPY"; then
9918 ac_cv_prog_OBJCOPY=$OBJCOPY
9919 elif test -n "$ac_cv_prog_OBJCOPY"; then
9920 OBJCOPY=$ac_cv_prog_OBJCOPY
9921 fi
9922
9923 if test -n "$ac_cv_prog_OBJCOPY"; then
9924 for ncn_progname in objcopy; do
9925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9926 set dummy ${ncn_progname}; ac_word=$2
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9928 $as_echo_n "checking for $ac_word... " >&6; }
9929 if ${ac_cv_prog_OBJCOPY+:} false; then :
9930 $as_echo_n "(cached) " >&6
9931 else
9932 if test -n "$OBJCOPY"; then
9933 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9934 else
9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936 for as_dir in $PATH
9937 do
9938 IFS=$as_save_IFS
9939 test -z "$as_dir" && as_dir=.
9940 for ac_exec_ext in '' $ac_executable_extensions; do
9941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9942 ac_cv_prog_OBJCOPY="${ncn_progname}"
9943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9944 break 2
9945 fi
9946 done
9947 done
9948 IFS=$as_save_IFS
9949
9950 fi
9951 fi
9952 OBJCOPY=$ac_cv_prog_OBJCOPY
9953 if test -n "$OBJCOPY"; then
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9955 $as_echo "$OBJCOPY" >&6; }
9956 else
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958 $as_echo "no" >&6; }
9959 fi
9960
9961
9962 done
9963 fi
9964
9965 for ncn_progname in objcopy; do
9966 if test -n "$ncn_tool_prefix"; then
9967 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9968 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9970 $as_echo_n "checking for $ac_word... " >&6; }
9971 if ${ac_cv_prog_OBJCOPY+:} false; then :
9972 $as_echo_n "(cached) " >&6
9973 else
9974 if test -n "$OBJCOPY"; then
9975 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9976 else
9977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9978 for as_dir in $PATH
9979 do
9980 IFS=$as_save_IFS
9981 test -z "$as_dir" && as_dir=.
9982 for ac_exec_ext in '' $ac_executable_extensions; do
9983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9984 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9986 break 2
9987 fi
9988 done
9989 done
9990 IFS=$as_save_IFS
9991
9992 fi
9993 fi
9994 OBJCOPY=$ac_cv_prog_OBJCOPY
9995 if test -n "$OBJCOPY"; then
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9997 $as_echo "$OBJCOPY" >&6; }
9998 else
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000 $as_echo "no" >&6; }
10001 fi
10002
10003
10004 fi
10005 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
10006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10007 set dummy ${ncn_progname}; ac_word=$2
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009 $as_echo_n "checking for $ac_word... " >&6; }
10010 if ${ac_cv_prog_OBJCOPY+:} false; then :
10011 $as_echo_n "(cached) " >&6
10012 else
10013 if test -n "$OBJCOPY"; then
10014 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
10015 else
10016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017 for as_dir in $PATH
10018 do
10019 IFS=$as_save_IFS
10020 test -z "$as_dir" && as_dir=.
10021 for ac_exec_ext in '' $ac_executable_extensions; do
10022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10023 ac_cv_prog_OBJCOPY="${ncn_progname}"
10024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10025 break 2
10026 fi
10027 done
10028 done
10029 IFS=$as_save_IFS
10030
10031 fi
10032 fi
10033 OBJCOPY=$ac_cv_prog_OBJCOPY
10034 if test -n "$OBJCOPY"; then
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10036 $as_echo "$OBJCOPY" >&6; }
10037 else
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039 $as_echo "no" >&6; }
10040 fi
10041
10042
10043 fi
10044 test -n "$ac_cv_prog_OBJCOPY" && break
10045 done
10046
10047 if test -z "$ac_cv_prog_OBJCOPY" ; then
10048 set dummy objcopy
10049 if test $build = $host ; then
10050 OBJCOPY="$2"
10051 else
10052 OBJCOPY="${ncn_tool_prefix}$2"
10053 fi
10054 fi
10055
10056
10057
10058 if test -n "$OBJDUMP"; then
10059 ac_cv_prog_OBJDUMP=$OBJDUMP
10060 elif test -n "$ac_cv_prog_OBJDUMP"; then
10061 OBJDUMP=$ac_cv_prog_OBJDUMP
10062 fi
10063
10064 if test -n "$ac_cv_prog_OBJDUMP"; then
10065 for ncn_progname in objdump; do
10066 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10067 set dummy ${ncn_progname}; ac_word=$2
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10069 $as_echo_n "checking for $ac_word... " >&6; }
10070 if ${ac_cv_prog_OBJDUMP+:} false; then :
10071 $as_echo_n "(cached) " >&6
10072 else
10073 if test -n "$OBJDUMP"; then
10074 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10075 else
10076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10077 for as_dir in $PATH
10078 do
10079 IFS=$as_save_IFS
10080 test -z "$as_dir" && as_dir=.
10081 for ac_exec_ext in '' $ac_executable_extensions; do
10082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10083 ac_cv_prog_OBJDUMP="${ncn_progname}"
10084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10085 break 2
10086 fi
10087 done
10088 done
10089 IFS=$as_save_IFS
10090
10091 fi
10092 fi
10093 OBJDUMP=$ac_cv_prog_OBJDUMP
10094 if test -n "$OBJDUMP"; then
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10096 $as_echo "$OBJDUMP" >&6; }
10097 else
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10099 $as_echo "no" >&6; }
10100 fi
10101
10102
10103 done
10104 fi
10105
10106 for ncn_progname in objdump; do
10107 if test -n "$ncn_tool_prefix"; then
10108 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10109 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10111 $as_echo_n "checking for $ac_word... " >&6; }
10112 if ${ac_cv_prog_OBJDUMP+:} false; then :
10113 $as_echo_n "(cached) " >&6
10114 else
10115 if test -n "$OBJDUMP"; then
10116 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10117 else
10118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10119 for as_dir in $PATH
10120 do
10121 IFS=$as_save_IFS
10122 test -z "$as_dir" && as_dir=.
10123 for ac_exec_ext in '' $ac_executable_extensions; do
10124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10125 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
10126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10127 break 2
10128 fi
10129 done
10130 done
10131 IFS=$as_save_IFS
10132
10133 fi
10134 fi
10135 OBJDUMP=$ac_cv_prog_OBJDUMP
10136 if test -n "$OBJDUMP"; then
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10138 $as_echo "$OBJDUMP" >&6; }
10139 else
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 $as_echo "no" >&6; }
10142 fi
10143
10144
10145 fi
10146 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10147 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10148 set dummy ${ncn_progname}; ac_word=$2
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10150 $as_echo_n "checking for $ac_word... " >&6; }
10151 if ${ac_cv_prog_OBJDUMP+:} false; then :
10152 $as_echo_n "(cached) " >&6
10153 else
10154 if test -n "$OBJDUMP"; then
10155 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10156 else
10157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10158 for as_dir in $PATH
10159 do
10160 IFS=$as_save_IFS
10161 test -z "$as_dir" && as_dir=.
10162 for ac_exec_ext in '' $ac_executable_extensions; do
10163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10164 ac_cv_prog_OBJDUMP="${ncn_progname}"
10165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10166 break 2
10167 fi
10168 done
10169 done
10170 IFS=$as_save_IFS
10171
10172 fi
10173 fi
10174 OBJDUMP=$ac_cv_prog_OBJDUMP
10175 if test -n "$OBJDUMP"; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10177 $as_echo "$OBJDUMP" >&6; }
10178 else
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180 $as_echo "no" >&6; }
10181 fi
10182
10183
10184 fi
10185 test -n "$ac_cv_prog_OBJDUMP" && break
10186 done
10187
10188 if test -z "$ac_cv_prog_OBJDUMP" ; then
10189 set dummy objdump
10190 if test $build = $host ; then
10191 OBJDUMP="$2"
10192 else
10193 OBJDUMP="${ncn_tool_prefix}$2"
10194 fi
10195 fi
10196
10197
10198
10199 if test -n "$READELF"; then
10200 ac_cv_prog_READELF=$READELF
10201 elif test -n "$ac_cv_prog_READELF"; then
10202 READELF=$ac_cv_prog_READELF
10203 fi
10204
10205 if test -n "$ac_cv_prog_READELF"; then
10206 for ncn_progname in readelf; do
10207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10208 set dummy ${ncn_progname}; ac_word=$2
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10210 $as_echo_n "checking for $ac_word... " >&6; }
10211 if ${ac_cv_prog_READELF+:} false; then :
10212 $as_echo_n "(cached) " >&6
10213 else
10214 if test -n "$READELF"; then
10215 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10216 else
10217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218 for as_dir in $PATH
10219 do
10220 IFS=$as_save_IFS
10221 test -z "$as_dir" && as_dir=.
10222 for ac_exec_ext in '' $ac_executable_extensions; do
10223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10224 ac_cv_prog_READELF="${ncn_progname}"
10225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10226 break 2
10227 fi
10228 done
10229 done
10230 IFS=$as_save_IFS
10231
10232 fi
10233 fi
10234 READELF=$ac_cv_prog_READELF
10235 if test -n "$READELF"; then
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10237 $as_echo "$READELF" >&6; }
10238 else
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240 $as_echo "no" >&6; }
10241 fi
10242
10243
10244 done
10245 fi
10246
10247 for ncn_progname in readelf; do
10248 if test -n "$ncn_tool_prefix"; then
10249 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10250 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10252 $as_echo_n "checking for $ac_word... " >&6; }
10253 if ${ac_cv_prog_READELF+:} false; then :
10254 $as_echo_n "(cached) " >&6
10255 else
10256 if test -n "$READELF"; then
10257 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10258 else
10259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10260 for as_dir in $PATH
10261 do
10262 IFS=$as_save_IFS
10263 test -z "$as_dir" && as_dir=.
10264 for ac_exec_ext in '' $ac_executable_extensions; do
10265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10266 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10268 break 2
10269 fi
10270 done
10271 done
10272 IFS=$as_save_IFS
10273
10274 fi
10275 fi
10276 READELF=$ac_cv_prog_READELF
10277 if test -n "$READELF"; then
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10279 $as_echo "$READELF" >&6; }
10280 else
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282 $as_echo "no" >&6; }
10283 fi
10284
10285
10286 fi
10287 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10289 set dummy ${ncn_progname}; ac_word=$2
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10291 $as_echo_n "checking for $ac_word... " >&6; }
10292 if ${ac_cv_prog_READELF+:} false; then :
10293 $as_echo_n "(cached) " >&6
10294 else
10295 if test -n "$READELF"; then
10296 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10297 else
10298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299 for as_dir in $PATH
10300 do
10301 IFS=$as_save_IFS
10302 test -z "$as_dir" && as_dir=.
10303 for ac_exec_ext in '' $ac_executable_extensions; do
10304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10305 ac_cv_prog_READELF="${ncn_progname}"
10306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10307 break 2
10308 fi
10309 done
10310 done
10311 IFS=$as_save_IFS
10312
10313 fi
10314 fi
10315 READELF=$ac_cv_prog_READELF
10316 if test -n "$READELF"; then
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10318 $as_echo "$READELF" >&6; }
10319 else
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321 $as_echo "no" >&6; }
10322 fi
10323
10324
10325 fi
10326 test -n "$ac_cv_prog_READELF" && break
10327 done
10328
10329 if test -z "$ac_cv_prog_READELF" ; then
10330 set dummy readelf
10331 if test $build = $host ; then
10332 READELF="$2"
10333 else
10334 READELF="${ncn_tool_prefix}$2"
10335 fi
10336 fi
10337
10338
10339
10340
10341
10342
10343
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10345 $as_echo_n "checking for -plugin option... " >&6; }
10346
10347 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10348 plugin_option=
10349 for plugin in $plugin_names; do
10350 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10351 if test x$plugin_so = x$plugin; then
10352 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10353 fi
10354 if test x$plugin_so != x$plugin; then
10355 plugin_option="--plugin $plugin_so"
10356 break
10357 fi
10358 done
10359 if test -n "$ac_tool_prefix"; then
10360 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10361 set dummy ${ac_tool_prefix}ar; ac_word=$2
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363 $as_echo_n "checking for $ac_word... " >&6; }
10364 if ${ac_cv_prog_AR+:} false; then :
10365 $as_echo_n "(cached) " >&6
10366 else
10367 if test -n "$AR"; then
10368 ac_cv_prog_AR="$AR" # Let the user override the test.
10369 else
10370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371 for as_dir in $PATH
10372 do
10373 IFS=$as_save_IFS
10374 test -z "$as_dir" && as_dir=.
10375 for ac_exec_ext in '' $ac_executable_extensions; do
10376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10377 ac_cv_prog_AR="${ac_tool_prefix}ar"
10378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379 break 2
10380 fi
10381 done
10382 done
10383 IFS=$as_save_IFS
10384
10385 fi
10386 fi
10387 AR=$ac_cv_prog_AR
10388 if test -n "$AR"; then
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10390 $as_echo "$AR" >&6; }
10391 else
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393 $as_echo "no" >&6; }
10394 fi
10395
10396
10397 fi
10398 if test -z "$ac_cv_prog_AR"; then
10399 ac_ct_AR=$AR
10400 # Extract the first word of "ar", so it can be a program name with args.
10401 set dummy ar; ac_word=$2
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10403 $as_echo_n "checking for $ac_word... " >&6; }
10404 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 if test -n "$ac_ct_AR"; then
10408 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10409 else
10410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411 for as_dir in $PATH
10412 do
10413 IFS=$as_save_IFS
10414 test -z "$as_dir" && as_dir=.
10415 for ac_exec_ext in '' $ac_executable_extensions; do
10416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10417 ac_cv_prog_ac_ct_AR="ar"
10418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10419 break 2
10420 fi
10421 done
10422 done
10423 IFS=$as_save_IFS
10424
10425 fi
10426 fi
10427 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10428 if test -n "$ac_ct_AR"; then
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10430 $as_echo "$ac_ct_AR" >&6; }
10431 else
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433 $as_echo "no" >&6; }
10434 fi
10435
10436 if test "x$ac_ct_AR" = x; then
10437 AR=""
10438 else
10439 case $cross_compiling:$ac_tool_warned in
10440 yes:)
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10443 ac_tool_warned=yes ;;
10444 esac
10445 AR=$ac_ct_AR
10446 fi
10447 else
10448 AR="$ac_cv_prog_AR"
10449 fi
10450
10451 if test "${AR}" = "" ; then
10452 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
10453 fi
10454 touch conftest.c
10455 ${AR} $plugin_option rc conftest.a conftest.c
10456 if test "$?" != 0; then
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10458 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10459 plugin_option=
10460 fi
10461 rm -f conftest.*
10462 if test -n "$plugin_option"; then
10463 PLUGIN_OPTION="$plugin_option"
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10465 $as_echo "$plugin_option" >&6; }
10466 else
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10468 $as_echo "no" >&6; }
10469 fi
10470
10471 AR_PLUGIN_OPTION=
10472 RANLIB_PLUGIN_OPTION=
10473 if test -n "$PLUGIN_OPTION"; then
10474 if $AR --help 2>&1 | grep -q "\--plugin"; then
10475 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10476 fi
10477 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10478 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10479 fi
10480 else
10481 if test "$enable_pgo_build" != "no"; then
10482 as_fn_error $? "AR with --plugin and rc is required for LTO build" "$LINENO" 5
10483 fi
10484 fi
10485
10486
10487
10488 # Target tools.
10489
10490 # Check whether --with-build-time-tools was given.
10491 if test "${with_build_time_tools+set}" = set; then :
10492 withval=$with_build_time_tools; case x"$withval" in
10493 x/*) ;;
10494 *)
10495 with_build_time_tools=
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10497 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10498 ;;
10499 esac
10500 else
10501 with_build_time_tools=
10502 fi
10503
10504
10505
10506
10507 if test -n "$CC_FOR_TARGET"; then
10508 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10509 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10510 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10511 fi
10512
10513 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10514 for ncn_progname in cc gcc; do
10515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10516 set dummy ${ncn_progname}; ac_word=$2
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10518 $as_echo_n "checking for $ac_word... " >&6; }
10519 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10520 $as_echo_n "(cached) " >&6
10521 else
10522 if test -n "$CC_FOR_TARGET"; then
10523 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10524 else
10525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10526 for as_dir in $PATH
10527 do
10528 IFS=$as_save_IFS
10529 test -z "$as_dir" && as_dir=.
10530 for ac_exec_ext in '' $ac_executable_extensions; do
10531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10532 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10534 break 2
10535 fi
10536 done
10537 done
10538 IFS=$as_save_IFS
10539
10540 fi
10541 fi
10542 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10543 if test -n "$CC_FOR_TARGET"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10545 $as_echo "$CC_FOR_TARGET" >&6; }
10546 else
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10549 fi
10550
10551
10552 done
10553 fi
10554
10555 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10556 for ncn_progname in cc gcc; do
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10558 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10559 if test -x $with_build_time_tools/${ncn_progname}; then
10560 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10562 $as_echo "yes" >&6; }
10563 break
10564 else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 $as_echo "no" >&6; }
10567 fi
10568 done
10569 fi
10570
10571 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10572 for ncn_progname in cc gcc; do
10573 if test -n "$ncn_target_tool_prefix"; then
10574 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10575 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10577 $as_echo_n "checking for $ac_word... " >&6; }
10578 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10579 $as_echo_n "(cached) " >&6
10580 else
10581 if test -n "$CC_FOR_TARGET"; then
10582 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10583 else
10584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585 for as_dir in $PATH
10586 do
10587 IFS=$as_save_IFS
10588 test -z "$as_dir" && as_dir=.
10589 for ac_exec_ext in '' $ac_executable_extensions; do
10590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10591 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10593 break 2
10594 fi
10595 done
10596 done
10597 IFS=$as_save_IFS
10598
10599 fi
10600 fi
10601 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10602 if test -n "$CC_FOR_TARGET"; then
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10604 $as_echo "$CC_FOR_TARGET" >&6; }
10605 else
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; }
10608 fi
10609
10610
10611 fi
10612 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10614 set dummy ${ncn_progname}; ac_word=$2
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10616 $as_echo_n "checking for $ac_word... " >&6; }
10617 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10618 $as_echo_n "(cached) " >&6
10619 else
10620 if test -n "$CC_FOR_TARGET"; then
10621 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10622 else
10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624 for as_dir in $PATH
10625 do
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
10629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10630 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 break 2
10633 fi
10634 done
10635 done
10636 IFS=$as_save_IFS
10637
10638 fi
10639 fi
10640 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10641 if test -n "$CC_FOR_TARGET"; then
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10643 $as_echo "$CC_FOR_TARGET" >&6; }
10644 else
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 $as_echo "no" >&6; }
10647 fi
10648
10649
10650 fi
10651 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10652 done
10653 fi
10654
10655 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10656 set dummy cc gcc
10657 if test $build = $target ; then
10658 CC_FOR_TARGET="$2"
10659 else
10660 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10661 fi
10662 else
10663 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10664 fi
10665
10666
10667
10668 if test -n "$CXX_FOR_TARGET"; then
10669 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10670 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10671 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10672 fi
10673
10674 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10675 for ncn_progname in c++ g++ cxx gxx; do
10676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10677 set dummy ${ncn_progname}; ac_word=$2
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10679 $as_echo_n "checking for $ac_word... " >&6; }
10680 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10681 $as_echo_n "(cached) " >&6
10682 else
10683 if test -n "$CXX_FOR_TARGET"; then
10684 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10685 else
10686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10687 for as_dir in $PATH
10688 do
10689 IFS=$as_save_IFS
10690 test -z "$as_dir" && as_dir=.
10691 for ac_exec_ext in '' $ac_executable_extensions; do
10692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10693 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10695 break 2
10696 fi
10697 done
10698 done
10699 IFS=$as_save_IFS
10700
10701 fi
10702 fi
10703 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10704 if test -n "$CXX_FOR_TARGET"; then
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10706 $as_echo "$CXX_FOR_TARGET" >&6; }
10707 else
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709 $as_echo "no" >&6; }
10710 fi
10711
10712
10713 done
10714 fi
10715
10716 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10717 for ncn_progname in c++ g++ cxx gxx; do
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10719 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10720 if test -x $with_build_time_tools/${ncn_progname}; then
10721 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10723 $as_echo "yes" >&6; }
10724 break
10725 else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727 $as_echo "no" >&6; }
10728 fi
10729 done
10730 fi
10731
10732 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10733 for ncn_progname in c++ g++ cxx gxx; do
10734 if test -n "$ncn_target_tool_prefix"; then
10735 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10736 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10738 $as_echo_n "checking for $ac_word... " >&6; }
10739 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742 if test -n "$CXX_FOR_TARGET"; then
10743 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10744 else
10745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10746 for as_dir in $PATH
10747 do
10748 IFS=$as_save_IFS
10749 test -z "$as_dir" && as_dir=.
10750 for ac_exec_ext in '' $ac_executable_extensions; do
10751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10752 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10754 break 2
10755 fi
10756 done
10757 done
10758 IFS=$as_save_IFS
10759
10760 fi
10761 fi
10762 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10763 if test -n "$CXX_FOR_TARGET"; then
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10765 $as_echo "$CXX_FOR_TARGET" >&6; }
10766 else
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768 $as_echo "no" >&6; }
10769 fi
10770
10771
10772 fi
10773 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10775 set dummy ${ncn_progname}; ac_word=$2
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10777 $as_echo_n "checking for $ac_word... " >&6; }
10778 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10779 $as_echo_n "(cached) " >&6
10780 else
10781 if test -n "$CXX_FOR_TARGET"; then
10782 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10783 else
10784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10785 for as_dir in $PATH
10786 do
10787 IFS=$as_save_IFS
10788 test -z "$as_dir" && as_dir=.
10789 for ac_exec_ext in '' $ac_executable_extensions; do
10790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10791 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10793 break 2
10794 fi
10795 done
10796 done
10797 IFS=$as_save_IFS
10798
10799 fi
10800 fi
10801 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10802 if test -n "$CXX_FOR_TARGET"; then
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10804 $as_echo "$CXX_FOR_TARGET" >&6; }
10805 else
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10807 $as_echo "no" >&6; }
10808 fi
10809
10810
10811 fi
10812 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10813 done
10814 fi
10815
10816 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10817 set dummy c++ g++ cxx gxx
10818 if test $build = $target ; then
10819 CXX_FOR_TARGET="$2"
10820 else
10821 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10822 fi
10823 else
10824 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10825 fi
10826
10827
10828
10829 if test -n "$GCC_FOR_TARGET"; then
10830 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10831 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10832 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10833 fi
10834
10835 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10836 for ncn_progname in gcc; do
10837 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10838 set dummy ${ncn_progname}; ac_word=$2
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10840 $as_echo_n "checking for $ac_word... " >&6; }
10841 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10842 $as_echo_n "(cached) " >&6
10843 else
10844 if test -n "$GCC_FOR_TARGET"; then
10845 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10846 else
10847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10848 for as_dir in $PATH
10849 do
10850 IFS=$as_save_IFS
10851 test -z "$as_dir" && as_dir=.
10852 for ac_exec_ext in '' $ac_executable_extensions; do
10853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10854 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10856 break 2
10857 fi
10858 done
10859 done
10860 IFS=$as_save_IFS
10861
10862 fi
10863 fi
10864 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10865 if test -n "$GCC_FOR_TARGET"; then
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10867 $as_echo "$GCC_FOR_TARGET" >&6; }
10868 else
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10870 $as_echo "no" >&6; }
10871 fi
10872
10873
10874 done
10875 fi
10876
10877 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10878 for ncn_progname in gcc; do
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10880 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10881 if test -x $with_build_time_tools/${ncn_progname}; then
10882 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10884 $as_echo "yes" >&6; }
10885 break
10886 else
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888 $as_echo "no" >&6; }
10889 fi
10890 done
10891 fi
10892
10893 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10894 for ncn_progname in gcc; do
10895 if test -n "$ncn_target_tool_prefix"; then
10896 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10897 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10899 $as_echo_n "checking for $ac_word... " >&6; }
10900 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10901 $as_echo_n "(cached) " >&6
10902 else
10903 if test -n "$GCC_FOR_TARGET"; then
10904 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10905 else
10906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10907 for as_dir in $PATH
10908 do
10909 IFS=$as_save_IFS
10910 test -z "$as_dir" && as_dir=.
10911 for ac_exec_ext in '' $ac_executable_extensions; do
10912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10913 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10915 break 2
10916 fi
10917 done
10918 done
10919 IFS=$as_save_IFS
10920
10921 fi
10922 fi
10923 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10924 if test -n "$GCC_FOR_TARGET"; then
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10926 $as_echo "$GCC_FOR_TARGET" >&6; }
10927 else
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929 $as_echo "no" >&6; }
10930 fi
10931
10932
10933 fi
10934 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10936 set dummy ${ncn_progname}; ac_word=$2
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938 $as_echo_n "checking for $ac_word... " >&6; }
10939 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10940 $as_echo_n "(cached) " >&6
10941 else
10942 if test -n "$GCC_FOR_TARGET"; then
10943 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10944 else
10945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946 for as_dir in $PATH
10947 do
10948 IFS=$as_save_IFS
10949 test -z "$as_dir" && as_dir=.
10950 for ac_exec_ext in '' $ac_executable_extensions; do
10951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10952 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10954 break 2
10955 fi
10956 done
10957 done
10958 IFS=$as_save_IFS
10959
10960 fi
10961 fi
10962 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10963 if test -n "$GCC_FOR_TARGET"; then
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10965 $as_echo "$GCC_FOR_TARGET" >&6; }
10966 else
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10969 fi
10970
10971
10972 fi
10973 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10974 done
10975 fi
10976
10977 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10978 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10979 else
10980 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10981 fi
10982
10983
10984
10985 if test -n "$GFORTRAN_FOR_TARGET"; then
10986 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10987 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10988 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10989 fi
10990
10991 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10992 for ncn_progname in gfortran; do
10993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10994 set dummy ${ncn_progname}; ac_word=$2
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10996 $as_echo_n "checking for $ac_word... " >&6; }
10997 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10998 $as_echo_n "(cached) " >&6
10999 else
11000 if test -n "$GFORTRAN_FOR_TARGET"; then
11001 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11002 else
11003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004 for as_dir in $PATH
11005 do
11006 IFS=$as_save_IFS
11007 test -z "$as_dir" && as_dir=.
11008 for ac_exec_ext in '' $ac_executable_extensions; do
11009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11010 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11012 break 2
11013 fi
11014 done
11015 done
11016 IFS=$as_save_IFS
11017
11018 fi
11019 fi
11020 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11021 if test -n "$GFORTRAN_FOR_TARGET"; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11023 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11024 else
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11026 $as_echo "no" >&6; }
11027 fi
11028
11029
11030 done
11031 fi
11032
11033 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
11034 for ncn_progname in gfortran; do
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11036 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11037 if test -x $with_build_time_tools/${ncn_progname}; then
11038 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11040 $as_echo "yes" >&6; }
11041 break
11042 else
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044 $as_echo "no" >&6; }
11045 fi
11046 done
11047 fi
11048
11049 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
11050 for ncn_progname in gfortran; do
11051 if test -n "$ncn_target_tool_prefix"; then
11052 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11053 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11055 $as_echo_n "checking for $ac_word... " >&6; }
11056 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11057 $as_echo_n "(cached) " >&6
11058 else
11059 if test -n "$GFORTRAN_FOR_TARGET"; then
11060 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11061 else
11062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063 for as_dir in $PATH
11064 do
11065 IFS=$as_save_IFS
11066 test -z "$as_dir" && as_dir=.
11067 for ac_exec_ext in '' $ac_executable_extensions; do
11068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11069 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11071 break 2
11072 fi
11073 done
11074 done
11075 IFS=$as_save_IFS
11076
11077 fi
11078 fi
11079 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11080 if test -n "$GFORTRAN_FOR_TARGET"; then
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11082 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11083 else
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085 $as_echo "no" >&6; }
11086 fi
11087
11088
11089 fi
11090 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11092 set dummy ${ncn_progname}; ac_word=$2
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11094 $as_echo_n "checking for $ac_word... " >&6; }
11095 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11096 $as_echo_n "(cached) " >&6
11097 else
11098 if test -n "$GFORTRAN_FOR_TARGET"; then
11099 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11100 else
11101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11102 for as_dir in $PATH
11103 do
11104 IFS=$as_save_IFS
11105 test -z "$as_dir" && as_dir=.
11106 for ac_exec_ext in '' $ac_executable_extensions; do
11107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11108 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11110 break 2
11111 fi
11112 done
11113 done
11114 IFS=$as_save_IFS
11115
11116 fi
11117 fi
11118 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11119 if test -n "$GFORTRAN_FOR_TARGET"; then
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11121 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11122 else
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11124 $as_echo "no" >&6; }
11125 fi
11126
11127
11128 fi
11129 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11130 done
11131 fi
11132
11133 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11134 set dummy gfortran
11135 if test $build = $target ; then
11136 GFORTRAN_FOR_TARGET="$2"
11137 else
11138 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11139 fi
11140 else
11141 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
11142 fi
11143
11144
11145
11146 if test -n "$GOC_FOR_TARGET"; then
11147 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11148 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11149 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11150 fi
11151
11152 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11153 for ncn_progname in gccgo; do
11154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11155 set dummy ${ncn_progname}; ac_word=$2
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11157 $as_echo_n "checking for $ac_word... " >&6; }
11158 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11159 $as_echo_n "(cached) " >&6
11160 else
11161 if test -n "$GOC_FOR_TARGET"; then
11162 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11163 else
11164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165 for as_dir in $PATH
11166 do
11167 IFS=$as_save_IFS
11168 test -z "$as_dir" && as_dir=.
11169 for ac_exec_ext in '' $ac_executable_extensions; do
11170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11171 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11173 break 2
11174 fi
11175 done
11176 done
11177 IFS=$as_save_IFS
11178
11179 fi
11180 fi
11181 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11182 if test -n "$GOC_FOR_TARGET"; then
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11184 $as_echo "$GOC_FOR_TARGET" >&6; }
11185 else
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187 $as_echo "no" >&6; }
11188 fi
11189
11190
11191 done
11192 fi
11193
11194 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11195 for ncn_progname in gccgo; do
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11197 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11198 if test -x $with_build_time_tools/${ncn_progname}; then
11199 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11201 $as_echo "yes" >&6; }
11202 break
11203 else
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205 $as_echo "no" >&6; }
11206 fi
11207 done
11208 fi
11209
11210 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11211 for ncn_progname in gccgo; do
11212 if test -n "$ncn_target_tool_prefix"; then
11213 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11214 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11216 $as_echo_n "checking for $ac_word... " >&6; }
11217 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11218 $as_echo_n "(cached) " >&6
11219 else
11220 if test -n "$GOC_FOR_TARGET"; then
11221 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11222 else
11223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $PATH
11225 do
11226 IFS=$as_save_IFS
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
11229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11230 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 break 2
11233 fi
11234 done
11235 done
11236 IFS=$as_save_IFS
11237
11238 fi
11239 fi
11240 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11241 if test -n "$GOC_FOR_TARGET"; then
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11243 $as_echo "$GOC_FOR_TARGET" >&6; }
11244 else
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11247 fi
11248
11249
11250 fi
11251 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11253 set dummy ${ncn_progname}; ac_word=$2
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11255 $as_echo_n "checking for $ac_word... " >&6; }
11256 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11257 $as_echo_n "(cached) " >&6
11258 else
11259 if test -n "$GOC_FOR_TARGET"; then
11260 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11261 else
11262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263 for as_dir in $PATH
11264 do
11265 IFS=$as_save_IFS
11266 test -z "$as_dir" && as_dir=.
11267 for ac_exec_ext in '' $ac_executable_extensions; do
11268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11269 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11271 break 2
11272 fi
11273 done
11274 done
11275 IFS=$as_save_IFS
11276
11277 fi
11278 fi
11279 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11280 if test -n "$GOC_FOR_TARGET"; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11282 $as_echo "$GOC_FOR_TARGET" >&6; }
11283 else
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285 $as_echo "no" >&6; }
11286 fi
11287
11288
11289 fi
11290 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11291 done
11292 fi
11293
11294 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11295 set dummy gccgo
11296 if test $build = $target ; then
11297 GOC_FOR_TARGET="$2"
11298 else
11299 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11300 fi
11301 else
11302 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11303 fi
11304
11305
11306
11307 cat > conftest.c << \EOF
11308 #ifdef __GNUC__
11309 gcc_yay;
11310 #endif
11311 EOF
11312 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11313 have_gcc_for_target=yes
11314 else
11315 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11316 have_gcc_for_target=no
11317 fi
11318 rm conftest.c
11319
11320
11321
11322
11323 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11324 if test -n "$with_build_time_tools"; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11326 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11327 if test -x $with_build_time_tools/ar; then
11328 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11329 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11331 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11332 else
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11334 $as_echo "no" >&6; }
11335 fi
11336 elif test $build != $host && test $have_gcc_for_target = yes; then
11337 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11338 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11339 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11340 fi
11341 fi
11342 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11343 # Extract the first word of "ar", so it can be a program name with args.
11344 set dummy ar; ac_word=$2
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11346 $as_echo_n "checking for $ac_word... " >&6; }
11347 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
11348 $as_echo_n "(cached) " >&6
11349 else
11350 case $AR_FOR_TARGET in
11351 [\\/]* | ?:[\\/]*)
11352 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11353 ;;
11354 *)
11355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11356 for as_dir in $gcc_cv_tool_dirs
11357 do
11358 IFS=$as_save_IFS
11359 test -z "$as_dir" && as_dir=.
11360 for ac_exec_ext in '' $ac_executable_extensions; do
11361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11362 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11364 break 2
11365 fi
11366 done
11367 done
11368 IFS=$as_save_IFS
11369
11370 ;;
11371 esac
11372 fi
11373 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11374 if test -n "$AR_FOR_TARGET"; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11376 $as_echo "$AR_FOR_TARGET" >&6; }
11377 else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11380 fi
11381
11382
11383 fi
11384 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11385
11386
11387 if test -n "$AR_FOR_TARGET"; then
11388 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11389 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11390 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11391 fi
11392
11393 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11394 for ncn_progname in ar; do
11395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11396 set dummy ${ncn_progname}; ac_word=$2
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398 $as_echo_n "checking for $ac_word... " >&6; }
11399 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11400 $as_echo_n "(cached) " >&6
11401 else
11402 if test -n "$AR_FOR_TARGET"; then
11403 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11404 else
11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $PATH
11407 do
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11412 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11414 break 2
11415 fi
11416 done
11417 done
11418 IFS=$as_save_IFS
11419
11420 fi
11421 fi
11422 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11423 if test -n "$AR_FOR_TARGET"; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11425 $as_echo "$AR_FOR_TARGET" >&6; }
11426 else
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428 $as_echo "no" >&6; }
11429 fi
11430
11431
11432 done
11433 fi
11434
11435 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11436 for ncn_progname in ar; do
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11438 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11439 if test -x $with_build_time_tools/${ncn_progname}; then
11440 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11442 $as_echo "yes" >&6; }
11443 break
11444 else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446 $as_echo "no" >&6; }
11447 fi
11448 done
11449 fi
11450
11451 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11452 for ncn_progname in ar; do
11453 if test -n "$ncn_target_tool_prefix"; then
11454 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11455 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11457 $as_echo_n "checking for $ac_word... " >&6; }
11458 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 if test -n "$AR_FOR_TARGET"; then
11462 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11463 else
11464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in $PATH
11466 do
11467 IFS=$as_save_IFS
11468 test -z "$as_dir" && as_dir=.
11469 for ac_exec_ext in '' $ac_executable_extensions; do
11470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11471 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11473 break 2
11474 fi
11475 done
11476 done
11477 IFS=$as_save_IFS
11478
11479 fi
11480 fi
11481 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11482 if test -n "$AR_FOR_TARGET"; then
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11484 $as_echo "$AR_FOR_TARGET" >&6; }
11485 else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11488 fi
11489
11490
11491 fi
11492 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11494 set dummy ${ncn_progname}; ac_word=$2
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11496 $as_echo_n "checking for $ac_word... " >&6; }
11497 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11498 $as_echo_n "(cached) " >&6
11499 else
11500 if test -n "$AR_FOR_TARGET"; then
11501 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11502 else
11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11505 do
11506 IFS=$as_save_IFS
11507 test -z "$as_dir" && as_dir=.
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11510 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11512 break 2
11513 fi
11514 done
11515 done
11516 IFS=$as_save_IFS
11517
11518 fi
11519 fi
11520 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11521 if test -n "$AR_FOR_TARGET"; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11523 $as_echo "$AR_FOR_TARGET" >&6; }
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526 $as_echo "no" >&6; }
11527 fi
11528
11529
11530 fi
11531 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11532 done
11533 fi
11534
11535 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11536 set dummy ar
11537 if test $build = $target ; then
11538 AR_FOR_TARGET="$2"
11539 else
11540 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11541 fi
11542 else
11543 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11544 fi
11545
11546 else
11547 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11548 fi
11549
11550
11551
11552
11553 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11554 if test -n "$with_build_time_tools"; then
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11556 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11557 if test -x $with_build_time_tools/as; then
11558 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11559 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11561 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11562 else
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564 $as_echo "no" >&6; }
11565 fi
11566 elif test $build != $host && test $have_gcc_for_target = yes; then
11567 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11568 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11569 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11570 fi
11571 fi
11572 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11573 # Extract the first word of "as", so it can be a program name with args.
11574 set dummy as; ac_word=$2
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576 $as_echo_n "checking for $ac_word... " >&6; }
11577 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11578 $as_echo_n "(cached) " >&6
11579 else
11580 case $AS_FOR_TARGET in
11581 [\\/]* | ?:[\\/]*)
11582 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11583 ;;
11584 *)
11585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586 for as_dir in $gcc_cv_tool_dirs
11587 do
11588 IFS=$as_save_IFS
11589 test -z "$as_dir" && as_dir=.
11590 for ac_exec_ext in '' $ac_executable_extensions; do
11591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11592 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11594 break 2
11595 fi
11596 done
11597 done
11598 IFS=$as_save_IFS
11599
11600 ;;
11601 esac
11602 fi
11603 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11604 if test -n "$AS_FOR_TARGET"; then
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11606 $as_echo "$AS_FOR_TARGET" >&6; }
11607 else
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609 $as_echo "no" >&6; }
11610 fi
11611
11612
11613 fi
11614 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11615
11616
11617 if test -n "$AS_FOR_TARGET"; then
11618 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11619 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11620 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11621 fi
11622
11623 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11624 for ncn_progname in as; do
11625 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11626 set dummy ${ncn_progname}; ac_word=$2
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628 $as_echo_n "checking for $ac_word... " >&6; }
11629 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11630 $as_echo_n "(cached) " >&6
11631 else
11632 if test -n "$AS_FOR_TARGET"; then
11633 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11634 else
11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636 for as_dir in $PATH
11637 do
11638 IFS=$as_save_IFS
11639 test -z "$as_dir" && as_dir=.
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11642 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11644 break 2
11645 fi
11646 done
11647 done
11648 IFS=$as_save_IFS
11649
11650 fi
11651 fi
11652 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11653 if test -n "$AS_FOR_TARGET"; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11655 $as_echo "$AS_FOR_TARGET" >&6; }
11656 else
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658 $as_echo "no" >&6; }
11659 fi
11660
11661
11662 done
11663 fi
11664
11665 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11666 for ncn_progname in as; do
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11668 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11669 if test -x $with_build_time_tools/${ncn_progname}; then
11670 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11672 $as_echo "yes" >&6; }
11673 break
11674 else
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676 $as_echo "no" >&6; }
11677 fi
11678 done
11679 fi
11680
11681 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11682 for ncn_progname in as; do
11683 if test -n "$ncn_target_tool_prefix"; then
11684 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11685 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11687 $as_echo_n "checking for $ac_word... " >&6; }
11688 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11689 $as_echo_n "(cached) " >&6
11690 else
11691 if test -n "$AS_FOR_TARGET"; then
11692 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11693 else
11694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11695 for as_dir in $PATH
11696 do
11697 IFS=$as_save_IFS
11698 test -z "$as_dir" && as_dir=.
11699 for ac_exec_ext in '' $ac_executable_extensions; do
11700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11701 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11703 break 2
11704 fi
11705 done
11706 done
11707 IFS=$as_save_IFS
11708
11709 fi
11710 fi
11711 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11712 if test -n "$AS_FOR_TARGET"; then
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11714 $as_echo "$AS_FOR_TARGET" >&6; }
11715 else
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; }
11718 fi
11719
11720
11721 fi
11722 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11724 set dummy ${ncn_progname}; ac_word=$2
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11726 $as_echo_n "checking for $ac_word... " >&6; }
11727 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11728 $as_echo_n "(cached) " >&6
11729 else
11730 if test -n "$AS_FOR_TARGET"; then
11731 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11732 else
11733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734 for as_dir in $PATH
11735 do
11736 IFS=$as_save_IFS
11737 test -z "$as_dir" && as_dir=.
11738 for ac_exec_ext in '' $ac_executable_extensions; do
11739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11740 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11742 break 2
11743 fi
11744 done
11745 done
11746 IFS=$as_save_IFS
11747
11748 fi
11749 fi
11750 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11751 if test -n "$AS_FOR_TARGET"; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11753 $as_echo "$AS_FOR_TARGET" >&6; }
11754 else
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 $as_echo "no" >&6; }
11757 fi
11758
11759
11760 fi
11761 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11762 done
11763 fi
11764
11765 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11766 set dummy as
11767 if test $build = $target ; then
11768 AS_FOR_TARGET="$2"
11769 else
11770 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11771 fi
11772 else
11773 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11774 fi
11775
11776 else
11777 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11778 fi
11779
11780
11781
11782
11783 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11784 if test -n "$with_build_time_tools"; then
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11786 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11787 if test -x $with_build_time_tools/dlltool; then
11788 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11789 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11791 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11792 else
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11795 fi
11796 elif test $build != $host && test $have_gcc_for_target = yes; then
11797 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11798 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11799 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11800 fi
11801 fi
11802 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11803 # Extract the first word of "dlltool", so it can be a program name with args.
11804 set dummy dlltool; ac_word=$2
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806 $as_echo_n "checking for $ac_word... " >&6; }
11807 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11808 $as_echo_n "(cached) " >&6
11809 else
11810 case $DLLTOOL_FOR_TARGET in
11811 [\\/]* | ?:[\\/]*)
11812 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11813 ;;
11814 *)
11815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816 for as_dir in $gcc_cv_tool_dirs
11817 do
11818 IFS=$as_save_IFS
11819 test -z "$as_dir" && as_dir=.
11820 for ac_exec_ext in '' $ac_executable_extensions; do
11821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11822 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824 break 2
11825 fi
11826 done
11827 done
11828 IFS=$as_save_IFS
11829
11830 ;;
11831 esac
11832 fi
11833 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11834 if test -n "$DLLTOOL_FOR_TARGET"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11836 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11837 else
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839 $as_echo "no" >&6; }
11840 fi
11841
11842
11843 fi
11844 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11845
11846
11847 if test -n "$DLLTOOL_FOR_TARGET"; then
11848 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11849 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11850 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11851 fi
11852
11853 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11854 for ncn_progname in dlltool; do
11855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11856 set dummy ${ncn_progname}; ac_word=$2
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858 $as_echo_n "checking for $ac_word... " >&6; }
11859 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11860 $as_echo_n "(cached) " >&6
11861 else
11862 if test -n "$DLLTOOL_FOR_TARGET"; then
11863 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11864 else
11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866 for as_dir in $PATH
11867 do
11868 IFS=$as_save_IFS
11869 test -z "$as_dir" && as_dir=.
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11872 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11874 break 2
11875 fi
11876 done
11877 done
11878 IFS=$as_save_IFS
11879
11880 fi
11881 fi
11882 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11883 if test -n "$DLLTOOL_FOR_TARGET"; then
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11885 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11886 else
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888 $as_echo "no" >&6; }
11889 fi
11890
11891
11892 done
11893 fi
11894
11895 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11896 for ncn_progname in dlltool; do
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11898 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11899 if test -x $with_build_time_tools/${ncn_progname}; then
11900 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11902 $as_echo "yes" >&6; }
11903 break
11904 else
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906 $as_echo "no" >&6; }
11907 fi
11908 done
11909 fi
11910
11911 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11912 for ncn_progname in dlltool; do
11913 if test -n "$ncn_target_tool_prefix"; then
11914 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11915 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11917 $as_echo_n "checking for $ac_word... " >&6; }
11918 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11919 $as_echo_n "(cached) " >&6
11920 else
11921 if test -n "$DLLTOOL_FOR_TARGET"; then
11922 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11923 else
11924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925 for as_dir in $PATH
11926 do
11927 IFS=$as_save_IFS
11928 test -z "$as_dir" && as_dir=.
11929 for ac_exec_ext in '' $ac_executable_extensions; do
11930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11931 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11933 break 2
11934 fi
11935 done
11936 done
11937 IFS=$as_save_IFS
11938
11939 fi
11940 fi
11941 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11942 if test -n "$DLLTOOL_FOR_TARGET"; then
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11944 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11945 else
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11948 fi
11949
11950
11951 fi
11952 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11954 set dummy ${ncn_progname}; ac_word=$2
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956 $as_echo_n "checking for $ac_word... " >&6; }
11957 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 if test -n "$DLLTOOL_FOR_TARGET"; then
11961 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11962 else
11963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964 for as_dir in $PATH
11965 do
11966 IFS=$as_save_IFS
11967 test -z "$as_dir" && as_dir=.
11968 for ac_exec_ext in '' $ac_executable_extensions; do
11969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11970 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11972 break 2
11973 fi
11974 done
11975 done
11976 IFS=$as_save_IFS
11977
11978 fi
11979 fi
11980 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11981 if test -n "$DLLTOOL_FOR_TARGET"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11983 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11987 fi
11988
11989
11990 fi
11991 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11992 done
11993 fi
11994
11995 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11996 set dummy dlltool
11997 if test $build = $target ; then
11998 DLLTOOL_FOR_TARGET="$2"
11999 else
12000 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
12001 fi
12002 else
12003 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
12004 fi
12005
12006 else
12007 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
12008 fi
12009
12010
12011
12012
12013 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12014 if test -n "$with_build_time_tools"; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
12016 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
12017 if test -x $with_build_time_tools/ld; then
12018 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
12019 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
12021 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
12022 else
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12025 fi
12026 elif test $build != $host && test $have_gcc_for_target = yes; then
12027 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
12028 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
12029 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
12030 fi
12031 fi
12032 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12033 # Extract the first word of "ld", so it can be a program name with args.
12034 set dummy ld; ac_word=$2
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12036 $as_echo_n "checking for $ac_word... " >&6; }
12037 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040 case $LD_FOR_TARGET in
12041 [\\/]* | ?:[\\/]*)
12042 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
12043 ;;
12044 *)
12045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046 for as_dir in $gcc_cv_tool_dirs
12047 do
12048 IFS=$as_save_IFS
12049 test -z "$as_dir" && as_dir=.
12050 for ac_exec_ext in '' $ac_executable_extensions; do
12051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12052 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12054 break 2
12055 fi
12056 done
12057 done
12058 IFS=$as_save_IFS
12059
12060 ;;
12061 esac
12062 fi
12063 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12064 if test -n "$LD_FOR_TARGET"; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12066 $as_echo "$LD_FOR_TARGET" >&6; }
12067 else
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12069 $as_echo "no" >&6; }
12070 fi
12071
12072
12073 fi
12074 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12075
12076
12077 if test -n "$LD_FOR_TARGET"; then
12078 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12079 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12080 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12081 fi
12082
12083 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12084 for ncn_progname in ld; do
12085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12086 set dummy ${ncn_progname}; ac_word=$2
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088 $as_echo_n "checking for $ac_word... " >&6; }
12089 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12090 $as_echo_n "(cached) " >&6
12091 else
12092 if test -n "$LD_FOR_TARGET"; then
12093 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12094 else
12095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096 for as_dir in $PATH
12097 do
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12102 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104 break 2
12105 fi
12106 done
12107 done
12108 IFS=$as_save_IFS
12109
12110 fi
12111 fi
12112 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12113 if test -n "$LD_FOR_TARGET"; then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12115 $as_echo "$LD_FOR_TARGET" >&6; }
12116 else
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 $as_echo "no" >&6; }
12119 fi
12120
12121
12122 done
12123 fi
12124
12125 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
12126 for ncn_progname in ld; do
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12128 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12129 if test -x $with_build_time_tools/${ncn_progname}; then
12130 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12132 $as_echo "yes" >&6; }
12133 break
12134 else
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136 $as_echo "no" >&6; }
12137 fi
12138 done
12139 fi
12140
12141 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12142 for ncn_progname in ld; do
12143 if test -n "$ncn_target_tool_prefix"; then
12144 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12145 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12147 $as_echo_n "checking for $ac_word... " >&6; }
12148 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12149 $as_echo_n "(cached) " >&6
12150 else
12151 if test -n "$LD_FOR_TARGET"; then
12152 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12153 else
12154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155 for as_dir in $PATH
12156 do
12157 IFS=$as_save_IFS
12158 test -z "$as_dir" && as_dir=.
12159 for ac_exec_ext in '' $ac_executable_extensions; do
12160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12161 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12163 break 2
12164 fi
12165 done
12166 done
12167 IFS=$as_save_IFS
12168
12169 fi
12170 fi
12171 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12172 if test -n "$LD_FOR_TARGET"; then
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12174 $as_echo "$LD_FOR_TARGET" >&6; }
12175 else
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12177 $as_echo "no" >&6; }
12178 fi
12179
12180
12181 fi
12182 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12184 set dummy ${ncn_progname}; ac_word=$2
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12186 $as_echo_n "checking for $ac_word... " >&6; }
12187 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 if test -n "$LD_FOR_TARGET"; then
12191 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12192 else
12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194 for as_dir in $PATH
12195 do
12196 IFS=$as_save_IFS
12197 test -z "$as_dir" && as_dir=.
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12200 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12202 break 2
12203 fi
12204 done
12205 done
12206 IFS=$as_save_IFS
12207
12208 fi
12209 fi
12210 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12211 if test -n "$LD_FOR_TARGET"; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12213 $as_echo "$LD_FOR_TARGET" >&6; }
12214 else
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12217 fi
12218
12219
12220 fi
12221 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12222 done
12223 fi
12224
12225 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12226 set dummy ld
12227 if test $build = $target ; then
12228 LD_FOR_TARGET="$2"
12229 else
12230 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12231 fi
12232 else
12233 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12234 fi
12235
12236 else
12237 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12238 fi
12239
12240
12241
12242
12243 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12244 if test -n "$with_build_time_tools"; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12246 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12247 if test -x $with_build_time_tools/lipo; then
12248 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12249 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12251 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12252 else
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254 $as_echo "no" >&6; }
12255 fi
12256 elif test $build != $host && test $have_gcc_for_target = yes; then
12257 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12258 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12259 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12260 fi
12261 fi
12262 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12263 # Extract the first word of "lipo", so it can be a program name with args.
12264 set dummy lipo; ac_word=$2
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12266 $as_echo_n "checking for $ac_word... " >&6; }
12267 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
12268 $as_echo_n "(cached) " >&6
12269 else
12270 case $LIPO_FOR_TARGET in
12271 [\\/]* | ?:[\\/]*)
12272 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12273 ;;
12274 *)
12275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276 for as_dir in $gcc_cv_tool_dirs
12277 do
12278 IFS=$as_save_IFS
12279 test -z "$as_dir" && as_dir=.
12280 for ac_exec_ext in '' $ac_executable_extensions; do
12281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12282 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12284 break 2
12285 fi
12286 done
12287 done
12288 IFS=$as_save_IFS
12289
12290 ;;
12291 esac
12292 fi
12293 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12294 if test -n "$LIPO_FOR_TARGET"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12296 $as_echo "$LIPO_FOR_TARGET" >&6; }
12297 else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12300 fi
12301
12302
12303 fi
12304 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12305
12306
12307 if test -n "$LIPO_FOR_TARGET"; then
12308 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12309 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12310 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12311 fi
12312
12313 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12314 for ncn_progname in lipo; do
12315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12316 set dummy ${ncn_progname}; ac_word=$2
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318 $as_echo_n "checking for $ac_word... " >&6; }
12319 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 if test -n "$LIPO_FOR_TARGET"; then
12323 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12324 else
12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $PATH
12327 do
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12332 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 break 2
12335 fi
12336 done
12337 done
12338 IFS=$as_save_IFS
12339
12340 fi
12341 fi
12342 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12343 if test -n "$LIPO_FOR_TARGET"; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12345 $as_echo "$LIPO_FOR_TARGET" >&6; }
12346 else
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348 $as_echo "no" >&6; }
12349 fi
12350
12351
12352 done
12353 fi
12354
12355 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12356 for ncn_progname in lipo; do
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12358 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12359 if test -x $with_build_time_tools/${ncn_progname}; then
12360 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12362 $as_echo "yes" >&6; }
12363 break
12364 else
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 $as_echo "no" >&6; }
12367 fi
12368 done
12369 fi
12370
12371 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12372 for ncn_progname in lipo; do
12373 if test -n "$ncn_target_tool_prefix"; then
12374 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12375 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12377 $as_echo_n "checking for $ac_word... " >&6; }
12378 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 if test -n "$LIPO_FOR_TARGET"; then
12382 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12383 else
12384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385 for as_dir in $PATH
12386 do
12387 IFS=$as_save_IFS
12388 test -z "$as_dir" && as_dir=.
12389 for ac_exec_ext in '' $ac_executable_extensions; do
12390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12391 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12393 break 2
12394 fi
12395 done
12396 done
12397 IFS=$as_save_IFS
12398
12399 fi
12400 fi
12401 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12402 if test -n "$LIPO_FOR_TARGET"; then
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12404 $as_echo "$LIPO_FOR_TARGET" >&6; }
12405 else
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407 $as_echo "no" >&6; }
12408 fi
12409
12410
12411 fi
12412 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12414 set dummy ${ncn_progname}; ac_word=$2
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416 $as_echo_n "checking for $ac_word... " >&6; }
12417 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12420 if test -n "$LIPO_FOR_TARGET"; then
12421 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12422 else
12423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424 for as_dir in $PATH
12425 do
12426 IFS=$as_save_IFS
12427 test -z "$as_dir" && as_dir=.
12428 for ac_exec_ext in '' $ac_executable_extensions; do
12429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12430 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12432 break 2
12433 fi
12434 done
12435 done
12436 IFS=$as_save_IFS
12437
12438 fi
12439 fi
12440 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12441 if test -n "$LIPO_FOR_TARGET"; then
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12443 $as_echo "$LIPO_FOR_TARGET" >&6; }
12444 else
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 $as_echo "no" >&6; }
12447 fi
12448
12449
12450 fi
12451 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12452 done
12453 fi
12454
12455 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12456 set dummy lipo
12457 if test $build = $target ; then
12458 LIPO_FOR_TARGET="$2"
12459 else
12460 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12461 fi
12462 else
12463 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12464 fi
12465
12466 else
12467 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12468 fi
12469
12470
12471
12472
12473 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12474 if test -n "$with_build_time_tools"; then
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12476 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12477 if test -x $with_build_time_tools/nm; then
12478 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12479 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12481 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12482 else
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484 $as_echo "no" >&6; }
12485 fi
12486 elif test $build != $host && test $have_gcc_for_target = yes; then
12487 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12488 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12489 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12490 fi
12491 fi
12492 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12493 # Extract the first word of "nm", so it can be a program name with args.
12494 set dummy nm; ac_word=$2
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12496 $as_echo_n "checking for $ac_word... " >&6; }
12497 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12498 $as_echo_n "(cached) " >&6
12499 else
12500 case $NM_FOR_TARGET in
12501 [\\/]* | ?:[\\/]*)
12502 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12503 ;;
12504 *)
12505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506 for as_dir in $gcc_cv_tool_dirs
12507 do
12508 IFS=$as_save_IFS
12509 test -z "$as_dir" && as_dir=.
12510 for ac_exec_ext in '' $ac_executable_extensions; do
12511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12512 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12514 break 2
12515 fi
12516 done
12517 done
12518 IFS=$as_save_IFS
12519
12520 ;;
12521 esac
12522 fi
12523 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12524 if test -n "$NM_FOR_TARGET"; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12526 $as_echo "$NM_FOR_TARGET" >&6; }
12527 else
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529 $as_echo "no" >&6; }
12530 fi
12531
12532
12533 fi
12534 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12535
12536
12537 if test -n "$NM_FOR_TARGET"; then
12538 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12539 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12540 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12541 fi
12542
12543 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12544 for ncn_progname in nm; do
12545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12546 set dummy ${ncn_progname}; ac_word=$2
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548 $as_echo_n "checking for $ac_word... " >&6; }
12549 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12550 $as_echo_n "(cached) " >&6
12551 else
12552 if test -n "$NM_FOR_TARGET"; then
12553 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12554 else
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $PATH
12557 do
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12562 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564 break 2
12565 fi
12566 done
12567 done
12568 IFS=$as_save_IFS
12569
12570 fi
12571 fi
12572 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12573 if test -n "$NM_FOR_TARGET"; then
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12575 $as_echo "$NM_FOR_TARGET" >&6; }
12576 else
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578 $as_echo "no" >&6; }
12579 fi
12580
12581
12582 done
12583 fi
12584
12585 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12586 for ncn_progname in nm; do
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12588 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12589 if test -x $with_build_time_tools/${ncn_progname}; then
12590 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12592 $as_echo "yes" >&6; }
12593 break
12594 else
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596 $as_echo "no" >&6; }
12597 fi
12598 done
12599 fi
12600
12601 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12602 for ncn_progname in nm; do
12603 if test -n "$ncn_target_tool_prefix"; then
12604 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12605 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12607 $as_echo_n "checking for $ac_word... " >&6; }
12608 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12609 $as_echo_n "(cached) " >&6
12610 else
12611 if test -n "$NM_FOR_TARGET"; then
12612 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12613 else
12614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12615 for as_dir in $PATH
12616 do
12617 IFS=$as_save_IFS
12618 test -z "$as_dir" && as_dir=.
12619 for ac_exec_ext in '' $ac_executable_extensions; do
12620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12621 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12623 break 2
12624 fi
12625 done
12626 done
12627 IFS=$as_save_IFS
12628
12629 fi
12630 fi
12631 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12632 if test -n "$NM_FOR_TARGET"; then
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12634 $as_echo "$NM_FOR_TARGET" >&6; }
12635 else
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637 $as_echo "no" >&6; }
12638 fi
12639
12640
12641 fi
12642 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12644 set dummy ${ncn_progname}; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 if test -n "$NM_FOR_TARGET"; then
12651 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12652 else
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in $PATH
12655 do
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12660 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 break 2
12663 fi
12664 done
12665 done
12666 IFS=$as_save_IFS
12667
12668 fi
12669 fi
12670 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12671 if test -n "$NM_FOR_TARGET"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12673 $as_echo "$NM_FOR_TARGET" >&6; }
12674 else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12677 fi
12678
12679
12680 fi
12681 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12682 done
12683 fi
12684
12685 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12686 set dummy nm
12687 if test $build = $target ; then
12688 NM_FOR_TARGET="$2"
12689 else
12690 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12691 fi
12692 else
12693 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12694 fi
12695
12696 else
12697 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12698 fi
12699
12700
12701
12702
12703 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12704 if test -n "$with_build_time_tools"; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12706 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12707 if test -x $with_build_time_tools/objcopy; then
12708 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12709 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12711 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12712 else
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714 $as_echo "no" >&6; }
12715 fi
12716 elif test $build != $host && test $have_gcc_for_target = yes; then
12717 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12718 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12719 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12720 fi
12721 fi
12722 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12723 # Extract the first word of "objcopy", so it can be a program name with args.
12724 set dummy objcopy; ac_word=$2
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12726 $as_echo_n "checking for $ac_word... " >&6; }
12727 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12728 $as_echo_n "(cached) " >&6
12729 else
12730 case $OBJCOPY_FOR_TARGET in
12731 [\\/]* | ?:[\\/]*)
12732 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12733 ;;
12734 *)
12735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736 for as_dir in $gcc_cv_tool_dirs
12737 do
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
12740 for ac_exec_ext in '' $ac_executable_extensions; do
12741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12742 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12744 break 2
12745 fi
12746 done
12747 done
12748 IFS=$as_save_IFS
12749
12750 ;;
12751 esac
12752 fi
12753 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12754 if test -n "$OBJCOPY_FOR_TARGET"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12756 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12757 else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759 $as_echo "no" >&6; }
12760 fi
12761
12762
12763 fi
12764 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12765
12766
12767 if test -n "$OBJCOPY_FOR_TARGET"; then
12768 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12769 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12770 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12771 fi
12772
12773 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12774 for ncn_progname in objcopy; do
12775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12776 set dummy ${ncn_progname}; ac_word=$2
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778 $as_echo_n "checking for $ac_word... " >&6; }
12779 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12780 $as_echo_n "(cached) " >&6
12781 else
12782 if test -n "$OBJCOPY_FOR_TARGET"; then
12783 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12784 else
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $PATH
12787 do
12788 IFS=$as_save_IFS
12789 test -z "$as_dir" && as_dir=.
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12792 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794 break 2
12795 fi
12796 done
12797 done
12798 IFS=$as_save_IFS
12799
12800 fi
12801 fi
12802 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12803 if test -n "$OBJCOPY_FOR_TARGET"; then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12805 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12806 else
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12809 fi
12810
12811
12812 done
12813 fi
12814
12815 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12816 for ncn_progname in objcopy; do
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12818 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12819 if test -x $with_build_time_tools/${ncn_progname}; then
12820 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12822 $as_echo "yes" >&6; }
12823 break
12824 else
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826 $as_echo "no" >&6; }
12827 fi
12828 done
12829 fi
12830
12831 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12832 for ncn_progname in objcopy; do
12833 if test -n "$ncn_target_tool_prefix"; then
12834 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12835 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12837 $as_echo_n "checking for $ac_word... " >&6; }
12838 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 if test -n "$OBJCOPY_FOR_TARGET"; then
12842 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12843 else
12844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12845 for as_dir in $PATH
12846 do
12847 IFS=$as_save_IFS
12848 test -z "$as_dir" && as_dir=.
12849 for ac_exec_ext in '' $ac_executable_extensions; do
12850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12851 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12853 break 2
12854 fi
12855 done
12856 done
12857 IFS=$as_save_IFS
12858
12859 fi
12860 fi
12861 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12862 if test -n "$OBJCOPY_FOR_TARGET"; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12864 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12865 else
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12868 fi
12869
12870
12871 fi
12872 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12874 set dummy ${ncn_progname}; ac_word=$2
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 $as_echo_n "checking for $ac_word... " >&6; }
12877 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 if test -n "$OBJCOPY_FOR_TARGET"; then
12881 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12882 else
12883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884 for as_dir in $PATH
12885 do
12886 IFS=$as_save_IFS
12887 test -z "$as_dir" && as_dir=.
12888 for ac_exec_ext in '' $ac_executable_extensions; do
12889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12890 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12892 break 2
12893 fi
12894 done
12895 done
12896 IFS=$as_save_IFS
12897
12898 fi
12899 fi
12900 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12901 if test -n "$OBJCOPY_FOR_TARGET"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12903 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12904 else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12907 fi
12908
12909
12910 fi
12911 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12912 done
12913 fi
12914
12915 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12916 set dummy objcopy
12917 if test $build = $target ; then
12918 OBJCOPY_FOR_TARGET="$2"
12919 else
12920 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12921 fi
12922 else
12923 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12924 fi
12925
12926 else
12927 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12928 fi
12929
12930
12931
12932
12933 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12934 if test -n "$with_build_time_tools"; then
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12936 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12937 if test -x $with_build_time_tools/objdump; then
12938 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12939 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12941 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12942 else
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944 $as_echo "no" >&6; }
12945 fi
12946 elif test $build != $host && test $have_gcc_for_target = yes; then
12947 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12948 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12949 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12950 fi
12951 fi
12952 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12953 # Extract the first word of "objdump", so it can be a program name with args.
12954 set dummy objdump; ac_word=$2
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12956 $as_echo_n "checking for $ac_word... " >&6; }
12957 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12958 $as_echo_n "(cached) " >&6
12959 else
12960 case $OBJDUMP_FOR_TARGET in
12961 [\\/]* | ?:[\\/]*)
12962 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12963 ;;
12964 *)
12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966 for as_dir in $gcc_cv_tool_dirs
12967 do
12968 IFS=$as_save_IFS
12969 test -z "$as_dir" && as_dir=.
12970 for ac_exec_ext in '' $ac_executable_extensions; do
12971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12972 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12974 break 2
12975 fi
12976 done
12977 done
12978 IFS=$as_save_IFS
12979
12980 ;;
12981 esac
12982 fi
12983 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12984 if test -n "$OBJDUMP_FOR_TARGET"; then
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12986 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12987 else
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 $as_echo "no" >&6; }
12990 fi
12991
12992
12993 fi
12994 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12995
12996
12997 if test -n "$OBJDUMP_FOR_TARGET"; then
12998 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12999 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13000 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13001 fi
13002
13003 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13004 for ncn_progname in objdump; do
13005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13006 set dummy ${ncn_progname}; ac_word=$2
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008 $as_echo_n "checking for $ac_word... " >&6; }
13009 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13010 $as_echo_n "(cached) " >&6
13011 else
13012 if test -n "$OBJDUMP_FOR_TARGET"; then
13013 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13014 else
13015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016 for as_dir in $PATH
13017 do
13018 IFS=$as_save_IFS
13019 test -z "$as_dir" && as_dir=.
13020 for ac_exec_ext in '' $ac_executable_extensions; do
13021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13022 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13024 break 2
13025 fi
13026 done
13027 done
13028 IFS=$as_save_IFS
13029
13030 fi
13031 fi
13032 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13033 if test -n "$OBJDUMP_FOR_TARGET"; then
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13035 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13036 else
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038 $as_echo "no" >&6; }
13039 fi
13040
13041
13042 done
13043 fi
13044
13045 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13046 for ncn_progname in objdump; do
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13048 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13049 if test -x $with_build_time_tools/${ncn_progname}; then
13050 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13052 $as_echo "yes" >&6; }
13053 break
13054 else
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13056 $as_echo "no" >&6; }
13057 fi
13058 done
13059 fi
13060
13061 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13062 for ncn_progname in objdump; do
13063 if test -n "$ncn_target_tool_prefix"; then
13064 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13065 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13067 $as_echo_n "checking for $ac_word... " >&6; }
13068 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13069 $as_echo_n "(cached) " >&6
13070 else
13071 if test -n "$OBJDUMP_FOR_TARGET"; then
13072 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13073 else
13074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075 for as_dir in $PATH
13076 do
13077 IFS=$as_save_IFS
13078 test -z "$as_dir" && as_dir=.
13079 for ac_exec_ext in '' $ac_executable_extensions; do
13080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13081 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13083 break 2
13084 fi
13085 done
13086 done
13087 IFS=$as_save_IFS
13088
13089 fi
13090 fi
13091 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13092 if test -n "$OBJDUMP_FOR_TARGET"; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13094 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13095 else
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13098 fi
13099
13100
13101 fi
13102 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13103 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13104 set dummy ${ncn_progname}; ac_word=$2
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13106 $as_echo_n "checking for $ac_word... " >&6; }
13107 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13110 if test -n "$OBJDUMP_FOR_TARGET"; then
13111 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13112 else
13113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114 for as_dir in $PATH
13115 do
13116 IFS=$as_save_IFS
13117 test -z "$as_dir" && as_dir=.
13118 for ac_exec_ext in '' $ac_executable_extensions; do
13119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13120 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13122 break 2
13123 fi
13124 done
13125 done
13126 IFS=$as_save_IFS
13127
13128 fi
13129 fi
13130 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13131 if test -n "$OBJDUMP_FOR_TARGET"; then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13133 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13134 else
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13137 fi
13138
13139
13140 fi
13141 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13142 done
13143 fi
13144
13145 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13146 set dummy objdump
13147 if test $build = $target ; then
13148 OBJDUMP_FOR_TARGET="$2"
13149 else
13150 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13151 fi
13152 else
13153 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
13154 fi
13155
13156 else
13157 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
13158 fi
13159
13160
13161
13162
13163 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13164 if test -n "$with_build_time_tools"; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13166 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
13167 if test -x $with_build_time_tools/ranlib; then
13168 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13169 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13171 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
13172 else
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13174 $as_echo "no" >&6; }
13175 fi
13176 elif test $build != $host && test $have_gcc_for_target = yes; then
13177 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
13178 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13179 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13180 fi
13181 fi
13182 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13183 # Extract the first word of "ranlib", so it can be a program name with args.
13184 set dummy ranlib; ac_word=$2
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13186 $as_echo_n "checking for $ac_word... " >&6; }
13187 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
13188 $as_echo_n "(cached) " >&6
13189 else
13190 case $RANLIB_FOR_TARGET in
13191 [\\/]* | ?:[\\/]*)
13192 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13193 ;;
13194 *)
13195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13196 for as_dir in $gcc_cv_tool_dirs
13197 do
13198 IFS=$as_save_IFS
13199 test -z "$as_dir" && as_dir=.
13200 for ac_exec_ext in '' $ac_executable_extensions; do
13201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13202 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13204 break 2
13205 fi
13206 done
13207 done
13208 IFS=$as_save_IFS
13209
13210 ;;
13211 esac
13212 fi
13213 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13214 if test -n "$RANLIB_FOR_TARGET"; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13216 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13217 else
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219 $as_echo "no" >&6; }
13220 fi
13221
13222
13223 fi
13224 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13225
13226
13227 if test -n "$RANLIB_FOR_TARGET"; then
13228 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13229 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13230 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13231 fi
13232
13233 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13234 for ncn_progname in ranlib; do
13235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13236 set dummy ${ncn_progname}; ac_word=$2
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13238 $as_echo_n "checking for $ac_word... " >&6; }
13239 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13240 $as_echo_n "(cached) " >&6
13241 else
13242 if test -n "$RANLIB_FOR_TARGET"; then
13243 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13244 else
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13247 do
13248 IFS=$as_save_IFS
13249 test -z "$as_dir" && as_dir=.
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13252 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13254 break 2
13255 fi
13256 done
13257 done
13258 IFS=$as_save_IFS
13259
13260 fi
13261 fi
13262 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13263 if test -n "$RANLIB_FOR_TARGET"; then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13265 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13266 else
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268 $as_echo "no" >&6; }
13269 fi
13270
13271
13272 done
13273 fi
13274
13275 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13276 for ncn_progname in ranlib; do
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13278 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13279 if test -x $with_build_time_tools/${ncn_progname}; then
13280 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13282 $as_echo "yes" >&6; }
13283 break
13284 else
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 $as_echo "no" >&6; }
13287 fi
13288 done
13289 fi
13290
13291 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13292 for ncn_progname in ranlib; do
13293 if test -n "$ncn_target_tool_prefix"; then
13294 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13295 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13297 $as_echo_n "checking for $ac_word... " >&6; }
13298 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13299 $as_echo_n "(cached) " >&6
13300 else
13301 if test -n "$RANLIB_FOR_TARGET"; then
13302 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13303 else
13304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13305 for as_dir in $PATH
13306 do
13307 IFS=$as_save_IFS
13308 test -z "$as_dir" && as_dir=.
13309 for ac_exec_ext in '' $ac_executable_extensions; do
13310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13311 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13313 break 2
13314 fi
13315 done
13316 done
13317 IFS=$as_save_IFS
13318
13319 fi
13320 fi
13321 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13322 if test -n "$RANLIB_FOR_TARGET"; then
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13324 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13325 else
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13328 fi
13329
13330
13331 fi
13332 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13334 set dummy ${ncn_progname}; ac_word=$2
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13336 $as_echo_n "checking for $ac_word... " >&6; }
13337 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13338 $as_echo_n "(cached) " >&6
13339 else
13340 if test -n "$RANLIB_FOR_TARGET"; then
13341 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13342 else
13343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344 for as_dir in $PATH
13345 do
13346 IFS=$as_save_IFS
13347 test -z "$as_dir" && as_dir=.
13348 for ac_exec_ext in '' $ac_executable_extensions; do
13349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13350 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13352 break 2
13353 fi
13354 done
13355 done
13356 IFS=$as_save_IFS
13357
13358 fi
13359 fi
13360 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13361 if test -n "$RANLIB_FOR_TARGET"; then
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13363 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13364 else
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13366 $as_echo "no" >&6; }
13367 fi
13368
13369
13370 fi
13371 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13372 done
13373 fi
13374
13375 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13376 set dummy ranlib
13377 if test $build = $target ; then
13378 RANLIB_FOR_TARGET="$2"
13379 else
13380 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13381 fi
13382 else
13383 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13384 fi
13385
13386 else
13387 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13388 fi
13389
13390
13391
13392
13393 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13394 if test -n "$with_build_time_tools"; then
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13396 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13397 if test -x $with_build_time_tools/readelf; then
13398 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13399 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13401 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13402 else
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13404 $as_echo "no" >&6; }
13405 fi
13406 elif test $build != $host && test $have_gcc_for_target = yes; then
13407 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13408 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13409 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13410 fi
13411 fi
13412 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13413 # Extract the first word of "readelf", so it can be a program name with args.
13414 set dummy readelf; ac_word=$2
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13416 $as_echo_n "checking for $ac_word... " >&6; }
13417 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13418 $as_echo_n "(cached) " >&6
13419 else
13420 case $READELF_FOR_TARGET in
13421 [\\/]* | ?:[\\/]*)
13422 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13423 ;;
13424 *)
13425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426 for as_dir in $gcc_cv_tool_dirs
13427 do
13428 IFS=$as_save_IFS
13429 test -z "$as_dir" && as_dir=.
13430 for ac_exec_ext in '' $ac_executable_extensions; do
13431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13432 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13434 break 2
13435 fi
13436 done
13437 done
13438 IFS=$as_save_IFS
13439
13440 ;;
13441 esac
13442 fi
13443 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13444 if test -n "$READELF_FOR_TARGET"; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13446 $as_echo "$READELF_FOR_TARGET" >&6; }
13447 else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449 $as_echo "no" >&6; }
13450 fi
13451
13452
13453 fi
13454 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13455
13456
13457 if test -n "$READELF_FOR_TARGET"; then
13458 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13459 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13460 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13461 fi
13462
13463 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13464 for ncn_progname in readelf; do
13465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13466 set dummy ${ncn_progname}; ac_word=$2
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13468 $as_echo_n "checking for $ac_word... " >&6; }
13469 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13470 $as_echo_n "(cached) " >&6
13471 else
13472 if test -n "$READELF_FOR_TARGET"; then
13473 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13474 else
13475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13476 for as_dir in $PATH
13477 do
13478 IFS=$as_save_IFS
13479 test -z "$as_dir" && as_dir=.
13480 for ac_exec_ext in '' $ac_executable_extensions; do
13481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13482 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13484 break 2
13485 fi
13486 done
13487 done
13488 IFS=$as_save_IFS
13489
13490 fi
13491 fi
13492 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13493 if test -n "$READELF_FOR_TARGET"; then
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13495 $as_echo "$READELF_FOR_TARGET" >&6; }
13496 else
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13498 $as_echo "no" >&6; }
13499 fi
13500
13501
13502 done
13503 fi
13504
13505 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13506 for ncn_progname in readelf; do
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13508 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13509 if test -x $with_build_time_tools/${ncn_progname}; then
13510 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13512 $as_echo "yes" >&6; }
13513 break
13514 else
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13516 $as_echo "no" >&6; }
13517 fi
13518 done
13519 fi
13520
13521 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13522 for ncn_progname in readelf; do
13523 if test -n "$ncn_target_tool_prefix"; then
13524 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13525 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527 $as_echo_n "checking for $ac_word... " >&6; }
13528 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13529 $as_echo_n "(cached) " >&6
13530 else
13531 if test -n "$READELF_FOR_TARGET"; then
13532 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13533 else
13534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535 for as_dir in $PATH
13536 do
13537 IFS=$as_save_IFS
13538 test -z "$as_dir" && as_dir=.
13539 for ac_exec_ext in '' $ac_executable_extensions; do
13540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13541 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13543 break 2
13544 fi
13545 done
13546 done
13547 IFS=$as_save_IFS
13548
13549 fi
13550 fi
13551 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13552 if test -n "$READELF_FOR_TARGET"; then
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13554 $as_echo "$READELF_FOR_TARGET" >&6; }
13555 else
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13557 $as_echo "no" >&6; }
13558 fi
13559
13560
13561 fi
13562 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13564 set dummy ${ncn_progname}; ac_word=$2
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13566 $as_echo_n "checking for $ac_word... " >&6; }
13567 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13568 $as_echo_n "(cached) " >&6
13569 else
13570 if test -n "$READELF_FOR_TARGET"; then
13571 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13572 else
13573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574 for as_dir in $PATH
13575 do
13576 IFS=$as_save_IFS
13577 test -z "$as_dir" && as_dir=.
13578 for ac_exec_ext in '' $ac_executable_extensions; do
13579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13580 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13582 break 2
13583 fi
13584 done
13585 done
13586 IFS=$as_save_IFS
13587
13588 fi
13589 fi
13590 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13591 if test -n "$READELF_FOR_TARGET"; then
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13593 $as_echo "$READELF_FOR_TARGET" >&6; }
13594 else
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596 $as_echo "no" >&6; }
13597 fi
13598
13599
13600 fi
13601 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13602 done
13603 fi
13604
13605 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13606 set dummy readelf
13607 if test $build = $target ; then
13608 READELF_FOR_TARGET="$2"
13609 else
13610 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13611 fi
13612 else
13613 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13614 fi
13615
13616 else
13617 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13618 fi
13619
13620
13621
13622
13623 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13624 if test -n "$with_build_time_tools"; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13626 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13627 if test -x $with_build_time_tools/strip; then
13628 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13629 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13631 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13632 else
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634 $as_echo "no" >&6; }
13635 fi
13636 elif test $build != $host && test $have_gcc_for_target = yes; then
13637 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13638 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13639 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13640 fi
13641 fi
13642 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13643 # Extract the first word of "strip", so it can be a program name with args.
13644 set dummy strip; ac_word=$2
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13646 $as_echo_n "checking for $ac_word... " >&6; }
13647 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13648 $as_echo_n "(cached) " >&6
13649 else
13650 case $STRIP_FOR_TARGET in
13651 [\\/]* | ?:[\\/]*)
13652 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13653 ;;
13654 *)
13655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13656 for as_dir in $gcc_cv_tool_dirs
13657 do
13658 IFS=$as_save_IFS
13659 test -z "$as_dir" && as_dir=.
13660 for ac_exec_ext in '' $ac_executable_extensions; do
13661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13662 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13664 break 2
13665 fi
13666 done
13667 done
13668 IFS=$as_save_IFS
13669
13670 ;;
13671 esac
13672 fi
13673 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13674 if test -n "$STRIP_FOR_TARGET"; then
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13676 $as_echo "$STRIP_FOR_TARGET" >&6; }
13677 else
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679 $as_echo "no" >&6; }
13680 fi
13681
13682
13683 fi
13684 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13685
13686
13687 if test -n "$STRIP_FOR_TARGET"; then
13688 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13689 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13690 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13691 fi
13692
13693 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13694 for ncn_progname in strip; do
13695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13696 set dummy ${ncn_progname}; ac_word=$2
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13698 $as_echo_n "checking for $ac_word... " >&6; }
13699 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13700 $as_echo_n "(cached) " >&6
13701 else
13702 if test -n "$STRIP_FOR_TARGET"; then
13703 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13704 else
13705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706 for as_dir in $PATH
13707 do
13708 IFS=$as_save_IFS
13709 test -z "$as_dir" && as_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
13711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13712 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 break 2
13715 fi
13716 done
13717 done
13718 IFS=$as_save_IFS
13719
13720 fi
13721 fi
13722 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13723 if test -n "$STRIP_FOR_TARGET"; then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13725 $as_echo "$STRIP_FOR_TARGET" >&6; }
13726 else
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728 $as_echo "no" >&6; }
13729 fi
13730
13731
13732 done
13733 fi
13734
13735 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13736 for ncn_progname in strip; do
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13738 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13739 if test -x $with_build_time_tools/${ncn_progname}; then
13740 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13742 $as_echo "yes" >&6; }
13743 break
13744 else
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746 $as_echo "no" >&6; }
13747 fi
13748 done
13749 fi
13750
13751 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13752 for ncn_progname in strip; do
13753 if test -n "$ncn_target_tool_prefix"; then
13754 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13755 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13757 $as_echo_n "checking for $ac_word... " >&6; }
13758 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13759 $as_echo_n "(cached) " >&6
13760 else
13761 if test -n "$STRIP_FOR_TARGET"; then
13762 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13763 else
13764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765 for as_dir in $PATH
13766 do
13767 IFS=$as_save_IFS
13768 test -z "$as_dir" && as_dir=.
13769 for ac_exec_ext in '' $ac_executable_extensions; do
13770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13771 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13773 break 2
13774 fi
13775 done
13776 done
13777 IFS=$as_save_IFS
13778
13779 fi
13780 fi
13781 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13782 if test -n "$STRIP_FOR_TARGET"; then
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13784 $as_echo "$STRIP_FOR_TARGET" >&6; }
13785 else
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13787 $as_echo "no" >&6; }
13788 fi
13789
13790
13791 fi
13792 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13794 set dummy ${ncn_progname}; ac_word=$2
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13796 $as_echo_n "checking for $ac_word... " >&6; }
13797 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13798 $as_echo_n "(cached) " >&6
13799 else
13800 if test -n "$STRIP_FOR_TARGET"; then
13801 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13802 else
13803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804 for as_dir in $PATH
13805 do
13806 IFS=$as_save_IFS
13807 test -z "$as_dir" && as_dir=.
13808 for ac_exec_ext in '' $ac_executable_extensions; do
13809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13810 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13812 break 2
13813 fi
13814 done
13815 done
13816 IFS=$as_save_IFS
13817
13818 fi
13819 fi
13820 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13821 if test -n "$STRIP_FOR_TARGET"; then
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13823 $as_echo "$STRIP_FOR_TARGET" >&6; }
13824 else
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826 $as_echo "no" >&6; }
13827 fi
13828
13829
13830 fi
13831 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13832 done
13833 fi
13834
13835 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13836 set dummy strip
13837 if test $build = $target ; then
13838 STRIP_FOR_TARGET="$2"
13839 else
13840 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13841 fi
13842 else
13843 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13844 fi
13845
13846 else
13847 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13848 fi
13849
13850
13851
13852
13853 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13854 if test -n "$with_build_time_tools"; then
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13856 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13857 if test -x $with_build_time_tools/windres; then
13858 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13859 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13861 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13862 else
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13864 $as_echo "no" >&6; }
13865 fi
13866 elif test $build != $host && test $have_gcc_for_target = yes; then
13867 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13868 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13869 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13870 fi
13871 fi
13872 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13873 # Extract the first word of "windres", so it can be a program name with args.
13874 set dummy windres; ac_word=$2
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13876 $as_echo_n "checking for $ac_word... " >&6; }
13877 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13878 $as_echo_n "(cached) " >&6
13879 else
13880 case $WINDRES_FOR_TARGET in
13881 [\\/]* | ?:[\\/]*)
13882 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13883 ;;
13884 *)
13885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886 for as_dir in $gcc_cv_tool_dirs
13887 do
13888 IFS=$as_save_IFS
13889 test -z "$as_dir" && as_dir=.
13890 for ac_exec_ext in '' $ac_executable_extensions; do
13891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13892 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13894 break 2
13895 fi
13896 done
13897 done
13898 IFS=$as_save_IFS
13899
13900 ;;
13901 esac
13902 fi
13903 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13904 if test -n "$WINDRES_FOR_TARGET"; then
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13906 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13907 else
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909 $as_echo "no" >&6; }
13910 fi
13911
13912
13913 fi
13914 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13915
13916
13917 if test -n "$WINDRES_FOR_TARGET"; then
13918 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13919 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13920 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13921 fi
13922
13923 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13924 for ncn_progname in windres; do
13925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13926 set dummy ${ncn_progname}; ac_word=$2
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13928 $as_echo_n "checking for $ac_word... " >&6; }
13929 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13930 $as_echo_n "(cached) " >&6
13931 else
13932 if test -n "$WINDRES_FOR_TARGET"; then
13933 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13934 else
13935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13936 for as_dir in $PATH
13937 do
13938 IFS=$as_save_IFS
13939 test -z "$as_dir" && as_dir=.
13940 for ac_exec_ext in '' $ac_executable_extensions; do
13941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13942 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13944 break 2
13945 fi
13946 done
13947 done
13948 IFS=$as_save_IFS
13949
13950 fi
13951 fi
13952 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13953 if test -n "$WINDRES_FOR_TARGET"; then
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13955 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13956 else
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958 $as_echo "no" >&6; }
13959 fi
13960
13961
13962 done
13963 fi
13964
13965 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13966 for ncn_progname in windres; do
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13968 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13969 if test -x $with_build_time_tools/${ncn_progname}; then
13970 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13972 $as_echo "yes" >&6; }
13973 break
13974 else
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13976 $as_echo "no" >&6; }
13977 fi
13978 done
13979 fi
13980
13981 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13982 for ncn_progname in windres; do
13983 if test -n "$ncn_target_tool_prefix"; then
13984 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13985 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13987 $as_echo_n "checking for $ac_word... " >&6; }
13988 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13989 $as_echo_n "(cached) " >&6
13990 else
13991 if test -n "$WINDRES_FOR_TARGET"; then
13992 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13993 else
13994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13995 for as_dir in $PATH
13996 do
13997 IFS=$as_save_IFS
13998 test -z "$as_dir" && as_dir=.
13999 for ac_exec_ext in '' $ac_executable_extensions; do
14000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14001 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14003 break 2
14004 fi
14005 done
14006 done
14007 IFS=$as_save_IFS
14008
14009 fi
14010 fi
14011 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14012 if test -n "$WINDRES_FOR_TARGET"; then
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14014 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14015 else
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14017 $as_echo "no" >&6; }
14018 fi
14019
14020
14021 fi
14022 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14023 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14024 set dummy ${ncn_progname}; ac_word=$2
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14026 $as_echo_n "checking for $ac_word... " >&6; }
14027 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
14028 $as_echo_n "(cached) " >&6
14029 else
14030 if test -n "$WINDRES_FOR_TARGET"; then
14031 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14032 else
14033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14034 for as_dir in $PATH
14035 do
14036 IFS=$as_save_IFS
14037 test -z "$as_dir" && as_dir=.
14038 for ac_exec_ext in '' $ac_executable_extensions; do
14039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14040 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
14041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14042 break 2
14043 fi
14044 done
14045 done
14046 IFS=$as_save_IFS
14047
14048 fi
14049 fi
14050 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14051 if test -n "$WINDRES_FOR_TARGET"; then
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14053 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14054 else
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14056 $as_echo "no" >&6; }
14057 fi
14058
14059
14060 fi
14061 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14062 done
14063 fi
14064
14065 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14066 set dummy windres
14067 if test $build = $target ; then
14068 WINDRES_FOR_TARGET="$2"
14069 else
14070 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
14071 fi
14072 else
14073 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
14074 fi
14075
14076 else
14077 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
14078 fi
14079
14080
14081
14082
14083 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14084 if test -n "$with_build_time_tools"; then
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14086 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
14087 if test -x $with_build_time_tools/windmc; then
14088 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14089 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14091 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
14092 else
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14094 $as_echo "no" >&6; }
14095 fi
14096 elif test $build != $host && test $have_gcc_for_target = yes; then
14097 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
14098 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14099 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14100 fi
14101 fi
14102 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14103 # Extract the first word of "windmc", so it can be a program name with args.
14104 set dummy windmc; ac_word=$2
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14106 $as_echo_n "checking for $ac_word... " >&6; }
14107 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
14108 $as_echo_n "(cached) " >&6
14109 else
14110 case $WINDMC_FOR_TARGET in
14111 [\\/]* | ?:[\\/]*)
14112 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14113 ;;
14114 *)
14115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116 for as_dir in $gcc_cv_tool_dirs
14117 do
14118 IFS=$as_save_IFS
14119 test -z "$as_dir" && as_dir=.
14120 for ac_exec_ext in '' $ac_executable_extensions; do
14121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14122 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14124 break 2
14125 fi
14126 done
14127 done
14128 IFS=$as_save_IFS
14129
14130 ;;
14131 esac
14132 fi
14133 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14134 if test -n "$WINDMC_FOR_TARGET"; then
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14136 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14137 else
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14139 $as_echo "no" >&6; }
14140 fi
14141
14142
14143 fi
14144 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14145
14146
14147 if test -n "$WINDMC_FOR_TARGET"; then
14148 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14149 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14150 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14151 fi
14152
14153 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14154 for ncn_progname in windmc; do
14155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14156 set dummy ${ncn_progname}; ac_word=$2
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14158 $as_echo_n "checking for $ac_word... " >&6; }
14159 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14160 $as_echo_n "(cached) " >&6
14161 else
14162 if test -n "$WINDMC_FOR_TARGET"; then
14163 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14164 else
14165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14166 for as_dir in $PATH
14167 do
14168 IFS=$as_save_IFS
14169 test -z "$as_dir" && as_dir=.
14170 for ac_exec_ext in '' $ac_executable_extensions; do
14171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14172 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14174 break 2
14175 fi
14176 done
14177 done
14178 IFS=$as_save_IFS
14179
14180 fi
14181 fi
14182 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14183 if test -n "$WINDMC_FOR_TARGET"; then
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14185 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14186 else
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14188 $as_echo "no" >&6; }
14189 fi
14190
14191
14192 done
14193 fi
14194
14195 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14196 for ncn_progname in windmc; do
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14198 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14199 if test -x $with_build_time_tools/${ncn_progname}; then
14200 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14202 $as_echo "yes" >&6; }
14203 break
14204 else
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14206 $as_echo "no" >&6; }
14207 fi
14208 done
14209 fi
14210
14211 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14212 for ncn_progname in windmc; do
14213 if test -n "$ncn_target_tool_prefix"; then
14214 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14215 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14217 $as_echo_n "checking for $ac_word... " >&6; }
14218 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14219 $as_echo_n "(cached) " >&6
14220 else
14221 if test -n "$WINDMC_FOR_TARGET"; then
14222 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14223 else
14224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14225 for as_dir in $PATH
14226 do
14227 IFS=$as_save_IFS
14228 test -z "$as_dir" && as_dir=.
14229 for ac_exec_ext in '' $ac_executable_extensions; do
14230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14231 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14233 break 2
14234 fi
14235 done
14236 done
14237 IFS=$as_save_IFS
14238
14239 fi
14240 fi
14241 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14242 if test -n "$WINDMC_FOR_TARGET"; then
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14244 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14245 else
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14247 $as_echo "no" >&6; }
14248 fi
14249
14250
14251 fi
14252 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14254 set dummy ${ncn_progname}; ac_word=$2
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14256 $as_echo_n "checking for $ac_word... " >&6; }
14257 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14258 $as_echo_n "(cached) " >&6
14259 else
14260 if test -n "$WINDMC_FOR_TARGET"; then
14261 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14262 else
14263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14264 for as_dir in $PATH
14265 do
14266 IFS=$as_save_IFS
14267 test -z "$as_dir" && as_dir=.
14268 for ac_exec_ext in '' $ac_executable_extensions; do
14269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14270 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14272 break 2
14273 fi
14274 done
14275 done
14276 IFS=$as_save_IFS
14277
14278 fi
14279 fi
14280 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14281 if test -n "$WINDMC_FOR_TARGET"; then
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14283 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14284 else
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14286 $as_echo "no" >&6; }
14287 fi
14288
14289
14290 fi
14291 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14292 done
14293 fi
14294
14295 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14296 set dummy windmc
14297 if test $build = $target ; then
14298 WINDMC_FOR_TARGET="$2"
14299 else
14300 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14301 fi
14302 else
14303 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14304 fi
14305
14306 else
14307 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14308 fi
14309
14310
14311 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14312
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14314 $as_echo_n "checking where to find the target ar... " >&6; }
14315 if test "x${build}" != "x${host}" ; then
14316 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14317 # We already found the complete path
14318 ac_dir=`dirname $AR_FOR_TARGET`
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14320 $as_echo "pre-installed in $ac_dir" >&6; }
14321 else
14322 # Canadian cross, just use what we found
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14324 $as_echo "pre-installed" >&6; }
14325 fi
14326 else
14327 ok=yes
14328 case " ${configdirs} " in
14329 *" binutils "*) ;;
14330 *) ok=no ;;
14331 esac
14332
14333 if test $ok = yes; then
14334 # An in-tree tool is available and we can use it
14335 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14337 $as_echo "just compiled" >&6; }
14338 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
14340 ac_dir=`dirname $AR_FOR_TARGET`
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342 $as_echo "pre-installed in $ac_dir" >&6; }
14343 elif test "x$target" = "x$host"; then
14344 # We can use an host tool
14345 AR_FOR_TARGET='$(AR)'
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14347 $as_echo "host tool" >&6; }
14348 else
14349 # We need a cross tool
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14351 $as_echo "pre-installed" >&6; }
14352 fi
14353 fi
14354
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14356 $as_echo_n "checking where to find the target as... " >&6; }
14357 if test "x${build}" != "x${host}" ; then
14358 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14359 # We already found the complete path
14360 ac_dir=`dirname $AS_FOR_TARGET`
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14362 $as_echo "pre-installed in $ac_dir" >&6; }
14363 else
14364 # Canadian cross, just use what we found
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14366 $as_echo "pre-installed" >&6; }
14367 fi
14368 else
14369 ok=yes
14370 case " ${configdirs} " in
14371 *" gas "*) ;;
14372 *) ok=no ;;
14373 esac
14374
14375 if test $ok = yes; then
14376 # An in-tree tool is available and we can use it
14377 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14379 $as_echo "just compiled" >&6; }
14380 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14381 # We already found the complete path
14382 ac_dir=`dirname $AS_FOR_TARGET`
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14384 $as_echo "pre-installed in $ac_dir" >&6; }
14385 elif test "x$target" = "x$host"; then
14386 # We can use an host tool
14387 AS_FOR_TARGET='$(AS)'
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14389 $as_echo "host tool" >&6; }
14390 else
14391 # We need a cross tool
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14393 $as_echo "pre-installed" >&6; }
14394 fi
14395 fi
14396
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14398 $as_echo_n "checking where to find the target cc... " >&6; }
14399 if test "x${build}" != "x${host}" ; then
14400 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14401 # We already found the complete path
14402 ac_dir=`dirname $CC_FOR_TARGET`
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14404 $as_echo "pre-installed in $ac_dir" >&6; }
14405 else
14406 # Canadian cross, just use what we found
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14408 $as_echo "pre-installed" >&6; }
14409 fi
14410 else
14411 ok=yes
14412 case " ${configdirs} " in
14413 *" gcc "*) ;;
14414 *) ok=no ;;
14415 esac
14416
14417 if test $ok = yes; then
14418 # An in-tree tool is available and we can use it
14419 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14421 $as_echo "just compiled" >&6; }
14422 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14423 # We already found the complete path
14424 ac_dir=`dirname $CC_FOR_TARGET`
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14426 $as_echo "pre-installed in $ac_dir" >&6; }
14427 elif test "x$target" = "x$host"; then
14428 # We can use an host tool
14429 CC_FOR_TARGET='$(CC)'
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14431 $as_echo "host tool" >&6; }
14432 else
14433 # We need a cross tool
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14435 $as_echo "pre-installed" >&6; }
14436 fi
14437 fi
14438
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14440 $as_echo_n "checking where to find the target c++... " >&6; }
14441 if test "x${build}" != "x${host}" ; then
14442 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14443 # We already found the complete path
14444 ac_dir=`dirname $CXX_FOR_TARGET`
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14446 $as_echo "pre-installed in $ac_dir" >&6; }
14447 else
14448 # Canadian cross, just use what we found
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14450 $as_echo "pre-installed" >&6; }
14451 fi
14452 else
14453 ok=yes
14454 case " ${configdirs} " in
14455 *" gcc "*) ;;
14456 *) ok=no ;;
14457 esac
14458 case ,${enable_languages}, in
14459 *,c++,*) ;;
14460 *) ok=no ;;
14461 esac
14462 if test $ok = yes; then
14463 # An in-tree tool is available and we can use it
14464 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'
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14466 $as_echo "just compiled" >&6; }
14467 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14468 # We already found the complete path
14469 ac_dir=`dirname $CXX_FOR_TARGET`
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14471 $as_echo "pre-installed in $ac_dir" >&6; }
14472 elif test "x$target" = "x$host"; then
14473 # We can use an host tool
14474 CXX_FOR_TARGET='$(CXX)'
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14476 $as_echo "host tool" >&6; }
14477 else
14478 # We need a cross tool
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14480 $as_echo "pre-installed" >&6; }
14481 fi
14482 fi
14483
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14485 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14486 if test "x${build}" != "x${host}" ; then
14487 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14488 # We already found the complete path
14489 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14491 $as_echo "pre-installed in $ac_dir" >&6; }
14492 else
14493 # Canadian cross, just use what we found
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14495 $as_echo "pre-installed" >&6; }
14496 fi
14497 else
14498 ok=yes
14499 case " ${configdirs} " in
14500 *" gcc "*) ;;
14501 *) ok=no ;;
14502 esac
14503 case ,${enable_languages}, in
14504 *,c++,*) ;;
14505 *) ok=no ;;
14506 esac
14507 if test $ok = yes; then
14508 # An in-tree tool is available and we can use it
14509 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'
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14511 $as_echo "just compiled" >&6; }
14512 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14513 # We already found the complete path
14514 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14516 $as_echo "pre-installed in $ac_dir" >&6; }
14517 elif test "x$target" = "x$host"; then
14518 # We can use an host tool
14519 RAW_CXX_FOR_TARGET='$(CXX)'
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14521 $as_echo "host tool" >&6; }
14522 else
14523 # We need a cross tool
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14525 $as_echo "pre-installed" >&6; }
14526 fi
14527 fi
14528
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14530 $as_echo_n "checking where to find the target dlltool... " >&6; }
14531 if test "x${build}" != "x${host}" ; then
14532 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14533 # We already found the complete path
14534 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14536 $as_echo "pre-installed in $ac_dir" >&6; }
14537 else
14538 # Canadian cross, just use what we found
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14540 $as_echo "pre-installed" >&6; }
14541 fi
14542 else
14543 ok=yes
14544 case " ${configdirs} " in
14545 *" binutils "*) ;;
14546 *) ok=no ;;
14547 esac
14548
14549 if test $ok = yes; then
14550 # An in-tree tool is available and we can use it
14551 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14553 $as_echo "just compiled" >&6; }
14554 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14555 # We already found the complete path
14556 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14558 $as_echo "pre-installed in $ac_dir" >&6; }
14559 elif test "x$target" = "x$host"; then
14560 # We can use an host tool
14561 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14563 $as_echo "host tool" >&6; }
14564 else
14565 # We need a cross tool
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14567 $as_echo "pre-installed" >&6; }
14568 fi
14569 fi
14570
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14572 $as_echo_n "checking where to find the target gcc... " >&6; }
14573 if test "x${build}" != "x${host}" ; then
14574 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14575 # We already found the complete path
14576 ac_dir=`dirname $GCC_FOR_TARGET`
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14578 $as_echo "pre-installed in $ac_dir" >&6; }
14579 else
14580 # Canadian cross, just use what we found
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14582 $as_echo "pre-installed" >&6; }
14583 fi
14584 else
14585 ok=yes
14586 case " ${configdirs} " in
14587 *" gcc "*) ;;
14588 *) ok=no ;;
14589 esac
14590
14591 if test $ok = yes; then
14592 # An in-tree tool is available and we can use it
14593 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14595 $as_echo "just compiled" >&6; }
14596 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14597 # We already found the complete path
14598 ac_dir=`dirname $GCC_FOR_TARGET`
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14600 $as_echo "pre-installed in $ac_dir" >&6; }
14601 elif test "x$target" = "x$host"; then
14602 # We can use an host tool
14603 GCC_FOR_TARGET='$()'
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14605 $as_echo "host tool" >&6; }
14606 else
14607 # We need a cross tool
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14609 $as_echo "pre-installed" >&6; }
14610 fi
14611 fi
14612
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14614 $as_echo_n "checking where to find the target gfortran... " >&6; }
14615 if test "x${build}" != "x${host}" ; then
14616 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14617 # We already found the complete path
14618 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14620 $as_echo "pre-installed in $ac_dir" >&6; }
14621 else
14622 # Canadian cross, just use what we found
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14624 $as_echo "pre-installed" >&6; }
14625 fi
14626 else
14627 ok=yes
14628 case " ${configdirs} " in
14629 *" gcc "*) ;;
14630 *) ok=no ;;
14631 esac
14632 case ,${enable_languages}, in
14633 *,fortran,*) ;;
14634 *) ok=no ;;
14635 esac
14636 if test $ok = yes; then
14637 # An in-tree tool is available and we can use it
14638 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14640 $as_echo "just compiled" >&6; }
14641 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14642 # We already found the complete path
14643 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14645 $as_echo "pre-installed in $ac_dir" >&6; }
14646 elif test "x$target" = "x$host"; then
14647 # We can use an host tool
14648 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14650 $as_echo "host tool" >&6; }
14651 else
14652 # We need a cross tool
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14654 $as_echo "pre-installed" >&6; }
14655 fi
14656 fi
14657
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14659 $as_echo_n "checking where to find the target gccgo... " >&6; }
14660 if test "x${build}" != "x${host}" ; then
14661 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14662 # We already found the complete path
14663 ac_dir=`dirname $GOC_FOR_TARGET`
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14665 $as_echo "pre-installed in $ac_dir" >&6; }
14666 else
14667 # Canadian cross, just use what we found
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14669 $as_echo "pre-installed" >&6; }
14670 fi
14671 else
14672 ok=yes
14673 case " ${configdirs} " in
14674 *" gcc "*) ;;
14675 *) ok=no ;;
14676 esac
14677 case ,${enable_languages}, in
14678 *,go,*) ;;
14679 *) ok=no ;;
14680 esac
14681 if test $ok = yes; then
14682 # An in-tree tool is available and we can use it
14683 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14685 $as_echo "just compiled" >&6; }
14686 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14687 # We already found the complete path
14688 ac_dir=`dirname $GOC_FOR_TARGET`
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14690 $as_echo "pre-installed in $ac_dir" >&6; }
14691 elif test "x$target" = "x$host"; then
14692 # We can use an host tool
14693 GOC_FOR_TARGET='$(GOC)'
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14695 $as_echo "host tool" >&6; }
14696 else
14697 # We need a cross tool
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14699 $as_echo "pre-installed" >&6; }
14700 fi
14701 fi
14702
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14704 $as_echo_n "checking where to find the target ld... " >&6; }
14705 if test "x${build}" != "x${host}" ; then
14706 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14707 # We already found the complete path
14708 ac_dir=`dirname $LD_FOR_TARGET`
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14710 $as_echo "pre-installed in $ac_dir" >&6; }
14711 else
14712 # Canadian cross, just use what we found
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14714 $as_echo "pre-installed" >&6; }
14715 fi
14716 else
14717 ok=yes
14718 case " ${configdirs} " in
14719 *" ld "*) ;;
14720 *) ok=no ;;
14721 esac
14722
14723 if test $ok = yes; then
14724 # An in-tree tool is available and we can use it
14725 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14727 $as_echo "just compiled" >&6; }
14728 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14729 # We already found the complete path
14730 ac_dir=`dirname $LD_FOR_TARGET`
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14732 $as_echo "pre-installed in $ac_dir" >&6; }
14733 elif test "x$target" = "x$host"; then
14734 # We can use an host tool
14735 LD_FOR_TARGET='$(LD)'
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14737 $as_echo "host tool" >&6; }
14738 else
14739 # We need a cross tool
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14741 $as_echo "pre-installed" >&6; }
14742 fi
14743 fi
14744
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14746 $as_echo_n "checking where to find the target lipo... " >&6; }
14747 if test "x${build}" != "x${host}" ; then
14748 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14749 # We already found the complete path
14750 ac_dir=`dirname $LIPO_FOR_TARGET`
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14752 $as_echo "pre-installed in $ac_dir" >&6; }
14753 else
14754 # Canadian cross, just use what we found
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14756 $as_echo "pre-installed" >&6; }
14757 fi
14758 else
14759 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14760 # We already found the complete path
14761 ac_dir=`dirname $LIPO_FOR_TARGET`
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14763 $as_echo "pre-installed in $ac_dir" >&6; }
14764 elif test "x$target" = "x$host"; then
14765 # We can use an host tool
14766 LIPO_FOR_TARGET='$(LIPO)'
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14768 $as_echo "host tool" >&6; }
14769 else
14770 # We need a cross tool
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14772 $as_echo "pre-installed" >&6; }
14773 fi
14774 fi
14775
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14777 $as_echo_n "checking where to find the target nm... " >&6; }
14778 if test "x${build}" != "x${host}" ; then
14779 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14780 # We already found the complete path
14781 ac_dir=`dirname $NM_FOR_TARGET`
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14783 $as_echo "pre-installed in $ac_dir" >&6; }
14784 else
14785 # Canadian cross, just use what we found
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14787 $as_echo "pre-installed" >&6; }
14788 fi
14789 else
14790 ok=yes
14791 case " ${configdirs} " in
14792 *" binutils "*) ;;
14793 *) ok=no ;;
14794 esac
14795
14796 if test $ok = yes; then
14797 # An in-tree tool is available and we can use it
14798 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14800 $as_echo "just compiled" >&6; }
14801 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14802 # We already found the complete path
14803 ac_dir=`dirname $NM_FOR_TARGET`
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14805 $as_echo "pre-installed in $ac_dir" >&6; }
14806 elif test "x$target" = "x$host"; then
14807 # We can use an host tool
14808 NM_FOR_TARGET='$(NM)'
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14810 $as_echo "host tool" >&6; }
14811 else
14812 # We need a cross tool
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14814 $as_echo "pre-installed" >&6; }
14815 fi
14816 fi
14817
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14819 $as_echo_n "checking where to find the target objcopy... " >&6; }
14820 if test "x${build}" != "x${host}" ; then
14821 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14822 # We already found the complete path
14823 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14825 $as_echo "pre-installed in $ac_dir" >&6; }
14826 else
14827 # Canadian cross, just use what we found
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14829 $as_echo "pre-installed" >&6; }
14830 fi
14831 else
14832 ok=yes
14833 case " ${configdirs} " in
14834 *" binutils "*) ;;
14835 *) ok=no ;;
14836 esac
14837
14838 if test $ok = yes; then
14839 # An in-tree tool is available and we can use it
14840 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14842 $as_echo "just compiled" >&6; }
14843 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14844 # We already found the complete path
14845 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14847 $as_echo "pre-installed in $ac_dir" >&6; }
14848 elif test "x$target" = "x$host"; then
14849 # We can use an host tool
14850 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14852 $as_echo "host tool" >&6; }
14853 else
14854 # We need a cross tool
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14856 $as_echo "pre-installed" >&6; }
14857 fi
14858 fi
14859
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14861 $as_echo_n "checking where to find the target objdump... " >&6; }
14862 if test "x${build}" != "x${host}" ; then
14863 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14864 # We already found the complete path
14865 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14867 $as_echo "pre-installed in $ac_dir" >&6; }
14868 else
14869 # Canadian cross, just use what we found
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14871 $as_echo "pre-installed" >&6; }
14872 fi
14873 else
14874 ok=yes
14875 case " ${configdirs} " in
14876 *" binutils "*) ;;
14877 *) ok=no ;;
14878 esac
14879
14880 if test $ok = yes; then
14881 # An in-tree tool is available and we can use it
14882 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14884 $as_echo "just compiled" >&6; }
14885 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14886 # We already found the complete path
14887 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14889 $as_echo "pre-installed in $ac_dir" >&6; }
14890 elif test "x$target" = "x$host"; then
14891 # We can use an host tool
14892 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14894 $as_echo "host tool" >&6; }
14895 else
14896 # We need a cross tool
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14898 $as_echo "pre-installed" >&6; }
14899 fi
14900 fi
14901
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14903 $as_echo_n "checking where to find the target ranlib... " >&6; }
14904 if test "x${build}" != "x${host}" ; then
14905 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14906 # We already found the complete path
14907 ac_dir=`dirname $RANLIB_FOR_TARGET`
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14909 $as_echo "pre-installed in $ac_dir" >&6; }
14910 else
14911 # Canadian cross, just use what we found
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14913 $as_echo "pre-installed" >&6; }
14914 fi
14915 else
14916 ok=yes
14917 case " ${configdirs} " in
14918 *" binutils "*) ;;
14919 *) ok=no ;;
14920 esac
14921
14922 if test $ok = yes; then
14923 # An in-tree tool is available and we can use it
14924 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14926 $as_echo "just compiled" >&6; }
14927 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14928 # We already found the complete path
14929 ac_dir=`dirname $RANLIB_FOR_TARGET`
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14931 $as_echo "pre-installed in $ac_dir" >&6; }
14932 elif test "x$target" = "x$host"; then
14933 # We can use an host tool
14934 RANLIB_FOR_TARGET='$(RANLIB)'
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14936 $as_echo "host tool" >&6; }
14937 else
14938 # We need a cross tool
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14940 $as_echo "pre-installed" >&6; }
14941 fi
14942 fi
14943
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14945 $as_echo_n "checking where to find the target readelf... " >&6; }
14946 if test "x${build}" != "x${host}" ; then
14947 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14948 # We already found the complete path
14949 ac_dir=`dirname $READELF_FOR_TARGET`
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14951 $as_echo "pre-installed in $ac_dir" >&6; }
14952 else
14953 # Canadian cross, just use what we found
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14955 $as_echo "pre-installed" >&6; }
14956 fi
14957 else
14958 ok=yes
14959 case " ${configdirs} " in
14960 *" binutils "*) ;;
14961 *) ok=no ;;
14962 esac
14963
14964 if test $ok = yes; then
14965 # An in-tree tool is available and we can use it
14966 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14968 $as_echo "just compiled" >&6; }
14969 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14970 # We already found the complete path
14971 ac_dir=`dirname $READELF_FOR_TARGET`
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14973 $as_echo "pre-installed in $ac_dir" >&6; }
14974 elif test "x$target" = "x$host"; then
14975 # We can use an host tool
14976 READELF_FOR_TARGET='$(READELF)'
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14978 $as_echo "host tool" >&6; }
14979 else
14980 # We need a cross tool
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14982 $as_echo "pre-installed" >&6; }
14983 fi
14984 fi
14985
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14987 $as_echo_n "checking where to find the target strip... " >&6; }
14988 if test "x${build}" != "x${host}" ; then
14989 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14990 # We already found the complete path
14991 ac_dir=`dirname $STRIP_FOR_TARGET`
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14993 $as_echo "pre-installed in $ac_dir" >&6; }
14994 else
14995 # Canadian cross, just use what we found
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14997 $as_echo "pre-installed" >&6; }
14998 fi
14999 else
15000 ok=yes
15001 case " ${configdirs} " in
15002 *" binutils "*) ;;
15003 *) ok=no ;;
15004 esac
15005
15006 if test $ok = yes; then
15007 # An in-tree tool is available and we can use it
15008 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15010 $as_echo "just compiled" >&6; }
15011 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15012 # We already found the complete path
15013 ac_dir=`dirname $STRIP_FOR_TARGET`
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15015 $as_echo "pre-installed in $ac_dir" >&6; }
15016 elif test "x$target" = "x$host"; then
15017 # We can use an host tool
15018 STRIP_FOR_TARGET='$(STRIP)'
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15020 $as_echo "host tool" >&6; }
15021 else
15022 # We need a cross tool
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15024 $as_echo "pre-installed" >&6; }
15025 fi
15026 fi
15027
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15029 $as_echo_n "checking where to find the target windres... " >&6; }
15030 if test "x${build}" != "x${host}" ; then
15031 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15032 # We already found the complete path
15033 ac_dir=`dirname $WINDRES_FOR_TARGET`
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15035 $as_echo "pre-installed in $ac_dir" >&6; }
15036 else
15037 # Canadian cross, just use what we found
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15039 $as_echo "pre-installed" >&6; }
15040 fi
15041 else
15042 ok=yes
15043 case " ${configdirs} " in
15044 *" binutils "*) ;;
15045 *) ok=no ;;
15046 esac
15047
15048 if test $ok = yes; then
15049 # An in-tree tool is available and we can use it
15050 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15052 $as_echo "just compiled" >&6; }
15053 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15054 # We already found the complete path
15055 ac_dir=`dirname $WINDRES_FOR_TARGET`
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15057 $as_echo "pre-installed in $ac_dir" >&6; }
15058 elif test "x$target" = "x$host"; then
15059 # We can use an host tool
15060 WINDRES_FOR_TARGET='$(WINDRES)'
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15062 $as_echo "host tool" >&6; }
15063 else
15064 # We need a cross tool
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15066 $as_echo "pre-installed" >&6; }
15067 fi
15068 fi
15069
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15071 $as_echo_n "checking where to find the target windmc... " >&6; }
15072 if test "x${build}" != "x${host}" ; then
15073 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15074 # We already found the complete path
15075 ac_dir=`dirname $WINDMC_FOR_TARGET`
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15077 $as_echo "pre-installed in $ac_dir" >&6; }
15078 else
15079 # Canadian cross, just use what we found
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15081 $as_echo "pre-installed" >&6; }
15082 fi
15083 else
15084 ok=yes
15085 case " ${configdirs} " in
15086 *" binutils "*) ;;
15087 *) ok=no ;;
15088 esac
15089
15090 if test $ok = yes; then
15091 # An in-tree tool is available and we can use it
15092 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15094 $as_echo "just compiled" >&6; }
15095 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15096 # We already found the complete path
15097 ac_dir=`dirname $WINDMC_FOR_TARGET`
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15099 $as_echo "pre-installed in $ac_dir" >&6; }
15100 elif test "x$target" = "x$host"; then
15101 # We can use an host tool
15102 WINDMC_FOR_TARGET='$(WINDMC)'
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15104 $as_echo "host tool" >&6; }
15105 else
15106 # We need a cross tool
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15108 $as_echo "pre-installed" >&6; }
15109 fi
15110 fi
15111
15112
15113
15114
15115
15116 # Certain tools may need extra flags.
15117 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15118 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15119 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15120
15121 # When building target libraries, except in a Canadian cross, we use
15122 # the same toolchain as the compiler we just built.
15123 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15124 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15125 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15126 if test $host = $build; then
15127 case " $configdirs " in
15128 *" gcc "*)
15129 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15130 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15131 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15132 ;;
15133 esac
15134 fi
15135
15136
15137
15138
15139
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15141 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15142 # Check whether --enable-maintainer-mode was given.
15143 if test "${enable_maintainer_mode+set}" = set; then :
15144 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15145 else
15146 USE_MAINTAINER_MODE=no
15147 fi
15148
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15150 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15151
15152
15153 if test "$USE_MAINTAINER_MODE" = yes; then
15154 MAINTAINER_MODE_TRUE=
15155 MAINTAINER_MODE_FALSE='#'
15156 else
15157 MAINTAINER_MODE_TRUE='#'
15158 MAINTAINER_MODE_FALSE=
15159 fi
15160 MAINT=$MAINTAINER_MODE_TRUE
15161
15162 # ---------------------
15163 # GCC bootstrap support
15164 # ---------------------
15165
15166 # Stage specific cflags for build.
15167 stage1_cflags="-g"
15168 case $build in
15169 vax-*-*)
15170 case ${GCC} in
15171 yes) stage1_cflags="-g -Wa,-J" ;;
15172 *) stage1_cflags="-g -J" ;;
15173 esac ;;
15174 esac
15175
15176
15177
15178 # Enable --enable-checking in stage1 of the compiler.
15179 # Check whether --enable-stage1-checking was given.
15180 if test "${enable_stage1_checking+set}" = set; then :
15181 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15182 else
15183 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
15184 # For --disable-checking or implicit --enable-checking=release, avoid
15185 # setting --enable-checking=gc in the default stage1 checking for LTO
15186 # bootstraps. See PR62077.
15187 case $BUILD_CONFIG in
15188 *lto*)
15189 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15190 *)
15191 stage1_checking=--enable-checking=yes,types;;
15192 esac
15193 if test "x$enable_checking" = x && \
15194 test -d ${srcdir}/gcc && \
15195 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15196 stage1_checking=--enable-checking=yes,types,extra
15197 fi
15198 else
15199 stage1_checking=--enable-checking=$enable_checking,types
15200 fi
15201 fi
15202
15203
15204
15205 # Enable -Werror in bootstrap stage2 and later.
15206 # Check whether --enable-werror was given.
15207 if test "${enable_werror+set}" = set; then :
15208 enableval=$enable_werror;
15209 case ${enable_werror} in
15210 yes) stage2_werror_flag="--enable-werror-always" ;;
15211 *) stage2_werror_flag="" ;;
15212 esac
15213
15214 else
15215
15216 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15217 case $BUILD_CONFIG in
15218 bootstrap-debug)
15219 stage2_werror_flag="--enable-werror-always" ;;
15220 "")
15221 stage2_werror_flag="--enable-werror-always" ;;
15222 esac
15223 fi
15224
15225 fi
15226
15227
15228
15229
15230 # Specify what files to not compare during bootstrap.
15231
15232 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15233 case "$target" in
15234 hppa*64*-*-hpux*) ;;
15235 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
15236 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
15237 esac
15238
15239
15240 ac_config_files="$ac_config_files Makefile"
15241
15242 cat >confcache <<\_ACEOF
15243 # This file is a shell script that caches the results of configure
15244 # tests run on this system so they can be shared between configure
15245 # scripts and configure runs, see configure's option --config-cache.
15246 # It is not useful on other systems. If it contains results you don't
15247 # want to keep, you may remove or edit it.
15248 #
15249 # config.status only pays attention to the cache file if you give it
15250 # the --recheck option to rerun configure.
15251 #
15252 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15253 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15254 # following values.
15255
15256 _ACEOF
15257
15258 # The following way of writing the cache mishandles newlines in values,
15259 # but we know of no workaround that is simple, portable, and efficient.
15260 # So, we kill variables containing newlines.
15261 # Ultrix sh set writes to stderr and can't be redirected directly,
15262 # and sets the high bit in the cache file unless we assign to the vars.
15263 (
15264 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15265 eval ac_val=\$$ac_var
15266 case $ac_val in #(
15267 *${as_nl}*)
15268 case $ac_var in #(
15269 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15270 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15271 esac
15272 case $ac_var in #(
15273 _ | IFS | as_nl) ;; #(
15274 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15275 *) { eval $ac_var=; unset $ac_var;} ;;
15276 esac ;;
15277 esac
15278 done
15279
15280 (set) 2>&1 |
15281 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15282 *${as_nl}ac_space=\ *)
15283 # `set' does not quote correctly, so add quotes: double-quote
15284 # substitution turns \\\\ into \\, and sed turns \\ into \.
15285 sed -n \
15286 "s/'/'\\\\''/g;
15287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15288 ;; #(
15289 *)
15290 # `set' quotes correctly as required by POSIX, so do not add quotes.
15291 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15292 ;;
15293 esac |
15294 sort
15295 ) |
15296 sed '
15297 /^ac_cv_env_/b end
15298 t clear
15299 :clear
15300 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15301 t end
15302 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15303 :end' >>confcache
15304 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15305 if test -w "$cache_file"; then
15306 if test "x$cache_file" != "x/dev/null"; then
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15308 $as_echo "$as_me: updating cache $cache_file" >&6;}
15309 if test ! -f "$cache_file" || test -h "$cache_file"; then
15310 cat confcache >"$cache_file"
15311 else
15312 case $cache_file in #(
15313 */* | ?:*)
15314 mv -f confcache "$cache_file"$$ &&
15315 mv -f "$cache_file"$$ "$cache_file" ;; #(
15316 *)
15317 mv -f confcache "$cache_file" ;;
15318 esac
15319 fi
15320 fi
15321 else
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15323 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15324 fi
15325 fi
15326 rm -f confcache
15327
15328 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15329 # Let make expand exec_prefix.
15330 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15331
15332 # Transform confdefs.h into DEFS.
15333 # Protect against shell expansion while executing Makefile rules.
15334 # Protect against Makefile macro expansion.
15335 #
15336 # If the first sed substitution is executed (which looks for macros that
15337 # take arguments), then branch to the quote section. Otherwise,
15338 # look for a macro that doesn't take arguments.
15339 ac_script='
15340 :mline
15341 /\\$/{
15342 N
15343 s,\\\n,,
15344 b mline
15345 }
15346 t clear
15347 :clear
15348 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15349 t quote
15350 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15351 t quote
15352 b any
15353 :quote
15354 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15355 s/\[/\\&/g
15356 s/\]/\\&/g
15357 s/\$/$$/g
15358 H
15359 :any
15360 ${
15361 g
15362 s/^\n//
15363 s/\n/ /g
15364 p
15365 }
15366 '
15367 DEFS=`sed -n "$ac_script" confdefs.h`
15368
15369
15370 ac_libobjs=
15371 ac_ltlibobjs=
15372 U=
15373 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15374 # 1. Remove the extension, and $U if already installed.
15375 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15376 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15377 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15378 # will be set to the directory where LIBOBJS objects are built.
15379 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15380 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15381 done
15382 LIBOBJS=$ac_libobjs
15383
15384 LTLIBOBJS=$ac_ltlibobjs
15385
15386
15387
15388 : "${CONFIG_STATUS=./config.status}"
15389 ac_write_fail=0
15390 ac_clean_files_save=$ac_clean_files
15391 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15393 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15394 as_write_fail=0
15395 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15396 #! $SHELL
15397 # Generated by $as_me.
15398 # Run this file to recreate the current configuration.
15399 # Compiler output produced by configure, useful for debugging
15400 # configure, is in config.log if it exists.
15401
15402 debug=false
15403 ac_cs_recheck=false
15404 ac_cs_silent=false
15405
15406 SHELL=\${CONFIG_SHELL-$SHELL}
15407 export SHELL
15408 _ASEOF
15409 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15410 ## -------------------- ##
15411 ## M4sh Initialization. ##
15412 ## -------------------- ##
15413
15414 # Be more Bourne compatible
15415 DUALCASE=1; export DUALCASE # for MKS sh
15416 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15417 emulate sh
15418 NULLCMD=:
15419 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15420 # is contrary to our usage. Disable this feature.
15421 alias -g '${1+"$@"}'='"$@"'
15422 setopt NO_GLOB_SUBST
15423 else
15424 case `(set -o) 2>/dev/null` in #(
15425 *posix*) :
15426 set -o posix ;; #(
15427 *) :
15428 ;;
15429 esac
15430 fi
15431
15432
15433 as_nl='
15434 '
15435 export as_nl
15436 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15437 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15438 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15439 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15440 # Prefer a ksh shell builtin over an external printf program on Solaris,
15441 # but without wasting forks for bash or zsh.
15442 if test -z "$BASH_VERSION$ZSH_VERSION" \
15443 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15444 as_echo='print -r --'
15445 as_echo_n='print -rn --'
15446 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15447 as_echo='printf %s\n'
15448 as_echo_n='printf %s'
15449 else
15450 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15451 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15452 as_echo_n='/usr/ucb/echo -n'
15453 else
15454 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15455 as_echo_n_body='eval
15456 arg=$1;
15457 case $arg in #(
15458 *"$as_nl"*)
15459 expr "X$arg" : "X\\(.*\\)$as_nl";
15460 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15461 esac;
15462 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15463 '
15464 export as_echo_n_body
15465 as_echo_n='sh -c $as_echo_n_body as_echo'
15466 fi
15467 export as_echo_body
15468 as_echo='sh -c $as_echo_body as_echo'
15469 fi
15470
15471 # The user is always right.
15472 if test "${PATH_SEPARATOR+set}" != set; then
15473 PATH_SEPARATOR=:
15474 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15475 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15476 PATH_SEPARATOR=';'
15477 }
15478 fi
15479
15480
15481 # IFS
15482 # We need space, tab and new line, in precisely that order. Quoting is
15483 # there to prevent editors from complaining about space-tab.
15484 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15485 # splitting by setting IFS to empty value.)
15486 IFS=" "" $as_nl"
15487
15488 # Find who we are. Look in the path if we contain no directory separator.
15489 as_myself=
15490 case $0 in #((
15491 *[\\/]* ) as_myself=$0 ;;
15492 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15493 for as_dir in $PATH
15494 do
15495 IFS=$as_save_IFS
15496 test -z "$as_dir" && as_dir=.
15497 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15498 done
15499 IFS=$as_save_IFS
15500
15501 ;;
15502 esac
15503 # We did not find ourselves, most probably we were run as `sh COMMAND'
15504 # in which case we are not to be found in the path.
15505 if test "x$as_myself" = x; then
15506 as_myself=$0
15507 fi
15508 if test ! -f "$as_myself"; then
15509 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15510 exit 1
15511 fi
15512
15513 # Unset variables that we do not need and which cause bugs (e.g. in
15514 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15515 # suppresses any "Segmentation fault" message there. '((' could
15516 # trigger a bug in pdksh 5.2.14.
15517 for as_var in BASH_ENV ENV MAIL MAILPATH
15518 do eval test x\${$as_var+set} = xset \
15519 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15520 done
15521 PS1='$ '
15522 PS2='> '
15523 PS4='+ '
15524
15525 # NLS nuisances.
15526 LC_ALL=C
15527 export LC_ALL
15528 LANGUAGE=C
15529 export LANGUAGE
15530
15531 # CDPATH.
15532 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15533
15534
15535 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15536 # ----------------------------------------
15537 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15538 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15539 # script with STATUS, using 1 if that was 0.
15540 as_fn_error ()
15541 {
15542 as_status=$1; test $as_status -eq 0 && as_status=1
15543 if test "$4"; then
15544 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15545 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15546 fi
15547 $as_echo "$as_me: error: $2" >&2
15548 as_fn_exit $as_status
15549 } # as_fn_error
15550
15551
15552 # as_fn_set_status STATUS
15553 # -----------------------
15554 # Set $? to STATUS, without forking.
15555 as_fn_set_status ()
15556 {
15557 return $1
15558 } # as_fn_set_status
15559
15560 # as_fn_exit STATUS
15561 # -----------------
15562 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15563 as_fn_exit ()
15564 {
15565 set +e
15566 as_fn_set_status $1
15567 exit $1
15568 } # as_fn_exit
15569
15570 # as_fn_unset VAR
15571 # ---------------
15572 # Portably unset VAR.
15573 as_fn_unset ()
15574 {
15575 { eval $1=; unset $1;}
15576 }
15577 as_unset=as_fn_unset
15578 # as_fn_append VAR VALUE
15579 # ----------------------
15580 # Append the text in VALUE to the end of the definition contained in VAR. Take
15581 # advantage of any shell optimizations that allow amortized linear growth over
15582 # repeated appends, instead of the typical quadratic growth present in naive
15583 # implementations.
15584 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15585 eval 'as_fn_append ()
15586 {
15587 eval $1+=\$2
15588 }'
15589 else
15590 as_fn_append ()
15591 {
15592 eval $1=\$$1\$2
15593 }
15594 fi # as_fn_append
15595
15596 # as_fn_arith ARG...
15597 # ------------------
15598 # Perform arithmetic evaluation on the ARGs, and store the result in the
15599 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15600 # must be portable across $(()) and expr.
15601 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15602 eval 'as_fn_arith ()
15603 {
15604 as_val=$(( $* ))
15605 }'
15606 else
15607 as_fn_arith ()
15608 {
15609 as_val=`expr "$@" || test $? -eq 1`
15610 }
15611 fi # as_fn_arith
15612
15613
15614 if expr a : '\(a\)' >/dev/null 2>&1 &&
15615 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15616 as_expr=expr
15617 else
15618 as_expr=false
15619 fi
15620
15621 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15622 as_basename=basename
15623 else
15624 as_basename=false
15625 fi
15626
15627 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15628 as_dirname=dirname
15629 else
15630 as_dirname=false
15631 fi
15632
15633 as_me=`$as_basename -- "$0" ||
15634 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15635 X"$0" : 'X\(//\)$' \| \
15636 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15637 $as_echo X/"$0" |
15638 sed '/^.*\/\([^/][^/]*\)\/*$/{
15639 s//\1/
15640 q
15641 }
15642 /^X\/\(\/\/\)$/{
15643 s//\1/
15644 q
15645 }
15646 /^X\/\(\/\).*/{
15647 s//\1/
15648 q
15649 }
15650 s/.*/./; q'`
15651
15652 # Avoid depending upon Character Ranges.
15653 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15654 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15655 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15656 as_cr_digits='0123456789'
15657 as_cr_alnum=$as_cr_Letters$as_cr_digits
15658
15659 ECHO_C= ECHO_N= ECHO_T=
15660 case `echo -n x` in #(((((
15661 -n*)
15662 case `echo 'xy\c'` in
15663 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15664 xy) ECHO_C='\c';;
15665 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15666 ECHO_T=' ';;
15667 esac;;
15668 *)
15669 ECHO_N='-n';;
15670 esac
15671
15672 rm -f conf$$ conf$$.exe conf$$.file
15673 if test -d conf$$.dir; then
15674 rm -f conf$$.dir/conf$$.file
15675 else
15676 rm -f conf$$.dir
15677 mkdir conf$$.dir 2>/dev/null
15678 fi
15679 if (echo >conf$$.file) 2>/dev/null; then
15680 if ln -s conf$$.file conf$$ 2>/dev/null; then
15681 as_ln_s='ln -s'
15682 # ... but there are two gotchas:
15683 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15684 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15685 # In both cases, we have to default to `cp -pR'.
15686 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15687 as_ln_s='cp -pR'
15688 elif ln conf$$.file conf$$ 2>/dev/null; then
15689 as_ln_s=ln
15690 else
15691 as_ln_s='cp -pR'
15692 fi
15693 else
15694 as_ln_s='cp -pR'
15695 fi
15696 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15697 rmdir conf$$.dir 2>/dev/null
15698
15699
15700 # as_fn_mkdir_p
15701 # -------------
15702 # Create "$as_dir" as a directory, including parents if necessary.
15703 as_fn_mkdir_p ()
15704 {
15705
15706 case $as_dir in #(
15707 -*) as_dir=./$as_dir;;
15708 esac
15709 test -d "$as_dir" || eval $as_mkdir_p || {
15710 as_dirs=
15711 while :; do
15712 case $as_dir in #(
15713 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15714 *) as_qdir=$as_dir;;
15715 esac
15716 as_dirs="'$as_qdir' $as_dirs"
15717 as_dir=`$as_dirname -- "$as_dir" ||
15718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15719 X"$as_dir" : 'X\(//\)[^/]' \| \
15720 X"$as_dir" : 'X\(//\)$' \| \
15721 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15722 $as_echo X"$as_dir" |
15723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15724 s//\1/
15725 q
15726 }
15727 /^X\(\/\/\)[^/].*/{
15728 s//\1/
15729 q
15730 }
15731 /^X\(\/\/\)$/{
15732 s//\1/
15733 q
15734 }
15735 /^X\(\/\).*/{
15736 s//\1/
15737 q
15738 }
15739 s/.*/./; q'`
15740 test -d "$as_dir" && break
15741 done
15742 test -z "$as_dirs" || eval "mkdir $as_dirs"
15743 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15744
15745
15746 } # as_fn_mkdir_p
15747 if mkdir -p . 2>/dev/null; then
15748 as_mkdir_p='mkdir -p "$as_dir"'
15749 else
15750 test -d ./-p && rmdir ./-p
15751 as_mkdir_p=false
15752 fi
15753
15754
15755 # as_fn_executable_p FILE
15756 # -----------------------
15757 # Test if FILE is an executable regular file.
15758 as_fn_executable_p ()
15759 {
15760 test -f "$1" && test -x "$1"
15761 } # as_fn_executable_p
15762 as_test_x='test -x'
15763 as_executable_p=as_fn_executable_p
15764
15765 # Sed expression to map a string onto a valid CPP name.
15766 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15767
15768 # Sed expression to map a string onto a valid variable name.
15769 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15770
15771
15772 exec 6>&1
15773 ## ----------------------------------- ##
15774 ## Main body of $CONFIG_STATUS script. ##
15775 ## ----------------------------------- ##
15776 _ASEOF
15777 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15778
15779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15780 # Save the log message, to keep $0 and so on meaningful, and to
15781 # report actual input values of CONFIG_FILES etc. instead of their
15782 # values after options handling.
15783 ac_log="
15784 This file was extended by $as_me, which was
15785 generated by GNU Autoconf 2.69. Invocation command line was
15786
15787 CONFIG_FILES = $CONFIG_FILES
15788 CONFIG_HEADERS = $CONFIG_HEADERS
15789 CONFIG_LINKS = $CONFIG_LINKS
15790 CONFIG_COMMANDS = $CONFIG_COMMANDS
15791 $ $0 $@
15792
15793 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15794 "
15795
15796 _ACEOF
15797
15798 case $ac_config_files in *"
15799 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15800 esac
15801
15802
15803
15804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15805 # Files that config.status was made for.
15806 config_files="$ac_config_files"
15807
15808 _ACEOF
15809
15810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15811 ac_cs_usage="\
15812 \`$as_me' instantiates files and other configuration actions
15813 from templates according to the current configuration. Unless the files
15814 and actions are specified as TAGs, all are instantiated by default.
15815
15816 Usage: $0 [OPTION]... [TAG]...
15817
15818 -h, --help print this help, then exit
15819 -V, --version print version number and configuration settings, then exit
15820 --config print configuration, then exit
15821 -q, --quiet, --silent
15822 do not print progress messages
15823 -d, --debug don't remove temporary files
15824 --recheck update $as_me by reconfiguring in the same conditions
15825 --file=FILE[:TEMPLATE]
15826 instantiate the configuration file FILE
15827
15828 Configuration files:
15829 $config_files
15830
15831 Report bugs to the package provider."
15832
15833 _ACEOF
15834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15835 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15836 ac_cs_version="\\
15837 config.status
15838 configured by $0, generated by GNU Autoconf 2.69,
15839 with options \\"\$ac_cs_config\\"
15840
15841 Copyright (C) 2012 Free Software Foundation, Inc.
15842 This config.status script is free software; the Free Software Foundation
15843 gives unlimited permission to copy, distribute and modify it."
15844
15845 ac_pwd='$ac_pwd'
15846 srcdir='$srcdir'
15847 INSTALL='$INSTALL'
15848 AWK='$AWK'
15849 test -n "\$AWK" || AWK=awk
15850 _ACEOF
15851
15852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15853 # The default lists apply if the user does not specify any file.
15854 ac_need_defaults=:
15855 while test $# != 0
15856 do
15857 case $1 in
15858 --*=?*)
15859 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15860 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15861 ac_shift=:
15862 ;;
15863 --*=)
15864 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15865 ac_optarg=
15866 ac_shift=:
15867 ;;
15868 *)
15869 ac_option=$1
15870 ac_optarg=$2
15871 ac_shift=shift
15872 ;;
15873 esac
15874
15875 case $ac_option in
15876 # Handling of the options.
15877 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15878 ac_cs_recheck=: ;;
15879 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15880 $as_echo "$ac_cs_version"; exit ;;
15881 --config | --confi | --conf | --con | --co | --c )
15882 $as_echo "$ac_cs_config"; exit ;;
15883 --debug | --debu | --deb | --de | --d | -d )
15884 debug=: ;;
15885 --file | --fil | --fi | --f )
15886 $ac_shift
15887 case $ac_optarg in
15888 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15889 '') as_fn_error $? "missing file argument" ;;
15890 esac
15891 as_fn_append CONFIG_FILES " '$ac_optarg'"
15892 ac_need_defaults=false;;
15893 --he | --h | --help | --hel | -h )
15894 $as_echo "$ac_cs_usage"; exit ;;
15895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15896 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15897 ac_cs_silent=: ;;
15898
15899 # This is an error.
15900 -*) as_fn_error $? "unrecognized option: \`$1'
15901 Try \`$0 --help' for more information." ;;
15902
15903 *) as_fn_append ac_config_targets " $1"
15904 ac_need_defaults=false ;;
15905
15906 esac
15907 shift
15908 done
15909
15910 ac_configure_extra_args=
15911
15912 if $ac_cs_silent; then
15913 exec 6>/dev/null
15914 ac_configure_extra_args="$ac_configure_extra_args --silent"
15915 fi
15916
15917 _ACEOF
15918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15919 if \$ac_cs_recheck; then
15920 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15921 shift
15922 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15923 CONFIG_SHELL='$SHELL'
15924 export CONFIG_SHELL
15925 exec "\$@"
15926 fi
15927
15928 _ACEOF
15929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15930 exec 5>>config.log
15931 {
15932 echo
15933 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15934 ## Running $as_me. ##
15935 _ASBOX
15936 $as_echo "$ac_log"
15937 } >&5
15938
15939 _ACEOF
15940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15941 #
15942 # INIT-COMMANDS
15943 #
15944 extrasub_build="$extrasub_build"
15945 extrasub_host="$extrasub_host"
15946 extrasub_target="$extrasub_target"
15947
15948 _ACEOF
15949
15950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15951
15952 # Handling of arguments.
15953 for ac_config_target in $ac_config_targets
15954 do
15955 case $ac_config_target in
15956 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15957
15958 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15959 esac
15960 done
15961
15962
15963 # If the user did not use the arguments to specify the items to instantiate,
15964 # then the envvar interface is used. Set only those that are not.
15965 # We use the long form for the default assignment because of an extremely
15966 # bizarre bug on SunOS 4.1.3.
15967 if $ac_need_defaults; then
15968 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15969 fi
15970
15971 # Have a temporary directory for convenience. Make it in the build tree
15972 # simply because there is no reason against having it here, and in addition,
15973 # creating and moving files from /tmp can sometimes cause problems.
15974 # Hook for its removal unless debugging.
15975 # Note that there is a small window in which the directory will not be cleaned:
15976 # after its creation but before its name has been assigned to `$tmp'.
15977 $debug ||
15978 {
15979 tmp= ac_tmp=
15980 trap 'exit_status=$?
15981 : "${ac_tmp:=$tmp}"
15982 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15983 ' 0
15984 trap 'as_fn_exit 1' 1 2 13 15
15985 }
15986 # Create a (secure) tmp directory for tmp files.
15987
15988 {
15989 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15990 test -d "$tmp"
15991 } ||
15992 {
15993 tmp=./conf$$-$RANDOM
15994 (umask 077 && mkdir "$tmp")
15995 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15996 ac_tmp=$tmp
15997
15998 # Set up the scripts for CONFIG_FILES section.
15999 # No need to generate them if there are no CONFIG_FILES.
16000 # This happens for instance with `./config.status config.h'.
16001 if test -n "$CONFIG_FILES"; then
16002
16003 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16004 ac_cs_awk_getline=:
16005 ac_cs_awk_pipe_init=
16006 ac_cs_awk_read_file='
16007 while ((getline aline < (F[key])) > 0)
16008 print(aline)
16009 close(F[key])'
16010 ac_cs_awk_pipe_fini=
16011 else
16012 ac_cs_awk_getline=false
16013 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16014 ac_cs_awk_read_file='
16015 print "|#_!!_#|"
16016 print "cat " F[key] " &&"
16017 '$ac_cs_awk_pipe_init
16018 # The final `:' finishes the AND list.
16019 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16020 fi
16021 ac_cr=`echo X | tr X '\015'`
16022 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16023 # But we know of no other shell where ac_cr would be empty at this
16024 # point, so we can use a bashism as a fallback.
16025 if test "x$ac_cr" = x; then
16026 eval ac_cr=\$\'\\r\'
16027 fi
16028 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16029 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16030 ac_cs_awk_cr='\\r'
16031 else
16032 ac_cs_awk_cr=$ac_cr
16033 fi
16034
16035 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16036 _ACEOF
16037
16038 # Create commands to substitute file output variables.
16039 {
16040 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16041 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16042 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16043 echo "_ACAWK" &&
16044 echo "_ACEOF"
16045 } >conf$$files.sh &&
16046 . ./conf$$files.sh ||
16047 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16048 rm -f conf$$files.sh
16049
16050 {
16051 echo "cat >conf$$subs.awk <<_ACEOF" &&
16052 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16053 echo "_ACEOF"
16054 } >conf$$subs.sh ||
16055 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16056 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16057 ac_delim='%!_!# '
16058 for ac_last_try in false false false false false :; do
16059 . ./conf$$subs.sh ||
16060 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16061
16062 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16063 if test $ac_delim_n = $ac_delim_num; then
16064 break
16065 elif $ac_last_try; then
16066 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16067 else
16068 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16069 fi
16070 done
16071 rm -f conf$$subs.sh
16072
16073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16074 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16075 _ACEOF
16076 sed -n '
16077 h
16078 s/^/S["/; s/!.*/"]=/
16079 p
16080 g
16081 s/^[^!]*!//
16082 :repl
16083 t repl
16084 s/'"$ac_delim"'$//
16085 t delim
16086 :nl
16087 h
16088 s/\(.\{148\}\)..*/\1/
16089 t more1
16090 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16091 p
16092 n
16093 b repl
16094 :more1
16095 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16096 p
16097 g
16098 s/.\{148\}//
16099 t nl
16100 :delim
16101 h
16102 s/\(.\{148\}\)..*/\1/
16103 t more2
16104 s/["\\]/\\&/g; s/^/"/; s/$/"/
16105 p
16106 b
16107 :more2
16108 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16109 p
16110 g
16111 s/.\{148\}//
16112 t delim
16113 ' <conf$$subs.awk | sed '
16114 /^[^""]/{
16115 N
16116 s/\n//
16117 }
16118 ' >>$CONFIG_STATUS || ac_write_fail=1
16119 rm -f conf$$subs.awk
16120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16121 _ACAWK
16122 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16123 for (key in S) S_is_set[key] = 1
16124 FS = "\a"
16125 \$ac_cs_awk_pipe_init
16126 }
16127 {
16128 line = $ 0
16129 nfields = split(line, field, "@")
16130 substed = 0
16131 len = length(field[1])
16132 for (i = 2; i < nfields; i++) {
16133 key = field[i]
16134 keylen = length(key)
16135 if (S_is_set[key]) {
16136 value = S[key]
16137 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16138 len += length(value) + length(field[++i])
16139 substed = 1
16140 } else
16141 len += 1 + keylen
16142 }
16143 if (nfields == 3 && !substed) {
16144 key = field[2]
16145 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16146 \$ac_cs_awk_read_file
16147 next
16148 }
16149 }
16150 print line
16151 }
16152 \$ac_cs_awk_pipe_fini
16153 _ACAWK
16154 _ACEOF
16155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16156 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16157 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16158 else
16159 cat
16160 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16161 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16162 _ACEOF
16163
16164 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16165 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16166 # trailing colons and then remove the whole line if VPATH becomes empty
16167 # (actually we leave an empty line to preserve line numbers).
16168 if test "x$srcdir" = x.; then
16169 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16170 h
16171 s///
16172 s/^/:/
16173 s/[ ]*$/:/
16174 s/:\$(srcdir):/:/g
16175 s/:\${srcdir}:/:/g
16176 s/:@srcdir@:/:/g
16177 s/^:*//
16178 s/:*$//
16179 x
16180 s/\(=[ ]*\).*/\1/
16181 G
16182 s/\n//
16183 s/^[^=]*=[ ]*$//
16184 }'
16185 fi
16186
16187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16188 fi # test -n "$CONFIG_FILES"
16189
16190
16191 eval set X " :F $CONFIG_FILES "
16192 shift
16193 for ac_tag
16194 do
16195 case $ac_tag in
16196 :[FHLC]) ac_mode=$ac_tag; continue;;
16197 esac
16198 case $ac_mode$ac_tag in
16199 :[FHL]*:*);;
16200 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16201 :[FH]-) ac_tag=-:-;;
16202 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16203 esac
16204 ac_save_IFS=$IFS
16205 IFS=:
16206 set x $ac_tag
16207 IFS=$ac_save_IFS
16208 shift
16209 ac_file=$1
16210 shift
16211
16212 case $ac_mode in
16213 :L) ac_source=$1;;
16214 :[FH])
16215 ac_file_inputs=
16216 for ac_f
16217 do
16218 case $ac_f in
16219 -) ac_f="$ac_tmp/stdin";;
16220 *) # Look for the file first in the build tree, then in the source tree
16221 # (if the path is not absolute). The absolute path cannot be DOS-style,
16222 # because $ac_f cannot contain `:'.
16223 test -f "$ac_f" ||
16224 case $ac_f in
16225 [\\/$]*) false;;
16226 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16227 esac ||
16228 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16229 esac
16230 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16231 as_fn_append ac_file_inputs " '$ac_f'"
16232 done
16233
16234 # Let's still pretend it is `configure' which instantiates (i.e., don't
16235 # use $as_me), people would be surprised to read:
16236 # /* config.h. Generated by config.status. */
16237 configure_input='Generated from '`
16238 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16239 `' by configure.'
16240 if test x"$ac_file" != x-; then
16241 configure_input="$ac_file. $configure_input"
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16243 $as_echo "$as_me: creating $ac_file" >&6;}
16244 fi
16245 # Neutralize special characters interpreted by sed in replacement strings.
16246 case $configure_input in #(
16247 *\&* | *\|* | *\\* )
16248 ac_sed_conf_input=`$as_echo "$configure_input" |
16249 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16250 *) ac_sed_conf_input=$configure_input;;
16251 esac
16252
16253 case $ac_tag in
16254 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16255 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16256 esac
16257 ;;
16258 esac
16259
16260 ac_dir=`$as_dirname -- "$ac_file" ||
16261 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16262 X"$ac_file" : 'X\(//\)[^/]' \| \
16263 X"$ac_file" : 'X\(//\)$' \| \
16264 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16265 $as_echo X"$ac_file" |
16266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16267 s//\1/
16268 q
16269 }
16270 /^X\(\/\/\)[^/].*/{
16271 s//\1/
16272 q
16273 }
16274 /^X\(\/\/\)$/{
16275 s//\1/
16276 q
16277 }
16278 /^X\(\/\).*/{
16279 s//\1/
16280 q
16281 }
16282 s/.*/./; q'`
16283 as_dir="$ac_dir"; as_fn_mkdir_p
16284 ac_builddir=.
16285
16286 case "$ac_dir" in
16287 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16288 *)
16289 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16290 # A ".." for each directory in $ac_dir_suffix.
16291 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16292 case $ac_top_builddir_sub in
16293 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16294 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16295 esac ;;
16296 esac
16297 ac_abs_top_builddir=$ac_pwd
16298 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16299 # for backward compatibility:
16300 ac_top_builddir=$ac_top_build_prefix
16301
16302 case $srcdir in
16303 .) # We are building in place.
16304 ac_srcdir=.
16305 ac_top_srcdir=$ac_top_builddir_sub
16306 ac_abs_top_srcdir=$ac_pwd ;;
16307 [\\/]* | ?:[\\/]* ) # Absolute name.
16308 ac_srcdir=$srcdir$ac_dir_suffix;
16309 ac_top_srcdir=$srcdir
16310 ac_abs_top_srcdir=$srcdir ;;
16311 *) # Relative name.
16312 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16313 ac_top_srcdir=$ac_top_build_prefix$srcdir
16314 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16315 esac
16316 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16317
16318
16319 case $ac_mode in
16320 :F)
16321 #
16322 # CONFIG_FILE
16323 #
16324
16325 case $INSTALL in
16326 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16327 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16328 esac
16329 _ACEOF
16330
16331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16332 # If the template does not know about datarootdir, expand it.
16333 # FIXME: This hack should be removed a few years after 2.60.
16334 ac_datarootdir_hack=; ac_datarootdir_seen=
16335 ac_sed_dataroot='
16336 /datarootdir/ {
16337 p
16338 q
16339 }
16340 /@datadir@/p
16341 /@docdir@/p
16342 /@infodir@/p
16343 /@localedir@/p
16344 /@mandir@/p'
16345 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16346 *datarootdir*) ac_datarootdir_seen=yes;;
16347 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16349 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16350 _ACEOF
16351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16352 ac_datarootdir_hack='
16353 s&@datadir@&$datadir&g
16354 s&@docdir@&$docdir&g
16355 s&@infodir@&$infodir&g
16356 s&@localedir@&$localedir&g
16357 s&@mandir@&$mandir&g
16358 s&\\\${datarootdir}&$datarootdir&g' ;;
16359 esac
16360 _ACEOF
16361
16362 # Neutralize VPATH when `$srcdir' = `.'.
16363 # Shell code in configure.ac might set extrasub.
16364 # FIXME: do we really want to maintain this feature?
16365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16366 ac_sed_extra="$ac_vpsub
16367 $extrasub
16368 _ACEOF
16369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16370 :t
16371 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16372 s|@configure_input@|$ac_sed_conf_input|;t t
16373 s&@top_builddir@&$ac_top_builddir_sub&;t t
16374 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16375 s&@srcdir@&$ac_srcdir&;t t
16376 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16377 s&@top_srcdir@&$ac_top_srcdir&;t t
16378 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16379 s&@builddir@&$ac_builddir&;t t
16380 s&@abs_builddir@&$ac_abs_builddir&;t t
16381 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16382 s&@INSTALL@&$ac_INSTALL&;t t
16383 $ac_datarootdir_hack
16384 "
16385 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16386 if $ac_cs_awk_getline; then
16387 $AWK -f "$ac_tmp/subs.awk"
16388 else
16389 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16390 fi \
16391 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16392
16393 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16394 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16395 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16396 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16398 which seems to be undefined. Please make sure it is defined" >&5
16399 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16400 which seems to be undefined. Please make sure it is defined" >&2;}
16401
16402 rm -f "$ac_tmp/stdin"
16403 case $ac_file in
16404 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16405 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16406 esac \
16407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16408 ;;
16409
16410
16411
16412 esac
16413
16414
16415 case $ac_file$ac_mode in
16416 "Makefile":F) sed "$extrasub_build" Makefile |
16417 sed "$extrasub_host" |
16418 sed "$extrasub_target" > mf$$
16419 mv -f mf$$ Makefile ;;
16420
16421 esac
16422 done # for ac_tag
16423
16424
16425 as_fn_exit 0
16426 _ACEOF
16427 ac_clean_files=$ac_clean_files_save
16428
16429 test $ac_write_fail = 0 ||
16430 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16431
16432
16433 # configure is writing to config.log, and then calls config.status.
16434 # config.status does its own redirection, appending to config.log.
16435 # Unfortunately, on DOS this fails, as config.log is still kept open
16436 # by configure, so config.status won't be able to write to it; its
16437 # output is simply discarded. So we exec the FD to /dev/null,
16438 # effectively closing config.log, so it can be properly (re)opened and
16439 # appended to by config.status. When coming back to configure, we
16440 # need to make the FD available again.
16441 if test "$no_create" != yes; then
16442 ac_cs_success=:
16443 ac_config_status_args=
16444 test "$silent" = yes &&
16445 ac_config_status_args="$ac_config_status_args --quiet"
16446 exec 5>/dev/null
16447 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16448 exec 5>>config.log
16449 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16450 # would make configure fail if this is the last instruction.
16451 $ac_cs_success || as_fn_exit 1
16452 fi
16453 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16455 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16456 fi
16457