]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
configure.ac: Add -std=c++98 to stage1_cxxflags.
[thirdparty/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cxxflags
563 stage1_cflags
564 MAINT
565 MAINTAINER_MODE_FALSE
566 MAINTAINER_MODE_TRUE
567 COMPILER_NM_FOR_TARGET
568 COMPILER_LD_FOR_TARGET
569 COMPILER_AS_FOR_TARGET
570 FLAGS_FOR_TARGET
571 RAW_CXX_FOR_TARGET
572 WINDMC_FOR_TARGET
573 WINDRES_FOR_TARGET
574 STRIP_FOR_TARGET
575 READELF_FOR_TARGET
576 RANLIB_FOR_TARGET
577 OBJDUMP_FOR_TARGET
578 OBJCOPY_FOR_TARGET
579 NM_FOR_TARGET
580 LIPO_FOR_TARGET
581 LD_FOR_TARGET
582 DLLTOOL_FOR_TARGET
583 AS_FOR_TARGET
584 AR_FOR_TARGET
585 GOC_FOR_TARGET
586 GFORTRAN_FOR_TARGET
587 GCJ_FOR_TARGET
588 GCC_FOR_TARGET
589 CXX_FOR_TARGET
590 CC_FOR_TARGET
591 READELF
592 OBJDUMP
593 OBJCOPY
594 WINDMC
595 WINDRES
596 STRIP
597 RANLIB
598 NM
599 LIPO
600 LD
601 DLLTOOL
602 AS
603 AR
604 RUNTEST
605 EXPECT
606 MAKEINFO
607 FLEX
608 LEX
609 M4
610 BISON
611 YACC
612 WINDRES_FOR_BUILD
613 WINDMC_FOR_BUILD
614 RANLIB_FOR_BUILD
615 NM_FOR_BUILD
616 LD_FOR_BUILD
617 LDFLAGS_FOR_BUILD
618 GOC_FOR_BUILD
619 GFORTRAN_FOR_BUILD
620 GCJ_FOR_BUILD
621 DLLTOOL_FOR_BUILD
622 CXX_FOR_BUILD
623 CXXFLAGS_FOR_BUILD
624 CFLAGS_FOR_BUILD
625 CC_FOR_BUILD
626 AS_FOR_BUILD
627 AR_FOR_BUILD
628 target_configdirs
629 configdirs
630 build_configdirs
631 INSTALL_GDB_TK
632 GDB_TK
633 CONFIGURE_GDB_TK
634 build_tooldir
635 tooldir
636 GCC_SHLIB_SUBDIR
637 RPATH_ENVVAR
638 target_configargs
639 host_configargs
640 build_configargs
641 BUILD_CONFIG
642 LDFLAGS_FOR_TARGET
643 CXXFLAGS_FOR_TARGET
644 CFLAGS_FOR_TARGET
645 DEBUG_PREFIX_CFLAGS_FOR_TARGET
646 SYSROOT_CFLAGS_FOR_TARGET
647 extra_host_libiberty_configure_flags
648 stage1_languages
649 extra_linker_plugin_flags
650 extra_linker_plugin_configure_flags
651 islinc
652 isllibs
653 poststage1_ldflags
654 poststage1_libs
655 stage1_ldflags
656 stage1_libs
657 extra_isl_gmp_configure_flags
658 extra_mpc_mpfr_configure_flags
659 extra_mpc_gmp_configure_flags
660 extra_mpfr_configure_flags
661 gmpinc
662 gmplibs
663 do_compare
664 GNATMAKE
665 GNATBIND
666 ac_ct_CXX
667 CXXFLAGS
668 CXX
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
675 CC
676 EXTRA_CONFIGARGS_LIBJAVA
677 extra_liboffloadmic_configure_flags
678 target_subdir
679 host_subdir
680 build_subdir
681 build_libsubdir
682 AWK
683 SED
684 LN_S
685 LN
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 target_os
690 target_vendor
691 target_cpu
692 target
693 host_os
694 host_vendor
695 host_cpu
696 host
697 target_noncanonical
698 host_noncanonical
699 build_noncanonical
700 build_os
701 build_vendor
702 build_cpu
703 build
704 TOPLEVEL_CONFIGURE_ARGUMENTS
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 localstatedir
725 sharedstatedir
726 sysconfdir
727 datadir
728 datarootdir
729 libexecdir
730 sbindir
731 bindir
732 program_transform_name
733 prefix
734 exec_prefix
735 PACKAGE_URL
736 PACKAGE_BUGREPORT
737 PACKAGE_STRING
738 PACKAGE_VERSION
739 PACKAGE_TARNAME
740 PACKAGE_NAME
741 PATH_SEPARATOR
742 SHELL'
743 ac_subst_files='serialization_dependencies
744 host_makefile_frag
745 target_makefile_frag
746 alphaieee_frag
747 ospace_frag'
748 ac_user_opts='
749 enable_option_checking
750 with_build_libsubdir
751 enable_as_accelerator_for
752 enable_offload_targets
753 enable_gold
754 enable_ld
755 enable_libquadmath
756 enable_libquadmath_support
757 enable_libada
758 enable_libssp
759 enable_libstdcxx
760 enable_liboffloadmic
761 enable_static_libjava
762 enable_bootstrap
763 with_mpc
764 with_mpc_include
765 with_mpc_lib
766 with_mpfr_dir
767 with_mpfr
768 with_mpfr_include
769 with_mpfr_lib
770 with_gmp_dir
771 with_gmp
772 with_gmp_include
773 with_gmp_lib
774 with_host_libstdcxx
775 with_stage1_libs
776 with_stage1_ldflags
777 with_boot_libs
778 with_boot_ldflags
779 with_isl
780 with_isl_include
781 with_isl_lib
782 enable_isl_version_check
783 enable_lto
784 enable_linker_plugin_configure_flags
785 enable_linker_plugin_flags
786 enable_stage1_languages
787 enable_objc_gc
788 with_build_sysroot
789 with_debug_prefix_map
790 with_build_config
791 enable_vtable_verify
792 enable_serial_configure
793 with_build_time_tools
794 enable_maintainer_mode
795 enable_stage1_checking
796 enable_werror
797 enable_host_shared
798 '
799 ac_precious_vars='build_alias
800 host_alias
801 target_alias
802 CC
803 CFLAGS
804 LDFLAGS
805 LIBS
806 CPPFLAGS
807 CXX
808 CXXFLAGS
809 CCC
810 build_configargs
811 host_configargs
812 target_configargs
813 AR
814 AS
815 DLLTOOL
816 LD
817 LIPO
818 NM
819 RANLIB
820 STRIP
821 WINDRES
822 WINDMC
823 OBJCOPY
824 OBJDUMP
825 READELF
826 CC_FOR_TARGET
827 CXX_FOR_TARGET
828 GCC_FOR_TARGET
829 GCJ_FOR_TARGET
830 GFORTRAN_FOR_TARGET
831 GOC_FOR_TARGET
832 AR_FOR_TARGET
833 AS_FOR_TARGET
834 DLLTOOL_FOR_TARGET
835 LD_FOR_TARGET
836 LIPO_FOR_TARGET
837 NM_FOR_TARGET
838 OBJCOPY_FOR_TARGET
839 OBJDUMP_FOR_TARGET
840 RANLIB_FOR_TARGET
841 READELF_FOR_TARGET
842 STRIP_FOR_TARGET
843 WINDRES_FOR_TARGET
844 WINDMC_FOR_TARGET'
845
846
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
868
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
894
895 ac_prev=
896 ac_dashdash=
897 for ac_option
898 do
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
902 ac_prev=
903 continue
904 fi
905
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
910
911 # Accept the important Cygnus configure options, so we can diagnose typos.
912
913 case $ac_dashdash$ac_option in
914 --)
915 ac_dashdash=yes ;;
916
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 bindir=$ac_optarg ;;
921
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
926
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
933
934 --config-cache | -C)
935 cache_file=config.cache ;;
936
937 -datadir | --datadir | --datadi | --datad)
938 ac_prev=datadir ;;
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
941
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
948
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
964
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
969
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
974
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=\$ac_optarg ;;
990
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
999
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1003
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1010
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1015
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1021
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1028
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1033
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1038
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1045
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1050
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1057
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1062
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1066
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1069 no_create=yes ;;
1070
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1074
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1083
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1088
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1095
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1102
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1119
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1124
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1129
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1133
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1138 sbindir=$ac_optarg ;;
1139
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1149 sharedstatedir=$ac_optarg ;;
1150
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1154 site=$ac_optarg ;;
1155
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1160
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1167
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1172
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1175
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1178
1179 -with-* | --with-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=\$ac_optarg ;;
1194
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
1210
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1214
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1221
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1228
1229 -*) as_fn_error "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information."
1231 ;;
1232
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1242
1243 *)
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 ;;
1250
1251 esac
1252 done
1253
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 as_fn_error "missing argument to $ac_option"
1257 fi
1258
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 esac
1265 fi
1266
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1272 do
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
1281 case $ac_val in
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 esac
1285 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1286 done
1287
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1294
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304 fi
1305
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309 test "$silent" = yes && exec 6>/dev/null
1310
1311
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error "pwd does not report name of working directory"
1318
1319
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\).*/{
1343 s//\1/
1344 q
1345 }
1346 s/.*/./; q'`
1347 srcdir=$ac_confdir
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 srcdir=..
1350 fi
1351 else
1352 ac_srcdir_defaulted=no
1353 fi
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1357 fi
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365 fi
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 case $srcdir in
1373 *" "*)
1374 as_fn_error "path to source, $srcdir, contains spaces"
1375 ;;
1376 esac
1377 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1378
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 \`configure' configures this package to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446 _ACEOF
1447
1448 cat <<\_ACEOF
1449
1450 Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463
1464 cat <<\_ACEOF
1465
1466 Optional Features:
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-as-accelerator-for=ARG
1471 build as offload target compiler. Specify offload
1472 host triple by ARG
1473 --enable-offload-targets=LIST
1474 enable offloading to devices from comma-separated
1475 LIST of TARGET[=DIR]. Use optional path to find
1476 offload target compiler during the build
1477 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1478 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1479 --disable-libquadmath do not build libquadmath directory
1480 --disable-libquadmath-support
1481 disable libquadmath support for Fortran
1482 --enable-libada build libada directory
1483 --enable-libssp build libssp directory
1484 --disable-libstdcxx do not build libstdc++-v3 directory
1485 --enable-liboffloadmic=ARG
1486 build liboffloadmic [ARG={no,host,target}]
1487 --enable-static-libjava[=ARG]
1488 build static libjava [default=no]
1489 --enable-bootstrap enable bootstrapping [yes if native build]
1490 --disable-isl-version-check
1491 disable check for ISL version
1492 --enable-lto enable link time optimization support
1493 --enable-linker-plugin-configure-flags=FLAGS
1494 additional flags for configuring linker plugins
1495 [none]
1496 --enable-linker-plugin-flags=FLAGS
1497 additional flags for configuring and building linker
1498 plugins [none]
1499 --enable-stage1-languages[=all]
1500 choose additional languages to build during stage1.
1501 Mostly useful for compiler development
1502 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1503 Objective-C runtime
1504 --enable-vtable-verify Enable vtable verification feature
1505 --enable-serial-[{host,target,build}-]configure
1506 force sequential configuration of sub-packages for
1507 the host, target or build machine, or all
1508 sub-packages
1509 --enable-maintainer-mode
1510 enable make rules and dependencies not useful (and
1511 sometimes confusing) to the casual installer
1512 --enable-stage1-checking[=all]
1513 choose additional checking for stage1 of the
1514 compiler
1515 --enable-werror enable -Werror in bootstrap stage2 and later
1516 --enable-host-shared build host code as shared libraries
1517
1518 Optional Packages:
1519 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1520 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1521 --with-build-libsubdir=DIR Directory where to find libraries for build system
1522 --with-mpc=PATH specify prefix directory for installed MPC package.
1523 Equivalent to --with-mpc-include=PATH/include plus
1524 --with-mpc-lib=PATH/lib
1525 --with-mpc-include=PATH specify directory for installed MPC include files
1526 --with-mpc-lib=PATH specify directory for the installed MPC library
1527 --with-mpfr-dir=PATH this option has been REMOVED
1528 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1529 Equivalent to --with-mpfr-include=PATH/include plus
1530 --with-mpfr-lib=PATH/lib
1531 --with-mpfr-include=PATH
1532 specify directory for installed MPFR include files
1533 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1534 --with-gmp-dir=PATH this option has been REMOVED
1535 --with-gmp=PATH specify prefix directory for the installed GMP
1536 package. Equivalent to
1537 --with-gmp-include=PATH/include plus
1538 --with-gmp-lib=PATH/lib
1539 --with-gmp-include=PATH specify directory for installed GMP include files
1540 --with-gmp-lib=PATH specify directory for the installed GMP library
1541 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1542 linking with PPL
1543 --with-stage1-libs=LIBS libraries for stage1
1544 --with-stage1-ldflags=FLAGS
1545 linker flags for stage1
1546 --with-boot-libs=LIBS libraries for stage2 and later
1547 --with-boot-ldflags=FLAGS
1548 linker flags for stage2 and later
1549 --with-isl=PATH Specify prefix directory for the installed ISL
1550 package. Equivalent to
1551 --with-isl-include=PATH/include plus
1552 --with-isl-lib=PATH/lib
1553 --with-isl-include=PATH Specify directory for installed ISL include files
1554 --with-isl-lib=PATH Specify the directory for the installed ISL library
1555 --with-build-sysroot=SYSROOT
1556 use sysroot as the system root during the build
1557 --with-debug-prefix-map='A=B C=D ...'
1558 map A to B, C to D ... in debug information
1559 --with-build-config='NAME NAME2...'
1560 use config/NAME.mk build configuration
1561 --with-build-time-tools=PATH
1562 use given path to find target tools during the build
1563
1564 Some influential environment variables:
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
1572 CXX C++ compiler command
1573 CXXFLAGS C++ compiler flags
1574 build_configargs
1575 additional configure arguments for build directories
1576 host_configargs
1577 additional configure arguments for host directories
1578 target_configargs
1579 additional configure arguments for target directories
1580 AR AR for the host
1581 AS AS for the host
1582 DLLTOOL DLLTOOL for the host
1583 LD LD for the host
1584 LIPO LIPO for the host
1585 NM NM for the host
1586 RANLIB RANLIB for the host
1587 STRIP STRIP for the host
1588 WINDRES WINDRES for the host
1589 WINDMC WINDMC for the host
1590 OBJCOPY OBJCOPY for the host
1591 OBJDUMP OBJDUMP for the host
1592 READELF READELF for the host
1593 CC_FOR_TARGET
1594 CC for the target
1595 CXX_FOR_TARGET
1596 CXX for the target
1597 GCC_FOR_TARGET
1598 GCC for the target
1599 GCJ_FOR_TARGET
1600 GCJ for the target
1601 GFORTRAN_FOR_TARGET
1602 GFORTRAN for the target
1603 GOC_FOR_TARGET
1604 GOC for the target
1605 AR_FOR_TARGET
1606 AR for the target
1607 AS_FOR_TARGET
1608 AS for the target
1609 DLLTOOL_FOR_TARGET
1610 DLLTOOL for the target
1611 LD_FOR_TARGET
1612 LD for the target
1613 LIPO_FOR_TARGET
1614 LIPO for the target
1615 NM_FOR_TARGET
1616 NM for the target
1617 OBJCOPY_FOR_TARGET
1618 OBJCOPY for the target
1619 OBJDUMP_FOR_TARGET
1620 OBJDUMP for the target
1621 RANLIB_FOR_TARGET
1622 RANLIB for the target
1623 READELF_FOR_TARGET
1624 READELF for the target
1625 STRIP_FOR_TARGET
1626 STRIP for the target
1627 WINDRES_FOR_TARGET
1628 WINDRES for the target
1629 WINDMC_FOR_TARGET
1630 WINDMC for the target
1631
1632 Use these variables to override the choices made by `configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1634
1635 Report bugs to the package provider.
1636 _ACEOF
1637 ac_status=$?
1638 fi
1639
1640 if test "$ac_init_help" = "recursive"; then
1641 # If there are subdirs, report their specific --help.
1642 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643 test -d "$ac_dir" ||
1644 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645 continue
1646 ac_builddir=.
1647
1648 case "$ac_dir" in
1649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *)
1651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652 # A ".." for each directory in $ac_dir_suffix.
1653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654 case $ac_top_builddir_sub in
1655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657 esac ;;
1658 esac
1659 ac_abs_top_builddir=$ac_pwd
1660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir=$ac_top_build_prefix
1663
1664 case $srcdir in
1665 .) # We are building in place.
1666 ac_srcdir=.
1667 ac_top_srcdir=$ac_top_builddir_sub
1668 ac_abs_top_srcdir=$ac_pwd ;;
1669 [\\/]* | ?:[\\/]* ) # Absolute name.
1670 ac_srcdir=$srcdir$ac_dir_suffix;
1671 ac_top_srcdir=$srcdir
1672 ac_abs_top_srcdir=$srcdir ;;
1673 *) # Relative name.
1674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675 ac_top_srcdir=$ac_top_build_prefix$srcdir
1676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677 esac
1678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679
1680 cd "$ac_dir" || { ac_status=$?; continue; }
1681 # Check for guested configure.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure" --help=recursive
1688 else
1689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690 fi || ac_status=$?
1691 cd "$ac_pwd" || { ac_status=$?; break; }
1692 done
1693 fi
1694
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1697 cat <<\_ACEOF
1698 configure
1699 generated by GNU Autoconf 2.64
1700
1701 Copyright (C) 2009 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1704 _ACEOF
1705 exit
1706 fi
1707
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1711
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_compile ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.$ac_objext; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744 fi
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 return $ac_retval
1747
1748 } # ac_fn_c_try_compile
1749
1750 # ac_fn_cxx_try_compile LINENO
1751 # ----------------------------
1752 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_cxx_try_compile ()
1754 {
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext
1757 if { { ac_try="$ac_compile"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_compile") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1770 fi
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_cxx_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest.$ac_objext; then :
1776 ac_retval=0
1777 else
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781 ac_retval=1
1782 fi
1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784 return $ac_retval
1785
1786 } # ac_fn_cxx_try_compile
1787
1788 # ac_fn_cxx_try_link LINENO
1789 # -------------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_cxx_try_link ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext conftest$ac_exeext
1795 if { { ac_try="$ac_link"
1796 case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1808 fi
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_cxx_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest$ac_exeext && {
1814 test "$cross_compiling" = yes ||
1815 $as_test_x conftest$ac_exeext
1816 }; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823 fi
1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1826 # interfere with the next link command; also delete a directory that is
1827 # left behind by Apple's compiler. We do this before executing the actions.
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 return $ac_retval
1831
1832 } # ac_fn_cxx_try_link
1833
1834 # ac_fn_c_try_link LINENO
1835 # -----------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_link ()
1838 {
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1854 fi
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 $as_test_x conftest$ac_exeext
1862 }; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869 fi
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 return $ac_retval
1877
1878 } # ac_fn_c_try_link
1879 cat >config.log <<_ACEOF
1880 This file contains any messages produced by compilers while
1881 running configure, to aid debugging if configure makes a mistake.
1882
1883 It was created by $as_me, which was
1884 generated by GNU Autoconf 2.64. Invocation command line was
1885
1886 $ $0 $@
1887
1888 _ACEOF
1889 exec 5>>config.log
1890 {
1891 cat <<_ASUNAME
1892 ## --------- ##
1893 ## Platform. ##
1894 ## --------- ##
1895
1896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1901
1902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1904
1905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1912
1913 _ASUNAME
1914
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 $as_echo "PATH: $as_dir"
1921 done
1922 IFS=$as_save_IFS
1923
1924 } >&5
1925
1926 cat >&5 <<_ACEOF
1927
1928
1929 ## ----------- ##
1930 ## Core tests. ##
1931 ## ----------- ##
1932
1933 _ACEOF
1934
1935
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_configure_args=
1942 ac_configure_args0=
1943 ac_configure_args1=
1944 ac_must_keep_next=false
1945 for ac_pass in 1 2
1946 do
1947 for ac_arg
1948 do
1949 case $ac_arg in
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1953 continue ;;
1954 *\'*)
1955 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 esac
1957 case $ac_pass in
1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959 2)
1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1963 else
1964 case $ac_arg in
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971 esac
1972 ;;
1973 -* ) ac_must_keep_next=true ;;
1974 esac
1975 fi
1976 as_fn_append ac_configure_args " '$ac_arg'"
1977 ;;
1978 esac
1979 done
1980 done
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1983
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log. We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990 # Save into config.log some information that might help in debugging.
1991 {
1992 echo
1993
1994 cat <<\_ASBOX
1995 ## ---------------- ##
1996 ## Cache variables. ##
1997 ## ---------------- ##
1998 _ASBOX
1999 echo
2000 # The following way of writing the cache mishandles newlines in values,
2001 (
2002 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in #(
2005 *${as_nl}*)
2006 case $ac_var in #(
2007 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009 esac
2010 case $ac_var in #(
2011 _ | IFS | as_nl) ;; #(
2012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013 *) { eval $ac_var=; unset $ac_var;} ;;
2014 esac ;;
2015 esac
2016 done
2017 (set) 2>&1 |
2018 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019 *${as_nl}ac_space=\ *)
2020 sed -n \
2021 "s/'\''/'\''\\\\'\'''\''/g;
2022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023 ;; #(
2024 *)
2025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2026 ;;
2027 esac |
2028 sort
2029 )
2030 echo
2031
2032 cat <<\_ASBOX
2033 ## ----------------- ##
2034 ## Output variables. ##
2035 ## ----------------- ##
2036 _ASBOX
2037 echo
2038 for ac_var in $ac_subst_vars
2039 do
2040 eval ac_val=\$$ac_var
2041 case $ac_val in
2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 esac
2044 $as_echo "$ac_var='\''$ac_val'\''"
2045 done | sort
2046 echo
2047
2048 if test -n "$ac_subst_files"; then
2049 cat <<\_ASBOX
2050 ## ------------------- ##
2051 ## File substitutions. ##
2052 ## ------------------- ##
2053 _ASBOX
2054 echo
2055 for ac_var in $ac_subst_files
2056 do
2057 eval ac_val=\$$ac_var
2058 case $ac_val in
2059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2060 esac
2061 $as_echo "$ac_var='\''$ac_val'\''"
2062 done | sort
2063 echo
2064 fi
2065
2066 if test -s confdefs.h; then
2067 cat <<\_ASBOX
2068 ## ----------- ##
2069 ## confdefs.h. ##
2070 ## ----------- ##
2071 _ASBOX
2072 echo
2073 cat confdefs.h
2074 echo
2075 fi
2076 test "$ac_signal" != 0 &&
2077 $as_echo "$as_me: caught signal $ac_signal"
2078 $as_echo "$as_me: exit $exit_status"
2079 } >&5
2080 rm -f core *.core core.conftest.* &&
2081 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2082 exit $exit_status
2083 ' 0
2084 for ac_signal in 1 2 13 15; do
2085 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2086 done
2087 ac_signal=0
2088
2089 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2090 rm -f -r conftest* confdefs.h
2091
2092 $as_echo "/* confdefs.h */" > confdefs.h
2093
2094 # Predefined preprocessor variables.
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_NAME "$PACKAGE_NAME"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_STRING "$PACKAGE_STRING"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_URL "$PACKAGE_URL"
2118 _ACEOF
2119
2120
2121 # Let the site file select an alternate cache file if it wants to.
2122 # Prefer an explicitly selected file to automatically selected ones.
2123 ac_site_file1=NONE
2124 ac_site_file2=NONE
2125 if test -n "$CONFIG_SITE"; then
2126 ac_site_file1=$CONFIG_SITE
2127 elif test "x$prefix" != xNONE; then
2128 ac_site_file1=$prefix/share/config.site
2129 ac_site_file2=$prefix/etc/config.site
2130 else
2131 ac_site_file1=$ac_default_prefix/share/config.site
2132 ac_site_file2=$ac_default_prefix/etc/config.site
2133 fi
2134 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2135 do
2136 test "x$ac_site_file" = xNONE && continue
2137 if test -r "$ac_site_file"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2140 sed 's/^/| /' "$ac_site_file" >&5
2141 . "$ac_site_file"
2142 fi
2143 done
2144
2145 if test -r "$cache_file"; then
2146 # Some versions of bash will fail to source /dev/null (special
2147 # files actually), so we avoid doing that.
2148 if test -f "$cache_file"; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2150 $as_echo "$as_me: loading cache $cache_file" >&6;}
2151 case $cache_file in
2152 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2153 *) . "./$cache_file";;
2154 esac
2155 fi
2156 else
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2158 $as_echo "$as_me: creating cache $cache_file" >&6;}
2159 >$cache_file
2160 fi
2161
2162 # Check that the precious variables saved in the cache have kept the same
2163 # value.
2164 ac_cache_corrupted=false
2165 for ac_var in $ac_precious_vars; do
2166 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2167 eval ac_new_set=\$ac_env_${ac_var}_set
2168 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2169 eval ac_new_val=\$ac_env_${ac_var}_value
2170 case $ac_old_set,$ac_new_set in
2171 set,)
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2173 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2174 ac_cache_corrupted=: ;;
2175 ,set)
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2178 ac_cache_corrupted=: ;;
2179 ,);;
2180 *)
2181 if test "x$ac_old_val" != "x$ac_new_val"; then
2182 # differences in whitespace do not lead to failure.
2183 ac_old_val_w=`echo x $ac_old_val`
2184 ac_new_val_w=`echo x $ac_new_val`
2185 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2187 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2188 ac_cache_corrupted=:
2189 else
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2191 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2192 eval $ac_var=\$ac_old_val
2193 fi
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2195 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2197 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2198 fi;;
2199 esac
2200 # Pass precious variables to config.status.
2201 if test "$ac_new_set" = set; then
2202 case $ac_new_val in
2203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2204 *) ac_arg=$ac_var=$ac_new_val ;;
2205 esac
2206 case " $ac_configure_args " in
2207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2208 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2209 esac
2210 fi
2211 done
2212 if $ac_cache_corrupted; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2216 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2217 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2218 fi
2219 ## -------------------- ##
2220 ## Main body of script. ##
2221 ## -------------------- ##
2222
2223 ac_ext=c
2224 ac_cpp='$CPP $CPPFLAGS'
2225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237 progname=$0
2238 # if PWD already has a value, it is probably wrong.
2239 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2240
2241 # Export original configure arguments for use by sub-configures.
2242 # Quote arguments with shell meta charatcers.
2243 TOPLEVEL_CONFIGURE_ARGUMENTS=
2244 set -- "$progname" "$@"
2245 for ac_arg
2246 do
2247 case "$ac_arg" in
2248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2250 # if the argument is of the form -foo=baz, quote the baz part only
2251 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2252 *) ;;
2253 esac
2254 # Add the quoted argument to the list.
2255 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2256 done
2257 if test "$silent" = yes; then
2258 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2259 fi
2260 # Remove the initial space we just introduced and, as these will be
2261 # expanded by make, quote '$'.
2262 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2263
2264
2265 # Find the build, host, and target systems.
2266 ac_aux_dir=
2267 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2268 for ac_t in install-sh install.sh shtool; do
2269 if test -f "$ac_dir/$ac_t"; then
2270 ac_aux_dir=$ac_dir
2271 ac_install_sh="$ac_aux_dir/$ac_t -c"
2272 break 2
2273 fi
2274 done
2275 done
2276 if test -z "$ac_aux_dir"; then
2277 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2278 fi
2279
2280 # These three variables are undocumented and unsupported,
2281 # and are intended to be withdrawn in a future Autoconf release.
2282 # They can cause serious problems if a builder's source tree is in a directory
2283 # whose full name contains unusual characters.
2284 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2285 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2286 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2287
2288
2289 # Make sure we can run config.sub.
2290 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2291 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2292
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2294 $as_echo_n "checking build system type... " >&6; }
2295 if test "${ac_cv_build+set}" = set; then :
2296 $as_echo_n "(cached) " >&6
2297 else
2298 ac_build_alias=$build_alias
2299 test "x$ac_build_alias" = x &&
2300 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2301 test "x$ac_build_alias" = x &&
2302 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2303 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2304 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2305
2306 fi
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2308 $as_echo "$ac_cv_build" >&6; }
2309 case $ac_cv_build in
2310 *-*-*) ;;
2311 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2312 esac
2313 build=$ac_cv_build
2314 ac_save_IFS=$IFS; IFS='-'
2315 set x $ac_cv_build
2316 shift
2317 build_cpu=$1
2318 build_vendor=$2
2319 shift; shift
2320 # Remember, the first character of IFS is used to create $*,
2321 # except with old shells:
2322 build_os=$*
2323 IFS=$ac_save_IFS
2324 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2325
2326
2327 case ${build_alias} in
2328 "") build_noncanonical=${build} ;;
2329 *) build_noncanonical=${build_alias} ;;
2330 esac
2331
2332
2333
2334 case ${host_alias} in
2335 "") host_noncanonical=${build_noncanonical} ;;
2336 *) host_noncanonical=${host_alias} ;;
2337 esac
2338
2339
2340
2341 case ${target_alias} in
2342 "") target_noncanonical=${host_noncanonical} ;;
2343 *) target_noncanonical=${target_alias} ;;
2344 esac
2345
2346
2347
2348
2349 test "$host_noncanonical" = "$target_noncanonical" &&
2350 test "$program_prefix$program_suffix$program_transform_name" = \
2351 NONENONEs,x,x, &&
2352 program_transform_name=s,y,y,
2353
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2355 $as_echo_n "checking host system type... " >&6; }
2356 if test "${ac_cv_host+set}" = set; then :
2357 $as_echo_n "(cached) " >&6
2358 else
2359 if test "x$host_alias" = x; then
2360 ac_cv_host=$ac_cv_build
2361 else
2362 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2363 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2364 fi
2365
2366 fi
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2368 $as_echo "$ac_cv_host" >&6; }
2369 case $ac_cv_host in
2370 *-*-*) ;;
2371 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2372 esac
2373 host=$ac_cv_host
2374 ac_save_IFS=$IFS; IFS='-'
2375 set x $ac_cv_host
2376 shift
2377 host_cpu=$1
2378 host_vendor=$2
2379 shift; shift
2380 # Remember, the first character of IFS is used to create $*,
2381 # except with old shells:
2382 host_os=$*
2383 IFS=$ac_save_IFS
2384 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2385
2386
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2388 $as_echo_n "checking target system type... " >&6; }
2389 if test "${ac_cv_target+set}" = set; then :
2390 $as_echo_n "(cached) " >&6
2391 else
2392 if test "x$target_alias" = x; then
2393 ac_cv_target=$ac_cv_host
2394 else
2395 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2396 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2397 fi
2398
2399 fi
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2401 $as_echo "$ac_cv_target" >&6; }
2402 case $ac_cv_target in
2403 *-*-*) ;;
2404 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2405 esac
2406 target=$ac_cv_target
2407 ac_save_IFS=$IFS; IFS='-'
2408 set x $ac_cv_target
2409 shift
2410 target_cpu=$1
2411 target_vendor=$2
2412 shift; shift
2413 # Remember, the first character of IFS is used to create $*,
2414 # except with old shells:
2415 target_os=$*
2416 IFS=$ac_save_IFS
2417 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2418
2419
2420 # The aliases save the names the user supplied, while $host etc.
2421 # will get canonicalized.
2422 test -n "$target_alias" &&
2423 test "$program_prefix$program_suffix$program_transform_name" = \
2424 NONENONEs,x,x, &&
2425 program_prefix=${target_alias}-
2426
2427 test "$program_prefix" != NONE &&
2428 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2429 # Use a double $ so make ignores it.
2430 test "$program_suffix" != NONE &&
2431 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2432 # Double any \ or $.
2433 # By default was `s,x,x', remove it if useless.
2434 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2435 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2436
2437
2438
2439 # Get 'install' or 'install-sh' and its variants.
2440 # Find a good install program. We prefer a C program (faster),
2441 # so one script is as good as another. But avoid the broken or
2442 # incompatible versions:
2443 # SysV /etc/install, /usr/sbin/install
2444 # SunOS /usr/etc/install
2445 # IRIX /sbin/install
2446 # AIX /bin/install
2447 # AmigaOS /C/install, which installs bootblocks on floppy discs
2448 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2449 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2450 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2451 # OS/2's system install, which has a completely different semantic
2452 # ./install, which can be erroneously created by make from ./install.sh.
2453 # Reject install programs that cannot install multiple files.
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2455 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2456 if test -z "$INSTALL"; then
2457 if test "${ac_cv_path_install+set}" = set; then :
2458 $as_echo_n "(cached) " >&6
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 # Account for people who put trailing slashes in PATH elements.
2466 case $as_dir/ in #((
2467 ./ | .// | /[cC]/* | \
2468 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2469 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2470 /usr/ucb/* ) ;;
2471 *)
2472 # OSF1 and SCO ODT 3.0 have their own names for install.
2473 # Don't use installbsd from OSF since it installs stuff as root
2474 # by default.
2475 for ac_prog in ginstall scoinst install; do
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2478 if test $ac_prog = install &&
2479 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2480 # AIX install. It has an incompatible calling convention.
2481 :
2482 elif test $ac_prog = install &&
2483 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484 # program-specific install script used by HP pwplus--don't use.
2485 :
2486 else
2487 rm -rf conftest.one conftest.two conftest.dir
2488 echo one > conftest.one
2489 echo two > conftest.two
2490 mkdir conftest.dir
2491 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2492 test -s conftest.one && test -s conftest.two &&
2493 test -s conftest.dir/conftest.one &&
2494 test -s conftest.dir/conftest.two
2495 then
2496 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2497 break 3
2498 fi
2499 fi
2500 fi
2501 done
2502 done
2503 ;;
2504 esac
2505
2506 done
2507 IFS=$as_save_IFS
2508
2509 rm -rf conftest.one conftest.two conftest.dir
2510
2511 fi
2512 if test "${ac_cv_path_install+set}" = set; then
2513 INSTALL=$ac_cv_path_install
2514 else
2515 # As a last resort, use the slow shell script. Don't cache a
2516 # value for INSTALL within a source directory, because that will
2517 # break other packages using the cache if that directory is
2518 # removed, or if the value is a relative name.
2519 INSTALL=$ac_install_sh
2520 fi
2521 fi
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2523 $as_echo "$INSTALL" >&6; }
2524
2525 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2526 # It thinks the first close brace ends the variable substitution.
2527 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2528
2529 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2530
2531 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2532
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2534 $as_echo_n "checking whether ln works... " >&6; }
2535 if test "${acx_cv_prog_LN+set}" = set; then :
2536 $as_echo_n "(cached) " >&6
2537 else
2538 rm -f conftestdata_t
2539 echo >conftestdata_f
2540 if ln conftestdata_f conftestdata_t 2>/dev/null
2541 then
2542 acx_cv_prog_LN=ln
2543 else
2544 acx_cv_prog_LN=no
2545 fi
2546 rm -f conftestdata_f conftestdata_t
2547
2548 fi
2549 if test $acx_cv_prog_LN = no; then
2550 LN="cp"
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2552 $as_echo "no, using $LN" >&6; }
2553 else
2554 LN="$acx_cv_prog_LN"
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2556 $as_echo "yes" >&6; }
2557 fi
2558
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2560 $as_echo_n "checking whether ln -s works... " >&6; }
2561 LN_S=$as_ln_s
2562 if test "$LN_S" = "ln -s"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2564 $as_echo "yes" >&6; }
2565 else
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2567 $as_echo "no, using $LN_S" >&6; }
2568 fi
2569
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2571 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2572 if test "${ac_cv_path_SED+set}" = set; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2576 for ac_i in 1 2 3 4 5 6 7; do
2577 ac_script="$ac_script$as_nl$ac_script"
2578 done
2579 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2580 { ac_script=; unset ac_script;}
2581 if test -z "$SED"; then
2582 ac_path_SED_found=false
2583 # Loop through the user's path and test for each of PROGNAME-LIST
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_prog in sed gsed; do
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2592 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2593 # Check for GNU ac_path_SED and select it if it is found.
2594 # Check for GNU $ac_path_SED
2595 case `"$ac_path_SED" --version 2>&1` in
2596 *GNU*)
2597 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2598 *)
2599 ac_count=0
2600 $as_echo_n 0123456789 >"conftest.in"
2601 while :
2602 do
2603 cat "conftest.in" "conftest.in" >"conftest.tmp"
2604 mv "conftest.tmp" "conftest.in"
2605 cp "conftest.in" "conftest.nl"
2606 $as_echo '' >> "conftest.nl"
2607 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2609 as_fn_arith $ac_count + 1 && ac_count=$as_val
2610 if test $ac_count -gt ${ac_path_SED_max-0}; then
2611 # Best one so far, save it but keep looking for a better one
2612 ac_cv_path_SED="$ac_path_SED"
2613 ac_path_SED_max=$ac_count
2614 fi
2615 # 10*(2^10) chars as input seems more than enough
2616 test $ac_count -gt 10 && break
2617 done
2618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2619 esac
2620
2621 $ac_path_SED_found && break 3
2622 done
2623 done
2624 done
2625 IFS=$as_save_IFS
2626 if test -z "$ac_cv_path_SED"; then
2627 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2628 fi
2629 else
2630 ac_cv_path_SED=$SED
2631 fi
2632
2633 fi
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2635 $as_echo "$ac_cv_path_SED" >&6; }
2636 SED="$ac_cv_path_SED"
2637 rm -f conftest.sed
2638
2639 for ac_prog in gawk mawk nawk awk
2640 do
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if test "${ac_cv_prog_AWK+set}" = set; then :
2646 $as_echo_n "(cached) " >&6
2647 else
2648 if test -n "$AWK"; then
2649 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658 ac_cv_prog_AWK="$ac_prog"
2659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2661 fi
2662 done
2663 done
2664 IFS=$as_save_IFS
2665
2666 fi
2667 fi
2668 AWK=$ac_cv_prog_AWK
2669 if test -n "$AWK"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2671 $as_echo "$AWK" >&6; }
2672 else
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674 $as_echo "no" >&6; }
2675 fi
2676
2677
2678 test -n "$AWK" && break
2679 done
2680
2681
2682 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2683
2684 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2685 # a relative path.
2686 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2687 INSTALL="${srcpwd}/install-sh -c"
2688 fi
2689
2690 # Set srcdir to "." if that's what it is.
2691 # This is important for multilib support.
2692 pwd=`${PWDCMD-pwd}`
2693 if test "${pwd}" = "${srcpwd}" ; then
2694 srcdir=.
2695 fi
2696
2697 topsrcdir=$srcpwd
2698
2699 extra_host_args=
2700
2701 ### To add a new directory to the tree, first choose whether it is a target
2702 ### or a host dependent tool. Then put it into the appropriate list
2703 ### (library or tools, host or target), doing a dependency sort.
2704
2705 # Subdirs will be configured in the order listed in build_configdirs,
2706 # configdirs, or target_configdirs; see the serialization section below.
2707
2708 # Dependency sorting is only needed when *configuration* must be done in
2709 # a particular order. In all cases a dependency should be specified in
2710 # the Makefile, whether or not it's implicitly specified here.
2711
2712 # Double entries in build_configdirs, configdirs, or target_configdirs may
2713 # cause circular dependencies and break everything horribly.
2714
2715 # these library is used by various programs built for the build
2716 # environment
2717 #
2718 build_libs="build-libiberty build-libcpp"
2719
2720 # these tools are built for the build environment
2721 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2722
2723 # these libraries are used by various programs built for the host environment
2724 #f
2725 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2726
2727 # these tools are built for the host environment
2728 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2729 # know that we are building the simulator.
2730 # binutils, gas and ld appear in that order because it makes sense to run
2731 # "make check" in that particular order.
2732 # If --enable-gold is used, "gold" may replace "ld".
2733 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2734
2735 # libgcj represents the runtime libraries only used by gcj.
2736 libgcj="target-libffi \
2737 target-zlib \
2738 target-libjava"
2739
2740 # these libraries are built for the target environment, and are built after
2741 # the host libraries and the host tools (which may be a cross compiler)
2742 # Note that libiberty is not a target library.
2743 target_libraries="target-libgcc \
2744 target-libbacktrace \
2745 target-libgloss \
2746 target-newlib \
2747 target-libgomp \
2748 target-libcilkrts \
2749 target-liboffloadmic \
2750 target-libatomic \
2751 target-libitm \
2752 target-libstdc++-v3 \
2753 target-libsanitizer \
2754 target-libvtv \
2755 target-libmpx \
2756 target-libssp \
2757 target-libquadmath \
2758 target-libgfortran \
2759 target-boehm-gc \
2760 ${libgcj} \
2761 target-libobjc \
2762 target-libada \
2763 target-libgo"
2764
2765 # these tools are built using the target libraries, and are intended to
2766 # run only in the target environment
2767 #
2768 # note: any program that *uses* libraries that are in the "target_libraries"
2769 # list belongs in this list.
2770 #
2771 target_tools="target-rda"
2772
2773 ################################################################################
2774
2775 ## All tools belong in one of the four categories, and are assigned above
2776 ## We assign ${configdirs} this way to remove all embedded newlines. This
2777 ## is important because configure will choke if they ever get through.
2778 ## ${configdirs} is directories we build using the host tools.
2779 ## ${target_configdirs} is directories we build using the target tools.
2780 configdirs=`echo ${host_libs} ${host_tools}`
2781 target_configdirs=`echo ${target_libraries} ${target_tools}`
2782 build_configdirs=`echo ${build_libs} ${build_tools}`
2783
2784
2785
2786 ################################################################################
2787
2788 srcname="gnu development package"
2789
2790 # This gets set non-empty for some net releases of packages.
2791 appdirs=""
2792
2793 # Define is_cross_compiler to save on calls to 'test'.
2794 is_cross_compiler=
2795 if test x"${host}" = x"${target}" ; then
2796 is_cross_compiler=no
2797 else
2798 is_cross_compiler=yes
2799 fi
2800
2801 # Find the build and target subdir names.
2802
2803 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2804 # have matching libraries, they should use host libraries: Makefile.tpl
2805 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2806 # However, they still use the build modules, because the corresponding
2807 # host modules (e.g. bison) are only built for the host when bootstrap
2808 # finishes. So:
2809 # - build_subdir is where we find build modules, and never changes.
2810 # - build_libsubdir is where we find build libraries, and can be overridden.
2811
2812 # Prefix 'build-' so this never conflicts with target_subdir.
2813 build_subdir="build-${build_noncanonical}"
2814
2815 # Check whether --with-build-libsubdir was given.
2816 if test "${with_build_libsubdir+set}" = set; then :
2817 withval=$with_build_libsubdir; build_libsubdir="$withval"
2818 else
2819 build_libsubdir="$build_subdir"
2820 fi
2821
2822 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2823 if ( test $srcdir = . && test -d gcc ) \
2824 || test -d $srcdir/../host-${host_noncanonical}; then
2825 host_subdir="host-${host_noncanonical}"
2826 else
2827 host_subdir=.
2828 fi
2829 # No prefix.
2830 target_subdir=${target_noncanonical}
2831
2832 # Be sure to cover against remnants of an in-tree build.
2833 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2834 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2835 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2836 fi
2837
2838 # Skipdirs are removed silently.
2839 skipdirs=
2840 # Noconfigdirs are removed loudly.
2841 noconfigdirs=""
2842
2843 use_gnu_ld=
2844 # Make sure we don't let GNU ld be added if we didn't want it.
2845 if test x$with_gnu_ld = xno ; then
2846 use_gnu_ld=no
2847 noconfigdirs="$noconfigdirs ld gold"
2848 fi
2849
2850 use_gnu_as=
2851 # Make sure we don't let GNU as be added if we didn't want it.
2852 if test x$with_gnu_as = xno ; then
2853 use_gnu_as=no
2854 noconfigdirs="$noconfigdirs gas"
2855 fi
2856
2857 use_included_zlib=
2858 # Make sure we don't let ZLIB be added if we didn't want it.
2859 if test x$with_system_zlib = xyes ; then
2860 use_included_zlib=no
2861 noconfigdirs="$noconfigdirs zlib"
2862 fi
2863
2864 # some tools are so dependent upon X11 that if we're not building with X,
2865 # it's not even worth trying to configure, much less build, that tool.
2866
2867 case ${with_x} in
2868 yes | "") ;; # the default value for this tree is that X11 is available
2869 no)
2870 skipdirs="${skipdirs} tk itcl libgui"
2871 # We won't be able to build gdbtk without X.
2872 enable_gdbtk=no
2873 ;;
2874 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2875 esac
2876
2877 # Some are only suitable for cross toolchains.
2878 # Remove these if host=target.
2879 cross_only="target-libgloss target-newlib target-opcodes"
2880
2881 case $is_cross_compiler in
2882 no) skipdirs="${skipdirs} ${cross_only}" ;;
2883 esac
2884
2885 # If both --with-headers and --with-libs are specified, default to
2886 # --without-newlib.
2887 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2888 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2889 if test x"${with_newlib}" = x ; then
2890 with_newlib=no
2891 fi
2892 fi
2893
2894 # Recognize --with-newlib/--without-newlib.
2895 case ${with_newlib} in
2896 no) skipdirs="${skipdirs} target-newlib" ;;
2897 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2898 esac
2899
2900 # Check whether --enable-as-accelerator-for was given.
2901 if test "${enable_as_accelerator_for+set}" = set; then :
2902 enableval=$enable_as_accelerator_for;
2903 fi
2904
2905
2906 # Check whether --enable-offload-targets was given.
2907 if test "${enable_offload_targets+set}" = set; then :
2908 enableval=$enable_offload_targets;
2909 if test x"$enable_offload_targets" = x; then
2910 as_fn_error "no offload targets specified" "$LINENO" 5
2911 fi
2912
2913 else
2914 enable_offload_targets=
2915 fi
2916
2917
2918 # Handle --enable-gold, --enable-ld.
2919 # --disable-gold [--enable-ld]
2920 # Build only ld. Default option.
2921 # --enable-gold [--enable-ld]
2922 # Build both gold and ld. Install gold as "ld.gold", install ld
2923 # as "ld.bfd" and "ld".
2924 # --enable-gold=default [--enable-ld]
2925 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2926 # install ld as "ld.bfd".
2927 # --enable-gold[=default] --disable-ld
2928 # Build only gold, which is then installed as both "ld.gold" and "ld".
2929 # --enable-gold --enable-ld=default
2930 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2931 # and ld.bfd).
2932 # In other words, ld is default
2933 # --enable-gold=default --enable-ld=default
2934 # Error.
2935
2936 default_ld=
2937 # Check whether --enable-gold was given.
2938 if test "${enable_gold+set}" = set; then :
2939 enableval=$enable_gold; ENABLE_GOLD=$enableval
2940 else
2941 ENABLE_GOLD=no
2942 fi
2943
2944 case "${ENABLE_GOLD}" in
2945 yes|default)
2946 # Check for ELF target.
2947 is_elf=no
2948 case "${target}" in
2949 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2950 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2951 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2952 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2953 case "${target}" in
2954 *-*-linux*aout* | *-*-linux*oldld*)
2955 ;;
2956 *)
2957 is_elf=yes
2958 ;;
2959 esac
2960 esac
2961
2962 if test "$is_elf" = "yes"; then
2963 # Check for target supported by gold.
2964 case "${target}" in
2965 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2966 | aarch64*-*-* | tilegx*-*-*)
2967 configdirs="$configdirs gold"
2968 if test x${ENABLE_GOLD} = xdefault; then
2969 default_ld=gold
2970 fi
2971 ENABLE_GOLD=yes
2972 ;;
2973 esac
2974 fi
2975 ;;
2976 no)
2977 ;;
2978 *)
2979 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2980 ;;
2981 esac
2982
2983 # Check whether --enable-ld was given.
2984 if test "${enable_ld+set}" = set; then :
2985 enableval=$enable_ld; ENABLE_LD=$enableval
2986 else
2987 ENABLE_LD=yes
2988 fi
2989
2990
2991 case "${ENABLE_LD}" in
2992 default)
2993 if test x${default_ld} != x; then
2994 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2995 fi
2996 ;;
2997 yes)
2998 ;;
2999 no)
3000 if test x${ENABLE_GOLD} != xyes; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3002 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3003 fi
3004 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3005 ;;
3006 *)
3007 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3008 ;;
3009 esac
3010
3011 # Configure extra directories which are host specific
3012
3013 case "${host}" in
3014 *-cygwin*)
3015 configdirs="$configdirs libtermcap" ;;
3016 esac
3017
3018 # A target can indicate whether a language isn't supported for some reason.
3019 # Only spaces may be used in this macro; not newlines or tabs.
3020 unsupported_languages=
3021
3022 # Remove more programs from consideration, based on the host or
3023 # target this usually means that a port of the program doesn't
3024 # exist yet.
3025
3026 case "${host}" in
3027 i[3456789]86-*-msdosdjgpp*)
3028 noconfigdirs="$noconfigdirs tcl tk itcl"
3029 ;;
3030 esac
3031
3032
3033 # Check whether --enable-libquadmath was given.
3034 if test "${enable_libquadmath+set}" = set; then :
3035 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3036 else
3037 ENABLE_LIBQUADMATH=yes
3038 fi
3039
3040 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3041 noconfigdirs="$noconfigdirs target-libquadmath"
3042 fi
3043
3044
3045 # Check whether --enable-libquadmath-support was given.
3046 if test "${enable_libquadmath_support+set}" = set; then :
3047 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3048 else
3049 ENABLE_LIBQUADMATH_SUPPORT=yes
3050 fi
3051
3052 enable_libquadmath_support=
3053 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3054 enable_libquadmath_support=no
3055 fi
3056
3057
3058 # Check whether --enable-libada was given.
3059 if test "${enable_libada+set}" = set; then :
3060 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3061 else
3062 ENABLE_LIBADA=yes
3063 fi
3064
3065 if test "${ENABLE_LIBADA}" != "yes" ; then
3066 noconfigdirs="$noconfigdirs gnattools"
3067 fi
3068
3069 # Check whether --enable-libssp was given.
3070 if test "${enable_libssp+set}" = set; then :
3071 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3072 else
3073 ENABLE_LIBSSP=yes
3074 fi
3075
3076
3077 # Check whether --enable-libstdcxx was given.
3078 if test "${enable_libstdcxx+set}" = set; then :
3079 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3080 else
3081 ENABLE_LIBSTDCXX=default
3082 fi
3083
3084 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3085 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3086 fi
3087
3088 # If this is accelerator compiler and its target is intelmic we enable
3089 # target liboffloadmic by default. If this is compiler with offloading
3090 # for intelmic we enable host liboffloadmic by default. Otherwise
3091 # liboffloadmic is disabled by default.
3092 # Check whether --enable-liboffloadmic was given.
3093 if test "${enable_liboffloadmic+set}" = set; then :
3094 enableval=$enable_liboffloadmic; case "$enableval" in
3095 no | host | target)
3096 enable_liboffloadmic=$enableval ;;
3097 *)
3098 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3099 esac
3100 else
3101 if test x"$enable_as_accelerator_for" != x; then
3102 case "${target}" in
3103 *-intelmic-* | *-intelmicemul-*)
3104 enable_liboffloadmic=target
3105 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3106 ;;
3107 *)
3108 enable_liboffloadmic=no
3109 ;;
3110 esac
3111 else
3112 case "${enable_offload_targets}" in
3113 *-intelmic-* | *-intelmicemul-*)
3114 enable_liboffloadmic=host
3115 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3116 ;;
3117 *)
3118 enable_liboffloadmic=no
3119 ;;
3120 esac
3121 fi
3122 fi
3123
3124
3125
3126 # Save it here so that, even in case of --enable-libgcj, if the Java
3127 # front-end isn't enabled, we still get libgcj disabled.
3128 libgcj_saved=$libgcj
3129 case $enable_libgcj in
3130 yes)
3131 # If we reset it here, it won't get added to noconfigdirs in the
3132 # target-specific build rules, so it will be forcibly enabled
3133 # (unless the Java language itself isn't enabled).
3134 libgcj=
3135 ;;
3136 no)
3137 # Make sure we get it printed in the list of not supported target libs.
3138 # Don't disable libffi, though, other languages use it.
3139 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3140 # Clear libgcj_saved so that even if java is enabled libffi won't be
3141 # built.
3142 libgcj_saved=
3143 ;;
3144 esac
3145
3146 # Check whether --enable-static-libjava was given.
3147 if test "${enable_static_libjava+set}" = set; then :
3148 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3149 else
3150 ENABLE_STATIC_LIBJAVA=no
3151 fi
3152
3153 enable_static_libjava=
3154 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3155 enable_static_libjava=yes
3156 fi
3157
3158 if test x$enable_static_libjava != xyes ; then
3159 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3160 fi
3161
3162
3163 # Disable libgomp on non POSIX hosted systems.
3164 if test x$enable_libgomp = x ; then
3165 # Enable libgomp by default on hosted POSIX systems.
3166 case "${target}" in
3167 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3168 ;;
3169 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3170 ;;
3171 *-*-solaris2* | *-*-hpux11*)
3172 ;;
3173 *-*-darwin* | *-*-aix*)
3174 ;;
3175 *)
3176 noconfigdirs="$noconfigdirs target-libgomp"
3177 ;;
3178 esac
3179 fi
3180
3181 # Disable libatomic on unsupported systems.
3182 if test -d ${srcdir}/libatomic; then
3183 if test x$enable_libatomic = x; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3185 $as_echo_n "checking for libatomic support... " >&6; }
3186 if (srcdir=${srcdir}/libatomic; \
3187 . ${srcdir}/configure.tgt; \
3188 test -n "$UNSUPPORTED")
3189 then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 noconfigdirs="$noconfigdirs target-libatomic"
3193 else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3195 $as_echo "yes" >&6; }
3196 fi
3197 fi
3198 fi
3199
3200 # Disable libcilkrts on unsupported systems.
3201 if test -d ${srcdir}/libcilkrts; then
3202 if test x$enable_libcilkrts = x; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3204 $as_echo_n "checking for libcilkrts support... " >&6; }
3205 if (srcdir=${srcdir}/libcilkrts; \
3206 . ${srcdir}/configure.tgt; \
3207 test -n "$UNSUPPORTED")
3208 then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3211 noconfigdirs="$noconfigdirs target-libcilkrts"
3212 else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3214 $as_echo "yes" >&6; }
3215 fi
3216 fi
3217 fi
3218
3219 # Disable liboffloadmic on unsupported systems.
3220 if test -d ${srcdir}/liboffloadmic; then
3221 if test x$enable_liboffloadmic != xno; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3223 $as_echo_n "checking for liboffloadmic support... " >&6; }
3224 if (srcdir=${srcdir}/liboffloadmic; \
3225 . ${srcdir}/configure.tgt; \
3226 test -n "$UNSUPPORTED")
3227 then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230 noconfigdirs="$noconfigdirs target-liboffloadmic"
3231 else
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233 $as_echo "yes" >&6; }
3234 fi
3235 fi
3236 fi
3237
3238 # Disable libitm on unsupported systems.
3239 if test -d ${srcdir}/libitm; then
3240 if test x$enable_libitm = x; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3242 $as_echo_n "checking for libitm support... " >&6; }
3243 if (srcdir=${srcdir}/libitm; \
3244 . ${srcdir}/configure.tgt; \
3245 test -n "$UNSUPPORTED")
3246 then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 noconfigdirs="$noconfigdirs target-libitm"
3250 else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252 $as_echo "yes" >&6; }
3253 fi
3254 fi
3255 fi
3256
3257 # Disable libsanitizer on unsupported systems.
3258 if test -d ${srcdir}/libsanitizer; then
3259 if test x$enable_libsanitizer = x; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3261 $as_echo_n "checking for libsanitizer support... " >&6; }
3262 if (srcdir=${srcdir}/libsanitizer; \
3263 . ${srcdir}/configure.tgt; \
3264 test -n "$UNSUPPORTED")
3265 then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268 noconfigdirs="$noconfigdirs target-libsanitizer"
3269 else
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3271 $as_echo "yes" >&6; }
3272 fi
3273 fi
3274 fi
3275
3276 # Disable libvtv on unsupported systems.
3277 if test -d ${srcdir}/libvtv; then
3278 if test x$enable_libvtv = x; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3280 $as_echo_n "checking for libvtv support... " >&6; }
3281 if (srcdir=${srcdir}/libvtv; \
3282 . ${srcdir}/configure.tgt; \
3283 test "$VTV_SUPPORTED" != "yes")
3284 then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 noconfigdirs="$noconfigdirs target-libvtv"
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290 $as_echo "yes" >&6; }
3291 fi
3292 fi
3293 fi
3294
3295
3296 # Enable libmpx on supported systems by request.
3297 if test -d ${srcdir}/libmpx; then
3298 if test x$enable_libmpx = xyes; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3300 $as_echo_n "checking for libmpx support... " >&6; }
3301 if (srcdir=${srcdir}/libmpx; \
3302 . ${srcdir}/configure.tgt; \
3303 test "$LIBMPX_SUPPORTED" != "yes")
3304 then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 noconfigdirs="$noconfigdirs target-libmpx"
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310 $as_echo "yes" >&6; }
3311 fi
3312 else
3313 noconfigdirs="$noconfigdirs target-libmpx"
3314 fi
3315 fi
3316
3317
3318
3319 # Disable libquadmath for some systems.
3320 case "${target}" in
3321 avr-*-*)
3322 noconfigdirs="$noconfigdirs target-libquadmath"
3323 ;;
3324 # libquadmath is unused on AIX and libquadmath build process use of
3325 # LD_LIBRARY_PATH can break AIX bootstrap.
3326 powerpc-*-aix* | rs6000-*-aix*)
3327 noconfigdirs="$noconfigdirs target-libquadmath"
3328 ;;
3329 esac
3330
3331 # Disable libssp for some systems.
3332 case "${target}" in
3333 avr-*-*)
3334 # No hosted I/O support.
3335 noconfigdirs="$noconfigdirs target-libssp"
3336 ;;
3337 powerpc-*-aix* | rs6000-*-aix*)
3338 noconfigdirs="$noconfigdirs target-libssp"
3339 ;;
3340 rl78-*-*)
3341 # libssp uses a misaligned load to trigger a fault, but the RL78
3342 # doesn't fault for those - instead, it gives a build-time error
3343 # for explicit misaligned loads.
3344 noconfigdirs="$noconfigdirs target-libssp"
3345 ;;
3346 visium-*-*)
3347 # No hosted I/O support.
3348 noconfigdirs="$noconfigdirs target-libssp"
3349 ;;
3350 esac
3351
3352 # Disable libstdc++-v3 for some systems.
3353 # Allow user to override this if they pass --enable-libstdc++-v3
3354 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3355 case "${target}" in
3356 *-*-vxworks*)
3357 # VxWorks uses the Dinkumware C++ library.
3358 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3359 ;;
3360 arm*-wince-pe*)
3361 # the C++ libraries don't build on top of CE's C libraries
3362 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3363 ;;
3364 avr-*-*)
3365 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3366 ;;
3367 ft32-*-*)
3368 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3369 ;;
3370 esac
3371 fi
3372
3373 # Disable Fortran for some systems.
3374 case "${target}" in
3375 mmix-*-*)
3376 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3377 unsupported_languages="$unsupported_languages fortran"
3378 ;;
3379 esac
3380
3381 # Disable Java if libffi is not supported.
3382 case "${target}" in
3383 aarch64-*-*)
3384 ;;
3385 alpha*-*-*)
3386 ;;
3387 arm*-*-*)
3388 ;;
3389 cris-*-*)
3390 ;;
3391 frv-*-*)
3392 ;;
3393 hppa*-*-linux*)
3394 ;;
3395 hppa*-*-hpux*)
3396 ;;
3397 i?86-*-*)
3398 ;;
3399 ia64*-*-*)
3400 ;;
3401 m32r*-*-*)
3402 ;;
3403 m68k-*-*)
3404 ;;
3405 mips*-*-rtems*)
3406 ;;
3407 mips*-*-linux*)
3408 ;;
3409 powerpc*-*-linux*)
3410 ;;
3411 powerpc-*-darwin*)
3412 ;;
3413 powerpc-*-aix* | rs6000-*-aix*)
3414 ;;
3415 powerpc-*-freebsd*)
3416 ;;
3417 powerpc64-*-freebsd*)
3418 ;;
3419 powerpc*-*-rtems*)
3420 ;;
3421 s390-*-* | s390x-*-*)
3422 ;;
3423 sh-*-* | sh[34]*-*-*)
3424 ;;
3425 sh64-*-* | sh5*-*-*)
3426 ;;
3427 sparc*-*-*)
3428 ;;
3429 x86_64-*-*)
3430 ;;
3431 *-*-*)
3432 unsupported_languages="$unsupported_languages java"
3433 ;;
3434 esac
3435
3436 # Disable Java, libgcj or related libraries for some systems.
3437 case "${target}" in
3438 powerpc-*-darwin*)
3439 ;;
3440 i[3456789]86-*-darwin*)
3441 ;;
3442 x86_64-*-darwin[912]*)
3443 ;;
3444 *-*-darwin*)
3445 noconfigdirs="$noconfigdirs ${libgcj}"
3446 ;;
3447 *-*-netware*)
3448 noconfigdirs="$noconfigdirs ${libgcj}"
3449 ;;
3450 *-*-rtems*)
3451 noconfigdirs="$noconfigdirs ${libgcj}"
3452 ;;
3453 *-*-tpf*)
3454 noconfigdirs="$noconfigdirs ${libgcj}"
3455 ;;
3456 *-*-uclinux*)
3457 noconfigdirs="$noconfigdirs ${libgcj}"
3458 ;;
3459 *-*-vxworks*)
3460 noconfigdirs="$noconfigdirs ${libgcj}"
3461 ;;
3462 alpha*-*-*vms*)
3463 noconfigdirs="$noconfigdirs ${libgcj}"
3464 ;;
3465 arm*-*-freebsd*)
3466 noconfigdirs="$noconfigdirs ${libgcj}"
3467 ;;
3468 arm-wince-pe)
3469 noconfigdirs="$noconfigdirs ${libgcj}"
3470 ;;
3471 arm*-*-symbianelf*)
3472 noconfigdirs="$noconfigdirs ${libgcj}"
3473 ;;
3474 bfin-*-*)
3475 noconfigdirs="$noconfigdirs target-boehm-gc"
3476 ;;
3477 cris-*-* | crisv32-*-*)
3478 unsupported_languages="$unsupported_languages java"
3479 case "${target}" in
3480 *-*-linux*)
3481 ;;
3482 *) # See PR46792 regarding target-libffi.
3483 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3484 esac
3485 ;;
3486 hppa*64*-*-linux*)
3487 # In this case, it's because the hppa64-linux target is for
3488 # the kernel only at this point and has no libc, and thus no
3489 # headers, crt*.o, etc., all of which are needed by these.
3490 unsupported_languages="$unsupported_languages java"
3491 ;;
3492 hppa*64*-*-hpux*)
3493 noconfigdirs="$noconfigdirs ${libgcj}"
3494 ;;
3495 hppa*-hp-hpux11*)
3496 ;;
3497 hppa*-*-hpux*)
3498 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3499 # build on HP-UX 10.20.
3500 noconfigdirs="$noconfigdirs ${libgcj}"
3501 ;;
3502 ia64*-*-*vms*)
3503 noconfigdirs="$noconfigdirs ${libgcj}"
3504 ;;
3505 i[3456789]86-w64-mingw*)
3506 noconfigdirs="$noconfigdirs ${libgcj}"
3507 ;;
3508 i[3456789]86-*-mingw*)
3509 noconfigdirs="$noconfigdirs ${libgcj}"
3510 ;;
3511 x86_64-*-mingw*)
3512 noconfigdirs="$noconfigdirs ${libgcj}"
3513 ;;
3514 mmix-*-*)
3515 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3516 ;;
3517 powerpc-*-aix*)
3518 # copied from rs6000-*-* entry
3519 noconfigdirs="$noconfigdirs ${libgcj}"
3520 ;;
3521 rs6000-*-aix*)
3522 noconfigdirs="$noconfigdirs ${libgcj}"
3523 ;;
3524 *-*-lynxos*)
3525 noconfigdirs="$noconfigdirs ${libgcj}"
3526 ;;
3527 esac
3528
3529 # Disable the go frontend on systems where it is known to not work. Please keep
3530 # this in sync with contrib/config-list.mk.
3531 case "${target}" in
3532 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3533 unsupported_languages="$unsupported_languages go"
3534 ;;
3535 esac
3536
3537 # Disable libgo for some systems where it is known to not work.
3538 # For testing, you can easily override this with --enable-libgo.
3539 if test x$enable_libgo = x; then
3540 case "${target}" in
3541 *-*-darwin*)
3542 # PR 46986
3543 noconfigdirs="$noconfigdirs target-libgo"
3544 ;;
3545 *-*-cygwin* | *-*-mingw*)
3546 noconfigdirs="$noconfigdirs target-libgo"
3547 ;;
3548 *-*-aix*)
3549 noconfigdirs="$noconfigdirs target-libgo"
3550 ;;
3551 esac
3552 fi
3553
3554 # Default libgloss CPU subdirectory.
3555 libgloss_dir="$target_cpu"
3556
3557 case "${target}" in
3558 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3559 libgloss_dir=wince
3560 ;;
3561 aarch64*-*-* )
3562 libgloss_dir=aarch64
3563 ;;
3564 arm*-*-*)
3565 libgloss_dir=arm
3566 ;;
3567 cris-*-* | crisv32-*-*)
3568 libgloss_dir=cris
3569 ;;
3570 hppa*-*-*)
3571 libgloss_dir=pa
3572 ;;
3573 i[3456789]86-*-*)
3574 libgloss_dir=i386
3575 ;;
3576 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3577 libgloss_dir=m68hc11
3578 ;;
3579 m68*-*-* | fido-*-*)
3580 libgloss_dir=m68k
3581 ;;
3582 mips*-*-*)
3583 libgloss_dir=mips
3584 ;;
3585 powerpc*-*-*)
3586 libgloss_dir=rs6000
3587 ;;
3588 sparc*-*-*)
3589 libgloss_dir=sparc
3590 ;;
3591 esac
3592
3593 # Disable newlib and libgloss for various target OSes.
3594 case "${target}" in
3595 alpha*-dec-osf*)
3596 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3597 ;;
3598 i[3456789]86-*-linux*)
3599 # This section makes it possible to build newlib natively on linux.
3600 # If we are using a cross compiler then don't configure newlib.
3601 if test x${is_cross_compiler} != xno ; then
3602 noconfigdirs="$noconfigdirs target-newlib"
3603 fi
3604 noconfigdirs="$noconfigdirs target-libgloss"
3605 # If we are not using a cross compiler, do configure newlib.
3606 # Note however, that newlib will only be configured in this situation
3607 # if the --with-newlib option has been given, because otherwise
3608 # 'target-newlib' will appear in skipdirs.
3609 ;;
3610 i[3456789]86-*-rdos*)
3611 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3612 ;;
3613 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3614 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3615 ;;
3616 sparc-*-sunos4*)
3617 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3618 ;;
3619 *-*-aix*)
3620 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3621 ;;
3622 *-*-beos*)
3623 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3624 ;;
3625 *-*-chorusos)
3626 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3627 ;;
3628 *-*-dragonfly*)
3629 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3630 ;;
3631 *-*-freebsd*)
3632 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3633 ;;
3634 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3635 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3636 ;;
3637 *-*-lynxos*)
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 ;;
3640 *-*-mingw*)
3641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3642 ;;
3643 *-*-netbsd*)
3644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3645 ;;
3646 *-*-netware*)
3647 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3648 ;;
3649 *-*-tpf*)
3650 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651 ;;
3652 *-*-uclinux*)
3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3654 ;;
3655 *-*-vxworks*)
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3657 ;;
3658 esac
3659
3660 case "${target}" in
3661 *-*-chorusos)
3662 ;;
3663 powerpc-*-darwin*)
3664 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3665 noconfigdirs="$noconfigdirs sim target-rda"
3666 ;;
3667 i[3456789]86-*-darwin*)
3668 noconfigdirs="$noconfigdirs ld gprof"
3669 noconfigdirs="$noconfigdirs sim target-rda"
3670 ;;
3671 x86_64-*-darwin[912]*)
3672 noconfigdirs="$noconfigdirs ld gas gprof"
3673 noconfigdirs="$noconfigdirs sim target-rda"
3674 ;;
3675 *-*-darwin*)
3676 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3677 noconfigdirs="$noconfigdirs sim target-rda"
3678 ;;
3679 *-*-dragonfly*)
3680 ;;
3681 *-*-freebsd*)
3682 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3683 && test -f /usr/local/include/gmp.h; then
3684 with_gmp=/usr/local
3685 fi
3686 ;;
3687 *-*-kaos*)
3688 # Remove unsupported stuff on all kaOS configurations.
3689 noconfigdirs="$noconfigdirs target-libgloss"
3690 ;;
3691 *-*-netbsd*)
3692 ;;
3693 *-*-netware*)
3694 ;;
3695 *-*-rtems*)
3696 noconfigdirs="$noconfigdirs target-libgloss"
3697 # this is not caught below because this stanza matches earlier
3698 case $target in
3699 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3700 esac
3701 ;;
3702 # The tpf target doesn't support gdb yet.
3703 *-*-tpf*)
3704 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3705 ;;
3706 *-*-uclinux*)
3707 noconfigdirs="$noconfigdirs target-rda"
3708 ;;
3709 *-*-vxworks*)
3710 ;;
3711 alpha*-dec-osf*)
3712 # ld works, but does not support shared libraries.
3713 # gas doesn't generate exception information.
3714 noconfigdirs="$noconfigdirs gas ld"
3715 ;;
3716 alpha*-*-*vms*)
3717 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3718 ;;
3719 alpha*-*-*)
3720 # newlib is not 64 bit ready
3721 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 ;;
3723 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3724 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3725 ;;
3726 arc-*-*|arceb-*-*)
3727 noconfigdirs="$noconfigdirs target-libgloss"
3728 ;;
3729 arm-*-pe*)
3730 noconfigdirs="$noconfigdirs target-libgloss"
3731 ;;
3732 arm-*-riscix*)
3733 noconfigdirs="$noconfigdirs ld target-libgloss"
3734 ;;
3735 avr-*-rtems*)
3736 ;;
3737 avr-*-*)
3738 if test x${with_avrlibc} != xno; then
3739 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3740 fi
3741 ;;
3742 c4x-*-* | tic4x-*-*)
3743 noconfigdirs="$noconfigdirs target-libgloss"
3744 ;;
3745 tic54x-*-*)
3746 noconfigdirs="$noconfigdirs target-libgloss gdb"
3747 ;;
3748 d10v-*-*)
3749 noconfigdirs="$noconfigdirs target-libgloss"
3750 ;;
3751 d30v-*-*)
3752 noconfigdirs="$noconfigdirs gdb"
3753 ;;
3754 fr30-*-elf*)
3755 noconfigdirs="$noconfigdirs gdb"
3756 ;;
3757 moxie-*-*)
3758 noconfigdirs="$noconfigdirs gprof"
3759 ;;
3760 h8300*-*-*)
3761 noconfigdirs="$noconfigdirs target-libgloss"
3762 ;;
3763 h8500-*-*)
3764 noconfigdirs="$noconfigdirs target-libgloss"
3765 ;;
3766 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3767 ;;
3768 hppa*64*-*-linux*)
3769 ;;
3770 hppa*-*-linux*)
3771 ;;
3772 hppa*-*-*elf* | \
3773 hppa*-*-lites* | \
3774 hppa*-*-openbsd* | \
3775 hppa*64*-*-*)
3776 ;;
3777 hppa*-hp-hpux11*)
3778 noconfigdirs="$noconfigdirs ld"
3779 ;;
3780 hppa*-*-pro*)
3781 ;;
3782 hppa*-*-*)
3783 noconfigdirs="$noconfigdirs ld"
3784 ;;
3785 i960-*-*)
3786 noconfigdirs="$noconfigdirs gdb"
3787 ;;
3788 ia64*-*-elf*)
3789 # No gdb support yet.
3790 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3791 ;;
3792 ia64*-**-hpux*)
3793 # No ld support yet.
3794 noconfigdirs="$noconfigdirs libgui itcl ld"
3795 ;;
3796 ia64*-*-*vms*)
3797 # No ld support yet.
3798 noconfigdirs="$noconfigdirs libgui itcl ld"
3799 ;;
3800 i[3456789]86-w64-mingw*)
3801 ;;
3802 i[3456789]86-*-mingw*)
3803 target_configdirs="$target_configdirs target-winsup"
3804 ;;
3805 *-*-cygwin*)
3806 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3807 noconfigdirs="$noconfigdirs target-libgloss"
3808 # always build newlib if winsup directory is present.
3809 if test -d "$srcdir/winsup/cygwin"; then
3810 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3811 elif test -d "$srcdir/newlib"; then
3812 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3813 fi
3814 ;;
3815 i[3456789]86-*-pe)
3816 noconfigdirs="$noconfigdirs target-libgloss"
3817 ;;
3818 i[3456789]86-*-sco3.2v5*)
3819 # The linker does not yet know about weak symbols in COFF,
3820 # and is not configured to handle mixed ELF and COFF.
3821 noconfigdirs="$noconfigdirs ld target-libgloss"
3822 ;;
3823 i[3456789]86-*-sco*)
3824 noconfigdirs="$noconfigdirs gprof target-libgloss"
3825 ;;
3826 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3827 noconfigdirs="$noconfigdirs target-libgloss"
3828 ;;
3829 i[3456789]86-*-sysv4*)
3830 noconfigdirs="$noconfigdirs target-libgloss"
3831 ;;
3832 i[3456789]86-*-beos*)
3833 noconfigdirs="$noconfigdirs gdb"
3834 ;;
3835 i[3456789]86-*-rdos*)
3836 noconfigdirs="$noconfigdirs gdb"
3837 ;;
3838 mmix-*-*)
3839 noconfigdirs="$noconfigdirs gdb"
3840 ;;
3841 mt-*-*)
3842 noconfigdirs="$noconfigdirs sim"
3843 ;;
3844 powerpc-*-aix*)
3845 # copied from rs6000-*-* entry
3846 noconfigdirs="$noconfigdirs gprof"
3847 ;;
3848 powerpc*-*-winnt* | powerpc*-*-pe*)
3849 target_configdirs="$target_configdirs target-winsup"
3850 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3851 # always build newlib.
3852 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3853 ;;
3854 # This is temporary until we can link against shared libraries
3855 powerpcle-*-solaris*)
3856 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3857 ;;
3858 powerpc-*-beos*)
3859 noconfigdirs="$noconfigdirs gdb"
3860 ;;
3861 rs6000-*-lynxos*)
3862 noconfigdirs="$noconfigdirs gprof"
3863 ;;
3864 rs6000-*-aix*)
3865 noconfigdirs="$noconfigdirs gprof"
3866 ;;
3867 rs6000-*-*)
3868 noconfigdirs="$noconfigdirs gprof"
3869 ;;
3870 m68k-apollo-*)
3871 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3872 ;;
3873 microblaze*)
3874 noconfigdirs="$noconfigdirs gprof"
3875 ;;
3876 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3877 if test x$with_newlib = xyes; then
3878 noconfigdirs="$noconfigdirs gprof"
3879 fi
3880 ;;
3881 mips*-*-irix5*)
3882 noconfigdirs="$noconfigdirs gprof target-libgloss"
3883 ;;
3884 mips*-*-irix6*)
3885 noconfigdirs="$noconfigdirs gprof target-libgloss"
3886 ;;
3887 mips*-*-bsd*)
3888 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3889 ;;
3890 mips*-*-linux*)
3891 ;;
3892 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3893 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3894 noconfigdirs="$noconfigdirs ld gas gprof"
3895 ;;
3896 mips*-*-*)
3897 noconfigdirs="$noconfigdirs gprof"
3898 ;;
3899 nds32*-*-*)
3900 noconfigdirs="$noconfigdirs gdb"
3901 ;;
3902 nvptx*-*-*)
3903 # nvptx is just a compiler
3904 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3905 ;;
3906 or1k*-*-*)
3907 noconfigdirs="$noconfigdirs gdb"
3908 ;;
3909 sh-*-* | sh64-*-*)
3910 case "${target}" in
3911 sh*-*-elf)
3912 ;;
3913 *)
3914 noconfigdirs="$noconfigdirs target-libgloss" ;;
3915 esac
3916 ;;
3917 sparc-*-sunos4*)
3918 if test x${is_cross_compiler} = xno ; then
3919 use_gnu_ld=no
3920 fi
3921 ;;
3922 tic6x-*-*)
3923 noconfigdirs="$noconfigdirs sim"
3924 ;;
3925 tilepro*-*-* | tilegx*-*-*)
3926 noconfigdirs="$noconfigdirs sim"
3927 ;;
3928 v810-*-*)
3929 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3930 ;;
3931 vax-*-*)
3932 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3933 ;;
3934 esac
3935
3936 # If we aren't building newlib, then don't build libgloss, since libgloss
3937 # depends upon some newlib header files.
3938 case "${noconfigdirs}" in
3939 *target-libgloss*) ;;
3940 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3941 esac
3942
3943 # Work in distributions that contain no compiler tools, like Autoconf.
3944 host_makefile_frag=/dev/null
3945 if test -d ${srcdir}/config ; then
3946 case "${host}" in
3947 i[3456789]86-*-msdosdjgpp*)
3948 host_makefile_frag="config/mh-djgpp"
3949 ;;
3950 *-cygwin*)
3951
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3953 $as_echo_n "checking to see if cat works as expected... " >&6; }
3954 echo a >cygwin-cat-check
3955 if test `cat cygwin-cat-check` = a ; then
3956 rm cygwin-cat-check
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3958 $as_echo "yes" >&6; }
3959 else
3960 rm cygwin-cat-check
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 $as_echo "no" >&6; }
3963 as_fn_error "The cat command does not ignore carriage return characters.
3964 Please either mount the build directory in binary mode or run the following
3965 commands before running any configure script:
3966 set -o igncr
3967 export SHELLOPTS
3968 " "$LINENO" 5
3969 fi
3970
3971 host_makefile_frag="config/mh-cygwin"
3972 ;;
3973 *-mingw*)
3974 host_makefile_frag="config/mh-mingw"
3975 ;;
3976 alpha*-linux*)
3977 host_makefile_frag="config/mh-alpha-linux"
3978 ;;
3979 hppa*-hp-hpux10*)
3980 host_makefile_frag="config/mh-pa-hpux10"
3981 ;;
3982 hppa*-hp-hpux*)
3983 host_makefile_frag="config/mh-pa"
3984 ;;
3985 hppa*-*)
3986 host_makefile_frag="config/mh-pa"
3987 ;;
3988 *-*-darwin*)
3989 host_makefile_frag="config/mh-darwin"
3990 ;;
3991 powerpc-*-aix*)
3992 host_makefile_frag="config/mh-ppc-aix"
3993 ;;
3994 rs6000-*-aix*)
3995 host_makefile_frag="config/mh-ppc-aix"
3996 ;;
3997 esac
3998 fi
3999
4000 if test "${build}" != "${host}" ; then
4001 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4002 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4003 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4004 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4005 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4006 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4007 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4008 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4009 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4010 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4011 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4012 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4013 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4014 else
4015 AR_FOR_BUILD="\$(AR)"
4016 AS_FOR_BUILD="\$(AS)"
4017 CC_FOR_BUILD="\$(CC)"
4018 CXX_FOR_BUILD="\$(CXX)"
4019 GCJ_FOR_BUILD="\$(GCJ)"
4020 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4021 GOC_FOR_BUILD="\$(GOC)"
4022 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4023 LD_FOR_BUILD="\$(LD)"
4024 NM_FOR_BUILD="\$(NM)"
4025 RANLIB_FOR_BUILD="\$(RANLIB)"
4026 WINDRES_FOR_BUILD="\$(WINDRES)"
4027 WINDMC_FOR_BUILD="\$(WINDMC)"
4028 fi
4029
4030 ac_ext=c
4031 ac_cpp='$CPP $CPPFLAGS'
4032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4035 if test -n "$ac_tool_prefix"; then
4036 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4037 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039 $as_echo_n "checking for $ac_word... " >&6; }
4040 if test "${ac_cv_prog_CC+set}" = set; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 if test -n "$CC"; then
4044 ac_cv_prog_CC="$CC" # Let the user override the test.
4045 else
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4048 do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 break 2
4056 fi
4057 done
4058 done
4059 IFS=$as_save_IFS
4060
4061 fi
4062 fi
4063 CC=$ac_cv_prog_CC
4064 if test -n "$CC"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4066 $as_echo "$CC" >&6; }
4067 else
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 $as_echo "no" >&6; }
4070 fi
4071
4072
4073 fi
4074 if test -z "$ac_cv_prog_CC"; then
4075 ac_ct_CC=$CC
4076 # Extract the first word of "gcc", so it can be a program name with args.
4077 set dummy gcc; ac_word=$2
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 $as_echo_n "checking for $ac_word... " >&6; }
4080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 if test -n "$ac_ct_CC"; then
4084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4088 do
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4093 ac_cv_prog_ac_ct_CC="gcc"
4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 break 2
4096 fi
4097 done
4098 done
4099 IFS=$as_save_IFS
4100
4101 fi
4102 fi
4103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4104 if test -n "$ac_ct_CC"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4106 $as_echo "$ac_ct_CC" >&6; }
4107 else
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4110 fi
4111
4112 if test "x$ac_ct_CC" = x; then
4113 CC=""
4114 else
4115 case $cross_compiling:$ac_tool_warned in
4116 yes:)
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4119 ac_tool_warned=yes ;;
4120 esac
4121 CC=$ac_ct_CC
4122 fi
4123 else
4124 CC="$ac_cv_prog_CC"
4125 fi
4126
4127 if test -z "$CC"; then
4128 if test -n "$ac_tool_prefix"; then
4129 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4130 set dummy ${ac_tool_prefix}cc; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if test "${ac_cv_prog_CC+set}" = set; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 if test -n "$CC"; then
4137 ac_cv_prog_CC="$CC" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4141 do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4146 ac_cv_prog_CC="${ac_tool_prefix}cc"
4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 break 2
4149 fi
4150 done
4151 done
4152 IFS=$as_save_IFS
4153
4154 fi
4155 fi
4156 CC=$ac_cv_prog_CC
4157 if test -n "$CC"; then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4159 $as_echo "$CC" >&6; }
4160 else
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 $as_echo "no" >&6; }
4163 fi
4164
4165
4166 fi
4167 fi
4168 if test -z "$CC"; then
4169 # Extract the first word of "cc", so it can be a program name with args.
4170 set dummy cc; ac_word=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if test "${ac_cv_prog_CC+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 if test -n "$CC"; then
4177 ac_cv_prog_CC="$CC" # Let the user override the test.
4178 else
4179 ac_prog_rejected=no
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4188 ac_prog_rejected=yes
4189 continue
4190 fi
4191 ac_cv_prog_CC="cc"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 break 2
4194 fi
4195 done
4196 done
4197 IFS=$as_save_IFS
4198
4199 if test $ac_prog_rejected = yes; then
4200 # We found a bogon in the path, so make sure we never use it.
4201 set dummy $ac_cv_prog_CC
4202 shift
4203 if test $# != 0; then
4204 # We chose a different compiler from the bogus one.
4205 # However, it has the same basename, so the bogon will be chosen
4206 # first if we set CC to just the basename; use the full file name.
4207 shift
4208 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4209 fi
4210 fi
4211 fi
4212 fi
4213 CC=$ac_cv_prog_CC
4214 if test -n "$CC"; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216 $as_echo "$CC" >&6; }
4217 else
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 $as_echo "no" >&6; }
4220 fi
4221
4222
4223 fi
4224 if test -z "$CC"; then
4225 if test -n "$ac_tool_prefix"; then
4226 for ac_prog in cl.exe
4227 do
4228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231 $as_echo_n "checking for $ac_word... " >&6; }
4232 if test "${ac_cv_prog_CC+set}" = set; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 if test -n "$CC"; then
4236 ac_cv_prog_CC="$CC" # Let the user override the test.
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 break 2
4248 fi
4249 done
4250 done
4251 IFS=$as_save_IFS
4252
4253 fi
4254 fi
4255 CC=$ac_cv_prog_CC
4256 if test -n "$CC"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4258 $as_echo "$CC" >&6; }
4259 else
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4262 fi
4263
4264
4265 test -n "$CC" && break
4266 done
4267 fi
4268 if test -z "$CC"; then
4269 ac_ct_CC=$CC
4270 for ac_prog in cl.exe
4271 do
4272 # Extract the first word of "$ac_prog", so it can be a program name with args.
4273 set dummy $ac_prog; ac_word=$2
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275 $as_echo_n "checking for $ac_word... " >&6; }
4276 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 if test -n "$ac_ct_CC"; then
4280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4289 ac_cv_prog_ac_ct_CC="$ac_prog"
4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 break 2
4292 fi
4293 done
4294 done
4295 IFS=$as_save_IFS
4296
4297 fi
4298 fi
4299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4300 if test -n "$ac_ct_CC"; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4302 $as_echo "$ac_ct_CC" >&6; }
4303 else
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4306 fi
4307
4308
4309 test -n "$ac_ct_CC" && break
4310 done
4311
4312 if test "x$ac_ct_CC" = x; then
4313 CC=""
4314 else
4315 case $cross_compiling:$ac_tool_warned in
4316 yes:)
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4319 ac_tool_warned=yes ;;
4320 esac
4321 CC=$ac_ct_CC
4322 fi
4323 fi
4324
4325 fi
4326
4327
4328 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4330 as_fn_error "no acceptable C compiler found in \$PATH
4331 See \`config.log' for more details." "$LINENO" 5; }
4332
4333 # Provide some information about the compiler.
4334 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4335 set X $ac_compile
4336 ac_compiler=$2
4337 for ac_option in --version -v -V -qversion; do
4338 { { ac_try="$ac_compiler $ac_option >&5"
4339 case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342 esac
4343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4344 $as_echo "$ac_try_echo"; } >&5
4345 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4346 ac_status=$?
4347 if test -s conftest.err; then
4348 sed '10a\
4349 ... rest of stderr output deleted ...
4350 10q' conftest.err >conftest.er1
4351 cat conftest.er1 >&5
4352 rm -f conftest.er1 conftest.err
4353 fi
4354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4355 test $ac_status = 0; }
4356 done
4357
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4360
4361 int
4362 main ()
4363 {
4364
4365 ;
4366 return 0;
4367 }
4368 _ACEOF
4369 ac_clean_files_save=$ac_clean_files
4370 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4371 # Try to create an executable without -o first, disregard a.out.
4372 # It will help us diagnose broken compilers, and finding out an intuition
4373 # of exeext.
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4375 $as_echo_n "checking for C compiler default output file name... " >&6; }
4376 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4377
4378 # The possible output files:
4379 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4380
4381 ac_rmfiles=
4382 for ac_file in $ac_files
4383 do
4384 case $ac_file in
4385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4386 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4387 esac
4388 done
4389 rm -f $ac_rmfiles
4390
4391 if { { ac_try="$ac_link_default"
4392 case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4395 esac
4396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4397 $as_echo "$ac_try_echo"; } >&5
4398 (eval "$ac_link_default") 2>&5
4399 ac_status=$?
4400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4401 test $ac_status = 0; }; then :
4402 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4403 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4404 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4405 # so that the user can short-circuit this test for compilers unknown to
4406 # Autoconf.
4407 for ac_file in $ac_files ''
4408 do
4409 test -f "$ac_file" || continue
4410 case $ac_file in
4411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4412 ;;
4413 [ab].out )
4414 # We found the default executable, but exeext='' is most
4415 # certainly right.
4416 break;;
4417 *.* )
4418 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4419 then :; else
4420 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4421 fi
4422 # We set ac_cv_exeext here because the later test for it is not
4423 # safe: cross compilers may not add the suffix if given an `-o'
4424 # argument, so we may need to know it at that point already.
4425 # Even if this section looks crufty: it has the advantage of
4426 # actually working.
4427 break;;
4428 * )
4429 break;;
4430 esac
4431 done
4432 test "$ac_cv_exeext" = no && ac_cv_exeext=
4433
4434 else
4435 ac_file=''
4436 fi
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4438 $as_echo "$ac_file" >&6; }
4439 if test -z "$ac_file"; then :
4440 $as_echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4442
4443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4445 { as_fn_set_status 77
4446 as_fn_error "C compiler cannot create executables
4447 See \`config.log' for more details." "$LINENO" 5; }; }
4448 fi
4449 ac_exeext=$ac_cv_exeext
4450
4451 # Check that the compiler produces executables we can run. If not, either
4452 # the compiler is broken, or we cross compile.
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4454 $as_echo_n "checking whether the C compiler works... " >&6; }
4455 # If not cross compiling, check that we can run a simple program.
4456 if test "$cross_compiling" != yes; then
4457 if { ac_try='./$ac_file'
4458 { { case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463 $as_echo "$ac_try_echo"; } >&5
4464 (eval "$ac_try") 2>&5
4465 ac_status=$?
4466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467 test $ac_status = 0; }; }; then
4468 cross_compiling=no
4469 else
4470 if test "$cross_compiling" = maybe; then
4471 cross_compiling=yes
4472 else
4473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4475 as_fn_error "cannot run C compiled programs.
4476 If you meant to cross compile, use \`--host'.
4477 See \`config.log' for more details." "$LINENO" 5; }
4478 fi
4479 fi
4480 fi
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4482 $as_echo "yes" >&6; }
4483
4484 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4485 ac_clean_files=$ac_clean_files_save
4486 # Check that the compiler produces executables we can run. If not, either
4487 # the compiler is broken, or we cross compile.
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4489 $as_echo_n "checking whether we are cross compiling... " >&6; }
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4491 $as_echo "$cross_compiling" >&6; }
4492
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4494 $as_echo_n "checking for suffix of executables... " >&6; }
4495 if { { ac_try="$ac_link"
4496 case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499 esac
4500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501 $as_echo "$ac_try_echo"; } >&5
4502 (eval "$ac_link") 2>&5
4503 ac_status=$?
4504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505 test $ac_status = 0; }; then :
4506 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4507 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4508 # work properly (i.e., refer to `conftest.exe'), while it won't with
4509 # `rm'.
4510 for ac_file in conftest.exe conftest conftest.*; do
4511 test -f "$ac_file" || continue
4512 case $ac_file in
4513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4514 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4515 break;;
4516 * ) break;;
4517 esac
4518 done
4519 else
4520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4522 as_fn_error "cannot compute suffix of executables: cannot compile and link
4523 See \`config.log' for more details." "$LINENO" 5; }
4524 fi
4525 rm -f conftest$ac_cv_exeext
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4527 $as_echo "$ac_cv_exeext" >&6; }
4528
4529 rm -f conftest.$ac_ext
4530 EXEEXT=$ac_cv_exeext
4531 ac_exeext=$EXEEXT
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4533 $as_echo_n "checking for suffix of object files... " >&6; }
4534 if test "${ac_cv_objext+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4539
4540 int
4541 main ()
4542 {
4543
4544 ;
4545 return 0;
4546 }
4547 _ACEOF
4548 rm -f conftest.o conftest.obj
4549 if { { ac_try="$ac_compile"
4550 case "(($ac_try" in
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4553 esac
4554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4555 $as_echo "$ac_try_echo"; } >&5
4556 (eval "$ac_compile") 2>&5
4557 ac_status=$?
4558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4559 test $ac_status = 0; }; then :
4560 for ac_file in conftest.o conftest.obj conftest.*; do
4561 test -f "$ac_file" || continue;
4562 case $ac_file in
4563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4564 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4565 break;;
4566 esac
4567 done
4568 else
4569 $as_echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4571
4572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4574 as_fn_error "cannot compute suffix of object files: cannot compile
4575 See \`config.log' for more details." "$LINENO" 5; }
4576 fi
4577 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4580 $as_echo "$ac_cv_objext" >&6; }
4581 OBJEXT=$ac_cv_objext
4582 ac_objext=$OBJEXT
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4584 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4585 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4590
4591 int
4592 main ()
4593 {
4594 #ifndef __GNUC__
4595 choke me
4596 #endif
4597
4598 ;
4599 return 0;
4600 }
4601 _ACEOF
4602 if ac_fn_c_try_compile "$LINENO"; then :
4603 ac_compiler_gnu=yes
4604 else
4605 ac_compiler_gnu=no
4606 fi
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4609
4610 fi
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4612 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4613 if test $ac_compiler_gnu = yes; then
4614 GCC=yes
4615 else
4616 GCC=
4617 fi
4618 ac_test_CFLAGS=${CFLAGS+set}
4619 ac_save_CFLAGS=$CFLAGS
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4621 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4622 if test "${ac_cv_prog_cc_g+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 ac_save_c_werror_flag=$ac_c_werror_flag
4626 ac_c_werror_flag=yes
4627 ac_cv_prog_cc_g=no
4628 CFLAGS="-g"
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4631
4632 int
4633 main ()
4634 {
4635
4636 ;
4637 return 0;
4638 }
4639 _ACEOF
4640 if ac_fn_c_try_compile "$LINENO"; then :
4641 ac_cv_prog_cc_g=yes
4642 else
4643 CFLAGS=""
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4646
4647 int
4648 main ()
4649 {
4650
4651 ;
4652 return 0;
4653 }
4654 _ACEOF
4655 if ac_fn_c_try_compile "$LINENO"; then :
4656
4657 else
4658 ac_c_werror_flag=$ac_save_c_werror_flag
4659 CFLAGS="-g"
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662
4663 int
4664 main ()
4665 {
4666
4667 ;
4668 return 0;
4669 }
4670 _ACEOF
4671 if ac_fn_c_try_compile "$LINENO"; then :
4672 ac_cv_prog_cc_g=yes
4673 fi
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 fi
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 fi
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 ac_c_werror_flag=$ac_save_c_werror_flag
4680 fi
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4682 $as_echo "$ac_cv_prog_cc_g" >&6; }
4683 if test "$ac_test_CFLAGS" = set; then
4684 CFLAGS=$ac_save_CFLAGS
4685 elif test $ac_cv_prog_cc_g = yes; then
4686 if test "$GCC" = yes; then
4687 CFLAGS="-g -O2"
4688 else
4689 CFLAGS="-g"
4690 fi
4691 else
4692 if test "$GCC" = yes; then
4693 CFLAGS="-O2"
4694 else
4695 CFLAGS=
4696 fi
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4699 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4700 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 ac_cv_prog_cc_c89=no
4704 ac_save_CC=$CC
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4707 #include <stdarg.h>
4708 #include <stdio.h>
4709 #include <sys/types.h>
4710 #include <sys/stat.h>
4711 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4712 struct buf { int x; };
4713 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4714 static char *e (p, i)
4715 char **p;
4716 int i;
4717 {
4718 return p[i];
4719 }
4720 static char *f (char * (*g) (char **, int), char **p, ...)
4721 {
4722 char *s;
4723 va_list v;
4724 va_start (v,p);
4725 s = g (p, va_arg (v,int));
4726 va_end (v);
4727 return s;
4728 }
4729
4730 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4731 function prototypes and stuff, but not '\xHH' hex character constants.
4732 These don't provoke an error unfortunately, instead are silently treated
4733 as 'x'. The following induces an error, until -std is added to get
4734 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4735 array size at least. It's necessary to write '\x00'==0 to get something
4736 that's true only with -std. */
4737 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4738
4739 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4740 inside strings and character constants. */
4741 #define FOO(x) 'x'
4742 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4743
4744 int test (int i, double x);
4745 struct s1 {int (*f) (int a);};
4746 struct s2 {int (*f) (double a);};
4747 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4748 int argc;
4749 char **argv;
4750 int
4751 main ()
4752 {
4753 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4754 ;
4755 return 0;
4756 }
4757 _ACEOF
4758 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4759 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4760 do
4761 CC="$ac_save_CC $ac_arg"
4762 if ac_fn_c_try_compile "$LINENO"; then :
4763 ac_cv_prog_cc_c89=$ac_arg
4764 fi
4765 rm -f core conftest.err conftest.$ac_objext
4766 test "x$ac_cv_prog_cc_c89" != "xno" && break
4767 done
4768 rm -f conftest.$ac_ext
4769 CC=$ac_save_CC
4770
4771 fi
4772 # AC_CACHE_VAL
4773 case "x$ac_cv_prog_cc_c89" in
4774 x)
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4776 $as_echo "none needed" >&6; } ;;
4777 xno)
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4779 $as_echo "unsupported" >&6; } ;;
4780 *)
4781 CC="$CC $ac_cv_prog_cc_c89"
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4783 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4784 esac
4785 if test "x$ac_cv_prog_cc_c89" != xno; then :
4786
4787 fi
4788
4789 ac_ext=c
4790 ac_cpp='$CPP $CPPFLAGS'
4791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4794
4795 ac_ext=cpp
4796 ac_cpp='$CXXCPP $CPPFLAGS'
4797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4800 if test -z "$CXX"; then
4801 if test -n "$CCC"; then
4802 CXX=$CCC
4803 else
4804 if test -n "$ac_tool_prefix"; then
4805 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4806 do
4807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if test "${ac_cv_prog_CXX+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 if test -n "$CXX"; then
4815 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4819 do
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4827 fi
4828 done
4829 done
4830 IFS=$as_save_IFS
4831
4832 fi
4833 fi
4834 CXX=$ac_cv_prog_CXX
4835 if test -n "$CXX"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4837 $as_echo "$CXX" >&6; }
4838 else
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4841 fi
4842
4843
4844 test -n "$CXX" && break
4845 done
4846 fi
4847 if test -z "$CXX"; then
4848 ac_ct_CXX=$CXX
4849 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4850 do
4851 # Extract the first word of "$ac_prog", so it can be a program name with args.
4852 set dummy $ac_prog; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test -n "$ac_ct_CXX"; then
4859 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_ac_ct_CXX="$ac_prog"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4871 fi
4872 done
4873 done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4879 if test -n "$ac_ct_CXX"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4881 $as_echo "$ac_ct_CXX" >&6; }
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4885 fi
4886
4887
4888 test -n "$ac_ct_CXX" && break
4889 done
4890
4891 if test "x$ac_ct_CXX" = x; then
4892 CXX="g++"
4893 else
4894 case $cross_compiling:$ac_tool_warned in
4895 yes:)
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4898 ac_tool_warned=yes ;;
4899 esac
4900 CXX=$ac_ct_CXX
4901 fi
4902 fi
4903
4904 fi
4905 fi
4906 # Provide some information about the compiler.
4907 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4908 set X $ac_compile
4909 ac_compiler=$2
4910 for ac_option in --version -v -V -qversion; do
4911 { { ac_try="$ac_compiler $ac_option >&5"
4912 case "(($ac_try" in
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4915 esac
4916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4917 $as_echo "$ac_try_echo"; } >&5
4918 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4919 ac_status=$?
4920 if test -s conftest.err; then
4921 sed '10a\
4922 ... rest of stderr output deleted ...
4923 10q' conftest.err >conftest.er1
4924 cat conftest.er1 >&5
4925 rm -f conftest.er1 conftest.err
4926 fi
4927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4928 test $ac_status = 0; }
4929 done
4930
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4932 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4933 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4938
4939 int
4940 main ()
4941 {
4942 #ifndef __GNUC__
4943 choke me
4944 #endif
4945
4946 ;
4947 return 0;
4948 }
4949 _ACEOF
4950 if ac_fn_cxx_try_compile "$LINENO"; then :
4951 ac_compiler_gnu=yes
4952 else
4953 ac_compiler_gnu=no
4954 fi
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4957
4958 fi
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4960 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4961 if test $ac_compiler_gnu = yes; then
4962 GXX=yes
4963 else
4964 GXX=
4965 fi
4966 ac_test_CXXFLAGS=${CXXFLAGS+set}
4967 ac_save_CXXFLAGS=$CXXFLAGS
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4969 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4970 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4974 ac_cxx_werror_flag=yes
4975 ac_cv_prog_cxx_g=no
4976 CXXFLAGS="-g"
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4979
4980 int
4981 main ()
4982 {
4983
4984 ;
4985 return 0;
4986 }
4987 _ACEOF
4988 if ac_fn_cxx_try_compile "$LINENO"; then :
4989 ac_cv_prog_cxx_g=yes
4990 else
4991 CXXFLAGS=""
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4994
4995 int
4996 main ()
4997 {
4998
4999 ;
5000 return 0;
5001 }
5002 _ACEOF
5003 if ac_fn_cxx_try_compile "$LINENO"; then :
5004
5005 else
5006 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5007 CXXFLAGS="-g"
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010
5011 int
5012 main ()
5013 {
5014
5015 ;
5016 return 0;
5017 }
5018 _ACEOF
5019 if ac_fn_cxx_try_compile "$LINENO"; then :
5020 ac_cv_prog_cxx_g=yes
5021 fi
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 fi
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025 fi
5026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5028 fi
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5030 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5031 if test "$ac_test_CXXFLAGS" = set; then
5032 CXXFLAGS=$ac_save_CXXFLAGS
5033 elif test $ac_cv_prog_cxx_g = yes; then
5034 if test "$GXX" = yes; then
5035 CXXFLAGS="-g -O2"
5036 else
5037 CXXFLAGS="-g"
5038 fi
5039 else
5040 if test "$GXX" = yes; then
5041 CXXFLAGS="-O2"
5042 else
5043 CXXFLAGS=
5044 fi
5045 fi
5046 ac_ext=c
5047 ac_cpp='$CPP $CPPFLAGS'
5048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5051
5052
5053 # We must set the default linker to the linker used by gcc for the correct
5054 # operation of libtool. If LD is not defined and we are using gcc, try to
5055 # set the LD default to the ld used by gcc.
5056 if test -z "$LD"; then
5057 if test "$GCC" = yes; then
5058 case $build in
5059 *-*-mingw*)
5060 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5061 *)
5062 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5063 esac
5064 case $gcc_prog_ld in
5065 # Accept absolute paths.
5066 [\\/]* | [A-Za-z]:[\\/]*)
5067 LD="$gcc_prog_ld" ;;
5068 esac
5069 fi
5070 fi
5071
5072 # Check whether -static-libstdc++ -static-libgcc is supported.
5073 have_static_libs=no
5074 if test "$GCC" = yes; then
5075 saved_LDFLAGS="$LDFLAGS"
5076
5077 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5079 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5080 ac_ext=cpp
5081 ac_cpp='$CXXCPP $CPPFLAGS'
5082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5085
5086
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089
5090 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5091 #error -static-libstdc++ not implemented
5092 #endif
5093 int main() {}
5094 _ACEOF
5095 if ac_fn_cxx_try_link "$LINENO"; then :
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5097 $as_echo "yes" >&6; }; have_static_libs=yes
5098 else
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5101 fi
5102 rm -f core conftest.err conftest.$ac_objext \
5103 conftest$ac_exeext conftest.$ac_ext
5104 ac_ext=c
5105 ac_cpp='$CPP $CPPFLAGS'
5106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5109
5110
5111 LDFLAGS="$saved_LDFLAGS"
5112 fi
5113
5114
5115
5116
5117 if test -n "$ac_tool_prefix"; then
5118 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5119 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121 $as_echo_n "checking for $ac_word... " >&6; }
5122 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if test -n "$GNATBIND"; then
5126 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5127 else
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5130 do
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5135 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5138 fi
5139 done
5140 done
5141 IFS=$as_save_IFS
5142
5143 fi
5144 fi
5145 GNATBIND=$ac_cv_prog_GNATBIND
5146 if test -n "$GNATBIND"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5148 $as_echo "$GNATBIND" >&6; }
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 $as_echo "no" >&6; }
5152 fi
5153
5154
5155 fi
5156 if test -z "$ac_cv_prog_GNATBIND"; then
5157 ac_ct_GNATBIND=$GNATBIND
5158 # Extract the first word of "gnatbind", so it can be a program name with args.
5159 set dummy gnatbind; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 if test -n "$ac_ct_GNATBIND"; then
5166 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5178 fi
5179 done
5180 done
5181 IFS=$as_save_IFS
5182
5183 fi
5184 fi
5185 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5186 if test -n "$ac_ct_GNATBIND"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5188 $as_echo "$ac_ct_GNATBIND" >&6; }
5189 else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5192 fi
5193
5194 if test "x$ac_ct_GNATBIND" = x; then
5195 GNATBIND="no"
5196 else
5197 case $cross_compiling:$ac_tool_warned in
5198 yes:)
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201 ac_tool_warned=yes ;;
5202 esac
5203 GNATBIND=$ac_ct_GNATBIND
5204 fi
5205 else
5206 GNATBIND="$ac_cv_prog_GNATBIND"
5207 fi
5208
5209 if test -n "$ac_tool_prefix"; then
5210 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5211 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 if test -n "$GNATMAKE"; then
5218 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231 done
5232 done
5233 IFS=$as_save_IFS
5234
5235 fi
5236 fi
5237 GNATMAKE=$ac_cv_prog_GNATMAKE
5238 if test -n "$GNATMAKE"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5240 $as_echo "$GNATMAKE" >&6; }
5241 else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5244 fi
5245
5246
5247 fi
5248 if test -z "$ac_cv_prog_GNATMAKE"; then
5249 ac_ct_GNATMAKE=$GNATMAKE
5250 # Extract the first word of "gnatmake", so it can be a program name with args.
5251 set dummy gnatmake; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 if test -n "$ac_ct_GNATMAKE"; then
5258 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5262 do
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 break 2
5270 fi
5271 done
5272 done
5273 IFS=$as_save_IFS
5274
5275 fi
5276 fi
5277 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5278 if test -n "$ac_ct_GNATMAKE"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5280 $as_echo "$ac_ct_GNATMAKE" >&6; }
5281 else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5284 fi
5285
5286 if test "x$ac_ct_GNATMAKE" = x; then
5287 GNATMAKE="no"
5288 else
5289 case $cross_compiling:$ac_tool_warned in
5290 yes:)
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5293 ac_tool_warned=yes ;;
5294 esac
5295 GNATMAKE=$ac_ct_GNATMAKE
5296 fi
5297 else
5298 GNATMAKE="$ac_cv_prog_GNATMAKE"
5299 fi
5300
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5302 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5303 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 cat >conftest.adb <<EOF
5307 procedure conftest is begin null; end conftest;
5308 EOF
5309 acx_cv_cc_gcc_supports_ada=no
5310 # There is a bug in old released versions of GCC which causes the
5311 # driver to exit successfully when the appropriate language module
5312 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5313 # Therefore we must check for the error message as well as an
5314 # unsuccessful exit.
5315 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5316 # given a .adb file, but produce no object file. So we must check
5317 # if an object file was really produced to guard against this.
5318 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5319 if test x"$errors" = x && test -f conftest.$ac_objext; then
5320 acx_cv_cc_gcc_supports_ada=yes
5321 fi
5322 rm -f conftest.*
5323 fi
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5325 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5326
5327 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5328 have_gnat=yes
5329 else
5330 have_gnat=no
5331 fi
5332
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5334 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5335 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 echo abfoo >t1
5339 echo cdfoo >t2
5340 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5341 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5342 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5343 :
5344 else
5345 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5346 fi
5347 fi
5348 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5349 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5350 :
5351 else
5352 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5353 fi
5354 fi
5355 rm t1 t2
5356
5357 fi
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5359 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5360 do_compare="$gcc_cv_prog_cmp_skip"
5361
5362
5363
5364 # Check whether --enable-bootstrap was given.
5365 if test "${enable_bootstrap+set}" = set; then :
5366 enableval=$enable_bootstrap;
5367 else
5368 enable_bootstrap=default
5369 fi
5370
5371
5372 # Issue errors and warnings for invalid/strange bootstrap combinations.
5373 if test -r $srcdir/gcc/configure; then
5374 have_compiler=yes
5375 else
5376 have_compiler=no
5377 fi
5378
5379 case "$have_compiler:$host:$target:$enable_bootstrap" in
5380 *:*:*:no) ;;
5381
5382 # Default behavior. Enable bootstrap if we have a compiler
5383 # and we are in a native configuration.
5384 yes:$build:$build:default)
5385 enable_bootstrap=yes ;;
5386
5387 *:*:*:default)
5388 enable_bootstrap=no ;;
5389
5390 # We have a compiler and we are in a native configuration, bootstrap is ok
5391 yes:$build:$build:yes)
5392 ;;
5393
5394 # Other configurations, but we have a compiler. Assume the user knows
5395 # what he's doing.
5396 yes:*:*:yes)
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5398 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5399 ;;
5400
5401 # No compiler: if they passed --enable-bootstrap explicitly, fail
5402 no:*:*:yes)
5403 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5404
5405 # Fail if wrong command line
5406 *)
5407 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5408 ;;
5409 esac
5410
5411 # Used for setting $lt_cv_objdir
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5413 $as_echo_n "checking for objdir... " >&6; }
5414 if test "${lt_cv_objdir+set}" = set; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 rm -f .libs 2>/dev/null
5418 mkdir .libs 2>/dev/null
5419 if test -d .libs; then
5420 lt_cv_objdir=.libs
5421 else
5422 # MS-DOS does not allow filenames that begin with a dot.
5423 lt_cv_objdir=_libs
5424 fi
5425 rmdir .libs 2>/dev/null
5426 fi
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5428 $as_echo "$lt_cv_objdir" >&6; }
5429 objdir=$lt_cv_objdir
5430
5431
5432
5433
5434
5435 cat >>confdefs.h <<_ACEOF
5436 #define LT_OBJDIR "$lt_cv_objdir/"
5437 _ACEOF
5438
5439
5440
5441 # Check for GMP, MPFR and MPC
5442 gmplibs="-lmpc -lmpfr -lgmp"
5443 gmpinc=
5444 have_gmp=no
5445
5446 # Specify a location for mpc
5447 # check for this first so it ends up on the link line before mpfr.
5448
5449 # Check whether --with-mpc was given.
5450 if test "${with_mpc+set}" = set; then :
5451 withval=$with_mpc;
5452 fi
5453
5454
5455 # Check whether --with-mpc-include was given.
5456 if test "${with_mpc_include+set}" = set; then :
5457 withval=$with_mpc_include;
5458 fi
5459
5460
5461 # Check whether --with-mpc-lib was given.
5462 if test "${with_mpc_lib+set}" = set; then :
5463 withval=$with_mpc_lib;
5464 fi
5465
5466
5467 if test "x$with_mpc" != x; then
5468 gmplibs="-L$with_mpc/lib $gmplibs"
5469 gmpinc="-I$with_mpc/include $gmpinc"
5470 fi
5471 if test "x$with_mpc_include" != x; then
5472 gmpinc="-I$with_mpc_include $gmpinc"
5473 fi
5474 if test "x$with_mpc_lib" != x; then
5475 gmplibs="-L$with_mpc_lib $gmplibs"
5476 fi
5477 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5478 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5479 gmpinc='-I$$s/mpc/src '"$gmpinc"
5480 # Do not test the mpc version. Assume that it is sufficient, since
5481 # it is in the source tree, and the library has not been built yet
5482 # but it would be included on the link line in the version check below
5483 # hence making the test fail.
5484 have_gmp=yes
5485 fi
5486
5487 # Specify a location for mpfr
5488 # check for this first so it ends up on the link line before gmp.
5489
5490 # Check whether --with-mpfr-dir was given.
5491 if test "${with_mpfr_dir+set}" = set; then :
5492 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5493 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5494 fi
5495
5496
5497
5498 # Check whether --with-mpfr was given.
5499 if test "${with_mpfr+set}" = set; then :
5500 withval=$with_mpfr;
5501 fi
5502
5503
5504 # Check whether --with-mpfr-include was given.
5505 if test "${with_mpfr_include+set}" = set; then :
5506 withval=$with_mpfr_include;
5507 fi
5508
5509
5510 # Check whether --with-mpfr-lib was given.
5511 if test "${with_mpfr_lib+set}" = set; then :
5512 withval=$with_mpfr_lib;
5513 fi
5514
5515
5516 if test "x$with_mpfr" != x; then
5517 gmplibs="-L$with_mpfr/lib $gmplibs"
5518 gmpinc="-I$with_mpfr/include $gmpinc"
5519 fi
5520 if test "x$with_mpfr_include" != x; then
5521 gmpinc="-I$with_mpfr_include $gmpinc"
5522 fi
5523 if test "x$with_mpfr_lib" != x; then
5524 gmplibs="-L$with_mpfr_lib $gmplibs"
5525 fi
5526 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5527 # MPFR v3.1.0 moved the sources into a src sub-directory.
5528 if test -d ${srcdir}/mpfr/src; then
5529 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5530 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5531 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5532 else
5533 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5534 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5535 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5536 fi
5537 # Do not test the mpfr version. Assume that it is sufficient, since
5538 # it is in the source tree, and the library has not been built yet
5539 # but it would be included on the link line in the version check below
5540 # hence making the test fail.
5541 have_gmp=yes
5542 fi
5543
5544 # Specify a location for gmp
5545
5546 # Check whether --with-gmp-dir was given.
5547 if test "${with_gmp_dir+set}" = set; then :
5548 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5549 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5550 fi
5551
5552
5553
5554 # Check whether --with-gmp was given.
5555 if test "${with_gmp+set}" = set; then :
5556 withval=$with_gmp;
5557 fi
5558
5559
5560 # Check whether --with-gmp-include was given.
5561 if test "${with_gmp_include+set}" = set; then :
5562 withval=$with_gmp_include;
5563 fi
5564
5565
5566 # Check whether --with-gmp-lib was given.
5567 if test "${with_gmp_lib+set}" = set; then :
5568 withval=$with_gmp_lib;
5569 fi
5570
5571
5572
5573 if test "x$with_gmp" != x; then
5574 gmplibs="-L$with_gmp/lib $gmplibs"
5575 gmpinc="-I$with_gmp/include $gmpinc"
5576 fi
5577 if test "x$with_gmp_include" != x; then
5578 gmpinc="-I$with_gmp_include $gmpinc"
5579 fi
5580 if test "x$with_gmp_lib" != x; then
5581 gmplibs="-L$with_gmp_lib $gmplibs"
5582 fi
5583 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5584 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5585 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5586 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5587 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5588 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5589 # Do not test the gmp version. Assume that it is sufficient, since
5590 # it is in the source tree, and the library has not been built yet
5591 # but it would be included on the link line in the version check below
5592 # hence making the test fail.
5593 have_gmp=yes
5594 fi
5595
5596 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5597 have_gmp=yes
5598 saved_CFLAGS="$CFLAGS"
5599 CFLAGS="$CFLAGS $gmpinc"
5600 # Check for the recommended and required versions of GMP.
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5602 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5603
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606 #include "gmp.h"
5607 int
5608 main ()
5609 {
5610
5611 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5612 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5613 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5614 choke me
5615 #endif
5616
5617 ;
5618 return 0;
5619 }
5620 _ACEOF
5621 if ac_fn_c_try_compile "$LINENO"; then :
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h. */
5624 #include <gmp.h>
5625 int
5626 main ()
5627 {
5628
5629 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5630 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5631 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5632 choke me
5633 #endif
5634
5635 ;
5636 return 0;
5637 }
5638 _ACEOF
5639 if ac_fn_c_try_compile "$LINENO"; then :
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5641 $as_echo "yes" >&6; }
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5644 $as_echo "buggy but acceptable" >&6; }
5645 fi
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }; have_gmp=no
5650 fi
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652
5653 # If we have GMP, check the MPFR version.
5654 if test x"$have_gmp" = xyes; then
5655 # Check for the recommended and required versions of MPFR.
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5657 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 #include <gmp.h>
5661 #include <mpfr.h>
5662 int
5663 main ()
5664 {
5665
5666 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5667 choke me
5668 #endif
5669
5670 ;
5671 return 0;
5672 }
5673 _ACEOF
5674 if ac_fn_c_try_compile "$LINENO"; then :
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677 #include <gmp.h>
5678 #include <mpfr.h>
5679 int
5680 main ()
5681 {
5682
5683 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5684 choke me
5685 #endif
5686
5687 ;
5688 return 0;
5689 }
5690 _ACEOF
5691 if ac_fn_c_try_compile "$LINENO"; then :
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5693 $as_echo "yes" >&6; }
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5696 $as_echo "buggy but acceptable" >&6; }
5697 fi
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 else
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }; have_gmp=no
5702 fi
5703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5704 fi
5705
5706 # Check for the MPC header version.
5707 if test x"$have_gmp" = xyes ; then
5708 # Check for the recommended and required versions of MPC.
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5710 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5713 #include <mpc.h>
5714 int
5715 main ()
5716 {
5717
5718 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5719 choke me
5720 #endif
5721
5722 ;
5723 return 0;
5724 }
5725 _ACEOF
5726 if ac_fn_c_try_compile "$LINENO"; then :
5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h. */
5729 #include <mpc.h>
5730 int
5731 main ()
5732 {
5733
5734 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5735 choke me
5736 #endif
5737
5738 ;
5739 return 0;
5740 }
5741 _ACEOF
5742 if ac_fn_c_try_compile "$LINENO"; then :
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5744 $as_echo "yes" >&6; }
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5747 $as_echo "buggy but acceptable" >&6; }
5748 fi
5749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 else
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }; have_gmp=no
5753 fi
5754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755 fi
5756
5757 # Now check the MPFR library.
5758 if test x"$have_gmp" = xyes; then
5759 saved_LIBS="$LIBS"
5760 LIBS="$LIBS $gmplibs"
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5762 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #include <mpc.h>
5766 int
5767 main ()
5768 {
5769
5770 mpfr_t n;
5771 mpfr_t x;
5772 mpc_t c;
5773 int t;
5774 mpfr_init (n);
5775 mpfr_init (x);
5776 mpfr_atan2 (n, n, x, GMP_RNDN);
5777 mpfr_erfc (n, x, GMP_RNDN);
5778 mpfr_subnormalize (x, t, GMP_RNDN);
5779 mpfr_clear(n);
5780 mpfr_clear(x);
5781 mpc_init2 (c, 53);
5782 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5783 mpc_cosh (c, c, MPC_RNDNN);
5784 mpc_pow (c, c, c, MPC_RNDNN);
5785 mpc_acosh (c, c, MPC_RNDNN);
5786 mpc_clear (c);
5787
5788 ;
5789 return 0;
5790 }
5791 _ACEOF
5792 if ac_fn_c_try_link "$LINENO"; then :
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5794 $as_echo "yes" >&6; }
5795 else
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }; have_gmp=no
5798 fi
5799 rm -f core conftest.err conftest.$ac_objext \
5800 conftest$ac_exeext conftest.$ac_ext
5801 LIBS="$saved_LIBS"
5802 fi
5803
5804 CFLAGS="$saved_CFLAGS"
5805
5806 # The library versions listed in the error message below should match
5807 # the HARD-minimums enforced above.
5808 if test x$have_gmp != xyes; then
5809 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5810 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5811 their locations. Source code for these libraries can be found at
5812 their respective hosting sites as well as at
5813 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5814 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5815 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5816 make sure that you have installed both the libraries and the header
5817 files. They may be located in separate packages." "$LINENO" 5
5818 fi
5819 fi
5820
5821 # Flags needed for both GMP, MPFR and/or MPC.
5822
5823
5824
5825
5826
5827
5828
5829 # Allow host libstdc++ to be specified for static linking with PPL.
5830
5831 # Check whether --with-host-libstdcxx was given.
5832 if test "${with_host_libstdcxx+set}" = set; then :
5833 withval=$with_host_libstdcxx;
5834 fi
5835
5836
5837 case $with_host_libstdcxx in
5838 no|yes)
5839 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5840 ;;
5841 esac
5842
5843 # Libraries to use for stage1 or when not bootstrapping.
5844
5845 # Check whether --with-stage1-libs was given.
5846 if test "${with_stage1_libs+set}" = set; then :
5847 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5848 stage1_libs=
5849 else
5850 stage1_libs=$withval
5851 fi
5852 else
5853 stage1_libs=$with_host_libstdcxx
5854 fi
5855
5856
5857
5858 # Linker flags to use for stage1 or when not bootstrapping.
5859
5860 # Check whether --with-stage1-ldflags was given.
5861 if test "${with_stage1_ldflags+set}" = set; then :
5862 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5863 stage1_ldflags=
5864 else
5865 stage1_ldflags=$withval
5866 fi
5867 else
5868 stage1_ldflags=
5869 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5870 # if supported. But if the user explicitly specified the libraries to use,
5871 # trust that they are doing what they want.
5872 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5873 stage1_ldflags="-static-libstdc++ -static-libgcc"
5874 fi
5875 fi
5876
5877
5878
5879 # Libraries to use for stage2 and later builds. This defaults to the
5880 # argument passed to --with-host-libstdcxx.
5881
5882 # Check whether --with-boot-libs was given.
5883 if test "${with_boot_libs+set}" = set; then :
5884 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5885 poststage1_libs=
5886 else
5887 poststage1_libs=$withval
5888 fi
5889 else
5890 poststage1_libs=$with_host_libstdcxx
5891 fi
5892
5893
5894
5895 # Linker flags to use for stage2 and later builds.
5896
5897 # Check whether --with-boot-ldflags was given.
5898 if test "${with_boot_ldflags+set}" = set; then :
5899 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5900 poststage1_ldflags=
5901 else
5902 poststage1_ldflags=$withval
5903 fi
5904 else
5905 poststage1_ldflags=
5906 # In stages 2 and 3, default to linking libstdc++ and libgcc
5907 # statically. But if the user explicitly specified the libraries to
5908 # use, trust that they are doing what they want.
5909 if test "$poststage1_libs" = ""; then
5910 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5911 fi
5912 fi
5913
5914
5915
5916 # GCC GRAPHITE dependency ISL.
5917 # Basic setup is inlined here, actual checks are in config/isl.m4
5918
5919
5920 # Check whether --with-isl was given.
5921 if test "${with_isl+set}" = set; then :
5922 withval=$with_isl;
5923 fi
5924
5925
5926 # Treat --without-isl as a request to disable
5927 # GRAPHITE support and skip all following checks.
5928 if test "x$with_isl" != "xno"; then
5929 # Check for ISL
5930
5931
5932 # Check whether --with-isl-include was given.
5933 if test "${with_isl_include+set}" = set; then :
5934 withval=$with_isl_include;
5935 fi
5936
5937
5938 # Check whether --with-isl-lib was given.
5939 if test "${with_isl_lib+set}" = set; then :
5940 withval=$with_isl_lib;
5941 fi
5942
5943
5944 # Check whether --enable-isl-version-check was given.
5945 if test "${enable_isl_version_check+set}" = set; then :
5946 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5947 else
5948 ENABLE_ISL_CHECK=yes
5949 fi
5950
5951
5952 # Initialize isllibs and islinc.
5953 case $with_isl in
5954 no)
5955 isllibs=
5956 islinc=
5957 ;;
5958 "" | yes)
5959 ;;
5960 *)
5961 isllibs="-L$with_isl/lib"
5962 islinc="-I$with_isl/include"
5963 ;;
5964 esac
5965 if test "x${with_isl_include}" != x ; then
5966 islinc="-I$with_isl_include"
5967 fi
5968 if test "x${with_isl_lib}" != x; then
5969 isllibs="-L$with_isl_lib"
5970 fi
5971 if test "x${islinc}" = x && test "x${isllibs}" = x \
5972 && test -d ${srcdir}/isl; then
5973 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5974 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5975 ENABLE_ISL_CHECK=no
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5977 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5978 fi
5979
5980 isllibs="${isllibs} -lisl"
5981
5982
5983
5984 if test "${ENABLE_ISL_CHECK}" = yes ; then
5985 _isl_saved_CFLAGS=$CFLAGS
5986 _isl_saved_LDFLAGS=$LDFLAGS
5987 _isl_saved_LIBS=$LIBS
5988
5989 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5990 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5991 LIBS="${_isl_saved_LIBS} -lisl"
5992
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5994 $as_echo_n "checking for compatible ISL... " >&6; }
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
5997 #include <isl/val.h>
5998 int
5999 main ()
6000 {
6001 ;
6002 ;
6003 return 0;
6004 }
6005 _ACEOF
6006 if ac_fn_c_try_link "$LINENO"; then :
6007 gcc_cv_isl=yes
6008 else
6009 gcc_cv_isl=no
6010 fi
6011 rm -f core conftest.err conftest.$ac_objext \
6012 conftest$ac_exeext conftest.$ac_ext
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6014 $as_echo "$gcc_cv_isl" >&6; }
6015
6016 CFLAGS=$_isl_saved_CFLAGS
6017 LDFLAGS=$_isl_saved_LDFLAGS
6018 LIBS=$_isl_saved_LIBS
6019 fi
6020
6021
6022
6023
6024
6025
6026 if test "x${with_isl}" = xno; then
6027 graphite_requested=no
6028 elif test "x${with_isl}" != x \
6029 || test "x${with_isl_include}" != x \
6030 || test "x${with_isl_lib}" != x ; then
6031 graphite_requested=yes
6032 else
6033 graphite_requested=no
6034 fi
6035
6036
6037
6038 if test "${gcc_cv_isl}" = no ; then
6039 isllibs=
6040 islinc=
6041 fi
6042
6043 if test "${graphite_requested}" = yes \
6044 && test "x${isllibs}" = x \
6045 && test "x${islinc}" = x ; then
6046
6047 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6048 fi
6049
6050
6051 fi
6052
6053 # If the ISL check failed, disable builds of in-tree variant of ISL
6054 if test "x$with_isl" = xno ||
6055 test "x$gcc_cv_isl" = xno; then
6056 noconfigdirs="$noconfigdirs isl"
6057 islinc=
6058 fi
6059
6060
6061
6062
6063 # Check for LTO support.
6064 # Check whether --enable-lto was given.
6065 if test "${enable_lto+set}" = set; then :
6066 enableval=$enable_lto; enable_lto=$enableval
6067 else
6068 enable_lto=yes; default_enable_lto=yes
6069 fi
6070
6071
6072
6073
6074
6075 target_elf=no
6076 case $target in
6077 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6078 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6079 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6080 nvptx-*-none)
6081 target_elf=no
6082 ;;
6083 *)
6084 target_elf=yes
6085 ;;
6086 esac
6087
6088 if test $target_elf = yes; then :
6089 # ELF platforms build the lto-plugin always.
6090 build_lto_plugin=yes
6091
6092 else
6093 if test x"$default_enable_lto" = x"yes" ; then
6094 case $target in
6095 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6096 # On other non-ELF platforms, LTO has yet to be validated.
6097 *) enable_lto=no ;;
6098 esac
6099 else
6100 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6101 # It would also be nice to check the binutils support, but we don't
6102 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6103 # warn during gcc/ subconfigure; unless you're bootstrapping with
6104 # -flto it won't be needed until after installation anyway.
6105 case $target in
6106 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6107 *) if test x"$enable_lto" = x"yes"; then
6108 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6109 fi
6110 ;;
6111 esac
6112 fi
6113 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6114 # Build it unless LTO was explicitly disabled.
6115 case $target in
6116 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6117 *) ;;
6118 esac
6119
6120 fi
6121
6122
6123 # Check whether --enable-linker-plugin-configure-flags was given.
6124 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6125 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6126 else
6127 extra_linker_plugin_configure_flags=
6128 fi
6129
6130
6131 # Check whether --enable-linker-plugin-flags was given.
6132 if test "${enable_linker_plugin_flags+set}" = set; then :
6133 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6134 else
6135 extra_linker_plugin_flags=
6136 fi
6137
6138
6139
6140
6141 # By default, C and C++ are the only stage 1 languages.
6142 stage1_languages=,c,
6143
6144 # Target libraries that we bootstrap.
6145 bootstrap_target_libs=,target-libgcc,
6146
6147 # Figure out what language subdirectories are present.
6148 # Look if the user specified --enable-languages="..."; if not, use
6149 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6150 # go away some day.
6151 # NB: embedded tabs in this IF block -- do not untabify
6152 if test -d ${srcdir}/gcc; then
6153 if test x"${enable_languages+set}" != xset; then
6154 if test x"${LANGUAGES+set}" = xset; then
6155 enable_languages="${LANGUAGES}"
6156 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6157 else
6158 enable_languages=all
6159 fi
6160 else
6161 if test x"${enable_languages}" = x ||
6162 test x"${enable_languages}" = xyes;
6163 then
6164 echo configure.in: --enable-languages needs at least one language argument 1>&2
6165 exit 1
6166 fi
6167 fi
6168 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6169
6170 # 'f95' is the old name for the 'fortran' language. We issue a warning
6171 # and make the substitution.
6172 case ,${enable_languages}, in
6173 *,f95,*)
6174 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6175 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6176 ;;
6177 esac
6178
6179 # If bootstrapping, C++ must be enabled.
6180 case ",$enable_languages,:$enable_bootstrap" in
6181 *,c++,*:*) ;;
6182 *:yes)
6183 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6184 enable_languages="${enable_languages},c++"
6185 else
6186 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6187 fi
6188 ;;
6189 esac
6190
6191 # First scan to see if an enabled language requires some other language.
6192 # We assume that a given config-lang.in will list all the language
6193 # front ends it requires, even if some are required indirectly.
6194 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6195 case ${lang_frag} in
6196 ..) ;;
6197 # The odd quoting in the next line works around
6198 # an apparent bug in bash 1.12 on linux.
6199 ${srcdir}/gcc/[*]/config-lang.in) ;;
6200 *)
6201 # From the config-lang.in, get $language, $lang_requires, and
6202 # $lang_requires_boot_languages.
6203 language=
6204 lang_requires=
6205 lang_requires_boot_languages=
6206 . ${lang_frag}
6207 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6208 case ,${enable_languages}, in
6209 *,$other,*) ;;
6210 *,all,*) ;;
6211 *,$language,*)
6212 echo " \`$other' language required by \`$language'; enabling" 1>&2
6213 enable_languages="${enable_languages},${other}"
6214 ;;
6215 esac
6216 done
6217 for other in ${lang_requires_boot_languages} ; do
6218 if test "$other" != "c"; then
6219 case ,${enable_stage1_languages}, in
6220 *,$other,*) ;;
6221 *,all,*) ;;
6222 *)
6223 case ,${enable_languages}, in
6224 *,$language,*)
6225 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6226 enable_stage1_languages="$enable_stage1_languages,${other}"
6227 ;;
6228 esac
6229 ;;
6230 esac
6231 fi
6232 done
6233 ;;
6234 esac
6235 done
6236
6237 new_enable_languages=,c,
6238
6239 # If LTO is enabled, add the LTO front end.
6240 if test "$enable_lto" = "yes" ; then
6241 case ,${enable_languages}, in
6242 *,lto,*) ;;
6243 *) enable_languages="${enable_languages},lto" ;;
6244 esac
6245 if test "${build_lto_plugin}" = "yes" ; then
6246 configdirs="$configdirs lto-plugin"
6247 fi
6248 fi
6249
6250 # If we're building an offloading compiler, add the LTO front end.
6251 if test x"$enable_as_accelerator_for" != x ; then
6252 case ,${enable_languages}, in
6253 *,lto,*) ;;
6254 *) enable_languages="${enable_languages},lto" ;;
6255 esac
6256 fi
6257
6258 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6259 potential_languages=,c,
6260
6261 enabled_target_libs=
6262 disabled_target_libs=
6263
6264 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6265 case ${lang_frag} in
6266 ..) ;;
6267 # The odd quoting in the next line works around
6268 # an apparent bug in bash 1.12 on linux.
6269 ${srcdir}/gcc/[*]/config-lang.in) ;;
6270 *)
6271 # From the config-lang.in, get $language, $target_libs,
6272 # $lang_dirs, $boot_language, and $build_by_default
6273 language=
6274 target_libs=
6275 lang_dirs=
6276 subdir_requires=
6277 boot_language=no
6278 build_by_default=yes
6279 . ${lang_frag}
6280 if test x${language} = x; then
6281 echo "${lang_frag} doesn't set \$language." 1>&2
6282 exit 1
6283 fi
6284
6285 if test "$language" = "c++"; then
6286 boot_language=yes
6287 fi
6288
6289 add_this_lang=no
6290 case ,${enable_languages}, in
6291 *,${language},*)
6292 # Language was explicitly selected; include it
6293 # unless it is C, which is enabled by default.
6294 if test "$language" != "c"; then
6295 add_this_lang=yes
6296 fi
6297 ;;
6298 *,all,*)
6299 # 'all' was selected, select it if it is a default language
6300 if test "$language" != "c"; then
6301 add_this_lang=${build_by_default}
6302 fi
6303 ;;
6304 esac
6305
6306 # Disable languages that need other directories if these aren't available.
6307 for i in $subdir_requires; do
6308 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6309 case ,${enable_languages}, in
6310 *,${language},*)
6311 # Specifically requested language; tell them.
6312 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6313 ;;
6314 *)
6315 # Silently disable.
6316 add_this_lang=unsupported
6317 ;;
6318 esac
6319 done
6320
6321 # Disable Ada if no preexisting GNAT is available.
6322 case ,${enable_languages},:${language}:${have_gnat} in
6323 *,${language},*:ada:no)
6324 # Specifically requested language; tell them.
6325 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6326 ;;
6327 *:ada:no)
6328 # Silently disable.
6329 add_this_lang=unsupported
6330 ;;
6331 esac
6332
6333 # Disable a language that is unsupported by the target.
6334 case " $unsupported_languages " in
6335 *" $language "*)
6336 add_this_lang=unsupported
6337 ;;
6338 esac
6339
6340 case $add_this_lang in
6341 unsupported)
6342 # Remove language-dependent dirs.
6343 disabled_target_libs="$disabled_target_libs $target_libs"
6344 noconfigdirs="$noconfigdirs $lang_dirs"
6345 ;;
6346 no)
6347 # Remove language-dependent dirs; still show language as supported.
6348 disabled_target_libs="$disabled_target_libs $target_libs"
6349 noconfigdirs="$noconfigdirs $lang_dirs"
6350 potential_languages="${potential_languages}${language},"
6351 ;;
6352 yes)
6353 new_enable_languages="${new_enable_languages}${language},"
6354 potential_languages="${potential_languages}${language},"
6355 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6356 enabled_target_libs="$enabled_target_libs $target_libs"
6357 case "${boot_language}:,$enable_stage1_languages," in
6358 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6359 # Add to (comma-separated) list of stage 1 languages.
6360 case ",$stage1_languages," in
6361 *,$language,* | ,yes, | ,all,) ;;
6362 *) stage1_languages="${stage1_languages}${language}," ;;
6363 esac
6364 # We need to bootstrap any supporting libraries.
6365 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6366 ;;
6367 esac
6368 ;;
6369 esac
6370 ;;
6371 esac
6372 done
6373
6374 # Add target libraries which are only needed for disabled languages
6375 # to noconfigdirs.
6376 if test -n "$disabled_target_libs"; then
6377 for dir in $disabled_target_libs; do
6378 case " $enabled_target_libs " in
6379 *" ${dir} "*) ;;
6380 *) noconfigdirs="$noconfigdirs $dir" ;;
6381 esac
6382 done
6383 fi
6384
6385 # Check whether --enable-stage1-languages was given.
6386 if test "${enable_stage1_languages+set}" = set; then :
6387 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6388 ,no,|,,)
6389 # Set it to something that will have no effect in the loop below
6390 enable_stage1_languages=c ;;
6391 ,yes,)
6392 enable_stage1_languages=`echo $new_enable_languages | \
6393 sed -e "s/^,//" -e "s/,$//" ` ;;
6394 *,all,*)
6395 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6396 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6397 esac
6398
6399 # Add "good" languages from enable_stage1_languages to stage1_languages,
6400 # while "bad" languages go in missing_languages. Leave no duplicates.
6401 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6402 case $potential_languages in
6403 *,$i,*)
6404 case $stage1_languages in
6405 *,$i,*) ;;
6406 *) stage1_languages="$stage1_languages$i," ;;
6407 esac ;;
6408 *)
6409 case $missing_languages in
6410 *,$i,*) ;;
6411 *) missing_languages="$missing_languages$i," ;;
6412 esac ;;
6413 esac
6414 done
6415 fi
6416
6417
6418 # Remove leading/trailing commas that were added for simplicity
6419 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6420 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6421 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6422 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6423
6424 if test "x$missing_languages" != x; then
6425 as_fn_error "
6426 The following requested languages could not be built: ${missing_languages}
6427 Supported languages are: ${potential_languages}" "$LINENO" 5
6428 fi
6429 if test "x$new_enable_languages" != "x$enable_languages"; then
6430 echo The following languages will be built: ${new_enable_languages}
6431 enable_languages="$new_enable_languages"
6432 fi
6433
6434
6435 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6436 fi
6437
6438 # Handle --disable-<component> generically.
6439 for dir in $configdirs $build_configdirs $target_configdirs ; do
6440 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6441 varname=`echo $dirname | sed -e s/+/_/g`
6442 if eval test x\${enable_${varname}} "=" xno ; then
6443 noconfigdirs="$noconfigdirs $dir"
6444 fi
6445 done
6446
6447 # Check for Boehm's garbage collector
6448 # Check whether --enable-objc-gc was given.
6449 if test "${enable_objc_gc+set}" = set; then :
6450 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6451 *,objc,*:*:yes:*target-boehm-gc*)
6452 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6453 ;;
6454 esac
6455 fi
6456
6457
6458 # Make sure we only build Boehm's garbage collector if required.
6459 case ,${enable_languages},:${enable_objc_gc} in
6460 *,objc,*:yes)
6461 # Keep target-boehm-gc if requested for Objective-C.
6462 ;;
6463 *)
6464 # Otherwise remove target-boehm-gc depending on target-libjava.
6465 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6466 noconfigdirs="$noconfigdirs target-boehm-gc"
6467 fi
6468 ;;
6469 esac
6470
6471 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6472 case ,${enable_languages}, in
6473 *,c++,*)
6474 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6475 case "${noconfigdirs}" in
6476 *target-libstdc++-v3*)
6477 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6478 ;;
6479 *) ;;
6480 esac
6481 ;;
6482 *)
6483 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6484 ;;
6485 esac
6486
6487 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6488 # $build_configdirs and $target_configdirs.
6489 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6490
6491 notsupp=""
6492 for dir in . $skipdirs $noconfigdirs ; do
6493 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6494 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6495 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6496 if test -r $srcdir/$dirname/configure ; then
6497 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6498 true
6499 else
6500 notsupp="$notsupp $dir"
6501 fi
6502 fi
6503 fi
6504 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6505 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6506 if test -r $srcdir/$dirname/configure ; then
6507 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6508 true
6509 else
6510 notsupp="$notsupp $dir"
6511 fi
6512 fi
6513 fi
6514 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6515 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6516 if test -r $srcdir/$dirname/configure ; then
6517 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6518 true
6519 else
6520 notsupp="$notsupp $dir"
6521 fi
6522 fi
6523 fi
6524 done
6525
6526 # Quietly strip out all directories which aren't configurable in this tree.
6527 # This relies on all configurable subdirectories being autoconfiscated, which
6528 # is now the case.
6529 build_configdirs_all="$build_configdirs"
6530 build_configdirs=
6531 for i in ${build_configdirs_all} ; do
6532 j=`echo $i | sed -e s/build-//g`
6533 if test -f ${srcdir}/$j/configure ; then
6534 build_configdirs="${build_configdirs} $i"
6535 fi
6536 done
6537
6538 configdirs_all="$configdirs"
6539 configdirs=
6540 for i in ${configdirs_all} ; do
6541 if test -f ${srcdir}/$i/configure ; then
6542 configdirs="${configdirs} $i"
6543 fi
6544 done
6545
6546 target_configdirs_all="$target_configdirs"
6547 target_configdirs=
6548 for i in ${target_configdirs_all} ; do
6549 j=`echo $i | sed -e s/target-//g`
6550 if test -f ${srcdir}/$j/configure ; then
6551 target_configdirs="${target_configdirs} $i"
6552 fi
6553 done
6554
6555 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6556 # so we have to add it after the preceding checks.
6557 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6558 then
6559 case " $configdirs " in
6560 *" libiberty "*)
6561 # If we can build libiberty, we can also build libiberty-linker-plugin.
6562 configdirs="$configdirs libiberty-linker-plugin"
6563 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6564 --with-libiberty=../libiberty-linker-plugin";;
6565 *)
6566 as_fn_error "libiberty missing" "$LINENO" 5;;
6567 esac
6568 fi
6569
6570 # Sometimes we have special requirements for the host libiberty.
6571 extra_host_libiberty_configure_flags=
6572 case " $configdirs " in
6573 *" lto-plugin "* | *" libcc1 "*)
6574 # When these are to be built as shared libraries, the same applies to
6575 # libiberty.
6576 extra_host_libiberty_configure_flags=--enable-shared
6577 ;;
6578 esac
6579
6580
6581 # Produce a warning message for the subdirs we can't configure.
6582 # This isn't especially interesting in the Cygnus tree, but in the individual
6583 # FSF releases, it's important to let people know when their machine isn't
6584 # supported by the one or two programs in a package.
6585
6586 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6587 # If $appdirs is non-empty, at least one of those directories must still
6588 # be configured, or we error out. (E.g., if the gas release supports a
6589 # specified target in some subdirs but not the gas subdir, we shouldn't
6590 # pretend that all is well.)
6591 if test -n "$appdirs" ; then
6592 for dir in $appdirs ; do
6593 if test -r $dir/Makefile.in ; then
6594 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6595 appdirs=""
6596 break
6597 fi
6598 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6599 appdirs=""
6600 break
6601 fi
6602 fi
6603 done
6604 if test -n "$appdirs" ; then
6605 echo "*** This configuration is not supported by this package." 1>&2
6606 exit 1
6607 fi
6608 fi
6609 # Okay, some application will build, or we don't care to check. Still
6610 # notify of subdirs not getting built.
6611 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6612 echo " ${notsupp}" 1>&2
6613 echo " (Any other directories should still work fine.)" 1>&2
6614 fi
6615
6616 case "$host" in
6617 *msdosdjgpp*)
6618 enable_gdbtk=no ;;
6619 esac
6620
6621 # To find our prefix, in gcc_cv_tool_prefix.
6622
6623 # The user is always right.
6624 if test "${PATH_SEPARATOR+set}" != set; then
6625 echo "#! /bin/sh" >conf$$.sh
6626 echo "exit 0" >>conf$$.sh
6627 chmod +x conf$$.sh
6628 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6629 PATH_SEPARATOR=';'
6630 else
6631 PATH_SEPARATOR=:
6632 fi
6633 rm -f conf$$.sh
6634 fi
6635
6636
6637
6638 if test "x$exec_prefix" = xNONE; then
6639 if test "x$prefix" = xNONE; then
6640 gcc_cv_tool_prefix=$ac_default_prefix
6641 else
6642 gcc_cv_tool_prefix=$prefix
6643 fi
6644 else
6645 gcc_cv_tool_prefix=$exec_prefix
6646 fi
6647
6648 # If there is no compiler in the tree, use the PATH only. In any
6649 # case, if there is no compiler in the tree nobody should use
6650 # AS_FOR_TARGET and LD_FOR_TARGET.
6651 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6652 gcc_version=`cat $srcdir/gcc/BASE-VER`
6653 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6654 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6655 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6656 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6657 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6658 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6659 else
6660 gcc_cv_tool_dirs=
6661 fi
6662
6663 if test x$build = x$target && test -n "$md_exec_prefix"; then
6664 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6665 fi
6666
6667
6668
6669 copy_dirs=
6670
6671
6672 # Check whether --with-build-sysroot was given.
6673 if test "${with_build_sysroot+set}" = set; then :
6674 withval=$with_build_sysroot; if test x"$withval" != x ; then
6675 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6676 fi
6677 else
6678 SYSROOT_CFLAGS_FOR_TARGET=
6679 fi
6680
6681
6682
6683
6684 # Check whether --with-debug-prefix-map was given.
6685 if test "${with_debug_prefix_map+set}" = set; then :
6686 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6687 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6688 for debug_map in $withval; do
6689 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6690 done
6691 fi
6692 else
6693 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6694 fi
6695
6696
6697
6698 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6699 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6700 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6701 # We want to ensure that TARGET libraries (which we know are built with
6702 # gcc) are built with "-O2 -g", so include those options when setting
6703 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6704 if test "x$CFLAGS_FOR_TARGET" = x; then
6705 if test "x${is_cross_compiler}" = xyes; then
6706 CFLAGS_FOR_TARGET="-g -O2"
6707 else
6708 CFLAGS_FOR_TARGET=$CFLAGS
6709 case " $CFLAGS " in
6710 *" -O2 "*) ;;
6711 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6712 esac
6713 case " $CFLAGS " in
6714 *" -g "* | *" -g3 "*) ;;
6715 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6716 esac
6717 fi
6718 fi
6719
6720
6721 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6722 if test "x${is_cross_compiler}" = xyes; then
6723 CXXFLAGS_FOR_TARGET="-g -O2"
6724 else
6725 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6726 case " $CXXFLAGS " in
6727 *" -O2 "*) ;;
6728 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6729 esac
6730 case " $CXXFLAGS " in
6731 *" -g "* | *" -g3 "*) ;;
6732 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6733 esac
6734 fi
6735 fi
6736
6737
6738
6739
6740 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6741 # the named directory are copied to $(tooldir)/sys-include.
6742 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6743 if test x${is_cross_compiler} = xno ; then
6744 echo 1>&2 '***' --with-headers is only supported when cross compiling
6745 exit 1
6746 fi
6747 if test x"${with_headers}" != xyes ; then
6748 x=${gcc_cv_tool_prefix}
6749 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6750 fi
6751 fi
6752
6753 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6754 # the name directories are copied to $(tooldir)/lib. Multiple directories
6755 # are permitted.
6756 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6757 if test x${is_cross_compiler} = xno ; then
6758 echo 1>&2 '***' --with-libs is only supported when cross compiling
6759 exit 1
6760 fi
6761 if test x"${with_libs}" != xyes ; then
6762 # Copy the libraries in reverse order, so that files in the first named
6763 # library override files in subsequent libraries.
6764 x=${gcc_cv_tool_prefix}
6765 for l in ${with_libs}; do
6766 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6767 done
6768 fi
6769 fi
6770
6771 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6772 #
6773 # This is done by determining whether or not the appropriate directory
6774 # is available, and by checking whether or not specific configurations
6775 # have requested that this magic not happen.
6776 #
6777 # The command line options always override the explicit settings in
6778 # configure.in, and the settings in configure.in override this magic.
6779 #
6780 # If the default for a toolchain is to use GNU as and ld, and you don't
6781 # want to do that, then you should use the --without-gnu-as and
6782 # --without-gnu-ld options for the configure script. Similarly, if
6783 # the default is to use the included zlib and you don't want to do that,
6784 # you should use the --with-system-zlib option for the configure script.
6785
6786 if test x${use_gnu_as} = x &&
6787 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6788 with_gnu_as=yes
6789 extra_host_args="$extra_host_args --with-gnu-as"
6790 fi
6791
6792 if test x${use_gnu_ld} = x &&
6793 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6794 with_gnu_ld=yes
6795 extra_host_args="$extra_host_args --with-gnu-ld"
6796 fi
6797
6798 if test x${use_included_zlib} = x &&
6799 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6800 :
6801 else
6802 with_system_zlib=yes
6803 extra_host_args="$extra_host_args --with-system-zlib"
6804 fi
6805
6806 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6807 # can detect this case.
6808
6809 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6810 with_newlib=yes
6811 extra_host_args="$extra_host_args --with-newlib"
6812 fi
6813
6814 # Handle ${copy_dirs}
6815 set fnord ${copy_dirs}
6816 shift
6817 while test $# != 0 ; do
6818 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6819 :
6820 else
6821 echo Copying $1 to $2
6822
6823 # Use the install script to create the directory and all required
6824 # parent directories.
6825 if test -d $2 ; then
6826 :
6827 else
6828 echo >config.temp
6829 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6830 fi
6831
6832 # Copy the directory, assuming we have tar.
6833 # FIXME: Should we use B in the second tar? Not all systems support it.
6834 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6835
6836 # It is the responsibility of the user to correctly adjust all
6837 # symlinks. If somebody can figure out how to handle them correctly
6838 # here, feel free to add the code.
6839
6840 echo $1 > $2/COPIED
6841 fi
6842 shift; shift
6843 done
6844
6845 # Determine a target-dependent exec_prefix that the installed
6846 # gcc will search in. Keep this list sorted by triplet, with
6847 # the *-*-osname triplets last.
6848 md_exec_prefix=
6849 case "${target}" in
6850 i[34567]86-pc-msdosdjgpp*)
6851 md_exec_prefix=/dev/env/DJDIR/bin
6852 ;;
6853 *-*-hpux* | \
6854 *-*-nto-qnx* | \
6855 *-*-solaris2*)
6856 md_exec_prefix=/usr/ccs/bin
6857 ;;
6858 esac
6859
6860 extra_arflags_for_target=
6861 extra_nmflags_for_target=
6862 extra_ranlibflags_for_target=
6863 target_makefile_frag=/dev/null
6864 case "${target}" in
6865 spu-*-*)
6866 target_makefile_frag="config/mt-spu"
6867 ;;
6868 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6869 target_makefile_frag="config/mt-sde"
6870 ;;
6871 mipsisa*-*-elfoabi*)
6872 target_makefile_frag="config/mt-mips-elfoabi"
6873 ;;
6874 mips*-*-*linux* | mips*-*-gnu*)
6875 target_makefile_frag="config/mt-mips-gnu"
6876 ;;
6877 nios2-*-elf*)
6878 target_makefile_frag="config/mt-nios2-elf"
6879 ;;
6880 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6881 target_makefile_frag="config/mt-gnu"
6882 ;;
6883 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6884 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6885 # commands to handle both 32-bit and 64-bit objects. These flags are
6886 # harmless if we're using GNU nm or ar.
6887 extra_arflags_for_target=" -X32_64"
6888 extra_nmflags_for_target=" -B -X32_64"
6889 ;;
6890 esac
6891
6892 alphaieee_frag=/dev/null
6893 case $target in
6894 alpha*-*-*)
6895 # This just makes sure to use the -mieee option to build target libs.
6896 # This should probably be set individually by each library.
6897 alphaieee_frag="config/mt-alphaieee"
6898 ;;
6899 esac
6900
6901 # If --enable-target-optspace always use -Os instead of -O2 to build
6902 # the target libraries, similarly if it is not specified, use -Os
6903 # on selected platforms.
6904 ospace_frag=/dev/null
6905 case "${enable_target_optspace}:${target}" in
6906 yes:*)
6907 ospace_frag="config/mt-ospace"
6908 ;;
6909 :d30v-*)
6910 ospace_frag="config/mt-d30v"
6911 ;;
6912 :m32r-* | :d10v-* | :fr30-*)
6913 ospace_frag="config/mt-ospace"
6914 ;;
6915 no:* | :*)
6916 ;;
6917 *)
6918 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6919 ;;
6920 esac
6921
6922 # Some systems (e.g., one of the i386-aix systems the gas testers are
6923 # using) don't handle "\$" correctly, so don't use it here.
6924 tooldir='${exec_prefix}'/${target_noncanonical}
6925 build_tooldir=${tooldir}
6926
6927 # Create a .gdbinit file which runs the one in srcdir
6928 # and tells GDB to look there for source files.
6929
6930 if test -r ${srcdir}/.gdbinit ; then
6931 case ${srcdir} in
6932 .) ;;
6933 *) cat > ./.gdbinit <<EOF
6934 # ${NO_EDIT}
6935 dir ${srcdir}
6936 dir .
6937 source ${srcdir}/.gdbinit
6938 EOF
6939 ;;
6940 esac
6941 fi
6942
6943 # Make sure that the compiler is able to generate an executable. If it
6944 # can't, we are probably in trouble. We don't care whether we can run the
6945 # executable--we might be using a cross compiler--we only care whether it
6946 # can be created. At this point the main configure script has set CC.
6947 we_are_ok=no
6948 echo "int main () { return 0; }" > conftest.c
6949 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6950 if test $? = 0 ; then
6951 if test -s conftest || test -s conftest.exe ; then
6952 we_are_ok=yes
6953 fi
6954 fi
6955 case $we_are_ok in
6956 no)
6957 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6958 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6959 rm -f conftest*
6960 exit 1
6961 ;;
6962 esac
6963 rm -f conftest*
6964
6965 # Decide which environment variable is used to find dynamic libraries.
6966 case "${host}" in
6967 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6968 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6969 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6970 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6971 esac
6972
6973 # On systems where the dynamic library environment variable is PATH,
6974 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6975 # built executables to PATH.
6976 if test "$RPATH_ENVVAR" = PATH; then
6977 GCC_SHLIB_SUBDIR=/shlib
6978 else
6979 GCC_SHLIB_SUBDIR=
6980 fi
6981
6982 # Adjust the toplevel makefile according to whether bootstrap was selected.
6983 case $enable_bootstrap in
6984 yes)
6985 bootstrap_suffix=bootstrap
6986 BUILD_CONFIG=bootstrap-debug
6987 ;;
6988 no)
6989 bootstrap_suffix=no-bootstrap
6990 BUILD_CONFIG=
6991 ;;
6992 esac
6993
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6995 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6996
6997
6998 # Check whether --with-build-config was given.
6999 if test "${with_build_config+set}" = set; then :
7000 withval=$with_build_config; case $with_build_config in
7001 yes) with_build_config= ;;
7002 no) with_build_config= BUILD_CONFIG= ;;
7003 esac
7004 fi
7005
7006
7007 if test "x${with_build_config}" != x; then
7008 BUILD_CONFIG=$with_build_config
7009 else
7010 case $BUILD_CONFIG in
7011 bootstrap-debug)
7012 if echo "int f (void) { return 0; }" > conftest.c &&
7013 ${CC} -c conftest.c &&
7014 mv conftest.o conftest.o.g0 &&
7015 ${CC} -c -g conftest.c &&
7016 mv conftest.o conftest.o.g &&
7017 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7018 :
7019 else
7020 BUILD_CONFIG=
7021 fi
7022 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7023 ;;
7024 esac
7025 fi
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7027 $as_echo "$BUILD_CONFIG" >&6; }
7028
7029
7030 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7032 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7033 # Check whether --enable-vtable-verify was given.
7034 if test "${enable_vtable_verify+set}" = set; then :
7035 enableval=$enable_vtable_verify; case "$enableval" in
7036 yes) enable_vtable_verify=yes ;;
7037 no) enable_vtable_verify=no ;;
7038 *) enable_vtable_verify=no;;
7039 esac
7040 else
7041 enable_vtable_verify=no
7042 fi
7043
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7045 $as_echo "$enable_vtable_verify" >&6; }
7046
7047 # Record target_configdirs and the configure arguments for target and
7048 # build configuration in Makefile.
7049 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7050 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7051 bootstrap_fixincludes=no
7052
7053 # If we are building libgomp, bootstrap it.
7054 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7055 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7056 fi
7057
7058 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7059 # or bootstrap-ubsan, bootstrap it.
7060 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7061 case "$BUILD_CONFIG" in
7062 *bootstrap-asan* | *bootstrap-ubsan* )
7063 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7064 bootstrap_fixincludes=yes
7065 ;;
7066 esac
7067 fi
7068
7069 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7070 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7071 test "$enable_vtable_verify" != no; then
7072 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7073 fi
7074
7075 # If we are building libmpx, bootstrap it.
7076 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7077 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7078 fi
7079
7080 # Determine whether gdb needs tk/tcl or not.
7081 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7082 # and in that case we want gdb to be built without tk. Ugh!
7083 # In fact I believe gdb is the *only* package directly dependent on tk,
7084 # so we should be able to put the 'maybe's in unconditionally and
7085 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7086 # 100% sure that that's safe though.
7087
7088 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7089 case "$enable_gdbtk" in
7090 no)
7091 GDB_TK="" ;;
7092 yes)
7093 GDB_TK="${gdb_tk}" ;;
7094 *)
7095 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7096 # distro. Eventually someone will fix this and move Insight, nee
7097 # gdbtk to a separate directory.
7098 if test -d ${srcdir}/gdb/gdbtk ; then
7099 GDB_TK="${gdb_tk}"
7100 else
7101 GDB_TK=""
7102 fi
7103 ;;
7104 esac
7105 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7106 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7107
7108 # Strip out unwanted targets.
7109
7110 # While at that, we remove Makefiles if we were started for recursive
7111 # configuration, so that the top-level Makefile reconfigures them,
7112 # like we used to do when configure itself was recursive.
7113
7114 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7115 # but now we're fixing up the Makefile ourselves with the additional
7116 # commands passed to AC_CONFIG_FILES. Use separate variables
7117 # extrasub-{build,host,target} not because there is any reason to split
7118 # the substitutions up that way, but only to remain below the limit of
7119 # 99 commands in a script, for HP-UX sed.
7120 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7121
7122 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7123 yes:yes:*\ gold\ *:*,c++,*) ;;
7124 yes:yes:*\ gold\ *:*)
7125 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7126 ;;
7127 esac
7128
7129 extrasub_build=
7130 for module in ${build_configdirs} ; do
7131 if test -z "${no_recursion}" \
7132 && test -f ${build_subdir}/${module}/Makefile; then
7133 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7134 rm -f ${build_subdir}/${module}/Makefile
7135 fi
7136 extrasub_build="$extrasub_build
7137 /^@if build-$module\$/d
7138 /^@endif build-$module\$/d
7139 /^@if build-$module-$bootstrap_suffix\$/d
7140 /^@endif build-$module-$bootstrap_suffix\$/d"
7141 done
7142 extrasub_host=
7143 for module in ${configdirs} ; do
7144 if test -z "${no_recursion}"; then
7145 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7146 if test -f ${file}; then
7147 echo 1>&2 "*** removing ${file} to force reconfigure"
7148 rm -f ${file}
7149 fi
7150 done
7151 fi
7152 case ${module},${bootstrap_fixincludes} in
7153 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7154 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7155 esac
7156 extrasub_host="$extrasub_host
7157 /^@if $module\$/d
7158 /^@endif $module\$/d
7159 /^@if $module-$host_bootstrap_suffix\$/d
7160 /^@endif $module-$host_bootstrap_suffix\$/d"
7161 done
7162 extrasub_target=
7163 for module in ${target_configdirs} ; do
7164 if test -z "${no_recursion}" \
7165 && test -f ${target_subdir}/${module}/Makefile; then
7166 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7167 rm -f ${target_subdir}/${module}/Makefile
7168 fi
7169
7170 # We only bootstrap target libraries listed in bootstrap_target_libs.
7171 case $bootstrap_target_libs in
7172 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7173 *) target_bootstrap_suffix=no-bootstrap ;;
7174 esac
7175
7176 extrasub_target="$extrasub_target
7177 /^@if target-$module\$/d
7178 /^@endif target-$module\$/d
7179 /^@if target-$module-$target_bootstrap_suffix\$/d
7180 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7181 done
7182
7183 # Do the final fixup along with target modules.
7184 extrasub_target="$extrasub_target
7185 /^@if /,/^@endif /d"
7186
7187 # Create the serialization dependencies. This uses a temporary file.
7188
7189 # Check whether --enable-serial-configure was given.
7190 if test "${enable_serial_configure+set}" = set; then :
7191 enableval=$enable_serial_configure;
7192 fi
7193
7194
7195 case ${enable_serial_configure} in
7196 yes)
7197 enable_serial_build_configure=yes
7198 enable_serial_host_configure=yes
7199 enable_serial_target_configure=yes
7200 ;;
7201 esac
7202
7203 # These force 'configure's to be done one at a time, to avoid problems
7204 # with contention over a shared config.cache.
7205 rm -f serdep.tmp
7206 echo '# serdep.tmp' > serdep.tmp
7207 olditem=
7208 test "x${enable_serial_build_configure}" = xyes &&
7209 for item in ${build_configdirs} ; do
7210 case ${olditem} in
7211 "") ;;
7212 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7213 esac
7214 olditem=${item}
7215 done
7216 olditem=
7217 test "x${enable_serial_host_configure}" = xyes &&
7218 for item in ${configdirs} ; do
7219 case ${olditem} in
7220 "") ;;
7221 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7222 esac
7223 olditem=${item}
7224 done
7225 olditem=
7226 test "x${enable_serial_target_configure}" = xyes &&
7227 for item in ${target_configdirs} ; do
7228 case ${olditem} in
7229 "") ;;
7230 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7231 esac
7232 olditem=${item}
7233 done
7234 serialization_dependencies=serdep.tmp
7235
7236
7237 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7238 # target, nonopt, and variable assignments. These are the ones we
7239 # might not want to pass down to subconfigures. The exception being
7240 # --cache-file=/dev/null, which is used to turn off the use of cache
7241 # files altogether, and which should be passed on to subconfigures.
7242 # Also strip program-prefix, program-suffix, and program-transform-name,
7243 # so that we can pass down a consistent program-transform-name.
7244 baseargs=
7245 tbaseargs=
7246 keep_next=no
7247 skip_next=no
7248 eval "set -- $ac_configure_args"
7249 for ac_arg
7250 do
7251 if test X"$skip_next" = X"yes"; then
7252 skip_next=no
7253 continue
7254 fi
7255 if test X"$keep_next" = X"yes"; then
7256 case $ac_arg in
7257 *\'*)
7258 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7259 esac
7260 baseargs="$baseargs '$ac_arg'"
7261 tbaseargs="$tbaseargs '$ac_arg'"
7262 keep_next=no
7263 continue
7264 fi
7265
7266 # Handle separated arguments. Based on the logic generated by
7267 # autoconf 2.59.
7268 case $ac_arg in
7269 *=* | --config-cache | -C | -disable-* | --disable-* \
7270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7272 | -with-* | --with-* | -without-* | --without-* | --x)
7273 separate_arg=no
7274 ;;
7275 -*)
7276 separate_arg=yes
7277 ;;
7278 *)
7279 separate_arg=no
7280 ;;
7281 esac
7282
7283 skip_targ=no
7284 case $ac_arg in
7285
7286 --with-* | --without-*)
7287 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7288
7289 case $libopt in
7290 *[-_]include)
7291 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7292 ;;
7293 *[-_]lib)
7294 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7295 ;;
7296 *)
7297 lib=$libopt
7298 ;;
7299 esac
7300
7301
7302 case $lib in
7303 mpc | mpfr | gmp | isl)
7304 # If we're processing --with-$lib, --with-$lib-include or
7305 # --with-$lib-lib, for one of the libs above, and target is
7306 # different from host, don't pass the current argument to any
7307 # target library's configure.
7308 if test x$is_cross_compiler = xyes; then
7309 skip_targ=yes
7310 fi
7311 ;;
7312 esac
7313 ;;
7314 esac
7315
7316 case "$ac_arg" in
7317 --cache-file=/dev/null | \
7318 -cache-file=/dev/null )
7319 # Handled here to avoid the test to skip args below.
7320 baseargs="$baseargs '$ac_arg'"
7321 tbaseargs="$tbaseargs '$ac_arg'"
7322 # Assert: $separate_arg should always be no.
7323 keep_next=$separate_arg
7324 ;;
7325 --no*)
7326 continue
7327 ;;
7328 --c* | \
7329 --sr* | \
7330 --ho* | \
7331 --bu* | \
7332 --t* | \
7333 --program-* | \
7334 -cache_file* | \
7335 -srcdir* | \
7336 -host* | \
7337 -build* | \
7338 -target* | \
7339 -program-prefix* | \
7340 -program-suffix* | \
7341 -program-transform-name* )
7342 skip_next=$separate_arg
7343 continue
7344 ;;
7345 -*)
7346 # An option. Add it.
7347 case $ac_arg in
7348 *\'*)
7349 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7350 esac
7351 baseargs="$baseargs '$ac_arg'"
7352 if test X"$skip_targ" = Xno; then
7353 tbaseargs="$tbaseargs '$ac_arg'"
7354 fi
7355 keep_next=$separate_arg
7356 ;;
7357 *)
7358 # Either a variable assignment, or a nonopt (triplet). Don't
7359 # pass it down; let the Makefile handle this.
7360 continue
7361 ;;
7362 esac
7363 done
7364 # Remove the initial space we just introduced and, as these will be
7365 # expanded by make, quote '$'.
7366 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7367
7368 # Add in --program-transform-name, after --program-prefix and
7369 # --program-suffix have been applied to it. Autoconf has already
7370 # doubled dollar signs and backslashes in program_transform_name; we want
7371 # the backslashes un-doubled, and then the entire thing wrapped in single
7372 # quotes, because this will be expanded first by make and then by the shell.
7373 # Also, because we want to override the logic in subdir configure scripts to
7374 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7375 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7376 ${program_transform_name}
7377 EOF_SED
7378 gcc_transform_name=`cat conftestsed.out`
7379 rm -f conftestsed.out
7380 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7381 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7382 if test "$silent" = yes; then
7383 baseargs="$baseargs --silent"
7384 tbaseargs="$tbaseargs --silent"
7385 fi
7386 baseargs="$baseargs --disable-option-checking"
7387 tbaseargs="$tbaseargs --disable-option-checking"
7388
7389 # Record and document user additions to sub configure arguments.
7390
7391
7392
7393
7394 # For the build-side libraries, we just need to pretend we're native,
7395 # and not use the same cache file. Multilibs are neither needed nor
7396 # desired. We can't even use the same cache file for all build-side
7397 # libraries, as they're compiled differently; some with C, some with
7398 # C++ or with different feature-enabling options.
7399 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7400
7401 # For host modules, accept cache file option, or specification as blank.
7402 case "${cache_file}" in
7403 "") # empty
7404 cache_file_option="" ;;
7405 /* | [A-Za-z]:[\\/]* ) # absolute path
7406 cache_file_option="--cache-file=${cache_file}" ;;
7407 *) # relative path
7408 cache_file_option="--cache-file=../${cache_file}" ;;
7409 esac
7410
7411 # Host dirs don't like to share a cache file either, horribly enough.
7412 # This seems to be due to autoconf 2.5x stupidity.
7413 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7414
7415 target_configargs="$target_configargs ${tbaseargs}"
7416
7417 # Passing a --with-cross-host argument lets the target libraries know
7418 # whether they are being built with a cross-compiler or being built
7419 # native. However, it would be better to use other mechanisms to make the
7420 # sorts of decisions they want to make on this basis. Please consider
7421 # this option to be deprecated. FIXME.
7422 if test x${is_cross_compiler} = xyes ; then
7423 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7424 fi
7425
7426 # Special user-friendly check for native x86_64-linux build, if
7427 # multilib is not explicitly enabled.
7428 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7429 x86_64-*linux*:yes:$build:$build:)
7430 # Make sure we have a development environment that handles 32-bit
7431 dev64=no
7432 echo "int main () { return 0; }" > conftest.c
7433 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7434 if test $? = 0 ; then
7435 if test -s conftest || test -s conftest.exe ; then
7436 dev64=yes
7437 fi
7438 fi
7439 rm -f conftest*
7440 if test x${dev64} != xyes ; then
7441 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
7442 fi
7443 ;;
7444 esac
7445
7446 # Default to --enable-multilib.
7447 if test x${enable_multilib} = x ; then
7448 target_configargs="--enable-multilib ${target_configargs}"
7449 fi
7450
7451 # Pass --with-newlib if appropriate. Note that target_configdirs has
7452 # changed from the earlier setting of with_newlib.
7453 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7454 target_configargs="--with-newlib ${target_configargs}"
7455 fi
7456
7457 # Different target subdirs use different values of certain variables
7458 # (notably CXX). Worse, multilibs use *lots* of different values.
7459 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7460 # it doesn't automatically accept command-line overrides of them.
7461 # This means it's not safe for target subdirs to share a cache file,
7462 # which is disgusting, but there you have it. Hopefully this can be
7463 # fixed in future. It's still worthwhile to use a cache file for each
7464 # directory. I think.
7465
7466 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7467 # We need to pass --target, as newer autoconf's requires consistency
7468 # for target_alias and gcc doesn't manage it consistently.
7469 target_configargs="--cache-file=./config.cache ${target_configargs}"
7470
7471 FLAGS_FOR_TARGET=
7472 case " $target_configdirs " in
7473 *" newlib "*)
7474 case " $target_configargs " in
7475 *" --with-newlib "*)
7476 case "$target" in
7477 *-cygwin*)
7478 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7479 ;;
7480 esac
7481
7482 # If we're not building GCC, don't discard standard headers.
7483 if test -d ${srcdir}/gcc; then
7484 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7485
7486 if test "${build}" != "${host}"; then
7487 # On Canadian crosses, CC_FOR_TARGET will have already been set
7488 # by `configure', so we won't have an opportunity to add -Bgcc/
7489 # to it. This is right: we don't want to search that directory
7490 # for binaries, but we want the header files in there, so add
7491 # them explicitly.
7492 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7493
7494 # Someone might think of using the pre-installed headers on
7495 # Canadian crosses, in case the installed compiler is not fully
7496 # compatible with the compiler being built. In this case, it
7497 # would be better to flag an error than risking having
7498 # incompatible object files being constructed. We can't
7499 # guarantee that an error will be flagged, but let's hope the
7500 # compiler will do it, when presented with incompatible header
7501 # files.
7502 fi
7503 fi
7504
7505 case "${target}-${is_cross_compiler}" in
7506 i[3456789]86-*-linux*-no)
7507 # Here host == target, so we don't need to build gcc,
7508 # so we don't want to discard standard headers.
7509 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7510 ;;
7511 *)
7512 # If we're building newlib, use its generic headers last, but search
7513 # for any libc-related directories first (so make it the last -B
7514 # switch).
7515 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7516
7517 # If we're building libgloss, find the startup file, simulator library
7518 # and linker script.
7519 case " $target_configdirs " in
7520 *" libgloss "*)
7521 # Look for startup file, simulator library and maybe linker script.
7522 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7523 # Look for libnosys.a in case the target needs it.
7524 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7525 # Most targets have the linker script in the source directory.
7526 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7527 ;;
7528 esac
7529 ;;
7530 esac
7531 ;;
7532 esac
7533 ;;
7534 esac
7535
7536 case "$target" in
7537 x86_64-*mingw* | *-w64-mingw*)
7538 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7539 # however, use a symlink named 'mingw' in ${prefix} .
7540 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7541 ;;
7542 *-mingw*)
7543 # MinGW can't be handled as Cygwin above since it does not use newlib.
7544 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'
7545 ;;
7546 esac
7547
7548 # Allow the user to override the flags for
7549 # our build compiler if desired.
7550 if test x"${build}" = x"${host}" ; then
7551 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7552 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7553 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7554 fi
7555
7556 # On Canadian crosses, we'll be searching the right directories for
7557 # the previously-installed cross compiler, so don't bother to add
7558 # flags for directories within the install tree of the compiler
7559 # being built; programs in there won't even run.
7560 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7561 # Search for pre-installed headers if nothing else fits.
7562 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7563 fi
7564
7565 if test "x${use_gnu_ld}" = x &&
7566 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7567 # Arrange for us to find uninstalled linker scripts.
7568 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7569 fi
7570
7571 # Search for other target-specific linker scripts and such.
7572 case "${target}" in
7573 mep*)
7574 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7575 ;;
7576 esac
7577
7578 # Makefile fragments.
7579 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7580 do
7581 eval fragval=\$$frag
7582 if test $fragval != /dev/null; then
7583 eval $frag=${srcdir}/$fragval
7584 fi
7585 done
7586
7587
7588
7589
7590
7591 # Miscellanea: directories, flags, etc.
7592
7593
7594
7595
7596
7597
7598
7599
7600 # Build module lists & subconfigure args.
7601
7602
7603
7604 # Host module lists & subconfigure args.
7605
7606
7607
7608
7609 # Target module lists & subconfigure args.
7610
7611
7612
7613 # Build tools.
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631 # Generate default definitions for YACC, M4, LEX and other programs that run
7632 # on the build machine. These are used if the Makefile can't locate these
7633 # programs in objdir.
7634 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7635
7636 for ac_prog in 'bison -y' byacc yacc
7637 do
7638 # Extract the first word of "$ac_prog", so it can be a program name with args.
7639 set dummy $ac_prog; ac_word=$2
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641 $as_echo_n "checking for $ac_word... " >&6; }
7642 if test "${ac_cv_prog_YACC+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 if test -n "$YACC"; then
7646 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7647 else
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 for as_dir in $PATH
7650 do
7651 IFS=$as_save_IFS
7652 test -z "$as_dir" && as_dir=.
7653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7655 ac_cv_prog_YACC="$ac_prog"
7656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 break 2
7658 fi
7659 done
7660 done
7661 IFS=$as_save_IFS
7662
7663 fi
7664 fi
7665 YACC=$ac_cv_prog_YACC
7666 if test -n "$YACC"; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7668 $as_echo "$YACC" >&6; }
7669 else
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7672 fi
7673
7674
7675 test -n "$YACC" && break
7676 done
7677 test -n "$YACC" || YACC="$MISSING bison -y"
7678
7679 case " $build_configdirs " in
7680 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7681 esac
7682
7683 for ac_prog in bison
7684 do
7685 # Extract the first word of "$ac_prog", so it can be a program name with args.
7686 set dummy $ac_prog; ac_word=$2
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688 $as_echo_n "checking for $ac_word... " >&6; }
7689 if test "${ac_cv_prog_BISON+set}" = set; then :
7690 $as_echo_n "(cached) " >&6
7691 else
7692 if test -n "$BISON"; then
7693 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7694 else
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 for as_dir in $PATH
7697 do
7698 IFS=$as_save_IFS
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7702 ac_cv_prog_BISON="$ac_prog"
7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 break 2
7705 fi
7706 done
7707 done
7708 IFS=$as_save_IFS
7709
7710 fi
7711 fi
7712 BISON=$ac_cv_prog_BISON
7713 if test -n "$BISON"; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7715 $as_echo "$BISON" >&6; }
7716 else
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7719 fi
7720
7721
7722 test -n "$BISON" && break
7723 done
7724 test -n "$BISON" || BISON="$MISSING bison"
7725
7726 case " $build_configdirs " in
7727 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7728 esac
7729
7730 for ac_prog in gm4 gnum4 m4
7731 do
7732 # Extract the first word of "$ac_prog", so it can be a program name with args.
7733 set dummy $ac_prog; ac_word=$2
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if test "${ac_cv_prog_M4+set}" = set; then :
7737 $as_echo_n "(cached) " >&6
7738 else
7739 if test -n "$M4"; then
7740 ac_cv_prog_M4="$M4" # Let the user override the test.
7741 else
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7744 do
7745 IFS=$as_save_IFS
7746 test -z "$as_dir" && as_dir=.
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7749 ac_cv_prog_M4="$ac_prog"
7750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 break 2
7752 fi
7753 done
7754 done
7755 IFS=$as_save_IFS
7756
7757 fi
7758 fi
7759 M4=$ac_cv_prog_M4
7760 if test -n "$M4"; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7762 $as_echo "$M4" >&6; }
7763 else
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7766 fi
7767
7768
7769 test -n "$M4" && break
7770 done
7771 test -n "$M4" || M4="$MISSING m4"
7772
7773 case " $build_configdirs " in
7774 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7775 esac
7776
7777 for ac_prog in flex lex
7778 do
7779 # Extract the first word of "$ac_prog", so it can be a program name with args.
7780 set dummy $ac_prog; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if test "${ac_cv_prog_LEX+set}" = set; then :
7784 $as_echo_n "(cached) " >&6
7785 else
7786 if test -n "$LEX"; then
7787 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7788 else
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 for as_dir in $PATH
7791 do
7792 IFS=$as_save_IFS
7793 test -z "$as_dir" && as_dir=.
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7796 ac_cv_prog_LEX="$ac_prog"
7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798 break 2
7799 fi
7800 done
7801 done
7802 IFS=$as_save_IFS
7803
7804 fi
7805 fi
7806 LEX=$ac_cv_prog_LEX
7807 if test -n "$LEX"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7809 $as_echo "$LEX" >&6; }
7810 else
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7813 fi
7814
7815
7816 test -n "$LEX" && break
7817 done
7818 test -n "$LEX" || LEX="$MISSING flex"
7819
7820 case " $build_configdirs " in
7821 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7822 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7823 esac
7824
7825 for ac_prog in flex
7826 do
7827 # Extract the first word of "$ac_prog", so it can be a program name with args.
7828 set dummy $ac_prog; ac_word=$2
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830 $as_echo_n "checking for $ac_word... " >&6; }
7831 if test "${ac_cv_prog_FLEX+set}" = set; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7834 if test -n "$FLEX"; then
7835 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7836 else
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7839 do
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7844 ac_cv_prog_FLEX="$ac_prog"
7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 break 2
7847 fi
7848 done
7849 done
7850 IFS=$as_save_IFS
7851
7852 fi
7853 fi
7854 FLEX=$ac_cv_prog_FLEX
7855 if test -n "$FLEX"; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7857 $as_echo "$FLEX" >&6; }
7858 else
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7861 fi
7862
7863
7864 test -n "$FLEX" && break
7865 done
7866 test -n "$FLEX" || FLEX="$MISSING flex"
7867
7868 case " $build_configdirs " in
7869 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7870 esac
7871
7872 for ac_prog in makeinfo
7873 do
7874 # Extract the first word of "$ac_prog", so it can be a program name with args.
7875 set dummy $ac_prog; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 if test -n "$MAKEINFO"; then
7882 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7883 else
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 for as_dir in $PATH
7886 do
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7891 ac_cv_prog_MAKEINFO="$ac_prog"
7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 break 2
7894 fi
7895 done
7896 done
7897 IFS=$as_save_IFS
7898
7899 fi
7900 fi
7901 MAKEINFO=$ac_cv_prog_MAKEINFO
7902 if test -n "$MAKEINFO"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7904 $as_echo "$MAKEINFO" >&6; }
7905 else
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7908 fi
7909
7910
7911 test -n "$MAKEINFO" && break
7912 done
7913 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7914
7915 case " $build_configdirs " in
7916 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7917 *)
7918
7919 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7920 # higher, else we use the "missing" dummy.
7921 if ${MAKEINFO} --version \
7922 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7923 :
7924 else
7925 MAKEINFO="$MISSING makeinfo"
7926 fi
7927 ;;
7928
7929 esac
7930
7931 # FIXME: expect and dejagnu may become build tools?
7932
7933 for ac_prog in expect
7934 do
7935 # Extract the first word of "$ac_prog", so it can be a program name with args.
7936 set dummy $ac_prog; ac_word=$2
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938 $as_echo_n "checking for $ac_word... " >&6; }
7939 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7940 $as_echo_n "(cached) " >&6
7941 else
7942 if test -n "$EXPECT"; then
7943 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7944 else
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7947 do
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7952 ac_cv_prog_EXPECT="$ac_prog"
7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954 break 2
7955 fi
7956 done
7957 done
7958 IFS=$as_save_IFS
7959
7960 fi
7961 fi
7962 EXPECT=$ac_cv_prog_EXPECT
7963 if test -n "$EXPECT"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7965 $as_echo "$EXPECT" >&6; }
7966 else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7969 fi
7970
7971
7972 test -n "$EXPECT" && break
7973 done
7974 test -n "$EXPECT" || EXPECT="expect"
7975
7976 case " $configdirs " in
7977 *" expect "*)
7978 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7979 ;;
7980 esac
7981
7982 for ac_prog in runtest
7983 do
7984 # Extract the first word of "$ac_prog", so it can be a program name with args.
7985 set dummy $ac_prog; ac_word=$2
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7991 if test -n "$RUNTEST"; then
7992 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7993 else
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995 for as_dir in $PATH
7996 do
7997 IFS=$as_save_IFS
7998 test -z "$as_dir" && as_dir=.
7999 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8001 ac_cv_prog_RUNTEST="$ac_prog"
8002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8003 break 2
8004 fi
8005 done
8006 done
8007 IFS=$as_save_IFS
8008
8009 fi
8010 fi
8011 RUNTEST=$ac_cv_prog_RUNTEST
8012 if test -n "$RUNTEST"; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8014 $as_echo "$RUNTEST" >&6; }
8015 else
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8018 fi
8019
8020
8021 test -n "$RUNTEST" && break
8022 done
8023 test -n "$RUNTEST" || RUNTEST="runtest"
8024
8025 case " $configdirs " in
8026 *" dejagnu "*)
8027 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8028 ;;
8029 esac
8030
8031
8032 # Host tools.
8033 ncn_tool_prefix=
8034 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8035 ncn_target_tool_prefix=
8036 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8037
8038
8039
8040 if test -n "$AR"; then
8041 ac_cv_prog_AR=$AR
8042 elif test -n "$ac_cv_prog_AR"; then
8043 AR=$ac_cv_prog_AR
8044 fi
8045
8046 if test -n "$ac_cv_prog_AR"; then
8047 for ncn_progname in ar; do
8048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8049 set dummy ${ncn_progname}; ac_word=$2
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051 $as_echo_n "checking for $ac_word... " >&6; }
8052 if test "${ac_cv_prog_AR+set}" = set; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8055 if test -n "$AR"; then
8056 ac_cv_prog_AR="$AR" # Let the user override the test.
8057 else
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059 for as_dir in $PATH
8060 do
8061 IFS=$as_save_IFS
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8065 ac_cv_prog_AR="${ncn_progname}"
8066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 break 2
8068 fi
8069 done
8070 done
8071 IFS=$as_save_IFS
8072
8073 fi
8074 fi
8075 AR=$ac_cv_prog_AR
8076 if test -n "$AR"; then
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8078 $as_echo "$AR" >&6; }
8079 else
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }
8082 fi
8083
8084
8085 done
8086 fi
8087
8088 for ncn_progname in ar; do
8089 if test -n "$ncn_tool_prefix"; then
8090 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8091 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093 $as_echo_n "checking for $ac_word... " >&6; }
8094 if test "${ac_cv_prog_AR+set}" = set; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 if test -n "$AR"; then
8098 ac_cv_prog_AR="$AR" # Let the user override the test.
8099 else
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8102 do
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8107 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8110 fi
8111 done
8112 done
8113 IFS=$as_save_IFS
8114
8115 fi
8116 fi
8117 AR=$ac_cv_prog_AR
8118 if test -n "$AR"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8120 $as_echo "$AR" >&6; }
8121 else
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8124 fi
8125
8126
8127 fi
8128 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8130 set dummy ${ncn_progname}; ac_word=$2
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132 $as_echo_n "checking for $ac_word... " >&6; }
8133 if test "${ac_cv_prog_AR+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8136 if test -n "$AR"; then
8137 ac_cv_prog_AR="$AR" # Let the user override the test.
8138 else
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 for as_dir in $PATH
8141 do
8142 IFS=$as_save_IFS
8143 test -z "$as_dir" && as_dir=.
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8146 ac_cv_prog_AR="${ncn_progname}"
8147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148 break 2
8149 fi
8150 done
8151 done
8152 IFS=$as_save_IFS
8153
8154 fi
8155 fi
8156 AR=$ac_cv_prog_AR
8157 if test -n "$AR"; then
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8159 $as_echo "$AR" >&6; }
8160 else
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 $as_echo "no" >&6; }
8163 fi
8164
8165
8166 fi
8167 test -n "$ac_cv_prog_AR" && break
8168 done
8169
8170 if test -z "$ac_cv_prog_AR" ; then
8171 set dummy ar
8172 if test $build = $host ; then
8173 AR="$2"
8174 else
8175 AR="${ncn_tool_prefix}$2"
8176 fi
8177 fi
8178
8179
8180
8181 if test -n "$AS"; then
8182 ac_cv_prog_AS=$AS
8183 elif test -n "$ac_cv_prog_AS"; then
8184 AS=$ac_cv_prog_AS
8185 fi
8186
8187 if test -n "$ac_cv_prog_AS"; then
8188 for ncn_progname in as; do
8189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8190 set dummy ${ncn_progname}; ac_word=$2
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8192 $as_echo_n "checking for $ac_word... " >&6; }
8193 if test "${ac_cv_prog_AS+set}" = set; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 if test -n "$AS"; then
8197 ac_cv_prog_AS="$AS" # Let the user override the test.
8198 else
8199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200 for as_dir in $PATH
8201 do
8202 IFS=$as_save_IFS
8203 test -z "$as_dir" && as_dir=.
8204 for ac_exec_ext in '' $ac_executable_extensions; do
8205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8206 ac_cv_prog_AS="${ncn_progname}"
8207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8208 break 2
8209 fi
8210 done
8211 done
8212 IFS=$as_save_IFS
8213
8214 fi
8215 fi
8216 AS=$ac_cv_prog_AS
8217 if test -n "$AS"; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8219 $as_echo "$AS" >&6; }
8220 else
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8223 fi
8224
8225
8226 done
8227 fi
8228
8229 for ncn_progname in as; do
8230 if test -n "$ncn_tool_prefix"; then
8231 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8232 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234 $as_echo_n "checking for $ac_word... " >&6; }
8235 if test "${ac_cv_prog_AS+set}" = set; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 if test -n "$AS"; then
8239 ac_cv_prog_AS="$AS" # Let the user override the test.
8240 else
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242 for as_dir in $PATH
8243 do
8244 IFS=$as_save_IFS
8245 test -z "$as_dir" && as_dir=.
8246 for ac_exec_ext in '' $ac_executable_extensions; do
8247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8248 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8250 break 2
8251 fi
8252 done
8253 done
8254 IFS=$as_save_IFS
8255
8256 fi
8257 fi
8258 AS=$ac_cv_prog_AS
8259 if test -n "$AS"; then
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8261 $as_echo "$AS" >&6; }
8262 else
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264 $as_echo "no" >&6; }
8265 fi
8266
8267
8268 fi
8269 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8271 set dummy ${ncn_progname}; ac_word=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if test "${ac_cv_prog_AS+set}" = set; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 if test -n "$AS"; then
8278 ac_cv_prog_AS="$AS" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8282 do
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8287 ac_cv_prog_AS="${ncn_progname}"
8288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8289 break 2
8290 fi
8291 done
8292 done
8293 IFS=$as_save_IFS
8294
8295 fi
8296 fi
8297 AS=$ac_cv_prog_AS
8298 if test -n "$AS"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8300 $as_echo "$AS" >&6; }
8301 else
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8304 fi
8305
8306
8307 fi
8308 test -n "$ac_cv_prog_AS" && break
8309 done
8310
8311 if test -z "$ac_cv_prog_AS" ; then
8312 set dummy as
8313 if test $build = $host ; then
8314 AS="$2"
8315 else
8316 AS="${ncn_tool_prefix}$2"
8317 fi
8318 fi
8319
8320
8321
8322 if test -n "$DLLTOOL"; then
8323 ac_cv_prog_DLLTOOL=$DLLTOOL
8324 elif test -n "$ac_cv_prog_DLLTOOL"; then
8325 DLLTOOL=$ac_cv_prog_DLLTOOL
8326 fi
8327
8328 if test -n "$ac_cv_prog_DLLTOOL"; then
8329 for ncn_progname in dlltool; do
8330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8331 set dummy ${ncn_progname}; ac_word=$2
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8333 $as_echo_n "checking for $ac_word... " >&6; }
8334 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 if test -n "$DLLTOOL"; then
8338 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8339 else
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341 for as_dir in $PATH
8342 do
8343 IFS=$as_save_IFS
8344 test -z "$as_dir" && as_dir=.
8345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8347 ac_cv_prog_DLLTOOL="${ncn_progname}"
8348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8349 break 2
8350 fi
8351 done
8352 done
8353 IFS=$as_save_IFS
8354
8355 fi
8356 fi
8357 DLLTOOL=$ac_cv_prog_DLLTOOL
8358 if test -n "$DLLTOOL"; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8360 $as_echo "$DLLTOOL" >&6; }
8361 else
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363 $as_echo "no" >&6; }
8364 fi
8365
8366
8367 done
8368 fi
8369
8370 for ncn_progname in dlltool; do
8371 if test -n "$ncn_tool_prefix"; then
8372 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8373 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8377 $as_echo_n "(cached) " >&6
8378 else
8379 if test -n "$DLLTOOL"; then
8380 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8381 else
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383 for as_dir in $PATH
8384 do
8385 IFS=$as_save_IFS
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8389 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 break 2
8392 fi
8393 done
8394 done
8395 IFS=$as_save_IFS
8396
8397 fi
8398 fi
8399 DLLTOOL=$ac_cv_prog_DLLTOOL
8400 if test -n "$DLLTOOL"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8402 $as_echo "$DLLTOOL" >&6; }
8403 else
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8406 fi
8407
8408
8409 fi
8410 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8412 set dummy ${ncn_progname}; ac_word=$2
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414 $as_echo_n "checking for $ac_word... " >&6; }
8415 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
8417 else
8418 if test -n "$DLLTOOL"; then
8419 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8420 else
8421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422 for as_dir in $PATH
8423 do
8424 IFS=$as_save_IFS
8425 test -z "$as_dir" && as_dir=.
8426 for ac_exec_ext in '' $ac_executable_extensions; do
8427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8428 ac_cv_prog_DLLTOOL="${ncn_progname}"
8429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8430 break 2
8431 fi
8432 done
8433 done
8434 IFS=$as_save_IFS
8435
8436 fi
8437 fi
8438 DLLTOOL=$ac_cv_prog_DLLTOOL
8439 if test -n "$DLLTOOL"; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8441 $as_echo "$DLLTOOL" >&6; }
8442 else
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444 $as_echo "no" >&6; }
8445 fi
8446
8447
8448 fi
8449 test -n "$ac_cv_prog_DLLTOOL" && break
8450 done
8451
8452 if test -z "$ac_cv_prog_DLLTOOL" ; then
8453 set dummy dlltool
8454 if test $build = $host ; then
8455 DLLTOOL="$2"
8456 else
8457 DLLTOOL="${ncn_tool_prefix}$2"
8458 fi
8459 fi
8460
8461
8462
8463 if test -n "$LD"; then
8464 ac_cv_prog_LD=$LD
8465 elif test -n "$ac_cv_prog_LD"; then
8466 LD=$ac_cv_prog_LD
8467 fi
8468
8469 if test -n "$ac_cv_prog_LD"; then
8470 for ncn_progname in ld; do
8471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8472 set dummy ${ncn_progname}; ac_word=$2
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474 $as_echo_n "checking for $ac_word... " >&6; }
8475 if test "${ac_cv_prog_LD+set}" = set; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 if test -n "$LD"; then
8479 ac_cv_prog_LD="$LD" # Let the user override the test.
8480 else
8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 for as_dir in $PATH
8483 do
8484 IFS=$as_save_IFS
8485 test -z "$as_dir" && as_dir=.
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8488 ac_cv_prog_LD="${ncn_progname}"
8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490 break 2
8491 fi
8492 done
8493 done
8494 IFS=$as_save_IFS
8495
8496 fi
8497 fi
8498 LD=$ac_cv_prog_LD
8499 if test -n "$LD"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8501 $as_echo "$LD" >&6; }
8502 else
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8505 fi
8506
8507
8508 done
8509 fi
8510
8511 for ncn_progname in ld; do
8512 if test -n "$ncn_tool_prefix"; then
8513 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8514 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8516 $as_echo_n "checking for $ac_word... " >&6; }
8517 if test "${ac_cv_prog_LD+set}" = set; then :
8518 $as_echo_n "(cached) " >&6
8519 else
8520 if test -n "$LD"; then
8521 ac_cv_prog_LD="$LD" # Let the user override the test.
8522 else
8523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524 for as_dir in $PATH
8525 do
8526 IFS=$as_save_IFS
8527 test -z "$as_dir" && as_dir=.
8528 for ac_exec_ext in '' $ac_executable_extensions; do
8529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8530 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8532 break 2
8533 fi
8534 done
8535 done
8536 IFS=$as_save_IFS
8537
8538 fi
8539 fi
8540 LD=$ac_cv_prog_LD
8541 if test -n "$LD"; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8543 $as_echo "$LD" >&6; }
8544 else
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8547 fi
8548
8549
8550 fi
8551 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8553 set dummy ${ncn_progname}; ac_word=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if test "${ac_cv_prog_LD+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 if test -n "$LD"; then
8560 ac_cv_prog_LD="$LD" # Let the user override the test.
8561 else
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 for as_dir in $PATH
8564 do
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8569 ac_cv_prog_LD="${ncn_progname}"
8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571 break 2
8572 fi
8573 done
8574 done
8575 IFS=$as_save_IFS
8576
8577 fi
8578 fi
8579 LD=$ac_cv_prog_LD
8580 if test -n "$LD"; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8582 $as_echo "$LD" >&6; }
8583 else
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8586 fi
8587
8588
8589 fi
8590 test -n "$ac_cv_prog_LD" && break
8591 done
8592
8593 if test -z "$ac_cv_prog_LD" ; then
8594 set dummy ld
8595 if test $build = $host ; then
8596 LD="$2"
8597 else
8598 LD="${ncn_tool_prefix}$2"
8599 fi
8600 fi
8601
8602
8603
8604 if test -n "$LIPO"; then
8605 ac_cv_prog_LIPO=$LIPO
8606 elif test -n "$ac_cv_prog_LIPO"; then
8607 LIPO=$ac_cv_prog_LIPO
8608 fi
8609
8610 if test -n "$ac_cv_prog_LIPO"; then
8611 for ncn_progname in lipo; do
8612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8613 set dummy ${ncn_progname}; ac_word=$2
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 $as_echo_n "checking for $ac_word... " >&6; }
8616 if test "${ac_cv_prog_LIPO+set}" = set; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619 if test -n "$LIPO"; then
8620 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8621 else
8622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 for as_dir in $PATH
8624 do
8625 IFS=$as_save_IFS
8626 test -z "$as_dir" && as_dir=.
8627 for ac_exec_ext in '' $ac_executable_extensions; do
8628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8629 ac_cv_prog_LIPO="${ncn_progname}"
8630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8631 break 2
8632 fi
8633 done
8634 done
8635 IFS=$as_save_IFS
8636
8637 fi
8638 fi
8639 LIPO=$ac_cv_prog_LIPO
8640 if test -n "$LIPO"; then
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8642 $as_echo "$LIPO" >&6; }
8643 else
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8645 $as_echo "no" >&6; }
8646 fi
8647
8648
8649 done
8650 fi
8651
8652 for ncn_progname in lipo; do
8653 if test -n "$ncn_tool_prefix"; then
8654 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8655 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8657 $as_echo_n "checking for $ac_word... " >&6; }
8658 if test "${ac_cv_prog_LIPO+set}" = set; then :
8659 $as_echo_n "(cached) " >&6
8660 else
8661 if test -n "$LIPO"; then
8662 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8663 else
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665 for as_dir in $PATH
8666 do
8667 IFS=$as_save_IFS
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8671 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8673 break 2
8674 fi
8675 done
8676 done
8677 IFS=$as_save_IFS
8678
8679 fi
8680 fi
8681 LIPO=$ac_cv_prog_LIPO
8682 if test -n "$LIPO"; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8684 $as_echo "$LIPO" >&6; }
8685 else
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687 $as_echo "no" >&6; }
8688 fi
8689
8690
8691 fi
8692 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8694 set dummy ${ncn_progname}; ac_word=$2
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8696 $as_echo_n "checking for $ac_word... " >&6; }
8697 if test "${ac_cv_prog_LIPO+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 if test -n "$LIPO"; then
8701 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8702 else
8703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704 for as_dir in $PATH
8705 do
8706 IFS=$as_save_IFS
8707 test -z "$as_dir" && as_dir=.
8708 for ac_exec_ext in '' $ac_executable_extensions; do
8709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8710 ac_cv_prog_LIPO="${ncn_progname}"
8711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8712 break 2
8713 fi
8714 done
8715 done
8716 IFS=$as_save_IFS
8717
8718 fi
8719 fi
8720 LIPO=$ac_cv_prog_LIPO
8721 if test -n "$LIPO"; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8723 $as_echo "$LIPO" >&6; }
8724 else
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8727 fi
8728
8729
8730 fi
8731 test -n "$ac_cv_prog_LIPO" && break
8732 done
8733
8734 if test -z "$ac_cv_prog_LIPO" ; then
8735 set dummy lipo
8736 if test $build = $host ; then
8737 LIPO="$2"
8738 else
8739 LIPO="${ncn_tool_prefix}$2"
8740 fi
8741 fi
8742
8743
8744
8745 if test -n "$NM"; then
8746 ac_cv_prog_NM=$NM
8747 elif test -n "$ac_cv_prog_NM"; then
8748 NM=$ac_cv_prog_NM
8749 fi
8750
8751 if test -n "$ac_cv_prog_NM"; then
8752 for ncn_progname in nm; do
8753 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8754 set dummy ${ncn_progname}; ac_word=$2
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8756 $as_echo_n "checking for $ac_word... " >&6; }
8757 if test "${ac_cv_prog_NM+set}" = set; then :
8758 $as_echo_n "(cached) " >&6
8759 else
8760 if test -n "$NM"; then
8761 ac_cv_prog_NM="$NM" # Let the user override the test.
8762 else
8763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8764 for as_dir in $PATH
8765 do
8766 IFS=$as_save_IFS
8767 test -z "$as_dir" && as_dir=.
8768 for ac_exec_ext in '' $ac_executable_extensions; do
8769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8770 ac_cv_prog_NM="${ncn_progname}"
8771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8772 break 2
8773 fi
8774 done
8775 done
8776 IFS=$as_save_IFS
8777
8778 fi
8779 fi
8780 NM=$ac_cv_prog_NM
8781 if test -n "$NM"; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8783 $as_echo "$NM" >&6; }
8784 else
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8786 $as_echo "no" >&6; }
8787 fi
8788
8789
8790 done
8791 fi
8792
8793 for ncn_progname in nm; do
8794 if test -n "$ncn_tool_prefix"; then
8795 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8796 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8798 $as_echo_n "checking for $ac_word... " >&6; }
8799 if test "${ac_cv_prog_NM+set}" = set; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 if test -n "$NM"; then
8803 ac_cv_prog_NM="$NM" # Let the user override the test.
8804 else
8805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 for as_dir in $PATH
8807 do
8808 IFS=$as_save_IFS
8809 test -z "$as_dir" && as_dir=.
8810 for ac_exec_ext in '' $ac_executable_extensions; do
8811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8812 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8814 break 2
8815 fi
8816 done
8817 done
8818 IFS=$as_save_IFS
8819
8820 fi
8821 fi
8822 NM=$ac_cv_prog_NM
8823 if test -n "$NM"; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8825 $as_echo "$NM" >&6; }
8826 else
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828 $as_echo "no" >&6; }
8829 fi
8830
8831
8832 fi
8833 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8835 set dummy ${ncn_progname}; ac_word=$2
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837 $as_echo_n "checking for $ac_word... " >&6; }
8838 if test "${ac_cv_prog_NM+set}" = set; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 if test -n "$NM"; then
8842 ac_cv_prog_NM="$NM" # Let the user override the test.
8843 else
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 for as_dir in $PATH
8846 do
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8851 ac_cv_prog_NM="${ncn_progname}"
8852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8853 break 2
8854 fi
8855 done
8856 done
8857 IFS=$as_save_IFS
8858
8859 fi
8860 fi
8861 NM=$ac_cv_prog_NM
8862 if test -n "$NM"; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8864 $as_echo "$NM" >&6; }
8865 else
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867 $as_echo "no" >&6; }
8868 fi
8869
8870
8871 fi
8872 test -n "$ac_cv_prog_NM" && break
8873 done
8874
8875 if test -z "$ac_cv_prog_NM" ; then
8876 set dummy nm
8877 if test $build = $host ; then
8878 NM="$2"
8879 else
8880 NM="${ncn_tool_prefix}$2"
8881 fi
8882 fi
8883
8884
8885
8886 if test -n "$RANLIB"; then
8887 ac_cv_prog_RANLIB=$RANLIB
8888 elif test -n "$ac_cv_prog_RANLIB"; then
8889 RANLIB=$ac_cv_prog_RANLIB
8890 fi
8891
8892 if test -n "$ac_cv_prog_RANLIB"; then
8893 for ncn_progname in ranlib; do
8894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8895 set dummy ${ncn_progname}; ac_word=$2
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897 $as_echo_n "checking for $ac_word... " >&6; }
8898 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 if test -n "$RANLIB"; then
8902 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8903 else
8904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905 for as_dir in $PATH
8906 do
8907 IFS=$as_save_IFS
8908 test -z "$as_dir" && as_dir=.
8909 for ac_exec_ext in '' $ac_executable_extensions; do
8910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8911 ac_cv_prog_RANLIB="${ncn_progname}"
8912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8913 break 2
8914 fi
8915 done
8916 done
8917 IFS=$as_save_IFS
8918
8919 fi
8920 fi
8921 RANLIB=$ac_cv_prog_RANLIB
8922 if test -n "$RANLIB"; then
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8924 $as_echo "$RANLIB" >&6; }
8925 else
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8927 $as_echo "no" >&6; }
8928 fi
8929
8930
8931 done
8932 fi
8933
8934 for ncn_progname in ranlib; do
8935 if test -n "$ncn_tool_prefix"; then
8936 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8937 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8939 $as_echo_n "checking for $ac_word... " >&6; }
8940 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 if test -n "$RANLIB"; then
8944 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8945 else
8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8947 for as_dir in $PATH
8948 do
8949 IFS=$as_save_IFS
8950 test -z "$as_dir" && as_dir=.
8951 for ac_exec_ext in '' $ac_executable_extensions; do
8952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8953 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8955 break 2
8956 fi
8957 done
8958 done
8959 IFS=$as_save_IFS
8960
8961 fi
8962 fi
8963 RANLIB=$ac_cv_prog_RANLIB
8964 if test -n "$RANLIB"; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8966 $as_echo "$RANLIB" >&6; }
8967 else
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969 $as_echo "no" >&6; }
8970 fi
8971
8972
8973 fi
8974 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8976 set dummy ${ncn_progname}; ac_word=$2
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8978 $as_echo_n "checking for $ac_word... " >&6; }
8979 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 if test -n "$RANLIB"; then
8983 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8984 else
8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986 for as_dir in $PATH
8987 do
8988 IFS=$as_save_IFS
8989 test -z "$as_dir" && as_dir=.
8990 for ac_exec_ext in '' $ac_executable_extensions; do
8991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8992 ac_cv_prog_RANLIB="${ncn_progname}"
8993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8994 break 2
8995 fi
8996 done
8997 done
8998 IFS=$as_save_IFS
8999
9000 fi
9001 fi
9002 RANLIB=$ac_cv_prog_RANLIB
9003 if test -n "$RANLIB"; then
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9005 $as_echo "$RANLIB" >&6; }
9006 else
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9008 $as_echo "no" >&6; }
9009 fi
9010
9011
9012 fi
9013 test -n "$ac_cv_prog_RANLIB" && break
9014 done
9015
9016 if test -z "$ac_cv_prog_RANLIB" ; then
9017 RANLIB="true"
9018 fi
9019
9020
9021
9022 if test -n "$STRIP"; then
9023 ac_cv_prog_STRIP=$STRIP
9024 elif test -n "$ac_cv_prog_STRIP"; then
9025 STRIP=$ac_cv_prog_STRIP
9026 fi
9027
9028 if test -n "$ac_cv_prog_STRIP"; then
9029 for ncn_progname in strip; do
9030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9031 set dummy ${ncn_progname}; ac_word=$2
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9033 $as_echo_n "checking for $ac_word... " >&6; }
9034 if test "${ac_cv_prog_STRIP+set}" = set; then :
9035 $as_echo_n "(cached) " >&6
9036 else
9037 if test -n "$STRIP"; then
9038 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9039 else
9040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041 for as_dir in $PATH
9042 do
9043 IFS=$as_save_IFS
9044 test -z "$as_dir" && as_dir=.
9045 for ac_exec_ext in '' $ac_executable_extensions; do
9046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9047 ac_cv_prog_STRIP="${ncn_progname}"
9048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9049 break 2
9050 fi
9051 done
9052 done
9053 IFS=$as_save_IFS
9054
9055 fi
9056 fi
9057 STRIP=$ac_cv_prog_STRIP
9058 if test -n "$STRIP"; then
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9060 $as_echo "$STRIP" >&6; }
9061 else
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063 $as_echo "no" >&6; }
9064 fi
9065
9066
9067 done
9068 fi
9069
9070 for ncn_progname in strip; do
9071 if test -n "$ncn_tool_prefix"; then
9072 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9073 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9075 $as_echo_n "checking for $ac_word... " >&6; }
9076 if test "${ac_cv_prog_STRIP+set}" = set; then :
9077 $as_echo_n "(cached) " >&6
9078 else
9079 if test -n "$STRIP"; then
9080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9081 else
9082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9083 for as_dir in $PATH
9084 do
9085 IFS=$as_save_IFS
9086 test -z "$as_dir" && as_dir=.
9087 for ac_exec_ext in '' $ac_executable_extensions; do
9088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9089 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9091 break 2
9092 fi
9093 done
9094 done
9095 IFS=$as_save_IFS
9096
9097 fi
9098 fi
9099 STRIP=$ac_cv_prog_STRIP
9100 if test -n "$STRIP"; then
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9102 $as_echo "$STRIP" >&6; }
9103 else
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 $as_echo "no" >&6; }
9106 fi
9107
9108
9109 fi
9110 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9112 set dummy ${ncn_progname}; ac_word=$2
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114 $as_echo_n "checking for $ac_word... " >&6; }
9115 if test "${ac_cv_prog_STRIP+set}" = set; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 if test -n "$STRIP"; then
9119 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9120 else
9121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122 for as_dir in $PATH
9123 do
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9128 ac_cv_prog_STRIP="${ncn_progname}"
9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 break 2
9131 fi
9132 done
9133 done
9134 IFS=$as_save_IFS
9135
9136 fi
9137 fi
9138 STRIP=$ac_cv_prog_STRIP
9139 if test -n "$STRIP"; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9141 $as_echo "$STRIP" >&6; }
9142 else
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144 $as_echo "no" >&6; }
9145 fi
9146
9147
9148 fi
9149 test -n "$ac_cv_prog_STRIP" && break
9150 done
9151
9152 if test -z "$ac_cv_prog_STRIP" ; then
9153 STRIP="true"
9154 fi
9155
9156
9157
9158 if test -n "$WINDRES"; then
9159 ac_cv_prog_WINDRES=$WINDRES
9160 elif test -n "$ac_cv_prog_WINDRES"; then
9161 WINDRES=$ac_cv_prog_WINDRES
9162 fi
9163
9164 if test -n "$ac_cv_prog_WINDRES"; then
9165 for ncn_progname in windres; do
9166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9167 set dummy ${ncn_progname}; ac_word=$2
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9169 $as_echo_n "checking for $ac_word... " >&6; }
9170 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9171 $as_echo_n "(cached) " >&6
9172 else
9173 if test -n "$WINDRES"; then
9174 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9175 else
9176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177 for as_dir in $PATH
9178 do
9179 IFS=$as_save_IFS
9180 test -z "$as_dir" && as_dir=.
9181 for ac_exec_ext in '' $ac_executable_extensions; do
9182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9183 ac_cv_prog_WINDRES="${ncn_progname}"
9184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9185 break 2
9186 fi
9187 done
9188 done
9189 IFS=$as_save_IFS
9190
9191 fi
9192 fi
9193 WINDRES=$ac_cv_prog_WINDRES
9194 if test -n "$WINDRES"; then
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9196 $as_echo "$WINDRES" >&6; }
9197 else
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199 $as_echo "no" >&6; }
9200 fi
9201
9202
9203 done
9204 fi
9205
9206 for ncn_progname in windres; do
9207 if test -n "$ncn_tool_prefix"; then
9208 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9209 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9211 $as_echo_n "checking for $ac_word... " >&6; }
9212 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9213 $as_echo_n "(cached) " >&6
9214 else
9215 if test -n "$WINDRES"; then
9216 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9217 else
9218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9219 for as_dir in $PATH
9220 do
9221 IFS=$as_save_IFS
9222 test -z "$as_dir" && as_dir=.
9223 for ac_exec_ext in '' $ac_executable_extensions; do
9224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9225 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9227 break 2
9228 fi
9229 done
9230 done
9231 IFS=$as_save_IFS
9232
9233 fi
9234 fi
9235 WINDRES=$ac_cv_prog_WINDRES
9236 if test -n "$WINDRES"; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9238 $as_echo "$WINDRES" >&6; }
9239 else
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241 $as_echo "no" >&6; }
9242 fi
9243
9244
9245 fi
9246 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9248 set dummy ${ncn_progname}; ac_word=$2
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9250 $as_echo_n "checking for $ac_word... " >&6; }
9251 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9252 $as_echo_n "(cached) " >&6
9253 else
9254 if test -n "$WINDRES"; then
9255 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9256 else
9257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258 for as_dir in $PATH
9259 do
9260 IFS=$as_save_IFS
9261 test -z "$as_dir" && as_dir=.
9262 for ac_exec_ext in '' $ac_executable_extensions; do
9263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9264 ac_cv_prog_WINDRES="${ncn_progname}"
9265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9266 break 2
9267 fi
9268 done
9269 done
9270 IFS=$as_save_IFS
9271
9272 fi
9273 fi
9274 WINDRES=$ac_cv_prog_WINDRES
9275 if test -n "$WINDRES"; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9277 $as_echo "$WINDRES" >&6; }
9278 else
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280 $as_echo "no" >&6; }
9281 fi
9282
9283
9284 fi
9285 test -n "$ac_cv_prog_WINDRES" && break
9286 done
9287
9288 if test -z "$ac_cv_prog_WINDRES" ; then
9289 set dummy windres
9290 if test $build = $host ; then
9291 WINDRES="$2"
9292 else
9293 WINDRES="${ncn_tool_prefix}$2"
9294 fi
9295 fi
9296
9297
9298
9299 if test -n "$WINDMC"; then
9300 ac_cv_prog_WINDMC=$WINDMC
9301 elif test -n "$ac_cv_prog_WINDMC"; then
9302 WINDMC=$ac_cv_prog_WINDMC
9303 fi
9304
9305 if test -n "$ac_cv_prog_WINDMC"; then
9306 for ncn_progname in windmc; do
9307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9308 set dummy ${ncn_progname}; ac_word=$2
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9310 $as_echo_n "checking for $ac_word... " >&6; }
9311 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9312 $as_echo_n "(cached) " >&6
9313 else
9314 if test -n "$WINDMC"; then
9315 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9316 else
9317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9318 for as_dir in $PATH
9319 do
9320 IFS=$as_save_IFS
9321 test -z "$as_dir" && as_dir=.
9322 for ac_exec_ext in '' $ac_executable_extensions; do
9323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9324 ac_cv_prog_WINDMC="${ncn_progname}"
9325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9326 break 2
9327 fi
9328 done
9329 done
9330 IFS=$as_save_IFS
9331
9332 fi
9333 fi
9334 WINDMC=$ac_cv_prog_WINDMC
9335 if test -n "$WINDMC"; then
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9337 $as_echo "$WINDMC" >&6; }
9338 else
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9340 $as_echo "no" >&6; }
9341 fi
9342
9343
9344 done
9345 fi
9346
9347 for ncn_progname in windmc; do
9348 if test -n "$ncn_tool_prefix"; then
9349 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9350 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9352 $as_echo_n "checking for $ac_word... " >&6; }
9353 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356 if test -n "$WINDMC"; then
9357 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9358 else
9359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9360 for as_dir in $PATH
9361 do
9362 IFS=$as_save_IFS
9363 test -z "$as_dir" && as_dir=.
9364 for ac_exec_ext in '' $ac_executable_extensions; do
9365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9366 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9368 break 2
9369 fi
9370 done
9371 done
9372 IFS=$as_save_IFS
9373
9374 fi
9375 fi
9376 WINDMC=$ac_cv_prog_WINDMC
9377 if test -n "$WINDMC"; then
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9379 $as_echo "$WINDMC" >&6; }
9380 else
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9382 $as_echo "no" >&6; }
9383 fi
9384
9385
9386 fi
9387 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9389 set dummy ${ncn_progname}; ac_word=$2
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9391 $as_echo_n "checking for $ac_word... " >&6; }
9392 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9393 $as_echo_n "(cached) " >&6
9394 else
9395 if test -n "$WINDMC"; then
9396 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9397 else
9398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9399 for as_dir in $PATH
9400 do
9401 IFS=$as_save_IFS
9402 test -z "$as_dir" && as_dir=.
9403 for ac_exec_ext in '' $ac_executable_extensions; do
9404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9405 ac_cv_prog_WINDMC="${ncn_progname}"
9406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9407 break 2
9408 fi
9409 done
9410 done
9411 IFS=$as_save_IFS
9412
9413 fi
9414 fi
9415 WINDMC=$ac_cv_prog_WINDMC
9416 if test -n "$WINDMC"; then
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9418 $as_echo "$WINDMC" >&6; }
9419 else
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9421 $as_echo "no" >&6; }
9422 fi
9423
9424
9425 fi
9426 test -n "$ac_cv_prog_WINDMC" && break
9427 done
9428
9429 if test -z "$ac_cv_prog_WINDMC" ; then
9430 set dummy windmc
9431 if test $build = $host ; then
9432 WINDMC="$2"
9433 else
9434 WINDMC="${ncn_tool_prefix}$2"
9435 fi
9436 fi
9437
9438
9439
9440 if test -n "$OBJCOPY"; then
9441 ac_cv_prog_OBJCOPY=$OBJCOPY
9442 elif test -n "$ac_cv_prog_OBJCOPY"; then
9443 OBJCOPY=$ac_cv_prog_OBJCOPY
9444 fi
9445
9446 if test -n "$ac_cv_prog_OBJCOPY"; then
9447 for ncn_progname in objcopy; do
9448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9449 set dummy ${ncn_progname}; ac_word=$2
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9451 $as_echo_n "checking for $ac_word... " >&6; }
9452 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9453 $as_echo_n "(cached) " >&6
9454 else
9455 if test -n "$OBJCOPY"; then
9456 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9457 else
9458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9459 for as_dir in $PATH
9460 do
9461 IFS=$as_save_IFS
9462 test -z "$as_dir" && as_dir=.
9463 for ac_exec_ext in '' $ac_executable_extensions; do
9464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9465 ac_cv_prog_OBJCOPY="${ncn_progname}"
9466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9467 break 2
9468 fi
9469 done
9470 done
9471 IFS=$as_save_IFS
9472
9473 fi
9474 fi
9475 OBJCOPY=$ac_cv_prog_OBJCOPY
9476 if test -n "$OBJCOPY"; then
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9478 $as_echo "$OBJCOPY" >&6; }
9479 else
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481 $as_echo "no" >&6; }
9482 fi
9483
9484
9485 done
9486 fi
9487
9488 for ncn_progname in objcopy; do
9489 if test -n "$ncn_tool_prefix"; then
9490 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9491 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9493 $as_echo_n "checking for $ac_word... " >&6; }
9494 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9497 if test -n "$OBJCOPY"; then
9498 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9499 else
9500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501 for as_dir in $PATH
9502 do
9503 IFS=$as_save_IFS
9504 test -z "$as_dir" && as_dir=.
9505 for ac_exec_ext in '' $ac_executable_extensions; do
9506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9507 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9509 break 2
9510 fi
9511 done
9512 done
9513 IFS=$as_save_IFS
9514
9515 fi
9516 fi
9517 OBJCOPY=$ac_cv_prog_OBJCOPY
9518 if test -n "$OBJCOPY"; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9520 $as_echo "$OBJCOPY" >&6; }
9521 else
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9524 fi
9525
9526
9527 fi
9528 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9530 set dummy ${ncn_progname}; ac_word=$2
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9532 $as_echo_n "checking for $ac_word... " >&6; }
9533 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9534 $as_echo_n "(cached) " >&6
9535 else
9536 if test -n "$OBJCOPY"; then
9537 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9538 else
9539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540 for as_dir in $PATH
9541 do
9542 IFS=$as_save_IFS
9543 test -z "$as_dir" && as_dir=.
9544 for ac_exec_ext in '' $ac_executable_extensions; do
9545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9546 ac_cv_prog_OBJCOPY="${ncn_progname}"
9547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9548 break 2
9549 fi
9550 done
9551 done
9552 IFS=$as_save_IFS
9553
9554 fi
9555 fi
9556 OBJCOPY=$ac_cv_prog_OBJCOPY
9557 if test -n "$OBJCOPY"; then
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9559 $as_echo "$OBJCOPY" >&6; }
9560 else
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562 $as_echo "no" >&6; }
9563 fi
9564
9565
9566 fi
9567 test -n "$ac_cv_prog_OBJCOPY" && break
9568 done
9569
9570 if test -z "$ac_cv_prog_OBJCOPY" ; then
9571 set dummy objcopy
9572 if test $build = $host ; then
9573 OBJCOPY="$2"
9574 else
9575 OBJCOPY="${ncn_tool_prefix}$2"
9576 fi
9577 fi
9578
9579
9580
9581 if test -n "$OBJDUMP"; then
9582 ac_cv_prog_OBJDUMP=$OBJDUMP
9583 elif test -n "$ac_cv_prog_OBJDUMP"; then
9584 OBJDUMP=$ac_cv_prog_OBJDUMP
9585 fi
9586
9587 if test -n "$ac_cv_prog_OBJDUMP"; then
9588 for ncn_progname in objdump; do
9589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9590 set dummy ${ncn_progname}; ac_word=$2
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9592 $as_echo_n "checking for $ac_word... " >&6; }
9593 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 if test -n "$OBJDUMP"; then
9597 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9598 else
9599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600 for as_dir in $PATH
9601 do
9602 IFS=$as_save_IFS
9603 test -z "$as_dir" && as_dir=.
9604 for ac_exec_ext in '' $ac_executable_extensions; do
9605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9606 ac_cv_prog_OBJDUMP="${ncn_progname}"
9607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9608 break 2
9609 fi
9610 done
9611 done
9612 IFS=$as_save_IFS
9613
9614 fi
9615 fi
9616 OBJDUMP=$ac_cv_prog_OBJDUMP
9617 if test -n "$OBJDUMP"; then
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9619 $as_echo "$OBJDUMP" >&6; }
9620 else
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9622 $as_echo "no" >&6; }
9623 fi
9624
9625
9626 done
9627 fi
9628
9629 for ncn_progname in objdump; do
9630 if test -n "$ncn_tool_prefix"; then
9631 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9632 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634 $as_echo_n "checking for $ac_word... " >&6; }
9635 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9638 if test -n "$OBJDUMP"; then
9639 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9640 else
9641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642 for as_dir in $PATH
9643 do
9644 IFS=$as_save_IFS
9645 test -z "$as_dir" && as_dir=.
9646 for ac_exec_ext in '' $ac_executable_extensions; do
9647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9648 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9650 break 2
9651 fi
9652 done
9653 done
9654 IFS=$as_save_IFS
9655
9656 fi
9657 fi
9658 OBJDUMP=$ac_cv_prog_OBJDUMP
9659 if test -n "$OBJDUMP"; then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9661 $as_echo "$OBJDUMP" >&6; }
9662 else
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664 $as_echo "no" >&6; }
9665 fi
9666
9667
9668 fi
9669 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9671 set dummy ${ncn_progname}; ac_word=$2
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9673 $as_echo_n "checking for $ac_word... " >&6; }
9674 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9675 $as_echo_n "(cached) " >&6
9676 else
9677 if test -n "$OBJDUMP"; then
9678 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9679 else
9680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 for as_dir in $PATH
9682 do
9683 IFS=$as_save_IFS
9684 test -z "$as_dir" && as_dir=.
9685 for ac_exec_ext in '' $ac_executable_extensions; do
9686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9687 ac_cv_prog_OBJDUMP="${ncn_progname}"
9688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9689 break 2
9690 fi
9691 done
9692 done
9693 IFS=$as_save_IFS
9694
9695 fi
9696 fi
9697 OBJDUMP=$ac_cv_prog_OBJDUMP
9698 if test -n "$OBJDUMP"; then
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9700 $as_echo "$OBJDUMP" >&6; }
9701 else
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9703 $as_echo "no" >&6; }
9704 fi
9705
9706
9707 fi
9708 test -n "$ac_cv_prog_OBJDUMP" && break
9709 done
9710
9711 if test -z "$ac_cv_prog_OBJDUMP" ; then
9712 set dummy objdump
9713 if test $build = $host ; then
9714 OBJDUMP="$2"
9715 else
9716 OBJDUMP="${ncn_tool_prefix}$2"
9717 fi
9718 fi
9719
9720
9721
9722 if test -n "$READELF"; then
9723 ac_cv_prog_READELF=$READELF
9724 elif test -n "$ac_cv_prog_READELF"; then
9725 READELF=$ac_cv_prog_READELF
9726 fi
9727
9728 if test -n "$ac_cv_prog_READELF"; then
9729 for ncn_progname in readelf; do
9730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9731 set dummy ${ncn_progname}; ac_word=$2
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9733 $as_echo_n "checking for $ac_word... " >&6; }
9734 if test "${ac_cv_prog_READELF+set}" = set; then :
9735 $as_echo_n "(cached) " >&6
9736 else
9737 if test -n "$READELF"; then
9738 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9739 else
9740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9741 for as_dir in $PATH
9742 do
9743 IFS=$as_save_IFS
9744 test -z "$as_dir" && as_dir=.
9745 for ac_exec_ext in '' $ac_executable_extensions; do
9746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9747 ac_cv_prog_READELF="${ncn_progname}"
9748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9749 break 2
9750 fi
9751 done
9752 done
9753 IFS=$as_save_IFS
9754
9755 fi
9756 fi
9757 READELF=$ac_cv_prog_READELF
9758 if test -n "$READELF"; then
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9760 $as_echo "$READELF" >&6; }
9761 else
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763 $as_echo "no" >&6; }
9764 fi
9765
9766
9767 done
9768 fi
9769
9770 for ncn_progname in readelf; do
9771 if test -n "$ncn_tool_prefix"; then
9772 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9773 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9775 $as_echo_n "checking for $ac_word... " >&6; }
9776 if test "${ac_cv_prog_READELF+set}" = set; then :
9777 $as_echo_n "(cached) " >&6
9778 else
9779 if test -n "$READELF"; then
9780 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9781 else
9782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783 for as_dir in $PATH
9784 do
9785 IFS=$as_save_IFS
9786 test -z "$as_dir" && as_dir=.
9787 for ac_exec_ext in '' $ac_executable_extensions; do
9788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9789 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9791 break 2
9792 fi
9793 done
9794 done
9795 IFS=$as_save_IFS
9796
9797 fi
9798 fi
9799 READELF=$ac_cv_prog_READELF
9800 if test -n "$READELF"; then
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9802 $as_echo "$READELF" >&6; }
9803 else
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805 $as_echo "no" >&6; }
9806 fi
9807
9808
9809 fi
9810 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9812 set dummy ${ncn_progname}; ac_word=$2
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814 $as_echo_n "checking for $ac_word... " >&6; }
9815 if test "${ac_cv_prog_READELF+set}" = set; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 if test -n "$READELF"; then
9819 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9820 else
9821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822 for as_dir in $PATH
9823 do
9824 IFS=$as_save_IFS
9825 test -z "$as_dir" && as_dir=.
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9828 ac_cv_prog_READELF="${ncn_progname}"
9829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9830 break 2
9831 fi
9832 done
9833 done
9834 IFS=$as_save_IFS
9835
9836 fi
9837 fi
9838 READELF=$ac_cv_prog_READELF
9839 if test -n "$READELF"; then
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9841 $as_echo "$READELF" >&6; }
9842 else
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844 $as_echo "no" >&6; }
9845 fi
9846
9847
9848 fi
9849 test -n "$ac_cv_prog_READELF" && break
9850 done
9851
9852 if test -z "$ac_cv_prog_READELF" ; then
9853 set dummy readelf
9854 if test $build = $host ; then
9855 READELF="$2"
9856 else
9857 READELF="${ncn_tool_prefix}$2"
9858 fi
9859 fi
9860
9861
9862
9863
9864
9865
9866 # Target tools.
9867
9868 # Check whether --with-build-time-tools was given.
9869 if test "${with_build_time_tools+set}" = set; then :
9870 withval=$with_build_time_tools; case x"$withval" in
9871 x/*) ;;
9872 *)
9873 with_build_time_tools=
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9875 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9876 ;;
9877 esac
9878 else
9879 with_build_time_tools=
9880 fi
9881
9882
9883
9884
9885 if test -n "$CC_FOR_TARGET"; then
9886 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9887 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9888 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9889 fi
9890
9891 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9892 for ncn_progname in cc gcc; do
9893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9894 set dummy ${ncn_progname}; ac_word=$2
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9896 $as_echo_n "checking for $ac_word... " >&6; }
9897 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9898 $as_echo_n "(cached) " >&6
9899 else
9900 if test -n "$CC_FOR_TARGET"; then
9901 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9902 else
9903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904 for as_dir in $PATH
9905 do
9906 IFS=$as_save_IFS
9907 test -z "$as_dir" && as_dir=.
9908 for ac_exec_ext in '' $ac_executable_extensions; do
9909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9910 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9912 break 2
9913 fi
9914 done
9915 done
9916 IFS=$as_save_IFS
9917
9918 fi
9919 fi
9920 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9921 if test -n "$CC_FOR_TARGET"; then
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9923 $as_echo "$CC_FOR_TARGET" >&6; }
9924 else
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926 $as_echo "no" >&6; }
9927 fi
9928
9929
9930 done
9931 fi
9932
9933 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9934 for ncn_progname in cc gcc; do
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9936 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9937 if test -x $with_build_time_tools/${ncn_progname}; then
9938 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9940 $as_echo "yes" >&6; }
9941 break
9942 else
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944 $as_echo "no" >&6; }
9945 fi
9946 done
9947 fi
9948
9949 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9950 for ncn_progname in cc gcc; do
9951 if test -n "$ncn_target_tool_prefix"; then
9952 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9953 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9955 $as_echo_n "checking for $ac_word... " >&6; }
9956 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9957 $as_echo_n "(cached) " >&6
9958 else
9959 if test -n "$CC_FOR_TARGET"; then
9960 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9961 else
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963 for as_dir in $PATH
9964 do
9965 IFS=$as_save_IFS
9966 test -z "$as_dir" && as_dir=.
9967 for ac_exec_ext in '' $ac_executable_extensions; do
9968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9969 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9971 break 2
9972 fi
9973 done
9974 done
9975 IFS=$as_save_IFS
9976
9977 fi
9978 fi
9979 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9980 if test -n "$CC_FOR_TARGET"; then
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9982 $as_echo "$CC_FOR_TARGET" >&6; }
9983 else
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 $as_echo "no" >&6; }
9986 fi
9987
9988
9989 fi
9990 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9992 set dummy ${ncn_progname}; ac_word=$2
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9994 $as_echo_n "checking for $ac_word... " >&6; }
9995 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9996 $as_echo_n "(cached) " >&6
9997 else
9998 if test -n "$CC_FOR_TARGET"; then
9999 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10000 else
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 for as_dir in $PATH
10003 do
10004 IFS=$as_save_IFS
10005 test -z "$as_dir" && as_dir=.
10006 for ac_exec_ext in '' $ac_executable_extensions; do
10007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10008 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10010 break 2
10011 fi
10012 done
10013 done
10014 IFS=$as_save_IFS
10015
10016 fi
10017 fi
10018 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10019 if test -n "$CC_FOR_TARGET"; then
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10021 $as_echo "$CC_FOR_TARGET" >&6; }
10022 else
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10024 $as_echo "no" >&6; }
10025 fi
10026
10027
10028 fi
10029 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10030 done
10031 fi
10032
10033 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10034 set dummy cc gcc
10035 if test $build = $target ; then
10036 CC_FOR_TARGET="$2"
10037 else
10038 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10039 fi
10040 else
10041 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10042 fi
10043
10044
10045
10046 if test -n "$CXX_FOR_TARGET"; then
10047 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10048 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10049 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10050 fi
10051
10052 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10053 for ncn_progname in c++ g++ cxx gxx; do
10054 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10055 set dummy ${ncn_progname}; ac_word=$2
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10057 $as_echo_n "checking for $ac_word... " >&6; }
10058 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10059 $as_echo_n "(cached) " >&6
10060 else
10061 if test -n "$CXX_FOR_TARGET"; then
10062 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10063 else
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10066 do
10067 IFS=$as_save_IFS
10068 test -z "$as_dir" && as_dir=.
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10071 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073 break 2
10074 fi
10075 done
10076 done
10077 IFS=$as_save_IFS
10078
10079 fi
10080 fi
10081 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10082 if test -n "$CXX_FOR_TARGET"; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10084 $as_echo "$CXX_FOR_TARGET" >&6; }
10085 else
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10088 fi
10089
10090
10091 done
10092 fi
10093
10094 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10095 for ncn_progname in c++ g++ cxx gxx; do
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10097 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10098 if test -x $with_build_time_tools/${ncn_progname}; then
10099 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10101 $as_echo "yes" >&6; }
10102 break
10103 else
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10105 $as_echo "no" >&6; }
10106 fi
10107 done
10108 fi
10109
10110 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10111 for ncn_progname in c++ g++ cxx gxx; do
10112 if test -n "$ncn_target_tool_prefix"; then
10113 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10114 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10116 $as_echo_n "checking for $ac_word... " >&6; }
10117 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10118 $as_echo_n "(cached) " >&6
10119 else
10120 if test -n "$CXX_FOR_TARGET"; then
10121 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10122 else
10123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10124 for as_dir in $PATH
10125 do
10126 IFS=$as_save_IFS
10127 test -z "$as_dir" && as_dir=.
10128 for ac_exec_ext in '' $ac_executable_extensions; do
10129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10130 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10132 break 2
10133 fi
10134 done
10135 done
10136 IFS=$as_save_IFS
10137
10138 fi
10139 fi
10140 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10141 if test -n "$CXX_FOR_TARGET"; then
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10143 $as_echo "$CXX_FOR_TARGET" >&6; }
10144 else
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10146 $as_echo "no" >&6; }
10147 fi
10148
10149
10150 fi
10151 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10153 set dummy ${ncn_progname}; ac_word=$2
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10155 $as_echo_n "checking for $ac_word... " >&6; }
10156 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10157 $as_echo_n "(cached) " >&6
10158 else
10159 if test -n "$CXX_FOR_TARGET"; then
10160 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10161 else
10162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10163 for as_dir in $PATH
10164 do
10165 IFS=$as_save_IFS
10166 test -z "$as_dir" && as_dir=.
10167 for ac_exec_ext in '' $ac_executable_extensions; do
10168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10169 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10171 break 2
10172 fi
10173 done
10174 done
10175 IFS=$as_save_IFS
10176
10177 fi
10178 fi
10179 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10180 if test -n "$CXX_FOR_TARGET"; then
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10182 $as_echo "$CXX_FOR_TARGET" >&6; }
10183 else
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10185 $as_echo "no" >&6; }
10186 fi
10187
10188
10189 fi
10190 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10191 done
10192 fi
10193
10194 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10195 set dummy c++ g++ cxx gxx
10196 if test $build = $target ; then
10197 CXX_FOR_TARGET="$2"
10198 else
10199 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10200 fi
10201 else
10202 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10203 fi
10204
10205
10206
10207 if test -n "$GCC_FOR_TARGET"; then
10208 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10209 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10210 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10211 fi
10212
10213 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10214 for ncn_progname in gcc; do
10215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10216 set dummy ${ncn_progname}; ac_word=$2
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10218 $as_echo_n "checking for $ac_word... " >&6; }
10219 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10220 $as_echo_n "(cached) " >&6
10221 else
10222 if test -n "$GCC_FOR_TARGET"; then
10223 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10224 else
10225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226 for as_dir in $PATH
10227 do
10228 IFS=$as_save_IFS
10229 test -z "$as_dir" && as_dir=.
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10232 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10234 break 2
10235 fi
10236 done
10237 done
10238 IFS=$as_save_IFS
10239
10240 fi
10241 fi
10242 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10243 if test -n "$GCC_FOR_TARGET"; then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10245 $as_echo "$GCC_FOR_TARGET" >&6; }
10246 else
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248 $as_echo "no" >&6; }
10249 fi
10250
10251
10252 done
10253 fi
10254
10255 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10256 for ncn_progname in gcc; do
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10258 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10259 if test -x $with_build_time_tools/${ncn_progname}; then
10260 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10262 $as_echo "yes" >&6; }
10263 break
10264 else
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10266 $as_echo "no" >&6; }
10267 fi
10268 done
10269 fi
10270
10271 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10272 for ncn_progname in gcc; do
10273 if test -n "$ncn_target_tool_prefix"; then
10274 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10275 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10277 $as_echo_n "checking for $ac_word... " >&6; }
10278 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10279 $as_echo_n "(cached) " >&6
10280 else
10281 if test -n "$GCC_FOR_TARGET"; then
10282 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10283 else
10284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10285 for as_dir in $PATH
10286 do
10287 IFS=$as_save_IFS
10288 test -z "$as_dir" && as_dir=.
10289 for ac_exec_ext in '' $ac_executable_extensions; do
10290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10291 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10293 break 2
10294 fi
10295 done
10296 done
10297 IFS=$as_save_IFS
10298
10299 fi
10300 fi
10301 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10302 if test -n "$GCC_FOR_TARGET"; then
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10304 $as_echo "$GCC_FOR_TARGET" >&6; }
10305 else
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10307 $as_echo "no" >&6; }
10308 fi
10309
10310
10311 fi
10312 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10314 set dummy ${ncn_progname}; ac_word=$2
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10316 $as_echo_n "checking for $ac_word... " >&6; }
10317 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10318 $as_echo_n "(cached) " >&6
10319 else
10320 if test -n "$GCC_FOR_TARGET"; then
10321 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10322 else
10323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324 for as_dir in $PATH
10325 do
10326 IFS=$as_save_IFS
10327 test -z "$as_dir" && as_dir=.
10328 for ac_exec_ext in '' $ac_executable_extensions; do
10329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10330 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10332 break 2
10333 fi
10334 done
10335 done
10336 IFS=$as_save_IFS
10337
10338 fi
10339 fi
10340 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10341 if test -n "$GCC_FOR_TARGET"; then
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10343 $as_echo "$GCC_FOR_TARGET" >&6; }
10344 else
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10346 $as_echo "no" >&6; }
10347 fi
10348
10349
10350 fi
10351 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10352 done
10353 fi
10354
10355 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10356 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10357 else
10358 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10359 fi
10360
10361
10362
10363 if test -n "$GCJ_FOR_TARGET"; then
10364 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10365 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10366 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10367 fi
10368
10369 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10370 for ncn_progname in gcj; do
10371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10372 set dummy ${ncn_progname}; ac_word=$2
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10376 $as_echo_n "(cached) " >&6
10377 else
10378 if test -n "$GCJ_FOR_TARGET"; then
10379 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10380 else
10381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382 for as_dir in $PATH
10383 do
10384 IFS=$as_save_IFS
10385 test -z "$as_dir" && as_dir=.
10386 for ac_exec_ext in '' $ac_executable_extensions; do
10387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10388 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10390 break 2
10391 fi
10392 done
10393 done
10394 IFS=$as_save_IFS
10395
10396 fi
10397 fi
10398 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10399 if test -n "$GCJ_FOR_TARGET"; then
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10401 $as_echo "$GCJ_FOR_TARGET" >&6; }
10402 else
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; }
10405 fi
10406
10407
10408 done
10409 fi
10410
10411 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10412 for ncn_progname in gcj; do
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10414 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10415 if test -x $with_build_time_tools/${ncn_progname}; then
10416 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10418 $as_echo "yes" >&6; }
10419 break
10420 else
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10422 $as_echo "no" >&6; }
10423 fi
10424 done
10425 fi
10426
10427 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10428 for ncn_progname in gcj; do
10429 if test -n "$ncn_target_tool_prefix"; then
10430 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10431 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10433 $as_echo_n "checking for $ac_word... " >&6; }
10434 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10435 $as_echo_n "(cached) " >&6
10436 else
10437 if test -n "$GCJ_FOR_TARGET"; then
10438 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10439 else
10440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10441 for as_dir in $PATH
10442 do
10443 IFS=$as_save_IFS
10444 test -z "$as_dir" && as_dir=.
10445 for ac_exec_ext in '' $ac_executable_extensions; do
10446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10447 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10449 break 2
10450 fi
10451 done
10452 done
10453 IFS=$as_save_IFS
10454
10455 fi
10456 fi
10457 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10458 if test -n "$GCJ_FOR_TARGET"; then
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10460 $as_echo "$GCJ_FOR_TARGET" >&6; }
10461 else
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10463 $as_echo "no" >&6; }
10464 fi
10465
10466
10467 fi
10468 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10470 set dummy ${ncn_progname}; ac_word=$2
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10472 $as_echo_n "checking for $ac_word... " >&6; }
10473 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10474 $as_echo_n "(cached) " >&6
10475 else
10476 if test -n "$GCJ_FOR_TARGET"; then
10477 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10478 else
10479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480 for as_dir in $PATH
10481 do
10482 IFS=$as_save_IFS
10483 test -z "$as_dir" && as_dir=.
10484 for ac_exec_ext in '' $ac_executable_extensions; do
10485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10486 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10488 break 2
10489 fi
10490 done
10491 done
10492 IFS=$as_save_IFS
10493
10494 fi
10495 fi
10496 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10497 if test -n "$GCJ_FOR_TARGET"; then
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10499 $as_echo "$GCJ_FOR_TARGET" >&6; }
10500 else
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10502 $as_echo "no" >&6; }
10503 fi
10504
10505
10506 fi
10507 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10508 done
10509 fi
10510
10511 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10512 set dummy gcj
10513 if test $build = $target ; then
10514 GCJ_FOR_TARGET="$2"
10515 else
10516 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10517 fi
10518 else
10519 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10520 fi
10521
10522
10523
10524 if test -n "$GFORTRAN_FOR_TARGET"; then
10525 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10526 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10527 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10528 fi
10529
10530 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10531 for ncn_progname in gfortran; do
10532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10533 set dummy ${ncn_progname}; ac_word=$2
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10535 $as_echo_n "checking for $ac_word... " >&6; }
10536 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10537 $as_echo_n "(cached) " >&6
10538 else
10539 if test -n "$GFORTRAN_FOR_TARGET"; then
10540 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10541 else
10542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10543 for as_dir in $PATH
10544 do
10545 IFS=$as_save_IFS
10546 test -z "$as_dir" && as_dir=.
10547 for ac_exec_ext in '' $ac_executable_extensions; do
10548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10549 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10551 break 2
10552 fi
10553 done
10554 done
10555 IFS=$as_save_IFS
10556
10557 fi
10558 fi
10559 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10560 if test -n "$GFORTRAN_FOR_TARGET"; then
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10562 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10563 else
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10565 $as_echo "no" >&6; }
10566 fi
10567
10568
10569 done
10570 fi
10571
10572 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10573 for ncn_progname in gfortran; do
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10575 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10576 if test -x $with_build_time_tools/${ncn_progname}; then
10577 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10579 $as_echo "yes" >&6; }
10580 break
10581 else
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; }
10584 fi
10585 done
10586 fi
10587
10588 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10589 for ncn_progname in gfortran; do
10590 if test -n "$ncn_target_tool_prefix"; then
10591 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10592 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10594 $as_echo_n "checking for $ac_word... " >&6; }
10595 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10596 $as_echo_n "(cached) " >&6
10597 else
10598 if test -n "$GFORTRAN_FOR_TARGET"; then
10599 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10600 else
10601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10602 for as_dir in $PATH
10603 do
10604 IFS=$as_save_IFS
10605 test -z "$as_dir" && as_dir=.
10606 for ac_exec_ext in '' $ac_executable_extensions; do
10607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10608 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10610 break 2
10611 fi
10612 done
10613 done
10614 IFS=$as_save_IFS
10615
10616 fi
10617 fi
10618 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10619 if test -n "$GFORTRAN_FOR_TARGET"; then
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10621 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10622 else
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 $as_echo "no" >&6; }
10625 fi
10626
10627
10628 fi
10629 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10631 set dummy ${ncn_progname}; ac_word=$2
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10633 $as_echo_n "checking for $ac_word... " >&6; }
10634 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10635 $as_echo_n "(cached) " >&6
10636 else
10637 if test -n "$GFORTRAN_FOR_TARGET"; then
10638 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10639 else
10640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10641 for as_dir in $PATH
10642 do
10643 IFS=$as_save_IFS
10644 test -z "$as_dir" && as_dir=.
10645 for ac_exec_ext in '' $ac_executable_extensions; do
10646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10647 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10649 break 2
10650 fi
10651 done
10652 done
10653 IFS=$as_save_IFS
10654
10655 fi
10656 fi
10657 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10658 if test -n "$GFORTRAN_FOR_TARGET"; then
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10660 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10661 else
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10663 $as_echo "no" >&6; }
10664 fi
10665
10666
10667 fi
10668 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10669 done
10670 fi
10671
10672 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10673 set dummy gfortran
10674 if test $build = $target ; then
10675 GFORTRAN_FOR_TARGET="$2"
10676 else
10677 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10678 fi
10679 else
10680 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10681 fi
10682
10683
10684
10685 if test -n "$GOC_FOR_TARGET"; then
10686 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10687 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10688 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10689 fi
10690
10691 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10692 for ncn_progname in gccgo; do
10693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10694 set dummy ${ncn_progname}; ac_word=$2
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10696 $as_echo_n "checking for $ac_word... " >&6; }
10697 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10698 $as_echo_n "(cached) " >&6
10699 else
10700 if test -n "$GOC_FOR_TARGET"; then
10701 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10702 else
10703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10704 for as_dir in $PATH
10705 do
10706 IFS=$as_save_IFS
10707 test -z "$as_dir" && as_dir=.
10708 for ac_exec_ext in '' $ac_executable_extensions; do
10709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10710 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10712 break 2
10713 fi
10714 done
10715 done
10716 IFS=$as_save_IFS
10717
10718 fi
10719 fi
10720 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10721 if test -n "$GOC_FOR_TARGET"; then
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10723 $as_echo "$GOC_FOR_TARGET" >&6; }
10724 else
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10726 $as_echo "no" >&6; }
10727 fi
10728
10729
10730 done
10731 fi
10732
10733 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10734 for ncn_progname in gccgo; do
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10736 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10737 if test -x $with_build_time_tools/${ncn_progname}; then
10738 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10740 $as_echo "yes" >&6; }
10741 break
10742 else
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10745 fi
10746 done
10747 fi
10748
10749 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10750 for ncn_progname in gccgo; do
10751 if test -n "$ncn_target_tool_prefix"; then
10752 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10753 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10755 $as_echo_n "checking for $ac_word... " >&6; }
10756 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10759 if test -n "$GOC_FOR_TARGET"; then
10760 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10761 else
10762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763 for as_dir in $PATH
10764 do
10765 IFS=$as_save_IFS
10766 test -z "$as_dir" && as_dir=.
10767 for ac_exec_ext in '' $ac_executable_extensions; do
10768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10769 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10771 break 2
10772 fi
10773 done
10774 done
10775 IFS=$as_save_IFS
10776
10777 fi
10778 fi
10779 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10780 if test -n "$GOC_FOR_TARGET"; then
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10782 $as_echo "$GOC_FOR_TARGET" >&6; }
10783 else
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785 $as_echo "no" >&6; }
10786 fi
10787
10788
10789 fi
10790 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10792 set dummy ${ncn_progname}; ac_word=$2
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10794 $as_echo_n "checking for $ac_word... " >&6; }
10795 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10796 $as_echo_n "(cached) " >&6
10797 else
10798 if test -n "$GOC_FOR_TARGET"; then
10799 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10800 else
10801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10802 for as_dir in $PATH
10803 do
10804 IFS=$as_save_IFS
10805 test -z "$as_dir" && as_dir=.
10806 for ac_exec_ext in '' $ac_executable_extensions; do
10807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10808 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10810 break 2
10811 fi
10812 done
10813 done
10814 IFS=$as_save_IFS
10815
10816 fi
10817 fi
10818 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10819 if test -n "$GOC_FOR_TARGET"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10821 $as_echo "$GOC_FOR_TARGET" >&6; }
10822 else
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824 $as_echo "no" >&6; }
10825 fi
10826
10827
10828 fi
10829 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10830 done
10831 fi
10832
10833 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10834 set dummy gccgo
10835 if test $build = $target ; then
10836 GOC_FOR_TARGET="$2"
10837 else
10838 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10839 fi
10840 else
10841 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10842 fi
10843
10844
10845
10846 cat > conftest.c << \EOF
10847 #ifdef __GNUC__
10848 gcc_yay;
10849 #endif
10850 EOF
10851 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10852 have_gcc_for_target=yes
10853 else
10854 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10855 have_gcc_for_target=no
10856 fi
10857 rm conftest.c
10858
10859
10860
10861
10862 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10863 if test -n "$with_build_time_tools"; then
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10865 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10866 if test -x $with_build_time_tools/ar; then
10867 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10868 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10870 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10871 else
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10873 $as_echo "no" >&6; }
10874 fi
10875 elif test $build != $host && test $have_gcc_for_target = yes; then
10876 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10877 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10878 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10879 fi
10880 fi
10881 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10882 # Extract the first word of "ar", so it can be a program name with args.
10883 set dummy ar; ac_word=$2
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10885 $as_echo_n "checking for $ac_word... " >&6; }
10886 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10887 $as_echo_n "(cached) " >&6
10888 else
10889 case $AR_FOR_TARGET in
10890 [\\/]* | ?:[\\/]*)
10891 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10892 ;;
10893 *)
10894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10895 for as_dir in $gcc_cv_tool_dirs
10896 do
10897 IFS=$as_save_IFS
10898 test -z "$as_dir" && as_dir=.
10899 for ac_exec_ext in '' $ac_executable_extensions; do
10900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10901 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10903 break 2
10904 fi
10905 done
10906 done
10907 IFS=$as_save_IFS
10908
10909 ;;
10910 esac
10911 fi
10912 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10913 if test -n "$AR_FOR_TARGET"; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10915 $as_echo "$AR_FOR_TARGET" >&6; }
10916 else
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 $as_echo "no" >&6; }
10919 fi
10920
10921
10922 fi
10923 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10924
10925
10926 if test -n "$AR_FOR_TARGET"; then
10927 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10928 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10929 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10930 fi
10931
10932 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10933 for ncn_progname in ar; do
10934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10935 set dummy ${ncn_progname}; ac_word=$2
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10937 $as_echo_n "checking for $ac_word... " >&6; }
10938 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10939 $as_echo_n "(cached) " >&6
10940 else
10941 if test -n "$AR_FOR_TARGET"; then
10942 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10943 else
10944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945 for as_dir in $PATH
10946 do
10947 IFS=$as_save_IFS
10948 test -z "$as_dir" && as_dir=.
10949 for ac_exec_ext in '' $ac_executable_extensions; do
10950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10951 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10953 break 2
10954 fi
10955 done
10956 done
10957 IFS=$as_save_IFS
10958
10959 fi
10960 fi
10961 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10962 if test -n "$AR_FOR_TARGET"; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10964 $as_echo "$AR_FOR_TARGET" >&6; }
10965 else
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10967 $as_echo "no" >&6; }
10968 fi
10969
10970
10971 done
10972 fi
10973
10974 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10975 for ncn_progname in ar; do
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10977 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10978 if test -x $with_build_time_tools/${ncn_progname}; then
10979 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10981 $as_echo "yes" >&6; }
10982 break
10983 else
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10985 $as_echo "no" >&6; }
10986 fi
10987 done
10988 fi
10989
10990 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10991 for ncn_progname in ar; do
10992 if test -n "$ncn_target_tool_prefix"; then
10993 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10994 set dummy ${ncn_target_tool_prefix}${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 test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10998 $as_echo_n "(cached) " >&6
10999 else
11000 if test -n "$AR_FOR_TARGET"; then
11001 ac_cv_prog_AR_FOR_TARGET="$AR_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11010 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${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 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11021 if test -n "$AR_FOR_TARGET"; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11023 $as_echo "$AR_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 fi
11031 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11033 set dummy ${ncn_progname}; ac_word=$2
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11035 $as_echo_n "checking for $ac_word... " >&6; }
11036 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11037 $as_echo_n "(cached) " >&6
11038 else
11039 if test -n "$AR_FOR_TARGET"; then
11040 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11041 else
11042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043 for as_dir in $PATH
11044 do
11045 IFS=$as_save_IFS
11046 test -z "$as_dir" && as_dir=.
11047 for ac_exec_ext in '' $ac_executable_extensions; do
11048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11049 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11051 break 2
11052 fi
11053 done
11054 done
11055 IFS=$as_save_IFS
11056
11057 fi
11058 fi
11059 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11060 if test -n "$AR_FOR_TARGET"; then
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11062 $as_echo "$AR_FOR_TARGET" >&6; }
11063 else
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065 $as_echo "no" >&6; }
11066 fi
11067
11068
11069 fi
11070 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11071 done
11072 fi
11073
11074 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11075 set dummy ar
11076 if test $build = $target ; then
11077 AR_FOR_TARGET="$2"
11078 else
11079 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11080 fi
11081 else
11082 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11083 fi
11084
11085 else
11086 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11087 fi
11088
11089
11090
11091
11092 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11093 if test -n "$with_build_time_tools"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11095 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11096 if test -x $with_build_time_tools/as; then
11097 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11098 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11100 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11101 else
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103 $as_echo "no" >&6; }
11104 fi
11105 elif test $build != $host && test $have_gcc_for_target = yes; then
11106 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11107 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11108 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11109 fi
11110 fi
11111 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11112 # Extract the first word of "as", so it can be a program name with args.
11113 set dummy as; ac_word=$2
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11115 $as_echo_n "checking for $ac_word... " >&6; }
11116 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11117 $as_echo_n "(cached) " >&6
11118 else
11119 case $AS_FOR_TARGET in
11120 [\\/]* | ?:[\\/]*)
11121 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11122 ;;
11123 *)
11124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11125 for as_dir in $gcc_cv_tool_dirs
11126 do
11127 IFS=$as_save_IFS
11128 test -z "$as_dir" && as_dir=.
11129 for ac_exec_ext in '' $ac_executable_extensions; do
11130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11131 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11133 break 2
11134 fi
11135 done
11136 done
11137 IFS=$as_save_IFS
11138
11139 ;;
11140 esac
11141 fi
11142 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11143 if test -n "$AS_FOR_TARGET"; then
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11145 $as_echo "$AS_FOR_TARGET" >&6; }
11146 else
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11148 $as_echo "no" >&6; }
11149 fi
11150
11151
11152 fi
11153 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11154
11155
11156 if test -n "$AS_FOR_TARGET"; then
11157 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11158 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11159 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11160 fi
11161
11162 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11163 for ncn_progname in as; do
11164 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11165 set dummy ${ncn_progname}; ac_word=$2
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167 $as_echo_n "checking for $ac_word... " >&6; }
11168 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11169 $as_echo_n "(cached) " >&6
11170 else
11171 if test -n "$AS_FOR_TARGET"; then
11172 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11173 else
11174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175 for as_dir in $PATH
11176 do
11177 IFS=$as_save_IFS
11178 test -z "$as_dir" && as_dir=.
11179 for ac_exec_ext in '' $ac_executable_extensions; do
11180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11181 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11183 break 2
11184 fi
11185 done
11186 done
11187 IFS=$as_save_IFS
11188
11189 fi
11190 fi
11191 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11192 if test -n "$AS_FOR_TARGET"; then
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11194 $as_echo "$AS_FOR_TARGET" >&6; }
11195 else
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; }
11198 fi
11199
11200
11201 done
11202 fi
11203
11204 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11205 for ncn_progname in as; do
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11207 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11208 if test -x $with_build_time_tools/${ncn_progname}; then
11209 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11211 $as_echo "yes" >&6; }
11212 break
11213 else
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215 $as_echo "no" >&6; }
11216 fi
11217 done
11218 fi
11219
11220 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11221 for ncn_progname in as; do
11222 if test -n "$ncn_target_tool_prefix"; then
11223 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11224 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11226 $as_echo_n "checking for $ac_word... " >&6; }
11227 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11228 $as_echo_n "(cached) " >&6
11229 else
11230 if test -n "$AS_FOR_TARGET"; then
11231 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11232 else
11233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234 for as_dir in $PATH
11235 do
11236 IFS=$as_save_IFS
11237 test -z "$as_dir" && as_dir=.
11238 for ac_exec_ext in '' $ac_executable_extensions; do
11239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11240 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11242 break 2
11243 fi
11244 done
11245 done
11246 IFS=$as_save_IFS
11247
11248 fi
11249 fi
11250 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11251 if test -n "$AS_FOR_TARGET"; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11253 $as_echo "$AS_FOR_TARGET" >&6; }
11254 else
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11256 $as_echo "no" >&6; }
11257 fi
11258
11259
11260 fi
11261 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11263 set dummy ${ncn_progname}; ac_word=$2
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265 $as_echo_n "checking for $ac_word... " >&6; }
11266 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 if test -n "$AS_FOR_TARGET"; then
11270 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11271 else
11272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273 for as_dir in $PATH
11274 do
11275 IFS=$as_save_IFS
11276 test -z "$as_dir" && as_dir=.
11277 for ac_exec_ext in '' $ac_executable_extensions; do
11278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11279 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11281 break 2
11282 fi
11283 done
11284 done
11285 IFS=$as_save_IFS
11286
11287 fi
11288 fi
11289 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11290 if test -n "$AS_FOR_TARGET"; then
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11292 $as_echo "$AS_FOR_TARGET" >&6; }
11293 else
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295 $as_echo "no" >&6; }
11296 fi
11297
11298
11299 fi
11300 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11301 done
11302 fi
11303
11304 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11305 set dummy as
11306 if test $build = $target ; then
11307 AS_FOR_TARGET="$2"
11308 else
11309 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11310 fi
11311 else
11312 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11313 fi
11314
11315 else
11316 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11317 fi
11318
11319
11320
11321
11322 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11323 if test -n "$with_build_time_tools"; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11325 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11326 if test -x $with_build_time_tools/dlltool; then
11327 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11328 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11330 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11331 else
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333 $as_echo "no" >&6; }
11334 fi
11335 elif test $build != $host && test $have_gcc_for_target = yes; then
11336 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11337 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11338 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11339 fi
11340 fi
11341 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11342 # Extract the first word of "dlltool", so it can be a program name with args.
11343 set dummy dlltool; ac_word=$2
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11345 $as_echo_n "checking for $ac_word... " >&6; }
11346 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11347 $as_echo_n "(cached) " >&6
11348 else
11349 case $DLLTOOL_FOR_TARGET in
11350 [\\/]* | ?:[\\/]*)
11351 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11352 ;;
11353 *)
11354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355 for as_dir in $gcc_cv_tool_dirs
11356 do
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11361 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 break 2
11364 fi
11365 done
11366 done
11367 IFS=$as_save_IFS
11368
11369 ;;
11370 esac
11371 fi
11372 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11373 if test -n "$DLLTOOL_FOR_TARGET"; then
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11375 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11376 else
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378 $as_echo "no" >&6; }
11379 fi
11380
11381
11382 fi
11383 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11384
11385
11386 if test -n "$DLLTOOL_FOR_TARGET"; then
11387 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11388 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11389 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11390 fi
11391
11392 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11393 for ncn_progname in dlltool; do
11394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11395 set dummy ${ncn_progname}; ac_word=$2
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11397 $as_echo_n "checking for $ac_word... " >&6; }
11398 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11399 $as_echo_n "(cached) " >&6
11400 else
11401 if test -n "$DLLTOOL_FOR_TARGET"; then
11402 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11403 else
11404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in $PATH
11406 do
11407 IFS=$as_save_IFS
11408 test -z "$as_dir" && as_dir=.
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11411 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11413 break 2
11414 fi
11415 done
11416 done
11417 IFS=$as_save_IFS
11418
11419 fi
11420 fi
11421 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11422 if test -n "$DLLTOOL_FOR_TARGET"; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11424 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11425 else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11428 fi
11429
11430
11431 done
11432 fi
11433
11434 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11435 for ncn_progname in dlltool; do
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11437 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11438 if test -x $with_build_time_tools/${ncn_progname}; then
11439 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11441 $as_echo "yes" >&6; }
11442 break
11443 else
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445 $as_echo "no" >&6; }
11446 fi
11447 done
11448 fi
11449
11450 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11451 for ncn_progname in dlltool; do
11452 if test -n "$ncn_target_tool_prefix"; then
11453 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11454 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11456 $as_echo_n "checking for $ac_word... " >&6; }
11457 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11458 $as_echo_n "(cached) " >&6
11459 else
11460 if test -n "$DLLTOOL_FOR_TARGET"; then
11461 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11462 else
11463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11464 for as_dir in $PATH
11465 do
11466 IFS=$as_save_IFS
11467 test -z "$as_dir" && as_dir=.
11468 for ac_exec_ext in '' $ac_executable_extensions; do
11469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11470 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11472 break 2
11473 fi
11474 done
11475 done
11476 IFS=$as_save_IFS
11477
11478 fi
11479 fi
11480 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11481 if test -n "$DLLTOOL_FOR_TARGET"; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11483 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11484 else
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486 $as_echo "no" >&6; }
11487 fi
11488
11489
11490 fi
11491 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11493 set dummy ${ncn_progname}; ac_word=$2
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11495 $as_echo_n "checking for $ac_word... " >&6; }
11496 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11497 $as_echo_n "(cached) " >&6
11498 else
11499 if test -n "$DLLTOOL_FOR_TARGET"; then
11500 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11501 else
11502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503 for as_dir in $PATH
11504 do
11505 IFS=$as_save_IFS
11506 test -z "$as_dir" && as_dir=.
11507 for ac_exec_ext in '' $ac_executable_extensions; do
11508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11509 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11511 break 2
11512 fi
11513 done
11514 done
11515 IFS=$as_save_IFS
11516
11517 fi
11518 fi
11519 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11520 if test -n "$DLLTOOL_FOR_TARGET"; then
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11522 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11523 else
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525 $as_echo "no" >&6; }
11526 fi
11527
11528
11529 fi
11530 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11531 done
11532 fi
11533
11534 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11535 set dummy dlltool
11536 if test $build = $target ; then
11537 DLLTOOL_FOR_TARGET="$2"
11538 else
11539 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11540 fi
11541 else
11542 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11543 fi
11544
11545 else
11546 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11547 fi
11548
11549
11550
11551
11552 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11553 if test -n "$with_build_time_tools"; then
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11555 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11556 if test -x $with_build_time_tools/ld; then
11557 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11558 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11560 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11561 else
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11564 fi
11565 elif test $build != $host && test $have_gcc_for_target = yes; then
11566 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11567 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11568 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11569 fi
11570 fi
11571 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11572 # Extract the first word of "ld", so it can be a program name with args.
11573 set dummy ld; ac_word=$2
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575 $as_echo_n "checking for $ac_word... " >&6; }
11576 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11577 $as_echo_n "(cached) " >&6
11578 else
11579 case $LD_FOR_TARGET in
11580 [\\/]* | ?:[\\/]*)
11581 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11582 ;;
11583 *)
11584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585 for as_dir in $gcc_cv_tool_dirs
11586 do
11587 IFS=$as_save_IFS
11588 test -z "$as_dir" && as_dir=.
11589 for ac_exec_ext in '' $ac_executable_extensions; do
11590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11591 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11593 break 2
11594 fi
11595 done
11596 done
11597 IFS=$as_save_IFS
11598
11599 ;;
11600 esac
11601 fi
11602 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11603 if test -n "$LD_FOR_TARGET"; then
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11605 $as_echo "$LD_FOR_TARGET" >&6; }
11606 else
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608 $as_echo "no" >&6; }
11609 fi
11610
11611
11612 fi
11613 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11614
11615
11616 if test -n "$LD_FOR_TARGET"; then
11617 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11618 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11619 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11620 fi
11621
11622 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11623 for ncn_progname in ld; do
11624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11625 set dummy ${ncn_progname}; ac_word=$2
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11627 $as_echo_n "checking for $ac_word... " >&6; }
11628 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631 if test -n "$LD_FOR_TARGET"; then
11632 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11633 else
11634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635 for as_dir in $PATH
11636 do
11637 IFS=$as_save_IFS
11638 test -z "$as_dir" && as_dir=.
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11641 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11643 break 2
11644 fi
11645 done
11646 done
11647 IFS=$as_save_IFS
11648
11649 fi
11650 fi
11651 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11652 if test -n "$LD_FOR_TARGET"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11654 $as_echo "$LD_FOR_TARGET" >&6; }
11655 else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11658 fi
11659
11660
11661 done
11662 fi
11663
11664 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11665 for ncn_progname in ld; do
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11667 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11668 if test -x $with_build_time_tools/${ncn_progname}; then
11669 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11671 $as_echo "yes" >&6; }
11672 break
11673 else
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675 $as_echo "no" >&6; }
11676 fi
11677 done
11678 fi
11679
11680 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11681 for ncn_progname in ld; do
11682 if test -n "$ncn_target_tool_prefix"; then
11683 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11684 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11686 $as_echo_n "checking for $ac_word... " >&6; }
11687 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11688 $as_echo_n "(cached) " >&6
11689 else
11690 if test -n "$LD_FOR_TARGET"; then
11691 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11692 else
11693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11694 for as_dir in $PATH
11695 do
11696 IFS=$as_save_IFS
11697 test -z "$as_dir" && as_dir=.
11698 for ac_exec_ext in '' $ac_executable_extensions; do
11699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11700 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11702 break 2
11703 fi
11704 done
11705 done
11706 IFS=$as_save_IFS
11707
11708 fi
11709 fi
11710 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11711 if test -n "$LD_FOR_TARGET"; then
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11713 $as_echo "$LD_FOR_TARGET" >&6; }
11714 else
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716 $as_echo "no" >&6; }
11717 fi
11718
11719
11720 fi
11721 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11723 set dummy ${ncn_progname}; ac_word=$2
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11725 $as_echo_n "checking for $ac_word... " >&6; }
11726 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11727 $as_echo_n "(cached) " >&6
11728 else
11729 if test -n "$LD_FOR_TARGET"; then
11730 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11731 else
11732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733 for as_dir in $PATH
11734 do
11735 IFS=$as_save_IFS
11736 test -z "$as_dir" && as_dir=.
11737 for ac_exec_ext in '' $ac_executable_extensions; do
11738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11739 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11741 break 2
11742 fi
11743 done
11744 done
11745 IFS=$as_save_IFS
11746
11747 fi
11748 fi
11749 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11750 if test -n "$LD_FOR_TARGET"; then
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11752 $as_echo "$LD_FOR_TARGET" >&6; }
11753 else
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11756 fi
11757
11758
11759 fi
11760 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11761 done
11762 fi
11763
11764 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11765 set dummy ld
11766 if test $build = $target ; then
11767 LD_FOR_TARGET="$2"
11768 else
11769 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11770 fi
11771 else
11772 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11773 fi
11774
11775 else
11776 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11777 fi
11778
11779
11780
11781
11782 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11783 if test -n "$with_build_time_tools"; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11785 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11786 if test -x $with_build_time_tools/lipo; then
11787 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11788 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11790 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11791 else
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11793 $as_echo "no" >&6; }
11794 fi
11795 elif test $build != $host && test $have_gcc_for_target = yes; then
11796 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11797 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11798 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11799 fi
11800 fi
11801 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11802 # Extract the first word of "lipo", so it can be a program name with args.
11803 set dummy lipo; ac_word=$2
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805 $as_echo_n "checking for $ac_word... " >&6; }
11806 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11807 $as_echo_n "(cached) " >&6
11808 else
11809 case $LIPO_FOR_TARGET in
11810 [\\/]* | ?:[\\/]*)
11811 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11812 ;;
11813 *)
11814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in $gcc_cv_tool_dirs
11816 do
11817 IFS=$as_save_IFS
11818 test -z "$as_dir" && as_dir=.
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11821 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 break 2
11824 fi
11825 done
11826 done
11827 IFS=$as_save_IFS
11828
11829 ;;
11830 esac
11831 fi
11832 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11833 if test -n "$LIPO_FOR_TARGET"; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11835 $as_echo "$LIPO_FOR_TARGET" >&6; }
11836 else
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11839 fi
11840
11841
11842 fi
11843 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11844
11845
11846 if test -n "$LIPO_FOR_TARGET"; then
11847 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11848 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11849 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11850 fi
11851
11852 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11853 for ncn_progname in lipo; do
11854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11855 set dummy ${ncn_progname}; ac_word=$2
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857 $as_echo_n "checking for $ac_word... " >&6; }
11858 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11859 $as_echo_n "(cached) " >&6
11860 else
11861 if test -n "$LIPO_FOR_TARGET"; then
11862 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11863 else
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11866 do
11867 IFS=$as_save_IFS
11868 test -z "$as_dir" && as_dir=.
11869 for ac_exec_ext in '' $ac_executable_extensions; do
11870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11871 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11873 break 2
11874 fi
11875 done
11876 done
11877 IFS=$as_save_IFS
11878
11879 fi
11880 fi
11881 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11882 if test -n "$LIPO_FOR_TARGET"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11884 $as_echo "$LIPO_FOR_TARGET" >&6; }
11885 else
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11888 fi
11889
11890
11891 done
11892 fi
11893
11894 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11895 for ncn_progname in lipo; do
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11897 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11898 if test -x $with_build_time_tools/${ncn_progname}; then
11899 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11901 $as_echo "yes" >&6; }
11902 break
11903 else
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906 fi
11907 done
11908 fi
11909
11910 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11911 for ncn_progname in lipo; do
11912 if test -n "$ncn_target_tool_prefix"; then
11913 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11914 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11916 $as_echo_n "checking for $ac_word... " >&6; }
11917 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11918 $as_echo_n "(cached) " >&6
11919 else
11920 if test -n "$LIPO_FOR_TARGET"; then
11921 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11922 else
11923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924 for as_dir in $PATH
11925 do
11926 IFS=$as_save_IFS
11927 test -z "$as_dir" && as_dir=.
11928 for ac_exec_ext in '' $ac_executable_extensions; do
11929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11930 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11932 break 2
11933 fi
11934 done
11935 done
11936 IFS=$as_save_IFS
11937
11938 fi
11939 fi
11940 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11941 if test -n "$LIPO_FOR_TARGET"; then
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11943 $as_echo "$LIPO_FOR_TARGET" >&6; }
11944 else
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11946 $as_echo "no" >&6; }
11947 fi
11948
11949
11950 fi
11951 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11952 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11953 set dummy ${ncn_progname}; ac_word=$2
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11955 $as_echo_n "checking for $ac_word... " >&6; }
11956 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11957 $as_echo_n "(cached) " >&6
11958 else
11959 if test -n "$LIPO_FOR_TARGET"; then
11960 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11961 else
11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11964 do
11965 IFS=$as_save_IFS
11966 test -z "$as_dir" && as_dir=.
11967 for ac_exec_ext in '' $ac_executable_extensions; do
11968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11969 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11971 break 2
11972 fi
11973 done
11974 done
11975 IFS=$as_save_IFS
11976
11977 fi
11978 fi
11979 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11980 if test -n "$LIPO_FOR_TARGET"; then
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11982 $as_echo "$LIPO_FOR_TARGET" >&6; }
11983 else
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 $as_echo "no" >&6; }
11986 fi
11987
11988
11989 fi
11990 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11991 done
11992 fi
11993
11994 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11995 set dummy lipo
11996 if test $build = $target ; then
11997 LIPO_FOR_TARGET="$2"
11998 else
11999 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12000 fi
12001 else
12002 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12003 fi
12004
12005 else
12006 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12007 fi
12008
12009
12010
12011
12012 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12013 if test -n "$with_build_time_tools"; then
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12015 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12016 if test -x $with_build_time_tools/nm; then
12017 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12018 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12020 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12021 else
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12023 $as_echo "no" >&6; }
12024 fi
12025 elif test $build != $host && test $have_gcc_for_target = yes; then
12026 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12027 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12028 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12029 fi
12030 fi
12031 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12032 # Extract the first word of "nm", so it can be a program name with args.
12033 set dummy nm; ac_word=$2
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12035 $as_echo_n "checking for $ac_word... " >&6; }
12036 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12037 $as_echo_n "(cached) " >&6
12038 else
12039 case $NM_FOR_TARGET in
12040 [\\/]* | ?:[\\/]*)
12041 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12042 ;;
12043 *)
12044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045 for as_dir in $gcc_cv_tool_dirs
12046 do
12047 IFS=$as_save_IFS
12048 test -z "$as_dir" && as_dir=.
12049 for ac_exec_ext in '' $ac_executable_extensions; do
12050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12051 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12053 break 2
12054 fi
12055 done
12056 done
12057 IFS=$as_save_IFS
12058
12059 ;;
12060 esac
12061 fi
12062 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12063 if test -n "$NM_FOR_TARGET"; then
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12065 $as_echo "$NM_FOR_TARGET" >&6; }
12066 else
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068 $as_echo "no" >&6; }
12069 fi
12070
12071
12072 fi
12073 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12074
12075
12076 if test -n "$NM_FOR_TARGET"; then
12077 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12078 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12079 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12080 fi
12081
12082 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12083 for ncn_progname in nm; do
12084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12085 set dummy ${ncn_progname}; ac_word=$2
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087 $as_echo_n "checking for $ac_word... " >&6; }
12088 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12089 $as_echo_n "(cached) " >&6
12090 else
12091 if test -n "$NM_FOR_TARGET"; then
12092 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12093 else
12094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095 for as_dir in $PATH
12096 do
12097 IFS=$as_save_IFS
12098 test -z "$as_dir" && as_dir=.
12099 for ac_exec_ext in '' $ac_executable_extensions; do
12100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12101 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12103 break 2
12104 fi
12105 done
12106 done
12107 IFS=$as_save_IFS
12108
12109 fi
12110 fi
12111 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12112 if test -n "$NM_FOR_TARGET"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12114 $as_echo "$NM_FOR_TARGET" >&6; }
12115 else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12118 fi
12119
12120
12121 done
12122 fi
12123
12124 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12125 for ncn_progname in nm; do
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12127 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12128 if test -x $with_build_time_tools/${ncn_progname}; then
12129 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12131 $as_echo "yes" >&6; }
12132 break
12133 else
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12135 $as_echo "no" >&6; }
12136 fi
12137 done
12138 fi
12139
12140 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12141 for ncn_progname in nm; do
12142 if test -n "$ncn_target_tool_prefix"; then
12143 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12144 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 $as_echo_n "checking for $ac_word... " >&6; }
12147 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 if test -n "$NM_FOR_TARGET"; then
12151 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12152 else
12153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12154 for as_dir in $PATH
12155 do
12156 IFS=$as_save_IFS
12157 test -z "$as_dir" && as_dir=.
12158 for ac_exec_ext in '' $ac_executable_extensions; do
12159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12160 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12162 break 2
12163 fi
12164 done
12165 done
12166 IFS=$as_save_IFS
12167
12168 fi
12169 fi
12170 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12171 if test -n "$NM_FOR_TARGET"; then
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12173 $as_echo "$NM_FOR_TARGET" >&6; }
12174 else
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176 $as_echo "no" >&6; }
12177 fi
12178
12179
12180 fi
12181 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12183 set dummy ${ncn_progname}; ac_word=$2
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12185 $as_echo_n "checking for $ac_word... " >&6; }
12186 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12187 $as_echo_n "(cached) " >&6
12188 else
12189 if test -n "$NM_FOR_TARGET"; then
12190 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12191 else
12192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH
12194 do
12195 IFS=$as_save_IFS
12196 test -z "$as_dir" && as_dir=.
12197 for ac_exec_ext in '' $ac_executable_extensions; do
12198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12199 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12201 break 2
12202 fi
12203 done
12204 done
12205 IFS=$as_save_IFS
12206
12207 fi
12208 fi
12209 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12210 if test -n "$NM_FOR_TARGET"; then
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12212 $as_echo "$NM_FOR_TARGET" >&6; }
12213 else
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215 $as_echo "no" >&6; }
12216 fi
12217
12218
12219 fi
12220 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12221 done
12222 fi
12223
12224 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12225 set dummy nm
12226 if test $build = $target ; then
12227 NM_FOR_TARGET="$2"
12228 else
12229 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12230 fi
12231 else
12232 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12233 fi
12234
12235 else
12236 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12237 fi
12238
12239
12240
12241
12242 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12243 if test -n "$with_build_time_tools"; then
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12245 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12246 if test -x $with_build_time_tools/objcopy; then
12247 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12248 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12250 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12251 else
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253 $as_echo "no" >&6; }
12254 fi
12255 elif test $build != $host && test $have_gcc_for_target = yes; then
12256 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12257 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12258 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12259 fi
12260 fi
12261 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12262 # Extract the first word of "objcopy", so it can be a program name with args.
12263 set dummy objcopy; ac_word=$2
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12265 $as_echo_n "checking for $ac_word... " >&6; }
12266 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12267 $as_echo_n "(cached) " >&6
12268 else
12269 case $OBJCOPY_FOR_TARGET in
12270 [\\/]* | ?:[\\/]*)
12271 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12272 ;;
12273 *)
12274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275 for as_dir in $gcc_cv_tool_dirs
12276 do
12277 IFS=$as_save_IFS
12278 test -z "$as_dir" && as_dir=.
12279 for ac_exec_ext in '' $ac_executable_extensions; do
12280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12281 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12283 break 2
12284 fi
12285 done
12286 done
12287 IFS=$as_save_IFS
12288
12289 ;;
12290 esac
12291 fi
12292 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12293 if test -n "$OBJCOPY_FOR_TARGET"; then
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12295 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12296 else
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; }
12299 fi
12300
12301
12302 fi
12303 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12304
12305
12306 if test -n "$OBJCOPY_FOR_TARGET"; then
12307 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12308 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12309 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12310 fi
12311
12312 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12313 for ncn_progname in objcopy; do
12314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12315 set dummy ${ncn_progname}; ac_word=$2
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317 $as_echo_n "checking for $ac_word... " >&6; }
12318 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 if test -n "$OBJCOPY_FOR_TARGET"; then
12322 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12323 else
12324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12326 do
12327 IFS=$as_save_IFS
12328 test -z "$as_dir" && as_dir=.
12329 for ac_exec_ext in '' $ac_executable_extensions; do
12330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12331 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333 break 2
12334 fi
12335 done
12336 done
12337 IFS=$as_save_IFS
12338
12339 fi
12340 fi
12341 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12342 if test -n "$OBJCOPY_FOR_TARGET"; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12344 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12345 else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12348 fi
12349
12350
12351 done
12352 fi
12353
12354 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12355 for ncn_progname in objcopy; do
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12357 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12358 if test -x $with_build_time_tools/${ncn_progname}; then
12359 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12361 $as_echo "yes" >&6; }
12362 break
12363 else
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365 $as_echo "no" >&6; }
12366 fi
12367 done
12368 fi
12369
12370 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12371 for ncn_progname in objcopy; do
12372 if test -n "$ncn_target_tool_prefix"; then
12373 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12374 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12376 $as_echo_n "checking for $ac_word... " >&6; }
12377 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12380 if test -n "$OBJCOPY_FOR_TARGET"; then
12381 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12382 else
12383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12384 for as_dir in $PATH
12385 do
12386 IFS=$as_save_IFS
12387 test -z "$as_dir" && as_dir=.
12388 for ac_exec_ext in '' $ac_executable_extensions; do
12389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12390 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12392 break 2
12393 fi
12394 done
12395 done
12396 IFS=$as_save_IFS
12397
12398 fi
12399 fi
12400 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12401 if test -n "$OBJCOPY_FOR_TARGET"; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12403 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12404 else
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12407 fi
12408
12409
12410 fi
12411 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12413 set dummy ${ncn_progname}; ac_word=$2
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12415 $as_echo_n "checking for $ac_word... " >&6; }
12416 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12417 $as_echo_n "(cached) " >&6
12418 else
12419 if test -n "$OBJCOPY_FOR_TARGET"; then
12420 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12421 else
12422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12423 for as_dir in $PATH
12424 do
12425 IFS=$as_save_IFS
12426 test -z "$as_dir" && as_dir=.
12427 for ac_exec_ext in '' $ac_executable_extensions; do
12428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12429 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12431 break 2
12432 fi
12433 done
12434 done
12435 IFS=$as_save_IFS
12436
12437 fi
12438 fi
12439 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12440 if test -n "$OBJCOPY_FOR_TARGET"; then
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12442 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12443 else
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445 $as_echo "no" >&6; }
12446 fi
12447
12448
12449 fi
12450 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12451 done
12452 fi
12453
12454 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12455 set dummy objcopy
12456 if test $build = $target ; then
12457 OBJCOPY_FOR_TARGET="$2"
12458 else
12459 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12460 fi
12461 else
12462 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12463 fi
12464
12465 else
12466 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12467 fi
12468
12469
12470
12471
12472 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12473 if test -n "$with_build_time_tools"; then
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12475 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12476 if test -x $with_build_time_tools/objdump; then
12477 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12478 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12480 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12481 else
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12484 fi
12485 elif test $build != $host && test $have_gcc_for_target = yes; then
12486 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12487 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12488 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12489 fi
12490 fi
12491 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12492 # Extract the first word of "objdump", so it can be a program name with args.
12493 set dummy objdump; ac_word=$2
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495 $as_echo_n "checking for $ac_word... " >&6; }
12496 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 case $OBJDUMP_FOR_TARGET in
12500 [\\/]* | ?:[\\/]*)
12501 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12502 ;;
12503 *)
12504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505 for as_dir in $gcc_cv_tool_dirs
12506 do
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12511 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 break 2
12514 fi
12515 done
12516 done
12517 IFS=$as_save_IFS
12518
12519 ;;
12520 esac
12521 fi
12522 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12523 if test -n "$OBJDUMP_FOR_TARGET"; then
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12525 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12526 else
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528 $as_echo "no" >&6; }
12529 fi
12530
12531
12532 fi
12533 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12534
12535
12536 if test -n "$OBJDUMP_FOR_TARGET"; then
12537 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12538 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12539 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12540 fi
12541
12542 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12543 for ncn_progname in objdump; do
12544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12545 set dummy ${ncn_progname}; ac_word=$2
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12547 $as_echo_n "checking for $ac_word... " >&6; }
12548 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12549 $as_echo_n "(cached) " >&6
12550 else
12551 if test -n "$OBJDUMP_FOR_TARGET"; then
12552 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12553 else
12554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12555 for as_dir in $PATH
12556 do
12557 IFS=$as_save_IFS
12558 test -z "$as_dir" && as_dir=.
12559 for ac_exec_ext in '' $ac_executable_extensions; do
12560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12561 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12563 break 2
12564 fi
12565 done
12566 done
12567 IFS=$as_save_IFS
12568
12569 fi
12570 fi
12571 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12572 if test -n "$OBJDUMP_FOR_TARGET"; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12574 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12575 else
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577 $as_echo "no" >&6; }
12578 fi
12579
12580
12581 done
12582 fi
12583
12584 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12585 for ncn_progname in objdump; do
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12587 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12588 if test -x $with_build_time_tools/${ncn_progname}; then
12589 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12591 $as_echo "yes" >&6; }
12592 break
12593 else
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 $as_echo "no" >&6; }
12596 fi
12597 done
12598 fi
12599
12600 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12601 for ncn_progname in objdump; do
12602 if test -n "$ncn_target_tool_prefix"; then
12603 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12604 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12606 $as_echo_n "checking for $ac_word... " >&6; }
12607 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12608 $as_echo_n "(cached) " >&6
12609 else
12610 if test -n "$OBJDUMP_FOR_TARGET"; then
12611 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12612 else
12613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12614 for as_dir in $PATH
12615 do
12616 IFS=$as_save_IFS
12617 test -z "$as_dir" && as_dir=.
12618 for ac_exec_ext in '' $ac_executable_extensions; do
12619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12620 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12622 break 2
12623 fi
12624 done
12625 done
12626 IFS=$as_save_IFS
12627
12628 fi
12629 fi
12630 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12631 if test -n "$OBJDUMP_FOR_TARGET"; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12633 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12634 else
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 $as_echo "no" >&6; }
12637 fi
12638
12639
12640 fi
12641 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12642 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12643 set dummy ${ncn_progname}; ac_word=$2
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12645 $as_echo_n "checking for $ac_word... " >&6; }
12646 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12647 $as_echo_n "(cached) " >&6
12648 else
12649 if test -n "$OBJDUMP_FOR_TARGET"; then
12650 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12651 else
12652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12653 for as_dir in $PATH
12654 do
12655 IFS=$as_save_IFS
12656 test -z "$as_dir" && as_dir=.
12657 for ac_exec_ext in '' $ac_executable_extensions; do
12658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12659 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12661 break 2
12662 fi
12663 done
12664 done
12665 IFS=$as_save_IFS
12666
12667 fi
12668 fi
12669 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12670 if test -n "$OBJDUMP_FOR_TARGET"; then
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12672 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12673 else
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675 $as_echo "no" >&6; }
12676 fi
12677
12678
12679 fi
12680 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12681 done
12682 fi
12683
12684 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12685 set dummy objdump
12686 if test $build = $target ; then
12687 OBJDUMP_FOR_TARGET="$2"
12688 else
12689 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12690 fi
12691 else
12692 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12693 fi
12694
12695 else
12696 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12697 fi
12698
12699
12700
12701
12702 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12703 if test -n "$with_build_time_tools"; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12705 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12706 if test -x $with_build_time_tools/ranlib; then
12707 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12708 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12710 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12711 else
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 $as_echo "no" >&6; }
12714 fi
12715 elif test $build != $host && test $have_gcc_for_target = yes; then
12716 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12717 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12718 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12719 fi
12720 fi
12721 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12722 # Extract the first word of "ranlib", so it can be a program name with args.
12723 set dummy ranlib; ac_word=$2
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12725 $as_echo_n "checking for $ac_word... " >&6; }
12726 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12727 $as_echo_n "(cached) " >&6
12728 else
12729 case $RANLIB_FOR_TARGET in
12730 [\\/]* | ?:[\\/]*)
12731 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12732 ;;
12733 *)
12734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735 for as_dir in $gcc_cv_tool_dirs
12736 do
12737 IFS=$as_save_IFS
12738 test -z "$as_dir" && as_dir=.
12739 for ac_exec_ext in '' $ac_executable_extensions; do
12740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12741 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12743 break 2
12744 fi
12745 done
12746 done
12747 IFS=$as_save_IFS
12748
12749 ;;
12750 esac
12751 fi
12752 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12753 if test -n "$RANLIB_FOR_TARGET"; then
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12755 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12756 else
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758 $as_echo "no" >&6; }
12759 fi
12760
12761
12762 fi
12763 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12764
12765
12766 if test -n "$RANLIB_FOR_TARGET"; then
12767 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12768 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12769 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12770 fi
12771
12772 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12773 for ncn_progname in ranlib; do
12774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12775 set dummy ${ncn_progname}; ac_word=$2
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777 $as_echo_n "checking for $ac_word... " >&6; }
12778 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12779 $as_echo_n "(cached) " >&6
12780 else
12781 if test -n "$RANLIB_FOR_TARGET"; then
12782 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12783 else
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12786 do
12787 IFS=$as_save_IFS
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
12790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12791 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 break 2
12794 fi
12795 done
12796 done
12797 IFS=$as_save_IFS
12798
12799 fi
12800 fi
12801 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12802 if test -n "$RANLIB_FOR_TARGET"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12804 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12805 else
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12808 fi
12809
12810
12811 done
12812 fi
12813
12814 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12815 for ncn_progname in ranlib; do
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12817 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12818 if test -x $with_build_time_tools/${ncn_progname}; then
12819 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12821 $as_echo "yes" >&6; }
12822 break
12823 else
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12825 $as_echo "no" >&6; }
12826 fi
12827 done
12828 fi
12829
12830 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12831 for ncn_progname in ranlib; do
12832 if test -n "$ncn_target_tool_prefix"; then
12833 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12834 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12836 $as_echo_n "checking for $ac_word... " >&6; }
12837 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12838 $as_echo_n "(cached) " >&6
12839 else
12840 if test -n "$RANLIB_FOR_TARGET"; then
12841 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12842 else
12843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12844 for as_dir in $PATH
12845 do
12846 IFS=$as_save_IFS
12847 test -z "$as_dir" && as_dir=.
12848 for ac_exec_ext in '' $ac_executable_extensions; do
12849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12850 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12852 break 2
12853 fi
12854 done
12855 done
12856 IFS=$as_save_IFS
12857
12858 fi
12859 fi
12860 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12861 if test -n "$RANLIB_FOR_TARGET"; then
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12863 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12864 else
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 $as_echo "no" >&6; }
12867 fi
12868
12869
12870 fi
12871 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12873 set dummy ${ncn_progname}; ac_word=$2
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12875 $as_echo_n "checking for $ac_word... " >&6; }
12876 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12877 $as_echo_n "(cached) " >&6
12878 else
12879 if test -n "$RANLIB_FOR_TARGET"; then
12880 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12881 else
12882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12883 for as_dir in $PATH
12884 do
12885 IFS=$as_save_IFS
12886 test -z "$as_dir" && as_dir=.
12887 for ac_exec_ext in '' $ac_executable_extensions; do
12888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12889 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12891 break 2
12892 fi
12893 done
12894 done
12895 IFS=$as_save_IFS
12896
12897 fi
12898 fi
12899 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12900 if test -n "$RANLIB_FOR_TARGET"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12902 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12903 else
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12906 fi
12907
12908
12909 fi
12910 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12911 done
12912 fi
12913
12914 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12915 set dummy ranlib
12916 if test $build = $target ; then
12917 RANLIB_FOR_TARGET="$2"
12918 else
12919 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12920 fi
12921 else
12922 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12923 fi
12924
12925 else
12926 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12927 fi
12928
12929
12930
12931
12932 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12933 if test -n "$with_build_time_tools"; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12935 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12936 if test -x $with_build_time_tools/readelf; then
12937 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12938 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12940 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12941 else
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12943 $as_echo "no" >&6; }
12944 fi
12945 elif test $build != $host && test $have_gcc_for_target = yes; then
12946 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12947 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12948 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12949 fi
12950 fi
12951 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12952 # Extract the first word of "readelf", so it can be a program name with args.
12953 set dummy readelf; ac_word=$2
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12955 $as_echo_n "checking for $ac_word... " >&6; }
12956 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12957 $as_echo_n "(cached) " >&6
12958 else
12959 case $READELF_FOR_TARGET in
12960 [\\/]* | ?:[\\/]*)
12961 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12962 ;;
12963 *)
12964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965 for as_dir in $gcc_cv_tool_dirs
12966 do
12967 IFS=$as_save_IFS
12968 test -z "$as_dir" && as_dir=.
12969 for ac_exec_ext in '' $ac_executable_extensions; do
12970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12971 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12973 break 2
12974 fi
12975 done
12976 done
12977 IFS=$as_save_IFS
12978
12979 ;;
12980 esac
12981 fi
12982 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12983 if test -n "$READELF_FOR_TARGET"; then
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12985 $as_echo "$READELF_FOR_TARGET" >&6; }
12986 else
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988 $as_echo "no" >&6; }
12989 fi
12990
12991
12992 fi
12993 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12994
12995
12996 if test -n "$READELF_FOR_TARGET"; then
12997 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12998 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12999 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13000 fi
13001
13002 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13003 for ncn_progname in readelf; do
13004 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13005 set dummy ${ncn_progname}; ac_word=$2
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007 $as_echo_n "checking for $ac_word... " >&6; }
13008 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13009 $as_echo_n "(cached) " >&6
13010 else
13011 if test -n "$READELF_FOR_TARGET"; then
13012 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13013 else
13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015 for as_dir in $PATH
13016 do
13017 IFS=$as_save_IFS
13018 test -z "$as_dir" && as_dir=.
13019 for ac_exec_ext in '' $ac_executable_extensions; do
13020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13021 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13023 break 2
13024 fi
13025 done
13026 done
13027 IFS=$as_save_IFS
13028
13029 fi
13030 fi
13031 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13032 if test -n "$READELF_FOR_TARGET"; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13034 $as_echo "$READELF_FOR_TARGET" >&6; }
13035 else
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13038 fi
13039
13040
13041 done
13042 fi
13043
13044 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13045 for ncn_progname in readelf; do
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13047 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13048 if test -x $with_build_time_tools/${ncn_progname}; then
13049 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13051 $as_echo "yes" >&6; }
13052 break
13053 else
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13055 $as_echo "no" >&6; }
13056 fi
13057 done
13058 fi
13059
13060 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13061 for ncn_progname in readelf; do
13062 if test -n "$ncn_target_tool_prefix"; then
13063 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13064 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13066 $as_echo_n "checking for $ac_word... " >&6; }
13067 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13068 $as_echo_n "(cached) " >&6
13069 else
13070 if test -n "$READELF_FOR_TARGET"; then
13071 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13072 else
13073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074 for as_dir in $PATH
13075 do
13076 IFS=$as_save_IFS
13077 test -z "$as_dir" && as_dir=.
13078 for ac_exec_ext in '' $ac_executable_extensions; do
13079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13080 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13082 break 2
13083 fi
13084 done
13085 done
13086 IFS=$as_save_IFS
13087
13088 fi
13089 fi
13090 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13091 if test -n "$READELF_FOR_TARGET"; then
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13093 $as_echo "$READELF_FOR_TARGET" >&6; }
13094 else
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13096 $as_echo "no" >&6; }
13097 fi
13098
13099
13100 fi
13101 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13102 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13103 set dummy ${ncn_progname}; ac_word=$2
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13105 $as_echo_n "checking for $ac_word... " >&6; }
13106 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 if test -n "$READELF_FOR_TARGET"; then
13110 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13111 else
13112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13113 for as_dir in $PATH
13114 do
13115 IFS=$as_save_IFS
13116 test -z "$as_dir" && as_dir=.
13117 for ac_exec_ext in '' $ac_executable_extensions; do
13118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13119 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13121 break 2
13122 fi
13123 done
13124 done
13125 IFS=$as_save_IFS
13126
13127 fi
13128 fi
13129 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13130 if test -n "$READELF_FOR_TARGET"; then
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13132 $as_echo "$READELF_FOR_TARGET" >&6; }
13133 else
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135 $as_echo "no" >&6; }
13136 fi
13137
13138
13139 fi
13140 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13141 done
13142 fi
13143
13144 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13145 set dummy readelf
13146 if test $build = $target ; then
13147 READELF_FOR_TARGET="$2"
13148 else
13149 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13150 fi
13151 else
13152 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13153 fi
13154
13155 else
13156 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13157 fi
13158
13159
13160
13161
13162 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13163 if test -n "$with_build_time_tools"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13165 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13166 if test -x $with_build_time_tools/strip; then
13167 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13168 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13170 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13171 else
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13173 $as_echo "no" >&6; }
13174 fi
13175 elif test $build != $host && test $have_gcc_for_target = yes; then
13176 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13177 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13178 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13179 fi
13180 fi
13181 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13182 # Extract the first word of "strip", so it can be a program name with args.
13183 set dummy strip; ac_word=$2
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13185 $as_echo_n "checking for $ac_word... " >&6; }
13186 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13187 $as_echo_n "(cached) " >&6
13188 else
13189 case $STRIP_FOR_TARGET in
13190 [\\/]* | ?:[\\/]*)
13191 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13192 ;;
13193 *)
13194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13195 for as_dir in $gcc_cv_tool_dirs
13196 do
13197 IFS=$as_save_IFS
13198 test -z "$as_dir" && as_dir=.
13199 for ac_exec_ext in '' $ac_executable_extensions; do
13200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13201 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13203 break 2
13204 fi
13205 done
13206 done
13207 IFS=$as_save_IFS
13208
13209 ;;
13210 esac
13211 fi
13212 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13213 if test -n "$STRIP_FOR_TARGET"; then
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13215 $as_echo "$STRIP_FOR_TARGET" >&6; }
13216 else
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13218 $as_echo "no" >&6; }
13219 fi
13220
13221
13222 fi
13223 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13224
13225
13226 if test -n "$STRIP_FOR_TARGET"; then
13227 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13228 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13229 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13230 fi
13231
13232 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13233 for ncn_progname in strip; do
13234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13235 set dummy ${ncn_progname}; ac_word=$2
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237 $as_echo_n "checking for $ac_word... " >&6; }
13238 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
13240 else
13241 if test -n "$STRIP_FOR_TARGET"; then
13242 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13243 else
13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245 for as_dir in $PATH
13246 do
13247 IFS=$as_save_IFS
13248 test -z "$as_dir" && as_dir=.
13249 for ac_exec_ext in '' $ac_executable_extensions; do
13250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13251 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13253 break 2
13254 fi
13255 done
13256 done
13257 IFS=$as_save_IFS
13258
13259 fi
13260 fi
13261 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13262 if test -n "$STRIP_FOR_TARGET"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13264 $as_echo "$STRIP_FOR_TARGET" >&6; }
13265 else
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13268 fi
13269
13270
13271 done
13272 fi
13273
13274 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13275 for ncn_progname in strip; do
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13277 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13278 if test -x $with_build_time_tools/${ncn_progname}; then
13279 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13281 $as_echo "yes" >&6; }
13282 break
13283 else
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13285 $as_echo "no" >&6; }
13286 fi
13287 done
13288 fi
13289
13290 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13291 for ncn_progname in strip; do
13292 if test -n "$ncn_target_tool_prefix"; then
13293 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13294 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13296 $as_echo_n "checking for $ac_word... " >&6; }
13297 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13298 $as_echo_n "(cached) " >&6
13299 else
13300 if test -n "$STRIP_FOR_TARGET"; then
13301 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13302 else
13303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13304 for as_dir in $PATH
13305 do
13306 IFS=$as_save_IFS
13307 test -z "$as_dir" && as_dir=.
13308 for ac_exec_ext in '' $ac_executable_extensions; do
13309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13310 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13312 break 2
13313 fi
13314 done
13315 done
13316 IFS=$as_save_IFS
13317
13318 fi
13319 fi
13320 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13321 if test -n "$STRIP_FOR_TARGET"; then
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13323 $as_echo "$STRIP_FOR_TARGET" >&6; }
13324 else
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13327 fi
13328
13329
13330 fi
13331 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13332 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13333 set dummy ${ncn_progname}; ac_word=$2
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13335 $as_echo_n "checking for $ac_word... " >&6; }
13336 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13337 $as_echo_n "(cached) " >&6
13338 else
13339 if test -n "$STRIP_FOR_TARGET"; then
13340 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13341 else
13342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13343 for as_dir in $PATH
13344 do
13345 IFS=$as_save_IFS
13346 test -z "$as_dir" && as_dir=.
13347 for ac_exec_ext in '' $ac_executable_extensions; do
13348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13349 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13351 break 2
13352 fi
13353 done
13354 done
13355 IFS=$as_save_IFS
13356
13357 fi
13358 fi
13359 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13360 if test -n "$STRIP_FOR_TARGET"; then
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13362 $as_echo "$STRIP_FOR_TARGET" >&6; }
13363 else
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365 $as_echo "no" >&6; }
13366 fi
13367
13368
13369 fi
13370 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13371 done
13372 fi
13373
13374 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13375 set dummy strip
13376 if test $build = $target ; then
13377 STRIP_FOR_TARGET="$2"
13378 else
13379 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13380 fi
13381 else
13382 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13383 fi
13384
13385 else
13386 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13387 fi
13388
13389
13390
13391
13392 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13393 if test -n "$with_build_time_tools"; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13395 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13396 if test -x $with_build_time_tools/windres; then
13397 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13398 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13400 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13401 else
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13403 $as_echo "no" >&6; }
13404 fi
13405 elif test $build != $host && test $have_gcc_for_target = yes; then
13406 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13407 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13408 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13409 fi
13410 fi
13411 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13412 # Extract the first word of "windres", so it can be a program name with args.
13413 set dummy windres; ac_word=$2
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13415 $as_echo_n "checking for $ac_word... " >&6; }
13416 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13417 $as_echo_n "(cached) " >&6
13418 else
13419 case $WINDRES_FOR_TARGET in
13420 [\\/]* | ?:[\\/]*)
13421 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13422 ;;
13423 *)
13424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425 for as_dir in $gcc_cv_tool_dirs
13426 do
13427 IFS=$as_save_IFS
13428 test -z "$as_dir" && as_dir=.
13429 for ac_exec_ext in '' $ac_executable_extensions; do
13430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13431 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13433 break 2
13434 fi
13435 done
13436 done
13437 IFS=$as_save_IFS
13438
13439 ;;
13440 esac
13441 fi
13442 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13443 if test -n "$WINDRES_FOR_TARGET"; then
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13445 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13446 else
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448 $as_echo "no" >&6; }
13449 fi
13450
13451
13452 fi
13453 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13454
13455
13456 if test -n "$WINDRES_FOR_TARGET"; then
13457 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13458 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13459 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13460 fi
13461
13462 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13463 for ncn_progname in windres; do
13464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13465 set dummy ${ncn_progname}; ac_word=$2
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13467 $as_echo_n "checking for $ac_word... " >&6; }
13468 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13469 $as_echo_n "(cached) " >&6
13470 else
13471 if test -n "$WINDRES_FOR_TARGET"; then
13472 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13473 else
13474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13475 for as_dir in $PATH
13476 do
13477 IFS=$as_save_IFS
13478 test -z "$as_dir" && as_dir=.
13479 for ac_exec_ext in '' $ac_executable_extensions; do
13480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13481 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13483 break 2
13484 fi
13485 done
13486 done
13487 IFS=$as_save_IFS
13488
13489 fi
13490 fi
13491 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13492 if test -n "$WINDRES_FOR_TARGET"; then
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13494 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13495 else
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13497 $as_echo "no" >&6; }
13498 fi
13499
13500
13501 done
13502 fi
13503
13504 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13505 for ncn_progname in windres; do
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13507 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13508 if test -x $with_build_time_tools/${ncn_progname}; then
13509 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13511 $as_echo "yes" >&6; }
13512 break
13513 else
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13515 $as_echo "no" >&6; }
13516 fi
13517 done
13518 fi
13519
13520 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13521 for ncn_progname in windres; do
13522 if test -n "$ncn_target_tool_prefix"; then
13523 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13524 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13526 $as_echo_n "checking for $ac_word... " >&6; }
13527 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13528 $as_echo_n "(cached) " >&6
13529 else
13530 if test -n "$WINDRES_FOR_TARGET"; then
13531 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13532 else
13533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13534 for as_dir in $PATH
13535 do
13536 IFS=$as_save_IFS
13537 test -z "$as_dir" && as_dir=.
13538 for ac_exec_ext in '' $ac_executable_extensions; do
13539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13540 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13542 break 2
13543 fi
13544 done
13545 done
13546 IFS=$as_save_IFS
13547
13548 fi
13549 fi
13550 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13551 if test -n "$WINDRES_FOR_TARGET"; then
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13553 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13554 else
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13556 $as_echo "no" >&6; }
13557 fi
13558
13559
13560 fi
13561 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13563 set dummy ${ncn_progname}; ac_word=$2
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13565 $as_echo_n "checking for $ac_word... " >&6; }
13566 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13567 $as_echo_n "(cached) " >&6
13568 else
13569 if test -n "$WINDRES_FOR_TARGET"; then
13570 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13571 else
13572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13573 for as_dir in $PATH
13574 do
13575 IFS=$as_save_IFS
13576 test -z "$as_dir" && as_dir=.
13577 for ac_exec_ext in '' $ac_executable_extensions; do
13578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13579 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13581 break 2
13582 fi
13583 done
13584 done
13585 IFS=$as_save_IFS
13586
13587 fi
13588 fi
13589 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13590 if test -n "$WINDRES_FOR_TARGET"; then
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13592 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13593 else
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595 $as_echo "no" >&6; }
13596 fi
13597
13598
13599 fi
13600 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13601 done
13602 fi
13603
13604 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13605 set dummy windres
13606 if test $build = $target ; then
13607 WINDRES_FOR_TARGET="$2"
13608 else
13609 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13610 fi
13611 else
13612 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13613 fi
13614
13615 else
13616 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13617 fi
13618
13619
13620
13621
13622 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13623 if test -n "$with_build_time_tools"; then
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13625 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13626 if test -x $with_build_time_tools/windmc; then
13627 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13628 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13630 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13631 else
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13633 $as_echo "no" >&6; }
13634 fi
13635 elif test $build != $host && test $have_gcc_for_target = yes; then
13636 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13637 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13638 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13639 fi
13640 fi
13641 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13642 # Extract the first word of "windmc", so it can be a program name with args.
13643 set dummy windmc; ac_word=$2
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13645 $as_echo_n "checking for $ac_word... " >&6; }
13646 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13647 $as_echo_n "(cached) " >&6
13648 else
13649 case $WINDMC_FOR_TARGET in
13650 [\\/]* | ?:[\\/]*)
13651 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13652 ;;
13653 *)
13654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13655 for as_dir in $gcc_cv_tool_dirs
13656 do
13657 IFS=$as_save_IFS
13658 test -z "$as_dir" && as_dir=.
13659 for ac_exec_ext in '' $ac_executable_extensions; do
13660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13661 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13663 break 2
13664 fi
13665 done
13666 done
13667 IFS=$as_save_IFS
13668
13669 ;;
13670 esac
13671 fi
13672 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13673 if test -n "$WINDMC_FOR_TARGET"; then
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13675 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13676 else
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13678 $as_echo "no" >&6; }
13679 fi
13680
13681
13682 fi
13683 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13684
13685
13686 if test -n "$WINDMC_FOR_TARGET"; then
13687 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13688 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13689 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13690 fi
13691
13692 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13693 for ncn_progname in windmc; do
13694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13695 set dummy ${ncn_progname}; ac_word=$2
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13697 $as_echo_n "checking for $ac_word... " >&6; }
13698 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13699 $as_echo_n "(cached) " >&6
13700 else
13701 if test -n "$WINDMC_FOR_TARGET"; then
13702 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13703 else
13704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13705 for as_dir in $PATH
13706 do
13707 IFS=$as_save_IFS
13708 test -z "$as_dir" && as_dir=.
13709 for ac_exec_ext in '' $ac_executable_extensions; do
13710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13711 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13713 break 2
13714 fi
13715 done
13716 done
13717 IFS=$as_save_IFS
13718
13719 fi
13720 fi
13721 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13722 if test -n "$WINDMC_FOR_TARGET"; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13724 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13725 else
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13727 $as_echo "no" >&6; }
13728 fi
13729
13730
13731 done
13732 fi
13733
13734 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13735 for ncn_progname in windmc; do
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13737 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13738 if test -x $with_build_time_tools/${ncn_progname}; then
13739 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13741 $as_echo "yes" >&6; }
13742 break
13743 else
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13745 $as_echo "no" >&6; }
13746 fi
13747 done
13748 fi
13749
13750 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13751 for ncn_progname in windmc; do
13752 if test -n "$ncn_target_tool_prefix"; then
13753 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13754 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13756 $as_echo_n "checking for $ac_word... " >&6; }
13757 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 if test -n "$WINDMC_FOR_TARGET"; then
13761 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13762 else
13763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13764 for as_dir in $PATH
13765 do
13766 IFS=$as_save_IFS
13767 test -z "$as_dir" && as_dir=.
13768 for ac_exec_ext in '' $ac_executable_extensions; do
13769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13770 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13772 break 2
13773 fi
13774 done
13775 done
13776 IFS=$as_save_IFS
13777
13778 fi
13779 fi
13780 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13781 if test -n "$WINDMC_FOR_TARGET"; then
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13783 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13784 else
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786 $as_echo "no" >&6; }
13787 fi
13788
13789
13790 fi
13791 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13793 set dummy ${ncn_progname}; ac_word=$2
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13795 $as_echo_n "checking for $ac_word... " >&6; }
13796 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13797 $as_echo_n "(cached) " >&6
13798 else
13799 if test -n "$WINDMC_FOR_TARGET"; then
13800 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13801 else
13802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13803 for as_dir in $PATH
13804 do
13805 IFS=$as_save_IFS
13806 test -z "$as_dir" && as_dir=.
13807 for ac_exec_ext in '' $ac_executable_extensions; do
13808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13809 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13811 break 2
13812 fi
13813 done
13814 done
13815 IFS=$as_save_IFS
13816
13817 fi
13818 fi
13819 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13820 if test -n "$WINDMC_FOR_TARGET"; then
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13822 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13823 else
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13825 $as_echo "no" >&6; }
13826 fi
13827
13828
13829 fi
13830 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13831 done
13832 fi
13833
13834 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13835 set dummy windmc
13836 if test $build = $target ; then
13837 WINDMC_FOR_TARGET="$2"
13838 else
13839 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13840 fi
13841 else
13842 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13843 fi
13844
13845 else
13846 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13847 fi
13848
13849
13850 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13851
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13853 $as_echo_n "checking where to find the target ar... " >&6; }
13854 if test "x${build}" != "x${host}" ; then
13855 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13856 # We already found the complete path
13857 ac_dir=`dirname $AR_FOR_TARGET`
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13859 $as_echo "pre-installed in $ac_dir" >&6; }
13860 else
13861 # Canadian cross, just use what we found
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13863 $as_echo "pre-installed" >&6; }
13864 fi
13865 else
13866 ok=yes
13867 case " ${configdirs} " in
13868 *" binutils "*) ;;
13869 *) ok=no ;;
13870 esac
13871
13872 if test $ok = yes; then
13873 # An in-tree tool is available and we can use it
13874 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13876 $as_echo "just compiled" >&6; }
13877 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13878 # We already found the complete path
13879 ac_dir=`dirname $AR_FOR_TARGET`
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13881 $as_echo "pre-installed in $ac_dir" >&6; }
13882 elif test "x$target" = "x$host"; then
13883 # We can use an host tool
13884 AR_FOR_TARGET='$(AR)'
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13886 $as_echo "host tool" >&6; }
13887 else
13888 # We need a cross tool
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13890 $as_echo "pre-installed" >&6; }
13891 fi
13892 fi
13893
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13895 $as_echo_n "checking where to find the target as... " >&6; }
13896 if test "x${build}" != "x${host}" ; then
13897 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13898 # We already found the complete path
13899 ac_dir=`dirname $AS_FOR_TARGET`
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13901 $as_echo "pre-installed in $ac_dir" >&6; }
13902 else
13903 # Canadian cross, just use what we found
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13905 $as_echo "pre-installed" >&6; }
13906 fi
13907 else
13908 ok=yes
13909 case " ${configdirs} " in
13910 *" gas "*) ;;
13911 *) ok=no ;;
13912 esac
13913
13914 if test $ok = yes; then
13915 # An in-tree tool is available and we can use it
13916 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13918 $as_echo "just compiled" >&6; }
13919 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13920 # We already found the complete path
13921 ac_dir=`dirname $AS_FOR_TARGET`
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13923 $as_echo "pre-installed in $ac_dir" >&6; }
13924 elif test "x$target" = "x$host"; then
13925 # We can use an host tool
13926 AS_FOR_TARGET='$(AS)'
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13928 $as_echo "host tool" >&6; }
13929 else
13930 # We need a cross tool
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13932 $as_echo "pre-installed" >&6; }
13933 fi
13934 fi
13935
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13937 $as_echo_n "checking where to find the target cc... " >&6; }
13938 if test "x${build}" != "x${host}" ; then
13939 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13940 # We already found the complete path
13941 ac_dir=`dirname $CC_FOR_TARGET`
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13943 $as_echo "pre-installed in $ac_dir" >&6; }
13944 else
13945 # Canadian cross, just use what we found
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13947 $as_echo "pre-installed" >&6; }
13948 fi
13949 else
13950 ok=yes
13951 case " ${configdirs} " in
13952 *" gcc "*) ;;
13953 *) ok=no ;;
13954 esac
13955
13956 if test $ok = yes; then
13957 # An in-tree tool is available and we can use it
13958 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13960 $as_echo "just compiled" >&6; }
13961 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13962 # We already found the complete path
13963 ac_dir=`dirname $CC_FOR_TARGET`
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13965 $as_echo "pre-installed in $ac_dir" >&6; }
13966 elif test "x$target" = "x$host"; then
13967 # We can use an host tool
13968 CC_FOR_TARGET='$(CC)'
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13970 $as_echo "host tool" >&6; }
13971 else
13972 # We need a cross tool
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13974 $as_echo "pre-installed" >&6; }
13975 fi
13976 fi
13977
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13979 $as_echo_n "checking where to find the target c++... " >&6; }
13980 if test "x${build}" != "x${host}" ; then
13981 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13982 # We already found the complete path
13983 ac_dir=`dirname $CXX_FOR_TARGET`
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13985 $as_echo "pre-installed in $ac_dir" >&6; }
13986 else
13987 # Canadian cross, just use what we found
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13989 $as_echo "pre-installed" >&6; }
13990 fi
13991 else
13992 ok=yes
13993 case " ${configdirs} " in
13994 *" gcc "*) ;;
13995 *) ok=no ;;
13996 esac
13997 case ,${enable_languages}, in
13998 *,c++,*) ;;
13999 *) ok=no ;;
14000 esac
14001 if test $ok = yes; then
14002 # An in-tree tool is available and we can use it
14003 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'
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14005 $as_echo "just compiled" >&6; }
14006 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14007 # We already found the complete path
14008 ac_dir=`dirname $CXX_FOR_TARGET`
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14010 $as_echo "pre-installed in $ac_dir" >&6; }
14011 elif test "x$target" = "x$host"; then
14012 # We can use an host tool
14013 CXX_FOR_TARGET='$(CXX)'
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14015 $as_echo "host tool" >&6; }
14016 else
14017 # We need a cross tool
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14019 $as_echo "pre-installed" >&6; }
14020 fi
14021 fi
14022
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14024 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14025 if test "x${build}" != "x${host}" ; then
14026 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14027 # We already found the complete path
14028 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14030 $as_echo "pre-installed in $ac_dir" >&6; }
14031 else
14032 # Canadian cross, just use what we found
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14034 $as_echo "pre-installed" >&6; }
14035 fi
14036 else
14037 ok=yes
14038 case " ${configdirs} " in
14039 *" gcc "*) ;;
14040 *) ok=no ;;
14041 esac
14042 case ,${enable_languages}, in
14043 *,c++,*) ;;
14044 *) ok=no ;;
14045 esac
14046 if test $ok = yes; then
14047 # An in-tree tool is available and we can use it
14048 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'
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14050 $as_echo "just compiled" >&6; }
14051 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14052 # We already found the complete path
14053 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14055 $as_echo "pre-installed in $ac_dir" >&6; }
14056 elif test "x$target" = "x$host"; then
14057 # We can use an host tool
14058 RAW_CXX_FOR_TARGET='$(CXX)'
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14060 $as_echo "host tool" >&6; }
14061 else
14062 # We need a cross tool
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14064 $as_echo "pre-installed" >&6; }
14065 fi
14066 fi
14067
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14069 $as_echo_n "checking where to find the target dlltool... " >&6; }
14070 if test "x${build}" != "x${host}" ; then
14071 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14072 # We already found the complete path
14073 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14075 $as_echo "pre-installed in $ac_dir" >&6; }
14076 else
14077 # Canadian cross, just use what we found
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14079 $as_echo "pre-installed" >&6; }
14080 fi
14081 else
14082 ok=yes
14083 case " ${configdirs} " in
14084 *" binutils "*) ;;
14085 *) ok=no ;;
14086 esac
14087
14088 if test $ok = yes; then
14089 # An in-tree tool is available and we can use it
14090 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14092 $as_echo "just compiled" >&6; }
14093 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14094 # We already found the complete path
14095 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14097 $as_echo "pre-installed in $ac_dir" >&6; }
14098 elif test "x$target" = "x$host"; then
14099 # We can use an host tool
14100 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14102 $as_echo "host tool" >&6; }
14103 else
14104 # We need a cross tool
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14106 $as_echo "pre-installed" >&6; }
14107 fi
14108 fi
14109
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14111 $as_echo_n "checking where to find the target gcc... " >&6; }
14112 if test "x${build}" != "x${host}" ; then
14113 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14114 # We already found the complete path
14115 ac_dir=`dirname $GCC_FOR_TARGET`
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14117 $as_echo "pre-installed in $ac_dir" >&6; }
14118 else
14119 # Canadian cross, just use what we found
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14121 $as_echo "pre-installed" >&6; }
14122 fi
14123 else
14124 ok=yes
14125 case " ${configdirs} " in
14126 *" gcc "*) ;;
14127 *) ok=no ;;
14128 esac
14129
14130 if test $ok = yes; then
14131 # An in-tree tool is available and we can use it
14132 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14134 $as_echo "just compiled" >&6; }
14135 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14136 # We already found the complete path
14137 ac_dir=`dirname $GCC_FOR_TARGET`
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14139 $as_echo "pre-installed in $ac_dir" >&6; }
14140 elif test "x$target" = "x$host"; then
14141 # We can use an host tool
14142 GCC_FOR_TARGET='$()'
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14144 $as_echo "host tool" >&6; }
14145 else
14146 # We need a cross tool
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14148 $as_echo "pre-installed" >&6; }
14149 fi
14150 fi
14151
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14153 $as_echo_n "checking where to find the target gcj... " >&6; }
14154 if test "x${build}" != "x${host}" ; then
14155 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14156 # We already found the complete path
14157 ac_dir=`dirname $GCJ_FOR_TARGET`
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14159 $as_echo "pre-installed in $ac_dir" >&6; }
14160 else
14161 # Canadian cross, just use what we found
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14163 $as_echo "pre-installed" >&6; }
14164 fi
14165 else
14166 ok=yes
14167 case " ${configdirs} " in
14168 *" gcc "*) ;;
14169 *) ok=no ;;
14170 esac
14171 case ,${enable_languages}, in
14172 *,java,*) ;;
14173 *) ok=no ;;
14174 esac
14175 if test $ok = yes; then
14176 # An in-tree tool is available and we can use it
14177 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14179 $as_echo "just compiled" >&6; }
14180 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14181 # We already found the complete path
14182 ac_dir=`dirname $GCJ_FOR_TARGET`
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14184 $as_echo "pre-installed in $ac_dir" >&6; }
14185 elif test "x$target" = "x$host"; then
14186 # We can use an host tool
14187 GCJ_FOR_TARGET='$(GCJ)'
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14189 $as_echo "host tool" >&6; }
14190 else
14191 # We need a cross tool
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14193 $as_echo "pre-installed" >&6; }
14194 fi
14195 fi
14196
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14198 $as_echo_n "checking where to find the target gfortran... " >&6; }
14199 if test "x${build}" != "x${host}" ; then
14200 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14201 # We already found the complete path
14202 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14204 $as_echo "pre-installed in $ac_dir" >&6; }
14205 else
14206 # Canadian cross, just use what we found
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14208 $as_echo "pre-installed" >&6; }
14209 fi
14210 else
14211 ok=yes
14212 case " ${configdirs} " in
14213 *" gcc "*) ;;
14214 *) ok=no ;;
14215 esac
14216 case ,${enable_languages}, in
14217 *,fortran,*) ;;
14218 *) ok=no ;;
14219 esac
14220 if test $ok = yes; then
14221 # An in-tree tool is available and we can use it
14222 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14224 $as_echo "just compiled" >&6; }
14225 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14226 # We already found the complete path
14227 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14229 $as_echo "pre-installed in $ac_dir" >&6; }
14230 elif test "x$target" = "x$host"; then
14231 # We can use an host tool
14232 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14234 $as_echo "host tool" >&6; }
14235 else
14236 # We need a cross tool
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14238 $as_echo "pre-installed" >&6; }
14239 fi
14240 fi
14241
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14243 $as_echo_n "checking where to find the target gccgo... " >&6; }
14244 if test "x${build}" != "x${host}" ; then
14245 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14246 # We already found the complete path
14247 ac_dir=`dirname $GOC_FOR_TARGET`
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14249 $as_echo "pre-installed in $ac_dir" >&6; }
14250 else
14251 # Canadian cross, just use what we found
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14253 $as_echo "pre-installed" >&6; }
14254 fi
14255 else
14256 ok=yes
14257 case " ${configdirs} " in
14258 *" gcc "*) ;;
14259 *) ok=no ;;
14260 esac
14261 case ,${enable_languages}, in
14262 *,go,*) ;;
14263 *) ok=no ;;
14264 esac
14265 if test $ok = yes; then
14266 # An in-tree tool is available and we can use it
14267 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14269 $as_echo "just compiled" >&6; }
14270 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14271 # We already found the complete path
14272 ac_dir=`dirname $GOC_FOR_TARGET`
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14274 $as_echo "pre-installed in $ac_dir" >&6; }
14275 elif test "x$target" = "x$host"; then
14276 # We can use an host tool
14277 GOC_FOR_TARGET='$(GOC)'
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14279 $as_echo "host tool" >&6; }
14280 else
14281 # We need a cross tool
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14283 $as_echo "pre-installed" >&6; }
14284 fi
14285 fi
14286
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14288 $as_echo_n "checking where to find the target ld... " >&6; }
14289 if test "x${build}" != "x${host}" ; then
14290 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14291 # We already found the complete path
14292 ac_dir=`dirname $LD_FOR_TARGET`
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14294 $as_echo "pre-installed in $ac_dir" >&6; }
14295 else
14296 # Canadian cross, just use what we found
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14298 $as_echo "pre-installed" >&6; }
14299 fi
14300 else
14301 ok=yes
14302 case " ${configdirs} " in
14303 *" ld "*) ;;
14304 *) ok=no ;;
14305 esac
14306
14307 if test $ok = yes; then
14308 # An in-tree tool is available and we can use it
14309 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14311 $as_echo "just compiled" >&6; }
14312 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14313 # We already found the complete path
14314 ac_dir=`dirname $LD_FOR_TARGET`
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14316 $as_echo "pre-installed in $ac_dir" >&6; }
14317 elif test "x$target" = "x$host"; then
14318 # We can use an host tool
14319 LD_FOR_TARGET='$(LD)'
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14321 $as_echo "host tool" >&6; }
14322 else
14323 # We need a cross tool
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14325 $as_echo "pre-installed" >&6; }
14326 fi
14327 fi
14328
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14330 $as_echo_n "checking where to find the target lipo... " >&6; }
14331 if test "x${build}" != "x${host}" ; then
14332 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14333 # We already found the complete path
14334 ac_dir=`dirname $LIPO_FOR_TARGET`
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14336 $as_echo "pre-installed in $ac_dir" >&6; }
14337 else
14338 # Canadian cross, just use what we found
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14340 $as_echo "pre-installed" >&6; }
14341 fi
14342 else
14343 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14344 # We already found the complete path
14345 ac_dir=`dirname $LIPO_FOR_TARGET`
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14347 $as_echo "pre-installed in $ac_dir" >&6; }
14348 elif test "x$target" = "x$host"; then
14349 # We can use an host tool
14350 LIPO_FOR_TARGET='$(LIPO)'
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14352 $as_echo "host tool" >&6; }
14353 else
14354 # We need a cross tool
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14356 $as_echo "pre-installed" >&6; }
14357 fi
14358 fi
14359
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14361 $as_echo_n "checking where to find the target nm... " >&6; }
14362 if test "x${build}" != "x${host}" ; then
14363 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14364 # We already found the complete path
14365 ac_dir=`dirname $NM_FOR_TARGET`
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14367 $as_echo "pre-installed in $ac_dir" >&6; }
14368 else
14369 # Canadian cross, just use what we found
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14371 $as_echo "pre-installed" >&6; }
14372 fi
14373 else
14374 ok=yes
14375 case " ${configdirs} " in
14376 *" binutils "*) ;;
14377 *) ok=no ;;
14378 esac
14379
14380 if test $ok = yes; then
14381 # An in-tree tool is available and we can use it
14382 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14384 $as_echo "just compiled" >&6; }
14385 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14386 # We already found the complete path
14387 ac_dir=`dirname $NM_FOR_TARGET`
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14389 $as_echo "pre-installed in $ac_dir" >&6; }
14390 elif test "x$target" = "x$host"; then
14391 # We can use an host tool
14392 NM_FOR_TARGET='$(NM)'
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14394 $as_echo "host tool" >&6; }
14395 else
14396 # We need a cross tool
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14398 $as_echo "pre-installed" >&6; }
14399 fi
14400 fi
14401
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14403 $as_echo_n "checking where to find the target objcopy... " >&6; }
14404 if test "x${build}" != "x${host}" ; then
14405 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14406 # We already found the complete path
14407 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14409 $as_echo "pre-installed in $ac_dir" >&6; }
14410 else
14411 # Canadian cross, just use what we found
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14413 $as_echo "pre-installed" >&6; }
14414 fi
14415 else
14416 ok=yes
14417 case " ${configdirs} " in
14418 *" binutils "*) ;;
14419 *) ok=no ;;
14420 esac
14421
14422 if test $ok = yes; then
14423 # An in-tree tool is available and we can use it
14424 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14426 $as_echo "just compiled" >&6; }
14427 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14428 # We already found the complete path
14429 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14431 $as_echo "pre-installed in $ac_dir" >&6; }
14432 elif test "x$target" = "x$host"; then
14433 # We can use an host tool
14434 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14436 $as_echo "host tool" >&6; }
14437 else
14438 # We need a cross tool
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14440 $as_echo "pre-installed" >&6; }
14441 fi
14442 fi
14443
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14445 $as_echo_n "checking where to find the target objdump... " >&6; }
14446 if test "x${build}" != "x${host}" ; then
14447 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14448 # We already found the complete path
14449 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14451 $as_echo "pre-installed in $ac_dir" >&6; }
14452 else
14453 # Canadian cross, just use what we found
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14455 $as_echo "pre-installed" >&6; }
14456 fi
14457 else
14458 ok=yes
14459 case " ${configdirs} " in
14460 *" binutils "*) ;;
14461 *) ok=no ;;
14462 esac
14463
14464 if test $ok = yes; then
14465 # An in-tree tool is available and we can use it
14466 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14468 $as_echo "just compiled" >&6; }
14469 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14470 # We already found the complete path
14471 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14473 $as_echo "pre-installed in $ac_dir" >&6; }
14474 elif test "x$target" = "x$host"; then
14475 # We can use an host tool
14476 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14478 $as_echo "host tool" >&6; }
14479 else
14480 # We need a cross tool
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14482 $as_echo "pre-installed" >&6; }
14483 fi
14484 fi
14485
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14487 $as_echo_n "checking where to find the target ranlib... " >&6; }
14488 if test "x${build}" != "x${host}" ; then
14489 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14490 # We already found the complete path
14491 ac_dir=`dirname $RANLIB_FOR_TARGET`
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14493 $as_echo "pre-installed in $ac_dir" >&6; }
14494 else
14495 # Canadian cross, just use what we found
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14497 $as_echo "pre-installed" >&6; }
14498 fi
14499 else
14500 ok=yes
14501 case " ${configdirs} " in
14502 *" binutils "*) ;;
14503 *) ok=no ;;
14504 esac
14505
14506 if test $ok = yes; then
14507 # An in-tree tool is available and we can use it
14508 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14510 $as_echo "just compiled" >&6; }
14511 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14512 # We already found the complete path
14513 ac_dir=`dirname $RANLIB_FOR_TARGET`
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14515 $as_echo "pre-installed in $ac_dir" >&6; }
14516 elif test "x$target" = "x$host"; then
14517 # We can use an host tool
14518 RANLIB_FOR_TARGET='$(RANLIB)'
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14520 $as_echo "host tool" >&6; }
14521 else
14522 # We need a cross tool
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14524 $as_echo "pre-installed" >&6; }
14525 fi
14526 fi
14527
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14529 $as_echo_n "checking where to find the target readelf... " >&6; }
14530 if test "x${build}" != "x${host}" ; then
14531 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14532 # We already found the complete path
14533 ac_dir=`dirname $READELF_FOR_TARGET`
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14535 $as_echo "pre-installed in $ac_dir" >&6; }
14536 else
14537 # Canadian cross, just use what we found
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14539 $as_echo "pre-installed" >&6; }
14540 fi
14541 else
14542 ok=yes
14543 case " ${configdirs} " in
14544 *" binutils "*) ;;
14545 *) ok=no ;;
14546 esac
14547
14548 if test $ok = yes; then
14549 # An in-tree tool is available and we can use it
14550 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14552 $as_echo "just compiled" >&6; }
14553 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14554 # We already found the complete path
14555 ac_dir=`dirname $READELF_FOR_TARGET`
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14557 $as_echo "pre-installed in $ac_dir" >&6; }
14558 elif test "x$target" = "x$host"; then
14559 # We can use an host tool
14560 READELF_FOR_TARGET='$(READELF)'
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14562 $as_echo "host tool" >&6; }
14563 else
14564 # We need a cross tool
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14566 $as_echo "pre-installed" >&6; }
14567 fi
14568 fi
14569
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14571 $as_echo_n "checking where to find the target strip... " >&6; }
14572 if test "x${build}" != "x${host}" ; then
14573 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14574 # We already found the complete path
14575 ac_dir=`dirname $STRIP_FOR_TARGET`
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14577 $as_echo "pre-installed in $ac_dir" >&6; }
14578 else
14579 # Canadian cross, just use what we found
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14581 $as_echo "pre-installed" >&6; }
14582 fi
14583 else
14584 ok=yes
14585 case " ${configdirs} " in
14586 *" binutils "*) ;;
14587 *) ok=no ;;
14588 esac
14589
14590 if test $ok = yes; then
14591 # An in-tree tool is available and we can use it
14592 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14594 $as_echo "just compiled" >&6; }
14595 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14596 # We already found the complete path
14597 ac_dir=`dirname $STRIP_FOR_TARGET`
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14599 $as_echo "pre-installed in $ac_dir" >&6; }
14600 elif test "x$target" = "x$host"; then
14601 # We can use an host tool
14602 STRIP_FOR_TARGET='$(STRIP)'
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14604 $as_echo "host tool" >&6; }
14605 else
14606 # We need a cross tool
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14608 $as_echo "pre-installed" >&6; }
14609 fi
14610 fi
14611
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14613 $as_echo_n "checking where to find the target windres... " >&6; }
14614 if test "x${build}" != "x${host}" ; then
14615 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14616 # We already found the complete path
14617 ac_dir=`dirname $WINDRES_FOR_TARGET`
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14619 $as_echo "pre-installed in $ac_dir" >&6; }
14620 else
14621 # Canadian cross, just use what we found
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14623 $as_echo "pre-installed" >&6; }
14624 fi
14625 else
14626 ok=yes
14627 case " ${configdirs} " in
14628 *" binutils "*) ;;
14629 *) ok=no ;;
14630 esac
14631
14632 if test $ok = yes; then
14633 # An in-tree tool is available and we can use it
14634 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14636 $as_echo "just compiled" >&6; }
14637 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14638 # We already found the complete path
14639 ac_dir=`dirname $WINDRES_FOR_TARGET`
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14641 $as_echo "pre-installed in $ac_dir" >&6; }
14642 elif test "x$target" = "x$host"; then
14643 # We can use an host tool
14644 WINDRES_FOR_TARGET='$(WINDRES)'
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14646 $as_echo "host tool" >&6; }
14647 else
14648 # We need a cross tool
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14650 $as_echo "pre-installed" >&6; }
14651 fi
14652 fi
14653
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14655 $as_echo_n "checking where to find the target windmc... " >&6; }
14656 if test "x${build}" != "x${host}" ; then
14657 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14658 # We already found the complete path
14659 ac_dir=`dirname $WINDMC_FOR_TARGET`
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14661 $as_echo "pre-installed in $ac_dir" >&6; }
14662 else
14663 # Canadian cross, just use what we found
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14665 $as_echo "pre-installed" >&6; }
14666 fi
14667 else
14668 ok=yes
14669 case " ${configdirs} " in
14670 *" binutils "*) ;;
14671 *) ok=no ;;
14672 esac
14673
14674 if test $ok = yes; then
14675 # An in-tree tool is available and we can use it
14676 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14678 $as_echo "just compiled" >&6; }
14679 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14680 # We already found the complete path
14681 ac_dir=`dirname $WINDMC_FOR_TARGET`
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14683 $as_echo "pre-installed in $ac_dir" >&6; }
14684 elif test "x$target" = "x$host"; then
14685 # We can use an host tool
14686 WINDMC_FOR_TARGET='$(WINDMC)'
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14688 $as_echo "host tool" >&6; }
14689 else
14690 # We need a cross tool
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14692 $as_echo "pre-installed" >&6; }
14693 fi
14694 fi
14695
14696
14697
14698
14699
14700 # Certain tools may need extra flags.
14701 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14702 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14703 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14704
14705 # When building target libraries, except in a Canadian cross, we use
14706 # the same toolchain as the compiler we just built.
14707 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14708 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14709 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14710 if test $host = $build; then
14711 case " $configdirs " in
14712 *" gcc "*)
14713 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14714 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14715 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14716 ;;
14717 esac
14718 fi
14719
14720
14721
14722
14723
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14725 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14726 # Check whether --enable-maintainer-mode was given.
14727 if test "${enable_maintainer_mode+set}" = set; then :
14728 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14729 else
14730 USE_MAINTAINER_MODE=no
14731 fi
14732
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14734 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14735
14736
14737 if test "$USE_MAINTAINER_MODE" = yes; then
14738 MAINTAINER_MODE_TRUE=
14739 MAINTAINER_MODE_FALSE='#'
14740 else
14741 MAINTAINER_MODE_TRUE='#'
14742 MAINTAINER_MODE_FALSE=
14743 fi
14744 MAINT=$MAINTAINER_MODE_TRUE
14745
14746 # ---------------------
14747 # GCC bootstrap support
14748 # ---------------------
14749
14750 # Stage specific cflags for build.
14751 stage1_cflags="-g"
14752 case $build in
14753 vax-*-*)
14754 case ${GCC} in
14755 yes) stage1_cflags="-g -Wa,-J" ;;
14756 *) stage1_cflags="-g -J" ;;
14757 esac ;;
14758 esac
14759 stage1_cxxflags='$(STAGE1_CFLAGS)'
14760 if test "$GCC" = yes; then
14761 # Build stage 1 in C++98 mode to ensure that a C++98 compiler can still
14762 # start the bootstrap.
14763 stage1_cxxflags="$stage1_cxxflags -std=c++98"
14764 fi
14765
14766
14767
14768
14769 # Enable --enable-checking in stage1 of the compiler.
14770 # Check whether --enable-stage1-checking was given.
14771 if test "${enable_stage1_checking+set}" = set; then :
14772 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14773 else
14774 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14775 # For --disable-checking or implicit --enable-checking=release, avoid
14776 # setting --enable-checking=gc in the default stage1 checking for LTO
14777 # bootstraps. See PR62077.
14778 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
14779 case $BUILD_CONFIG in
14780 *lto*)
14781 if test "x$enable_checking" = x && \
14782 test -d ${srcdir}/gcc && \
14783 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14784 stage1_checking=--enable-checking=yes,types
14785 fi;;
14786 *) stage1_checking=--enable-checking=yes,types;;
14787 esac
14788 else
14789 stage1_checking=--enable-checking=$enable_checking,types
14790 fi
14791 fi
14792
14793
14794
14795 # Enable -Werror in bootstrap stage2 and later.
14796 # Check whether --enable-werror was given.
14797 if test "${enable_werror+set}" = set; then :
14798 enableval=$enable_werror;
14799 else
14800 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14801 enable_werror=yes
14802 else
14803 enable_werror=no
14804 fi
14805 fi
14806
14807 case ${enable_werror} in
14808 yes) stage2_werror_flag="--enable-werror-always" ;;
14809 *) stage2_werror_flag="" ;;
14810 esac
14811
14812
14813 # Enable --enable-host-shared.
14814 # Check whether --enable-host-shared was given.
14815 if test "${enable_host_shared+set}" = set; then :
14816 enableval=$enable_host_shared; host_shared=$enableval
14817 else
14818 host_shared=no
14819 fi
14820
14821
14822
14823 # PR jit/64780: Require the user to explicitly specify
14824 # --enable-host-shared if the jit is enabled, hinting
14825 # that they might want to do a separate configure/build of
14826 # the jit, to avoid users from slowing down the rest of the
14827 # compiler by enabling the jit.
14828 if test ${host_shared} = "no" ; then
14829 case "${enable_languages}" in
14830 *jit*)
14831 as_fn_error "
14832 Enabling language \"jit\" requires --enable-host-shared.
14833
14834 --enable-host-shared typically slows the rest of the compiler down by
14835 a few %, so you must explicitly enable it.
14836
14837 If you want to build both the jit and the regular compiler, it is often
14838 best to do this via two separate configure/builds, in separate
14839 directories, to avoid imposing the performance cost of
14840 --enable-host-shared on the regular compiler." "$LINENO" 5
14841 ;;
14842 *)
14843 ;;
14844 esac
14845 fi
14846
14847 # Specify what files to not compare during bootstrap.
14848
14849 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14850 case "$target" in
14851 hppa*64*-*-hpux*) ;;
14852 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14853 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14854 esac
14855
14856
14857 ac_config_files="$ac_config_files Makefile"
14858
14859 cat >confcache <<\_ACEOF
14860 # This file is a shell script that caches the results of configure
14861 # tests run on this system so they can be shared between configure
14862 # scripts and configure runs, see configure's option --config-cache.
14863 # It is not useful on other systems. If it contains results you don't
14864 # want to keep, you may remove or edit it.
14865 #
14866 # config.status only pays attention to the cache file if you give it
14867 # the --recheck option to rerun configure.
14868 #
14869 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14870 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14871 # following values.
14872
14873 _ACEOF
14874
14875 # The following way of writing the cache mishandles newlines in values,
14876 # but we know of no workaround that is simple, portable, and efficient.
14877 # So, we kill variables containing newlines.
14878 # Ultrix sh set writes to stderr and can't be redirected directly,
14879 # and sets the high bit in the cache file unless we assign to the vars.
14880 (
14881 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14882 eval ac_val=\$$ac_var
14883 case $ac_val in #(
14884 *${as_nl}*)
14885 case $ac_var in #(
14886 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14887 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14888 esac
14889 case $ac_var in #(
14890 _ | IFS | as_nl) ;; #(
14891 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14892 *) { eval $ac_var=; unset $ac_var;} ;;
14893 esac ;;
14894 esac
14895 done
14896
14897 (set) 2>&1 |
14898 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14899 *${as_nl}ac_space=\ *)
14900 # `set' does not quote correctly, so add quotes: double-quote
14901 # substitution turns \\\\ into \\, and sed turns \\ into \.
14902 sed -n \
14903 "s/'/'\\\\''/g;
14904 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14905 ;; #(
14906 *)
14907 # `set' quotes correctly as required by POSIX, so do not add quotes.
14908 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14909 ;;
14910 esac |
14911 sort
14912 ) |
14913 sed '
14914 /^ac_cv_env_/b end
14915 t clear
14916 :clear
14917 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14918 t end
14919 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14920 :end' >>confcache
14921 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14922 if test -w "$cache_file"; then
14923 test "x$cache_file" != "x/dev/null" &&
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14925 $as_echo "$as_me: updating cache $cache_file" >&6;}
14926 cat confcache >$cache_file
14927 else
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14929 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14930 fi
14931 fi
14932 rm -f confcache
14933
14934 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14935 # Let make expand exec_prefix.
14936 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14937
14938 # Transform confdefs.h into DEFS.
14939 # Protect against shell expansion while executing Makefile rules.
14940 # Protect against Makefile macro expansion.
14941 #
14942 # If the first sed substitution is executed (which looks for macros that
14943 # take arguments), then branch to the quote section. Otherwise,
14944 # look for a macro that doesn't take arguments.
14945 ac_script='
14946 :mline
14947 /\\$/{
14948 N
14949 s,\\\n,,
14950 b mline
14951 }
14952 t clear
14953 :clear
14954 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14955 t quote
14956 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14957 t quote
14958 b any
14959 :quote
14960 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14961 s/\[/\\&/g
14962 s/\]/\\&/g
14963 s/\$/$$/g
14964 H
14965 :any
14966 ${
14967 g
14968 s/^\n//
14969 s/\n/ /g
14970 p
14971 }
14972 '
14973 DEFS=`sed -n "$ac_script" confdefs.h`
14974
14975
14976 ac_libobjs=
14977 ac_ltlibobjs=
14978 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14979 # 1. Remove the extension, and $U if already installed.
14980 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14981 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14982 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14983 # will be set to the directory where LIBOBJS objects are built.
14984 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14985 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14986 done
14987 LIBOBJS=$ac_libobjs
14988
14989 LTLIBOBJS=$ac_ltlibobjs
14990
14991
14992
14993 : ${CONFIG_STATUS=./config.status}
14994 ac_write_fail=0
14995 ac_clean_files_save=$ac_clean_files
14996 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14998 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14999 as_write_fail=0
15000 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15001 #! $SHELL
15002 # Generated by $as_me.
15003 # Run this file to recreate the current configuration.
15004 # Compiler output produced by configure, useful for debugging
15005 # configure, is in config.log if it exists.
15006
15007 debug=false
15008 ac_cs_recheck=false
15009 ac_cs_silent=false
15010
15011 SHELL=\${CONFIG_SHELL-$SHELL}
15012 export SHELL
15013 _ASEOF
15014 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15015 ## -------------------- ##
15016 ## M4sh Initialization. ##
15017 ## -------------------- ##
15018
15019 # Be more Bourne compatible
15020 DUALCASE=1; export DUALCASE # for MKS sh
15021 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15022 emulate sh
15023 NULLCMD=:
15024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15025 # is contrary to our usage. Disable this feature.
15026 alias -g '${1+"$@"}'='"$@"'
15027 setopt NO_GLOB_SUBST
15028 else
15029 case `(set -o) 2>/dev/null` in #(
15030 *posix*) :
15031 set -o posix ;; #(
15032 *) :
15033 ;;
15034 esac
15035 fi
15036
15037
15038 as_nl='
15039 '
15040 export as_nl
15041 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15042 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15043 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15044 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15045 # Prefer a ksh shell builtin over an external printf program on Solaris,
15046 # but without wasting forks for bash or zsh.
15047 if test -z "$BASH_VERSION$ZSH_VERSION" \
15048 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15049 as_echo='print -r --'
15050 as_echo_n='print -rn --'
15051 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15052 as_echo='printf %s\n'
15053 as_echo_n='printf %s'
15054 else
15055 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15056 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15057 as_echo_n='/usr/ucb/echo -n'
15058 else
15059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15060 as_echo_n_body='eval
15061 arg=$1;
15062 case $arg in #(
15063 *"$as_nl"*)
15064 expr "X$arg" : "X\\(.*\\)$as_nl";
15065 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15066 esac;
15067 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15068 '
15069 export as_echo_n_body
15070 as_echo_n='sh -c $as_echo_n_body as_echo'
15071 fi
15072 export as_echo_body
15073 as_echo='sh -c $as_echo_body as_echo'
15074 fi
15075
15076 # The user is always right.
15077 if test "${PATH_SEPARATOR+set}" != set; then
15078 PATH_SEPARATOR=:
15079 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15080 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15081 PATH_SEPARATOR=';'
15082 }
15083 fi
15084
15085
15086 # IFS
15087 # We need space, tab and new line, in precisely that order. Quoting is
15088 # there to prevent editors from complaining about space-tab.
15089 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15090 # splitting by setting IFS to empty value.)
15091 IFS=" "" $as_nl"
15092
15093 # Find who we are. Look in the path if we contain no directory separator.
15094 case $0 in #((
15095 *[\\/]* ) as_myself=$0 ;;
15096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15097 for as_dir in $PATH
15098 do
15099 IFS=$as_save_IFS
15100 test -z "$as_dir" && as_dir=.
15101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15102 done
15103 IFS=$as_save_IFS
15104
15105 ;;
15106 esac
15107 # We did not find ourselves, most probably we were run as `sh COMMAND'
15108 # in which case we are not to be found in the path.
15109 if test "x$as_myself" = x; then
15110 as_myself=$0
15111 fi
15112 if test ! -f "$as_myself"; then
15113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15114 exit 1
15115 fi
15116
15117 # Unset variables that we do not need and which cause bugs (e.g. in
15118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15119 # suppresses any "Segmentation fault" message there. '((' could
15120 # trigger a bug in pdksh 5.2.14.
15121 for as_var in BASH_ENV ENV MAIL MAILPATH
15122 do eval test x\${$as_var+set} = xset \
15123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15124 done
15125 PS1='$ '
15126 PS2='> '
15127 PS4='+ '
15128
15129 # NLS nuisances.
15130 LC_ALL=C
15131 export LC_ALL
15132 LANGUAGE=C
15133 export LANGUAGE
15134
15135 # CDPATH.
15136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15137
15138
15139 # as_fn_error ERROR [LINENO LOG_FD]
15140 # ---------------------------------
15141 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15142 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15143 # script with status $?, using 1 if that was 0.
15144 as_fn_error ()
15145 {
15146 as_status=$?; test $as_status -eq 0 && as_status=1
15147 if test "$3"; then
15148 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15149 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15150 fi
15151 $as_echo "$as_me: error: $1" >&2
15152 as_fn_exit $as_status
15153 } # as_fn_error
15154
15155
15156 # as_fn_set_status STATUS
15157 # -----------------------
15158 # Set $? to STATUS, without forking.
15159 as_fn_set_status ()
15160 {
15161 return $1
15162 } # as_fn_set_status
15163
15164 # as_fn_exit STATUS
15165 # -----------------
15166 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15167 as_fn_exit ()
15168 {
15169 set +e
15170 as_fn_set_status $1
15171 exit $1
15172 } # as_fn_exit
15173
15174 # as_fn_unset VAR
15175 # ---------------
15176 # Portably unset VAR.
15177 as_fn_unset ()
15178 {
15179 { eval $1=; unset $1;}
15180 }
15181 as_unset=as_fn_unset
15182 # as_fn_append VAR VALUE
15183 # ----------------------
15184 # Append the text in VALUE to the end of the definition contained in VAR. Take
15185 # advantage of any shell optimizations that allow amortized linear growth over
15186 # repeated appends, instead of the typical quadratic growth present in naive
15187 # implementations.
15188 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15189 eval 'as_fn_append ()
15190 {
15191 eval $1+=\$2
15192 }'
15193 else
15194 as_fn_append ()
15195 {
15196 eval $1=\$$1\$2
15197 }
15198 fi # as_fn_append
15199
15200 # as_fn_arith ARG...
15201 # ------------------
15202 # Perform arithmetic evaluation on the ARGs, and store the result in the
15203 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15204 # must be portable across $(()) and expr.
15205 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15206 eval 'as_fn_arith ()
15207 {
15208 as_val=$(( $* ))
15209 }'
15210 else
15211 as_fn_arith ()
15212 {
15213 as_val=`expr "$@" || test $? -eq 1`
15214 }
15215 fi # as_fn_arith
15216
15217
15218 if expr a : '\(a\)' >/dev/null 2>&1 &&
15219 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15220 as_expr=expr
15221 else
15222 as_expr=false
15223 fi
15224
15225 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15226 as_basename=basename
15227 else
15228 as_basename=false
15229 fi
15230
15231 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15232 as_dirname=dirname
15233 else
15234 as_dirname=false
15235 fi
15236
15237 as_me=`$as_basename -- "$0" ||
15238 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15239 X"$0" : 'X\(//\)$' \| \
15240 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15241 $as_echo X/"$0" |
15242 sed '/^.*\/\([^/][^/]*\)\/*$/{
15243 s//\1/
15244 q
15245 }
15246 /^X\/\(\/\/\)$/{
15247 s//\1/
15248 q
15249 }
15250 /^X\/\(\/\).*/{
15251 s//\1/
15252 q
15253 }
15254 s/.*/./; q'`
15255
15256 # Avoid depending upon Character Ranges.
15257 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15258 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15259 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15260 as_cr_digits='0123456789'
15261 as_cr_alnum=$as_cr_Letters$as_cr_digits
15262
15263 ECHO_C= ECHO_N= ECHO_T=
15264 case `echo -n x` in #(((((
15265 -n*)
15266 case `echo 'xy\c'` in
15267 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15268 xy) ECHO_C='\c';;
15269 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15270 ECHO_T=' ';;
15271 esac;;
15272 *)
15273 ECHO_N='-n';;
15274 esac
15275
15276 rm -f conf$$ conf$$.exe conf$$.file
15277 if test -d conf$$.dir; then
15278 rm -f conf$$.dir/conf$$.file
15279 else
15280 rm -f conf$$.dir
15281 mkdir conf$$.dir 2>/dev/null
15282 fi
15283 if (echo >conf$$.file) 2>/dev/null; then
15284 if ln -s conf$$.file conf$$ 2>/dev/null; then
15285 as_ln_s='ln -s'
15286 # ... but there are two gotchas:
15287 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15288 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15289 # In both cases, we have to default to `cp -p'.
15290 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15291 as_ln_s='cp -p'
15292 elif ln conf$$.file conf$$ 2>/dev/null; then
15293 as_ln_s=ln
15294 else
15295 as_ln_s='cp -p'
15296 fi
15297 else
15298 as_ln_s='cp -p'
15299 fi
15300 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15301 rmdir conf$$.dir 2>/dev/null
15302
15303
15304 # as_fn_mkdir_p
15305 # -------------
15306 # Create "$as_dir" as a directory, including parents if necessary.
15307 as_fn_mkdir_p ()
15308 {
15309
15310 case $as_dir in #(
15311 -*) as_dir=./$as_dir;;
15312 esac
15313 test -d "$as_dir" || eval $as_mkdir_p || {
15314 as_dirs=
15315 while :; do
15316 case $as_dir in #(
15317 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15318 *) as_qdir=$as_dir;;
15319 esac
15320 as_dirs="'$as_qdir' $as_dirs"
15321 as_dir=`$as_dirname -- "$as_dir" ||
15322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15323 X"$as_dir" : 'X\(//\)[^/]' \| \
15324 X"$as_dir" : 'X\(//\)$' \| \
15325 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15326 $as_echo X"$as_dir" |
15327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15328 s//\1/
15329 q
15330 }
15331 /^X\(\/\/\)[^/].*/{
15332 s//\1/
15333 q
15334 }
15335 /^X\(\/\/\)$/{
15336 s//\1/
15337 q
15338 }
15339 /^X\(\/\).*/{
15340 s//\1/
15341 q
15342 }
15343 s/.*/./; q'`
15344 test -d "$as_dir" && break
15345 done
15346 test -z "$as_dirs" || eval "mkdir $as_dirs"
15347 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15348
15349
15350 } # as_fn_mkdir_p
15351 if mkdir -p . 2>/dev/null; then
15352 as_mkdir_p='mkdir -p "$as_dir"'
15353 else
15354 test -d ./-p && rmdir ./-p
15355 as_mkdir_p=false
15356 fi
15357
15358 if test -x / >/dev/null 2>&1; then
15359 as_test_x='test -x'
15360 else
15361 if ls -dL / >/dev/null 2>&1; then
15362 as_ls_L_option=L
15363 else
15364 as_ls_L_option=
15365 fi
15366 as_test_x='
15367 eval sh -c '\''
15368 if test -d "$1"; then
15369 test -d "$1/.";
15370 else
15371 case $1 in #(
15372 -*)set "./$1";;
15373 esac;
15374 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15375 ???[sx]*):;;*)false;;esac;fi
15376 '\'' sh
15377 '
15378 fi
15379 as_executable_p=$as_test_x
15380
15381 # Sed expression to map a string onto a valid CPP name.
15382 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15383
15384 # Sed expression to map a string onto a valid variable name.
15385 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15386
15387
15388 exec 6>&1
15389 ## ----------------------------------- ##
15390 ## Main body of $CONFIG_STATUS script. ##
15391 ## ----------------------------------- ##
15392 _ASEOF
15393 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15394
15395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15396 # Save the log message, to keep $0 and so on meaningful, and to
15397 # report actual input values of CONFIG_FILES etc. instead of their
15398 # values after options handling.
15399 ac_log="
15400 This file was extended by $as_me, which was
15401 generated by GNU Autoconf 2.64. Invocation command line was
15402
15403 CONFIG_FILES = $CONFIG_FILES
15404 CONFIG_HEADERS = $CONFIG_HEADERS
15405 CONFIG_LINKS = $CONFIG_LINKS
15406 CONFIG_COMMANDS = $CONFIG_COMMANDS
15407 $ $0 $@
15408
15409 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15410 "
15411
15412 _ACEOF
15413
15414 case $ac_config_files in *"
15415 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15416 esac
15417
15418
15419
15420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15421 # Files that config.status was made for.
15422 config_files="$ac_config_files"
15423
15424 _ACEOF
15425
15426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15427 ac_cs_usage="\
15428 \`$as_me' instantiates files and other configuration actions
15429 from templates according to the current configuration. Unless the files
15430 and actions are specified as TAGs, all are instantiated by default.
15431
15432 Usage: $0 [OPTION]... [TAG]...
15433
15434 -h, --help print this help, then exit
15435 -V, --version print version number and configuration settings, then exit
15436 -q, --quiet, --silent
15437 do not print progress messages
15438 -d, --debug don't remove temporary files
15439 --recheck update $as_me by reconfiguring in the same conditions
15440 --file=FILE[:TEMPLATE]
15441 instantiate the configuration file FILE
15442
15443 Configuration files:
15444 $config_files
15445
15446 Report bugs to the package provider."
15447
15448 _ACEOF
15449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15450 ac_cs_version="\\
15451 config.status
15452 configured by $0, generated by GNU Autoconf 2.64,
15453 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15454
15455 Copyright (C) 2009 Free Software Foundation, Inc.
15456 This config.status script is free software; the Free Software Foundation
15457 gives unlimited permission to copy, distribute and modify it."
15458
15459 ac_pwd='$ac_pwd'
15460 srcdir='$srcdir'
15461 INSTALL='$INSTALL'
15462 AWK='$AWK'
15463 test -n "\$AWK" || AWK=awk
15464 _ACEOF
15465
15466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15467 # The default lists apply if the user does not specify any file.
15468 ac_need_defaults=:
15469 while test $# != 0
15470 do
15471 case $1 in
15472 --*=*)
15473 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15474 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15475 ac_shift=:
15476 ;;
15477 *)
15478 ac_option=$1
15479 ac_optarg=$2
15480 ac_shift=shift
15481 ;;
15482 esac
15483
15484 case $ac_option in
15485 # Handling of the options.
15486 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15487 ac_cs_recheck=: ;;
15488 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15489 $as_echo "$ac_cs_version"; exit ;;
15490 --debug | --debu | --deb | --de | --d | -d )
15491 debug=: ;;
15492 --file | --fil | --fi | --f )
15493 $ac_shift
15494 case $ac_optarg in
15495 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15496 esac
15497 as_fn_append CONFIG_FILES " '$ac_optarg'"
15498 ac_need_defaults=false;;
15499 --he | --h | --help | --hel | -h )
15500 $as_echo "$ac_cs_usage"; exit ;;
15501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15502 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15503 ac_cs_silent=: ;;
15504
15505 # This is an error.
15506 -*) as_fn_error "unrecognized option: \`$1'
15507 Try \`$0 --help' for more information." ;;
15508
15509 *) as_fn_append ac_config_targets " $1"
15510 ac_need_defaults=false ;;
15511
15512 esac
15513 shift
15514 done
15515
15516 ac_configure_extra_args=
15517
15518 if $ac_cs_silent; then
15519 exec 6>/dev/null
15520 ac_configure_extra_args="$ac_configure_extra_args --silent"
15521 fi
15522
15523 _ACEOF
15524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15525 if \$ac_cs_recheck; then
15526 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15527 shift
15528 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15529 CONFIG_SHELL='$SHELL'
15530 export CONFIG_SHELL
15531 exec "\$@"
15532 fi
15533
15534 _ACEOF
15535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15536 exec 5>>config.log
15537 {
15538 echo
15539 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15540 ## Running $as_me. ##
15541 _ASBOX
15542 $as_echo "$ac_log"
15543 } >&5
15544
15545 _ACEOF
15546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15547 #
15548 # INIT-COMMANDS
15549 #
15550 extrasub_build="$extrasub_build"
15551 extrasub_host="$extrasub_host"
15552 extrasub_target="$extrasub_target"
15553
15554 _ACEOF
15555
15556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15557
15558 # Handling of arguments.
15559 for ac_config_target in $ac_config_targets
15560 do
15561 case $ac_config_target in
15562 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15563
15564 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15565 esac
15566 done
15567
15568
15569 # If the user did not use the arguments to specify the items to instantiate,
15570 # then the envvar interface is used. Set only those that are not.
15571 # We use the long form for the default assignment because of an extremely
15572 # bizarre bug on SunOS 4.1.3.
15573 if $ac_need_defaults; then
15574 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15575 fi
15576
15577 # Have a temporary directory for convenience. Make it in the build tree
15578 # simply because there is no reason against having it here, and in addition,
15579 # creating and moving files from /tmp can sometimes cause problems.
15580 # Hook for its removal unless debugging.
15581 # Note that there is a small window in which the directory will not be cleaned:
15582 # after its creation but before its name has been assigned to `$tmp'.
15583 $debug ||
15584 {
15585 tmp=
15586 trap 'exit_status=$?
15587 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15588 ' 0
15589 trap 'as_fn_exit 1' 1 2 13 15
15590 }
15591 # Create a (secure) tmp directory for tmp files.
15592
15593 {
15594 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15595 test -n "$tmp" && test -d "$tmp"
15596 } ||
15597 {
15598 tmp=./conf$$-$RANDOM
15599 (umask 077 && mkdir "$tmp")
15600 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15601
15602 # Set up the scripts for CONFIG_FILES section.
15603 # No need to generate them if there are no CONFIG_FILES.
15604 # This happens for instance with `./config.status config.h'.
15605 if test -n "$CONFIG_FILES"; then
15606
15607 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15608 ac_cs_awk_getline=:
15609 ac_cs_awk_pipe_init=
15610 ac_cs_awk_read_file='
15611 while ((getline aline < (F[key])) > 0)
15612 print(aline)
15613 close(F[key])'
15614 ac_cs_awk_pipe_fini=
15615 else
15616 ac_cs_awk_getline=false
15617 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15618 ac_cs_awk_read_file='
15619 print "|#_!!_#|"
15620 print "cat " F[key] " &&"
15621 '$ac_cs_awk_pipe_init
15622 # The final `:' finishes the AND list.
15623 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15624 fi
15625 ac_cr=`echo X | tr X '\015'`
15626 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15627 # But we know of no other shell where ac_cr would be empty at this
15628 # point, so we can use a bashism as a fallback.
15629 if test "x$ac_cr" = x; then
15630 eval ac_cr=\$\'\\r\'
15631 fi
15632 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15633 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15634 ac_cs_awk_cr='\r'
15635 else
15636 ac_cs_awk_cr=$ac_cr
15637 fi
15638
15639 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15640 _ACEOF
15641
15642 # Create commands to substitute file output variables.
15643 {
15644 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15645 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15646 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15647 echo "_ACAWK" &&
15648 echo "_ACEOF"
15649 } >conf$$files.sh &&
15650 . ./conf$$files.sh ||
15651 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15652 rm -f conf$$files.sh
15653
15654 {
15655 echo "cat >conf$$subs.awk <<_ACEOF" &&
15656 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15657 echo "_ACEOF"
15658 } >conf$$subs.sh ||
15659 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15660 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15661 ac_delim='%!_!# '
15662 for ac_last_try in false false false false false :; do
15663 . ./conf$$subs.sh ||
15664 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15665
15666 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15667 if test $ac_delim_n = $ac_delim_num; then
15668 break
15669 elif $ac_last_try; then
15670 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15671 else
15672 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15673 fi
15674 done
15675 rm -f conf$$subs.sh
15676
15677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15678 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15679 _ACEOF
15680 sed -n '
15681 h
15682 s/^/S["/; s/!.*/"]=/
15683 p
15684 g
15685 s/^[^!]*!//
15686 :repl
15687 t repl
15688 s/'"$ac_delim"'$//
15689 t delim
15690 :nl
15691 h
15692 s/\(.\{148\}\).*/\1/
15693 t more1
15694 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15695 p
15696 n
15697 b repl
15698 :more1
15699 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15700 p
15701 g
15702 s/.\{148\}//
15703 t nl
15704 :delim
15705 h
15706 s/\(.\{148\}\).*/\1/
15707 t more2
15708 s/["\\]/\\&/g; s/^/"/; s/$/"/
15709 p
15710 b
15711 :more2
15712 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15713 p
15714 g
15715 s/.\{148\}//
15716 t delim
15717 ' <conf$$subs.awk | sed '
15718 /^[^""]/{
15719 N
15720 s/\n//
15721 }
15722 ' >>$CONFIG_STATUS || ac_write_fail=1
15723 rm -f conf$$subs.awk
15724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15725 _ACAWK
15726 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15727 for (key in S) S_is_set[key] = 1
15728 FS = "\a"
15729 \$ac_cs_awk_pipe_init
15730 }
15731 {
15732 line = $ 0
15733 nfields = split(line, field, "@")
15734 substed = 0
15735 len = length(field[1])
15736 for (i = 2; i < nfields; i++) {
15737 key = field[i]
15738 keylen = length(key)
15739 if (S_is_set[key]) {
15740 value = S[key]
15741 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15742 len += length(value) + length(field[++i])
15743 substed = 1
15744 } else
15745 len += 1 + keylen
15746 }
15747 if (nfields == 3 && !substed) {
15748 key = field[2]
15749 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15750 \$ac_cs_awk_read_file
15751 next
15752 }
15753 }
15754 print line
15755 }
15756 \$ac_cs_awk_pipe_fini
15757 _ACAWK
15758 _ACEOF
15759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15760 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15761 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15762 else
15763 cat
15764 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15765 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15766 _ACEOF
15767
15768 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15769 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15770 # trailing colons and then remove the whole line if VPATH becomes empty
15771 # (actually we leave an empty line to preserve line numbers).
15772 if test "x$srcdir" = x.; then
15773 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15774 s/:*\$(srcdir):*/:/
15775 s/:*\${srcdir}:*/:/
15776 s/:*@srcdir@:*/:/
15777 s/^\([^=]*=[ ]*\):*/\1/
15778 s/:*$//
15779 s/^[^=]*=[ ]*$//
15780 }'
15781 fi
15782
15783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15784 fi # test -n "$CONFIG_FILES"
15785
15786
15787 eval set X " :F $CONFIG_FILES "
15788 shift
15789 for ac_tag
15790 do
15791 case $ac_tag in
15792 :[FHLC]) ac_mode=$ac_tag; continue;;
15793 esac
15794 case $ac_mode$ac_tag in
15795 :[FHL]*:*);;
15796 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15797 :[FH]-) ac_tag=-:-;;
15798 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15799 esac
15800 ac_save_IFS=$IFS
15801 IFS=:
15802 set x $ac_tag
15803 IFS=$ac_save_IFS
15804 shift
15805 ac_file=$1
15806 shift
15807
15808 case $ac_mode in
15809 :L) ac_source=$1;;
15810 :[FH])
15811 ac_file_inputs=
15812 for ac_f
15813 do
15814 case $ac_f in
15815 -) ac_f="$tmp/stdin";;
15816 *) # Look for the file first in the build tree, then in the source tree
15817 # (if the path is not absolute). The absolute path cannot be DOS-style,
15818 # because $ac_f cannot contain `:'.
15819 test -f "$ac_f" ||
15820 case $ac_f in
15821 [\\/$]*) false;;
15822 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15823 esac ||
15824 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15825 esac
15826 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15827 as_fn_append ac_file_inputs " '$ac_f'"
15828 done
15829
15830 # Let's still pretend it is `configure' which instantiates (i.e., don't
15831 # use $as_me), people would be surprised to read:
15832 # /* config.h. Generated by config.status. */
15833 configure_input='Generated from '`
15834 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15835 `' by configure.'
15836 if test x"$ac_file" != x-; then
15837 configure_input="$ac_file. $configure_input"
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15839 $as_echo "$as_me: creating $ac_file" >&6;}
15840 fi
15841 # Neutralize special characters interpreted by sed in replacement strings.
15842 case $configure_input in #(
15843 *\&* | *\|* | *\\* )
15844 ac_sed_conf_input=`$as_echo "$configure_input" |
15845 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15846 *) ac_sed_conf_input=$configure_input;;
15847 esac
15848
15849 case $ac_tag in
15850 *:-:* | *:-) cat >"$tmp/stdin" \
15851 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15852 esac
15853 ;;
15854 esac
15855
15856 ac_dir=`$as_dirname -- "$ac_file" ||
15857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15858 X"$ac_file" : 'X\(//\)[^/]' \| \
15859 X"$ac_file" : 'X\(//\)$' \| \
15860 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15861 $as_echo X"$ac_file" |
15862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15863 s//\1/
15864 q
15865 }
15866 /^X\(\/\/\)[^/].*/{
15867 s//\1/
15868 q
15869 }
15870 /^X\(\/\/\)$/{
15871 s//\1/
15872 q
15873 }
15874 /^X\(\/\).*/{
15875 s//\1/
15876 q
15877 }
15878 s/.*/./; q'`
15879 as_dir="$ac_dir"; as_fn_mkdir_p
15880 ac_builddir=.
15881
15882 case "$ac_dir" in
15883 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15884 *)
15885 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15886 # A ".." for each directory in $ac_dir_suffix.
15887 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15888 case $ac_top_builddir_sub in
15889 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15890 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15891 esac ;;
15892 esac
15893 ac_abs_top_builddir=$ac_pwd
15894 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15895 # for backward compatibility:
15896 ac_top_builddir=$ac_top_build_prefix
15897
15898 case $srcdir in
15899 .) # We are building in place.
15900 ac_srcdir=.
15901 ac_top_srcdir=$ac_top_builddir_sub
15902 ac_abs_top_srcdir=$ac_pwd ;;
15903 [\\/]* | ?:[\\/]* ) # Absolute name.
15904 ac_srcdir=$srcdir$ac_dir_suffix;
15905 ac_top_srcdir=$srcdir
15906 ac_abs_top_srcdir=$srcdir ;;
15907 *) # Relative name.
15908 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15909 ac_top_srcdir=$ac_top_build_prefix$srcdir
15910 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15911 esac
15912 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15913
15914
15915 case $ac_mode in
15916 :F)
15917 #
15918 # CONFIG_FILE
15919 #
15920
15921 case $INSTALL in
15922 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15923 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15924 esac
15925 _ACEOF
15926
15927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15928 # If the template does not know about datarootdir, expand it.
15929 # FIXME: This hack should be removed a few years after 2.60.
15930 ac_datarootdir_hack=; ac_datarootdir_seen=
15931 ac_sed_dataroot='
15932 /datarootdir/ {
15933 p
15934 q
15935 }
15936 /@datadir@/p
15937 /@docdir@/p
15938 /@infodir@/p
15939 /@localedir@/p
15940 /@mandir@/p'
15941 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15942 *datarootdir*) ac_datarootdir_seen=yes;;
15943 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15945 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15946 _ACEOF
15947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15948 ac_datarootdir_hack='
15949 s&@datadir@&$datadir&g
15950 s&@docdir@&$docdir&g
15951 s&@infodir@&$infodir&g
15952 s&@localedir@&$localedir&g
15953 s&@mandir@&$mandir&g
15954 s&\\\${datarootdir}&$datarootdir&g' ;;
15955 esac
15956 _ACEOF
15957
15958 # Neutralize VPATH when `$srcdir' = `.'.
15959 # Shell code in configure.ac might set extrasub.
15960 # FIXME: do we really want to maintain this feature?
15961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15962 ac_sed_extra="$ac_vpsub
15963 $extrasub
15964 _ACEOF
15965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15966 :t
15967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15968 s|@configure_input@|$ac_sed_conf_input|;t t
15969 s&@top_builddir@&$ac_top_builddir_sub&;t t
15970 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15971 s&@srcdir@&$ac_srcdir&;t t
15972 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15973 s&@top_srcdir@&$ac_top_srcdir&;t t
15974 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15975 s&@builddir@&$ac_builddir&;t t
15976 s&@abs_builddir@&$ac_abs_builddir&;t t
15977 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15978 s&@INSTALL@&$ac_INSTALL&;t t
15979 $ac_datarootdir_hack
15980 "
15981 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15982 if $ac_cs_awk_getline; then
15983 $AWK -f "$tmp/subs.awk"
15984 else
15985 $AWK -f "$tmp/subs.awk" | $SHELL
15986 fi >$tmp/out \
15987 || as_fn_error "could not create $ac_file" "$LINENO" 5
15988
15989 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15990 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15991 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15993 which seems to be undefined. Please make sure it is defined." >&5
15994 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15995 which seems to be undefined. Please make sure it is defined." >&2;}
15996
15997 rm -f "$tmp/stdin"
15998 case $ac_file in
15999 -) cat "$tmp/out" && rm -f "$tmp/out";;
16000 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16001 esac \
16002 || as_fn_error "could not create $ac_file" "$LINENO" 5
16003 ;;
16004
16005
16006
16007 esac
16008
16009
16010 case $ac_file$ac_mode in
16011 "Makefile":F) sed "$extrasub_build" Makefile |
16012 sed "$extrasub_host" |
16013 sed "$extrasub_target" > mf$$
16014 mv -f mf$$ Makefile ;;
16015
16016 esac
16017 done # for ac_tag
16018
16019
16020 as_fn_exit 0
16021 _ACEOF
16022 ac_clean_files=$ac_clean_files_save
16023
16024 test $ac_write_fail = 0 ||
16025 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16026
16027
16028 # configure is writing to config.log, and then calls config.status.
16029 # config.status does its own redirection, appending to config.log.
16030 # Unfortunately, on DOS this fails, as config.log is still kept open
16031 # by configure, so config.status won't be able to write to it; its
16032 # output is simply discarded. So we exec the FD to /dev/null,
16033 # effectively closing config.log, so it can be properly (re)opened and
16034 # appended to by config.status. When coming back to configure, we
16035 # need to make the FD available again.
16036 if test "$no_create" != yes; then
16037 ac_cs_success=:
16038 ac_config_status_args=
16039 test "$silent" = yes &&
16040 ac_config_status_args="$ac_config_status_args --quiet"
16041 exec 5>/dev/null
16042 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16043 exec 5>>config.log
16044 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16045 # would make configure fail if this is the last instruction.
16046 $ac_cs_success || as_fn_exit $?
16047 fi
16048 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16050 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16051 fi
16052