0dd80caba4d3720feeb114b5e92589c7d8d325f6
[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 POSTSTAGE1_CONFIGURE_FLAGS
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 NM_FOR_TARGET
578 LIPO_FOR_TARGET
579 LD_FOR_TARGET
580 DLLTOOL_FOR_TARGET
581 AS_FOR_TARGET
582 AR_FOR_TARGET
583 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCJ_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
596 NM
597 LIPO
598 LD
599 DLLTOOL
600 AS
601 AR
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
606 LEX
607 M4
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 GCJ_FOR_BUILD
619 DLLTOOL_FOR_BUILD
620 CXX_FOR_BUILD
621 CXXFLAGS_FOR_BUILD
622 CFLAGS_FOR_BUILD
623 CC_FOR_BUILD
624 AS_FOR_BUILD
625 AR_FOR_BUILD
626 target_configdirs
627 configdirs
628 build_configdirs
629 INSTALL_GDB_TK
630 GDB_TK
631 CONFIGURE_GDB_TK
632 build_tooldir
633 tooldir
634 GCC_SHLIB_SUBDIR
635 RPATH_ENVVAR
636 target_configargs
637 host_configargs
638 build_configargs
639 BUILD_CONFIG
640 LDFLAGS_FOR_TARGET
641 CXXFLAGS_FOR_TARGET
642 CFLAGS_FOR_TARGET
643 DEBUG_PREFIX_CFLAGS_FOR_TARGET
644 SYSROOT_CFLAGS_FOR_TARGET
645 stage1_languages
646 extra_host_libiberty_configure_flags
647 clooginc
648 clooglibs
649 islinc
650 isllibs
651 poststage1_ldflags
652 poststage1_libs
653 stage1_libs
654 stage1_ldflags
655 extra_mpc_mpfr_configure_flags
656 extra_mpc_gmp_configure_flags
657 extra_mpfr_configure_flags
658 gmpinc
659 gmplibs
660 do_compare
661 GNATMAKE
662 GNATBIND
663 ac_ct_CXX
664 CXXFLAGS
665 CXX
666 OBJEXT
667 EXEEXT
668 ac_ct_CC
669 CPPFLAGS
670 LDFLAGS
671 CFLAGS
672 CC
673 EXTRA_CONFIGARGS_LIBJAVA
674 target_subdir
675 host_subdir
676 build_subdir
677 build_libsubdir
678 AWK
679 SED
680 LN_S
681 LN
682 INSTALL_DATA
683 INSTALL_SCRIPT
684 INSTALL_PROGRAM
685 target_os
686 target_vendor
687 target_cpu
688 target
689 host_os
690 host_vendor
691 host_cpu
692 host
693 target_noncanonical
694 host_noncanonical
695 build_noncanonical
696 build_os
697 build_vendor
698 build_cpu
699 build
700 TOPLEVEL_CONFIGURE_ARGUMENTS
701 target_alias
702 host_alias
703 build_alias
704 LIBS
705 ECHO_T
706 ECHO_N
707 ECHO_C
708 DEFS
709 mandir
710 localedir
711 libdir
712 psdir
713 pdfdir
714 dvidir
715 htmldir
716 infodir
717 docdir
718 oldincludedir
719 includedir
720 localstatedir
721 sharedstatedir
722 sysconfdir
723 datadir
724 datarootdir
725 libexecdir
726 sbindir
727 bindir
728 program_transform_name
729 prefix
730 exec_prefix
731 PACKAGE_URL
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files='serialization_dependencies
740 host_makefile_frag
741 target_makefile_frag
742 alphaieee_frag
743 ospace_frag'
744 ac_user_opts='
745 enable_option_checking
746 with_build_libsubdir
747 enable_gold
748 enable_ld
749 enable_libquadmath
750 enable_libquadmath_support
751 enable_libada
752 enable_libssp
753 enable_static_libjava
754 enable_bootstrap
755 enable_build_with_cxx
756 enable_build_poststage1_with_cxx
757 with_mpc
758 with_mpc_include
759 with_mpc_lib
760 with_mpfr_dir
761 with_mpfr
762 with_mpfr_include
763 with_mpfr_lib
764 with_gmp_dir
765 with_gmp
766 with_gmp_include
767 with_gmp_lib
768 with_host_libstdcxx
769 with_stage1_ldflags
770 with_stage1_libs
771 with_boot_libs
772 with_boot_ldflags
773 with_isl
774 with_isl_include
775 with_isl_lib
776 enable_isl_version_check
777 with_cloog
778 with_cloog_include
779 with_cloog_lib
780 enable_cloog_version_check
781 enable_lto
782 enable_stage1_languages
783 enable_objc_gc
784 with_build_sysroot
785 with_debug_prefix_map
786 with_build_config
787 enable_serial_configure
788 with_build_time_tools
789 enable_maintainer_mode
790 enable_stage1_checking
791 enable_werror
792 '
793 ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 LIBS
800 CPPFLAGS
801 CXX
802 CXXFLAGS
803 CCC
804 build_configargs
805 host_configargs
806 target_configargs
807 AR
808 AS
809 DLLTOOL
810 LD
811 LIPO
812 NM
813 RANLIB
814 STRIP
815 WINDRES
816 WINDMC
817 OBJCOPY
818 OBJDUMP
819 READELF
820 CC_FOR_TARGET
821 CXX_FOR_TARGET
822 GCC_FOR_TARGET
823 GCJ_FOR_TARGET
824 GFORTRAN_FOR_TARGET
825 GOC_FOR_TARGET
826 AR_FOR_TARGET
827 AS_FOR_TARGET
828 DLLTOOL_FOR_TARGET
829 LD_FOR_TARGET
830 LIPO_FOR_TARGET
831 NM_FOR_TARGET
832 OBJDUMP_FOR_TARGET
833 RANLIB_FOR_TARGET
834 READELF_FOR_TARGET
835 STRIP_FOR_TARGET
836 WINDRES_FOR_TARGET
837 WINDMC_FOR_TARGET'
838
839
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
861
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
895 ac_prev=
896 continue
897 fi
898
899 case $ac_option in
900 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *) ac_optarg=yes ;;
902 esac
903
904 # Accept the important Cygnus configure options, so we can diagnose typos.
905
906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
909
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 bindir=$ac_optarg ;;
914
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
929
930 -datadir | --datadir | --datadi | --datad)
931 ac_prev=datadir ;;
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
934
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
957
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
962
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
967
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=\$ac_optarg ;;
983
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
992
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
996
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1003
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1008
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1014
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1021
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1026
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1031
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1038
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1043
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1050
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1055
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1059
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1062 no_create=yes ;;
1063
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1067
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1076
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1081
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1088
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1095
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1112
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1117
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1122
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1126
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 ac_prev=sbindir ;;
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 | --sbi=* | --sb=*)
1131 sbindir=$ac_optarg ;;
1132
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1136 | --sha | --sh)
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 | --sha=* | --sh=*)
1142 sharedstatedir=$ac_optarg ;;
1143
1144 -site | --site | --sit)
1145 ac_prev=site ;;
1146 -site=* | --site=* | --sit=*)
1147 site=$ac_optarg ;;
1148
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 ac_prev=srcdir ;;
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1153
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1160
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1165
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 verbose=yes ;;
1168
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1171
1172 -with-* | --with-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=\$ac_optarg ;;
1187
1188 -without-* | --without-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
1203
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1207
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1214
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1221
1222 -*) as_fn_error "unrecognized option: \`$ac_option'
1223 Try \`$0 --help' for more information."
1224 ;;
1225
1226 *=*)
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1232 esac
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1235
1236 *)
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1242 ;;
1243
1244 esac
1245 done
1246
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 as_fn_error "missing argument to $ac_option"
1250 fi
1251
1252 if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1254 no) ;;
1255 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 esac
1258 fi
1259
1260 # Check all directory arguments for consistency.
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
1265 do
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1268 case $ac_val in
1269 */ )
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1272 esac
1273 # Be sure to have absolute directory names.
1274 case $ac_val in
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 esac
1278 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1279 done
1280
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1287
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1296 fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error "pwd does not report name of working directory"
1311
1312
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\).*/{
1336 s//\1/
1337 q
1338 }
1339 s/.*/./; q'`
1340 srcdir=$ac_confdir
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 srcdir=..
1343 fi
1344 else
1345 ac_srcdir_defaulted=no
1346 fi
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1350 fi
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1354 pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1358 fi
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 case $srcdir in
1366 *" "*)
1367 as_fn_error "path to source, $srcdir, contains spaces"
1368 ;;
1369 esac
1370 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1371
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1378
1379 #
1380 # Report the --help message.
1381 #
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386 \`configure' configures this package to adapt to many kinds of systems.
1387
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393 Defaults for the options are specified in brackets.
1394
1395 Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1411
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1416
1417 For better control, use the options below.
1418
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1439 _ACEOF
1440
1441 cat <<\_ACEOF
1442
1443 Program names:
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447
1448 System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 --target=TARGET configure for building compilers for TARGET [HOST]
1452 _ACEOF
1453 fi
1454
1455 if test -n "$ac_init_help"; then
1456
1457 cat <<\_ACEOF
1458
1459 Optional Features:
1460 --disable-option-checking ignore unrecognized --enable/--with options
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1464 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1465 --disable-libquadmath do not build libquadmath directory
1466 --disable-libquadmath-support
1467 disable libquadmath support for Fortran
1468 --enable-libada build libada directory
1469 --enable-libssp build libssp directory
1470 --enable-static-libjava[=ARG]
1471 build static libjava [default=no]
1472 --enable-bootstrap enable bootstrapping [yes if native build]
1473 --enable-build-with-cxx build with C++ compiler instead of C compiler
1474 --enable-build-poststage1-with-cxx
1475 build stages 2 and 3 with C++, not C
1476 --disable-isl-version-check
1477 disable check for ISL version
1478 --disable-cloog-version-check
1479 disable check for CLooG version
1480 --enable-lto enable link time optimization support
1481 --enable-stage1-languages[=all]
1482 choose additional languages to build during stage1.
1483 Mostly useful for compiler development
1484 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1485 Objective-C runtime
1486 --enable-serial-[{host,target,build}-]configure
1487 force sequential configuration of sub-packages for
1488 the host, target or build machine, or all
1489 sub-packages
1490 --enable-maintainer-mode
1491 enable make rules and dependencies not useful (and
1492 sometimes confusing) to the casual installer
1493 --enable-stage1-checking[=all]
1494 choose additional checking for stage1 of the
1495 compiler
1496 --enable-werror enable -Werror in bootstrap stage2 and later
1497
1498 Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-build-libsubdir=DIR Directory where to find libraries for build system
1502 --with-mpc=PATH specify prefix directory for installed MPC package.
1503 Equivalent to --with-mpc-include=PATH/include plus
1504 --with-mpc-lib=PATH/lib
1505 --with-mpc-include=PATH specify directory for installed MPC include files
1506 --with-mpc-lib=PATH specify directory for the installed MPC library
1507 --with-mpfr-dir=PATH this option has been REMOVED
1508 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1509 Equivalent to --with-mpfr-include=PATH/include plus
1510 --with-mpfr-lib=PATH/lib
1511 --with-mpfr-include=PATH
1512 specify directory for installed MPFR include files
1513 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1514 --with-gmp-dir=PATH this option has been REMOVED
1515 --with-gmp=PATH specify prefix directory for the installed GMP
1516 package. Equivalent to
1517 --with-gmp-include=PATH/include plus
1518 --with-gmp-lib=PATH/lib
1519 --with-gmp-include=PATH specify directory for installed GMP include files
1520 --with-gmp-lib=PATH specify directory for the installed GMP library
1521 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1522 linking with PPL
1523 --with-stage1-ldflags=FLAGS
1524 linker flags for stage1
1525 --with-stage1-libs=LIBS libraries for stage1
1526 --with-boot-libs=LIBS libraries for stage2 and later
1527 --with-boot-ldflags=FLAGS
1528 linker flags for stage2 and later
1529 --with-isl=PATH Specify prefix directory for the installed ISL
1530 package. Equivalent to
1531 --with-isl-include=PATH/include plus
1532 --with-isl-lib=PATH/lib
1533 --with-isl-include=PATH Specify directory for installed ISL include files
1534 --with-isl-lib=PATH Specify the directory for the installed ISL library
1535 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1536 package. Equivalent to
1537 --with-cloog-include=PATH/include plus
1538 --with-cloog-lib=PATH/lib
1539 --with-cloog-include=PATH
1540 Specify directory for installed CLooG include files
1541 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1542 library
1543 --with-build-sysroot=SYSROOT
1544 use sysroot as the system root during the build
1545 --with-debug-prefix-map='A=B C=D ...'
1546 map A to B, C to D ... in debug information
1547 --with-build-config='NAME NAME2...'
1548 use config/NAME.mk build configuration
1549 --with-build-time-tools=PATH
1550 use given path to find target tools during the build
1551
1552 Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
1560 CXX C++ compiler command
1561 CXXFLAGS C++ compiler flags
1562 build_configargs
1563 additional configure arguments for build directories
1564 host_configargs
1565 additional configure arguments for host directories
1566 target_configargs
1567 additional configure arguments for target directories
1568 AR AR for the host
1569 AS AS for the host
1570 DLLTOOL DLLTOOL for the host
1571 LD LD for the host
1572 LIPO LIPO for the host
1573 NM NM for the host
1574 RANLIB RANLIB for the host
1575 STRIP STRIP for the host
1576 WINDRES WINDRES for the host
1577 WINDMC WINDMC for the host
1578 OBJCOPY OBJCOPY for the host
1579 OBJDUMP OBJDUMP for the host
1580 READELF READELF for the host
1581 CC_FOR_TARGET
1582 CC for the target
1583 CXX_FOR_TARGET
1584 CXX for the target
1585 GCC_FOR_TARGET
1586 GCC for the target
1587 GCJ_FOR_TARGET
1588 GCJ for the target
1589 GFORTRAN_FOR_TARGET
1590 GFORTRAN for the target
1591 GOC_FOR_TARGET
1592 GOC for the target
1593 AR_FOR_TARGET
1594 AR for the target
1595 AS_FOR_TARGET
1596 AS for the target
1597 DLLTOOL_FOR_TARGET
1598 DLLTOOL for the target
1599 LD_FOR_TARGET
1600 LD for the target
1601 LIPO_FOR_TARGET
1602 LIPO for the target
1603 NM_FOR_TARGET
1604 NM for the target
1605 OBJDUMP_FOR_TARGET
1606 OBJDUMP for the target
1607 RANLIB_FOR_TARGET
1608 RANLIB for the target
1609 READELF_FOR_TARGET
1610 READELF for the target
1611 STRIP_FOR_TARGET
1612 STRIP for the target
1613 WINDRES_FOR_TARGET
1614 WINDRES for the target
1615 WINDMC_FOR_TARGET
1616 WINDMC for the target
1617
1618 Use these variables to override the choices made by `configure' or to help
1619 it to find libraries and programs with nonstandard names/locations.
1620
1621 Report bugs to the package provider.
1622 _ACEOF
1623 ac_status=$?
1624 fi
1625
1626 if test "$ac_init_help" = "recursive"; then
1627 # If there are subdirs, report their specific --help.
1628 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1629 test -d "$ac_dir" ||
1630 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1631 continue
1632 ac_builddir=.
1633
1634 case "$ac_dir" in
1635 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 *)
1637 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1638 # A ".." for each directory in $ac_dir_suffix.
1639 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1640 case $ac_top_builddir_sub in
1641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1643 esac ;;
1644 esac
1645 ac_abs_top_builddir=$ac_pwd
1646 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1647 # for backward compatibility:
1648 ac_top_builddir=$ac_top_build_prefix
1649
1650 case $srcdir in
1651 .) # We are building in place.
1652 ac_srcdir=.
1653 ac_top_srcdir=$ac_top_builddir_sub
1654 ac_abs_top_srcdir=$ac_pwd ;;
1655 [\\/]* | ?:[\\/]* ) # Absolute name.
1656 ac_srcdir=$srcdir$ac_dir_suffix;
1657 ac_top_srcdir=$srcdir
1658 ac_abs_top_srcdir=$srcdir ;;
1659 *) # Relative name.
1660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1661 ac_top_srcdir=$ac_top_build_prefix$srcdir
1662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1663 esac
1664 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1665
1666 cd "$ac_dir" || { ac_status=$?; continue; }
1667 # Check for guested configure.
1668 if test -f "$ac_srcdir/configure.gnu"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1671 elif test -f "$ac_srcdir/configure"; then
1672 echo &&
1673 $SHELL "$ac_srcdir/configure" --help=recursive
1674 else
1675 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1676 fi || ac_status=$?
1677 cd "$ac_pwd" || { ac_status=$?; break; }
1678 done
1679 fi
1680
1681 test -n "$ac_init_help" && exit $ac_status
1682 if $ac_init_version; then
1683 cat <<\_ACEOF
1684 configure
1685 generated by GNU Autoconf 2.64
1686
1687 Copyright (C) 2009 Free Software Foundation, Inc.
1688 This configure script is free software; the Free Software Foundation
1689 gives unlimited permission to copy, distribute and modify it.
1690 _ACEOF
1691 exit
1692 fi
1693
1694 ## ------------------------ ##
1695 ## Autoconf initialization. ##
1696 ## ------------------------ ##
1697
1698 # ac_fn_c_try_compile LINENO
1699 # --------------------------
1700 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1701 ac_fn_c_try_compile ()
1702 {
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 rm -f conftest.$ac_objext
1705 if { { ac_try="$ac_compile"
1706 case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_compile") 2>conftest.err
1713 ac_status=$?
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1718 fi
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && {
1721 test -z "$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1723 } && test -s conftest.$ac_objext; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730 fi
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 return $ac_retval
1733
1734 } # ac_fn_c_try_compile
1735
1736 # ac_fn_cxx_try_compile LINENO
1737 # ----------------------------
1738 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1739 ac_fn_cxx_try_compile ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 rm -f conftest.$ac_objext
1743 if { { ac_try="$ac_compile"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_compile") 2>conftest.err
1751 ac_status=$?
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1756 fi
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && {
1759 test -z "$ac_cxx_werror_flag" ||
1760 test ! -s conftest.err
1761 } && test -s conftest.$ac_objext; then :
1762 ac_retval=0
1763 else
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1766
1767 ac_retval=1
1768 fi
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770 return $ac_retval
1771
1772 } # ac_fn_cxx_try_compile
1773
1774 # ac_fn_c_try_link LINENO
1775 # -----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_link ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext conftest$ac_exeext
1781 if { { ac_try="$ac_link"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest$ac_exeext && {
1800 test "$cross_compiling" = yes ||
1801 $as_test_x conftest$ac_exeext
1802 }; then :
1803 ac_retval=0
1804 else
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=1
1809 fi
1810 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1811 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1812 # interfere with the next link command; also delete a directory that is
1813 # left behind by Apple's compiler. We do this before executing the actions.
1814 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 return $ac_retval
1817
1818 } # ac_fn_c_try_link
1819
1820 # ac_fn_c_try_run LINENO
1821 # ----------------------
1822 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1823 # that executables *can* be run.
1824 ac_fn_c_try_run ()
1825 {
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_link"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_link") 2>&5
1835 ac_status=$?
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1838 { { case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_try") 2>&5
1845 ac_status=$?
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; }; }; then :
1848 ac_retval=0
1849 else
1850 $as_echo "$as_me: program exited with status $ac_status" >&5
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1853
1854 ac_retval=$ac_status
1855 fi
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858 return $ac_retval
1859
1860 } # ac_fn_c_try_run
1861 cat >config.log <<_ACEOF
1862 This file contains any messages produced by compilers while
1863 running configure, to aid debugging if configure makes a mistake.
1864
1865 It was created by $as_me, which was
1866 generated by GNU Autoconf 2.64. Invocation command line was
1867
1868 $ $0 $@
1869
1870 _ACEOF
1871 exec 5>>config.log
1872 {
1873 cat <<_ASUNAME
1874 ## --------- ##
1875 ## Platform. ##
1876 ## --------- ##
1877
1878 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1879 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1880 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1881 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1882 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1883
1884 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1885 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1886
1887 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1888 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1889 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1890 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1891 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1892 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1893 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1894
1895 _ASUNAME
1896
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1899 do
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 $as_echo "PATH: $as_dir"
1903 done
1904 IFS=$as_save_IFS
1905
1906 } >&5
1907
1908 cat >&5 <<_ACEOF
1909
1910
1911 ## ----------- ##
1912 ## Core tests. ##
1913 ## ----------- ##
1914
1915 _ACEOF
1916
1917
1918 # Keep a trace of the command line.
1919 # Strip out --no-create and --no-recursion so they do not pile up.
1920 # Strip out --silent because we don't want to record it for future runs.
1921 # Also quote any args containing shell meta-characters.
1922 # Make two passes to allow for proper duplicate-argument suppression.
1923 ac_configure_args=
1924 ac_configure_args0=
1925 ac_configure_args1=
1926 ac_must_keep_next=false
1927 for ac_pass in 1 2
1928 do
1929 for ac_arg
1930 do
1931 case $ac_arg in
1932 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1933 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1934 | -silent | --silent | --silen | --sile | --sil)
1935 continue ;;
1936 *\'*)
1937 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1938 esac
1939 case $ac_pass in
1940 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1941 2)
1942 as_fn_append ac_configure_args1 " '$ac_arg'"
1943 if test $ac_must_keep_next = true; then
1944 ac_must_keep_next=false # Got value, back to normal.
1945 else
1946 case $ac_arg in
1947 *=* | --config-cache | -C | -disable-* | --disable-* \
1948 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1949 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1950 | -with-* | --with-* | -without-* | --without-* | --x)
1951 case "$ac_configure_args0 " in
1952 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1953 esac
1954 ;;
1955 -* ) ac_must_keep_next=true ;;
1956 esac
1957 fi
1958 as_fn_append ac_configure_args " '$ac_arg'"
1959 ;;
1960 esac
1961 done
1962 done
1963 { ac_configure_args0=; unset ac_configure_args0;}
1964 { ac_configure_args1=; unset ac_configure_args1;}
1965
1966 # When interrupted or exit'd, cleanup temporary files, and complete
1967 # config.log. We remove comments because anyway the quotes in there
1968 # would cause problems or look ugly.
1969 # WARNING: Use '\'' to represent an apostrophe within the trap.
1970 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1971 trap 'exit_status=$?
1972 # Save into config.log some information that might help in debugging.
1973 {
1974 echo
1975
1976 cat <<\_ASBOX
1977 ## ---------------- ##
1978 ## Cache variables. ##
1979 ## ---------------- ##
1980 _ASBOX
1981 echo
1982 # The following way of writing the cache mishandles newlines in values,
1983 (
1984 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1985 eval ac_val=\$$ac_var
1986 case $ac_val in #(
1987 *${as_nl}*)
1988 case $ac_var in #(
1989 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1990 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1991 esac
1992 case $ac_var in #(
1993 _ | IFS | as_nl) ;; #(
1994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1995 *) { eval $ac_var=; unset $ac_var;} ;;
1996 esac ;;
1997 esac
1998 done
1999 (set) 2>&1 |
2000 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2001 *${as_nl}ac_space=\ *)
2002 sed -n \
2003 "s/'\''/'\''\\\\'\'''\''/g;
2004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2005 ;; #(
2006 *)
2007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2008 ;;
2009 esac |
2010 sort
2011 )
2012 echo
2013
2014 cat <<\_ASBOX
2015 ## ----------------- ##
2016 ## Output variables. ##
2017 ## ----------------- ##
2018 _ASBOX
2019 echo
2020 for ac_var in $ac_subst_vars
2021 do
2022 eval ac_val=\$$ac_var
2023 case $ac_val in
2024 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025 esac
2026 $as_echo "$ac_var='\''$ac_val'\''"
2027 done | sort
2028 echo
2029
2030 if test -n "$ac_subst_files"; then
2031 cat <<\_ASBOX
2032 ## ------------------- ##
2033 ## File substitutions. ##
2034 ## ------------------- ##
2035 _ASBOX
2036 echo
2037 for ac_var in $ac_subst_files
2038 do
2039 eval ac_val=\$$ac_var
2040 case $ac_val in
2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042 esac
2043 $as_echo "$ac_var='\''$ac_val'\''"
2044 done | sort
2045 echo
2046 fi
2047
2048 if test -s confdefs.h; then
2049 cat <<\_ASBOX
2050 ## ----------- ##
2051 ## confdefs.h. ##
2052 ## ----------- ##
2053 _ASBOX
2054 echo
2055 cat confdefs.h
2056 echo
2057 fi
2058 test "$ac_signal" != 0 &&
2059 $as_echo "$as_me: caught signal $ac_signal"
2060 $as_echo "$as_me: exit $exit_status"
2061 } >&5
2062 rm -f core *.core core.conftest.* &&
2063 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2064 exit $exit_status
2065 ' 0
2066 for ac_signal in 1 2 13 15; do
2067 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2068 done
2069 ac_signal=0
2070
2071 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2072 rm -f -r conftest* confdefs.h
2073
2074 $as_echo "/* confdefs.h */" > confdefs.h
2075
2076 # Predefined preprocessor variables.
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_NAME "$PACKAGE_NAME"
2080 _ACEOF
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2084 _ACEOF
2085
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2088 _ACEOF
2089
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_STRING "$PACKAGE_STRING"
2092 _ACEOF
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2096 _ACEOF
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_URL "$PACKAGE_URL"
2100 _ACEOF
2101
2102
2103 # Let the site file select an alternate cache file if it wants to.
2104 # Prefer an explicitly selected file to automatically selected ones.
2105 ac_site_file1=NONE
2106 ac_site_file2=NONE
2107 if test -n "$CONFIG_SITE"; then
2108 ac_site_file1=$CONFIG_SITE
2109 elif test "x$prefix" != xNONE; then
2110 ac_site_file1=$prefix/share/config.site
2111 ac_site_file2=$prefix/etc/config.site
2112 else
2113 ac_site_file1=$ac_default_prefix/share/config.site
2114 ac_site_file2=$ac_default_prefix/etc/config.site
2115 fi
2116 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2117 do
2118 test "x$ac_site_file" = xNONE && continue
2119 if test -r "$ac_site_file"; then
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2121 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2122 sed 's/^/| /' "$ac_site_file" >&5
2123 . "$ac_site_file"
2124 fi
2125 done
2126
2127 if test -r "$cache_file"; then
2128 # Some versions of bash will fail to source /dev/null (special
2129 # files actually), so we avoid doing that.
2130 if test -f "$cache_file"; then
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2132 $as_echo "$as_me: loading cache $cache_file" >&6;}
2133 case $cache_file in
2134 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2135 *) . "./$cache_file";;
2136 esac
2137 fi
2138 else
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2140 $as_echo "$as_me: creating cache $cache_file" >&6;}
2141 >$cache_file
2142 fi
2143
2144 # Check that the precious variables saved in the cache have kept the same
2145 # value.
2146 ac_cache_corrupted=false
2147 for ac_var in $ac_precious_vars; do
2148 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2149 eval ac_new_set=\$ac_env_${ac_var}_set
2150 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2151 eval ac_new_val=\$ac_env_${ac_var}_value
2152 case $ac_old_set,$ac_new_set in
2153 set,)
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2155 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2156 ac_cache_corrupted=: ;;
2157 ,set)
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2159 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2160 ac_cache_corrupted=: ;;
2161 ,);;
2162 *)
2163 if test "x$ac_old_val" != "x$ac_new_val"; then
2164 # differences in whitespace do not lead to failure.
2165 ac_old_val_w=`echo x $ac_old_val`
2166 ac_new_val_w=`echo x $ac_new_val`
2167 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2169 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2170 ac_cache_corrupted=:
2171 else
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2173 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2174 eval $ac_var=\$ac_old_val
2175 fi
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2177 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2179 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2180 fi;;
2181 esac
2182 # Pass precious variables to config.status.
2183 if test "$ac_new_set" = set; then
2184 case $ac_new_val in
2185 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2186 *) ac_arg=$ac_var=$ac_new_val ;;
2187 esac
2188 case " $ac_configure_args " in
2189 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2190 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2191 esac
2192 fi
2193 done
2194 if $ac_cache_corrupted; then
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2198 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2199 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2200 fi
2201 ## -------------------- ##
2202 ## Main body of script. ##
2203 ## -------------------- ##
2204
2205 ac_ext=c
2206 ac_cpp='$CPP $CPPFLAGS'
2207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219 progname=$0
2220 # if PWD already has a value, it is probably wrong.
2221 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2222
2223 # Export original configure arguments for use by sub-configures.
2224 # Quote arguments with shell meta charatcers.
2225 TOPLEVEL_CONFIGURE_ARGUMENTS=
2226 set -- "$progname" "$@"
2227 for ac_arg
2228 do
2229 case "$ac_arg" in
2230 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2231 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2232 # if the argument is of the form -foo=baz, quote the baz part only
2233 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2234 *) ;;
2235 esac
2236 # Add the quoted argument to the list.
2237 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2238 done
2239 if test "$silent" = yes; then
2240 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2241 fi
2242 # Remove the initial space we just introduced and, as these will be
2243 # expanded by make, quote '$'.
2244 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2245
2246
2247 # Find the build, host, and target systems.
2248 ac_aux_dir=
2249 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2250 for ac_t in install-sh install.sh shtool; do
2251 if test -f "$ac_dir/$ac_t"; then
2252 ac_aux_dir=$ac_dir
2253 ac_install_sh="$ac_aux_dir/$ac_t -c"
2254 break 2
2255 fi
2256 done
2257 done
2258 if test -z "$ac_aux_dir"; then
2259 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2260 fi
2261
2262 # These three variables are undocumented and unsupported,
2263 # and are intended to be withdrawn in a future Autoconf release.
2264 # They can cause serious problems if a builder's source tree is in a directory
2265 # whose full name contains unusual characters.
2266 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2267 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2268 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2269
2270
2271 # Make sure we can run config.sub.
2272 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2273 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2274
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2276 $as_echo_n "checking build system type... " >&6; }
2277 if test "${ac_cv_build+set}" = set; then :
2278 $as_echo_n "(cached) " >&6
2279 else
2280 ac_build_alias=$build_alias
2281 test "x$ac_build_alias" = x &&
2282 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2283 test "x$ac_build_alias" = x &&
2284 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2285 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2286 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2287
2288 fi
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2290 $as_echo "$ac_cv_build" >&6; }
2291 case $ac_cv_build in
2292 *-*-*) ;;
2293 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2294 esac
2295 build=$ac_cv_build
2296 ac_save_IFS=$IFS; IFS='-'
2297 set x $ac_cv_build
2298 shift
2299 build_cpu=$1
2300 build_vendor=$2
2301 shift; shift
2302 # Remember, the first character of IFS is used to create $*,
2303 # except with old shells:
2304 build_os=$*
2305 IFS=$ac_save_IFS
2306 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2307
2308
2309 case ${build_alias} in
2310 "") build_noncanonical=${build} ;;
2311 *) build_noncanonical=${build_alias} ;;
2312 esac
2313
2314
2315
2316 case ${host_alias} in
2317 "") host_noncanonical=${build_noncanonical} ;;
2318 *) host_noncanonical=${host_alias} ;;
2319 esac
2320
2321
2322
2323 case ${target_alias} in
2324 "") target_noncanonical=${host_noncanonical} ;;
2325 *) target_noncanonical=${target_alias} ;;
2326 esac
2327
2328
2329
2330
2331 test "$host_noncanonical" = "$target_noncanonical" &&
2332 test "$program_prefix$program_suffix$program_transform_name" = \
2333 NONENONEs,x,x, &&
2334 program_transform_name=s,y,y,
2335
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2337 $as_echo_n "checking host system type... " >&6; }
2338 if test "${ac_cv_host+set}" = set; then :
2339 $as_echo_n "(cached) " >&6
2340 else
2341 if test "x$host_alias" = x; then
2342 ac_cv_host=$ac_cv_build
2343 else
2344 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2345 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2346 fi
2347
2348 fi
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2350 $as_echo "$ac_cv_host" >&6; }
2351 case $ac_cv_host in
2352 *-*-*) ;;
2353 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2354 esac
2355 host=$ac_cv_host
2356 ac_save_IFS=$IFS; IFS='-'
2357 set x $ac_cv_host
2358 shift
2359 host_cpu=$1
2360 host_vendor=$2
2361 shift; shift
2362 # Remember, the first character of IFS is used to create $*,
2363 # except with old shells:
2364 host_os=$*
2365 IFS=$ac_save_IFS
2366 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2367
2368
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2370 $as_echo_n "checking target system type... " >&6; }
2371 if test "${ac_cv_target+set}" = set; then :
2372 $as_echo_n "(cached) " >&6
2373 else
2374 if test "x$target_alias" = x; then
2375 ac_cv_target=$ac_cv_host
2376 else
2377 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2378 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2379 fi
2380
2381 fi
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2383 $as_echo "$ac_cv_target" >&6; }
2384 case $ac_cv_target in
2385 *-*-*) ;;
2386 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2387 esac
2388 target=$ac_cv_target
2389 ac_save_IFS=$IFS; IFS='-'
2390 set x $ac_cv_target
2391 shift
2392 target_cpu=$1
2393 target_vendor=$2
2394 shift; shift
2395 # Remember, the first character of IFS is used to create $*,
2396 # except with old shells:
2397 target_os=$*
2398 IFS=$ac_save_IFS
2399 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2400
2401
2402 # The aliases save the names the user supplied, while $host etc.
2403 # will get canonicalized.
2404 test -n "$target_alias" &&
2405 test "$program_prefix$program_suffix$program_transform_name" = \
2406 NONENONEs,x,x, &&
2407 program_prefix=${target_alias}-
2408
2409 test "$program_prefix" != NONE &&
2410 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2411 # Use a double $ so make ignores it.
2412 test "$program_suffix" != NONE &&
2413 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2414 # Double any \ or $.
2415 # By default was `s,x,x', remove it if useless.
2416 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2417 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2418
2419
2420
2421 # Get 'install' or 'install-sh' and its variants.
2422 # Find a good install program. We prefer a C program (faster),
2423 # so one script is as good as another. But avoid the broken or
2424 # incompatible versions:
2425 # SysV /etc/install, /usr/sbin/install
2426 # SunOS /usr/etc/install
2427 # IRIX /sbin/install
2428 # AIX /bin/install
2429 # AmigaOS /C/install, which installs bootblocks on floppy discs
2430 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2431 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2432 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2433 # OS/2's system install, which has a completely different semantic
2434 # ./install, which can be erroneously created by make from ./install.sh.
2435 # Reject install programs that cannot install multiple files.
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2437 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2438 if test -z "$INSTALL"; then
2439 if test "${ac_cv_path_install+set}" = set; then :
2440 $as_echo_n "(cached) " >&6
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2444 do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 # Account for people who put trailing slashes in PATH elements.
2448 case $as_dir/ in #((
2449 ./ | .// | /[cC]/* | \
2450 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2451 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2452 /usr/ucb/* ) ;;
2453 *)
2454 # OSF1 and SCO ODT 3.0 have their own names for install.
2455 # Don't use installbsd from OSF since it installs stuff as root
2456 # by default.
2457 for ac_prog in ginstall scoinst install; do
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2460 if test $ac_prog = install &&
2461 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2462 # AIX install. It has an incompatible calling convention.
2463 :
2464 elif test $ac_prog = install &&
2465 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2466 # program-specific install script used by HP pwplus--don't use.
2467 :
2468 else
2469 rm -rf conftest.one conftest.two conftest.dir
2470 echo one > conftest.one
2471 echo two > conftest.two
2472 mkdir conftest.dir
2473 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2474 test -s conftest.one && test -s conftest.two &&
2475 test -s conftest.dir/conftest.one &&
2476 test -s conftest.dir/conftest.two
2477 then
2478 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2479 break 3
2480 fi
2481 fi
2482 fi
2483 done
2484 done
2485 ;;
2486 esac
2487
2488 done
2489 IFS=$as_save_IFS
2490
2491 rm -rf conftest.one conftest.two conftest.dir
2492
2493 fi
2494 if test "${ac_cv_path_install+set}" = set; then
2495 INSTALL=$ac_cv_path_install
2496 else
2497 # As a last resort, use the slow shell script. Don't cache a
2498 # value for INSTALL within a source directory, because that will
2499 # break other packages using the cache if that directory is
2500 # removed, or if the value is a relative name.
2501 INSTALL=$ac_install_sh
2502 fi
2503 fi
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2505 $as_echo "$INSTALL" >&6; }
2506
2507 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2508 # It thinks the first close brace ends the variable substitution.
2509 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2510
2511 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2512
2513 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2514
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2516 $as_echo_n "checking whether ln works... " >&6; }
2517 if test "${acx_cv_prog_LN+set}" = set; then :
2518 $as_echo_n "(cached) " >&6
2519 else
2520 rm -f conftestdata_t
2521 echo >conftestdata_f
2522 if ln conftestdata_f conftestdata_t 2>/dev/null
2523 then
2524 acx_cv_prog_LN=ln
2525 else
2526 acx_cv_prog_LN=no
2527 fi
2528 rm -f conftestdata_f conftestdata_t
2529
2530 fi
2531 if test $acx_cv_prog_LN = no; then
2532 LN="cp"
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2534 $as_echo "no, using $LN" >&6; }
2535 else
2536 LN="$acx_cv_prog_LN"
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2538 $as_echo "yes" >&6; }
2539 fi
2540
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2542 $as_echo_n "checking whether ln -s works... " >&6; }
2543 LN_S=$as_ln_s
2544 if test "$LN_S" = "ln -s"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2546 $as_echo "yes" >&6; }
2547 else
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2549 $as_echo "no, using $LN_S" >&6; }
2550 fi
2551
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2553 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2554 if test "${ac_cv_path_SED+set}" = set; then :
2555 $as_echo_n "(cached) " >&6
2556 else
2557 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2558 for ac_i in 1 2 3 4 5 6 7; do
2559 ac_script="$ac_script$as_nl$ac_script"
2560 done
2561 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2562 { ac_script=; unset ac_script;}
2563 if test -z "$SED"; then
2564 ac_path_SED_found=false
2565 # Loop through the user's path and test for each of PROGNAME-LIST
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_prog in sed gsed; do
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2574 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2575 # Check for GNU ac_path_SED and select it if it is found.
2576 # Check for GNU $ac_path_SED
2577 case `"$ac_path_SED" --version 2>&1` in
2578 *GNU*)
2579 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2580 *)
2581 ac_count=0
2582 $as_echo_n 0123456789 >"conftest.in"
2583 while :
2584 do
2585 cat "conftest.in" "conftest.in" >"conftest.tmp"
2586 mv "conftest.tmp" "conftest.in"
2587 cp "conftest.in" "conftest.nl"
2588 $as_echo '' >> "conftest.nl"
2589 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2590 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2591 as_fn_arith $ac_count + 1 && ac_count=$as_val
2592 if test $ac_count -gt ${ac_path_SED_max-0}; then
2593 # Best one so far, save it but keep looking for a better one
2594 ac_cv_path_SED="$ac_path_SED"
2595 ac_path_SED_max=$ac_count
2596 fi
2597 # 10*(2^10) chars as input seems more than enough
2598 test $ac_count -gt 10 && break
2599 done
2600 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2601 esac
2602
2603 $ac_path_SED_found && break 3
2604 done
2605 done
2606 done
2607 IFS=$as_save_IFS
2608 if test -z "$ac_cv_path_SED"; then
2609 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2610 fi
2611 else
2612 ac_cv_path_SED=$SED
2613 fi
2614
2615 fi
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2617 $as_echo "$ac_cv_path_SED" >&6; }
2618 SED="$ac_cv_path_SED"
2619 rm -f conftest.sed
2620
2621 for ac_prog in gawk mawk nawk awk
2622 do
2623 # Extract the first word of "$ac_prog", so it can be a program name with args.
2624 set dummy $ac_prog; ac_word=$2
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if test "${ac_cv_prog_AWK+set}" = set; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 if test -n "$AWK"; then
2631 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_AWK="$ac_prog"
2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
2643 fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 AWK=$ac_cv_prog_AWK
2651 if test -n "$AWK"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2653 $as_echo "$AWK" >&6; }
2654 else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2657 fi
2658
2659
2660 test -n "$AWK" && break
2661 done
2662
2663
2664 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2665
2666 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2667 # a relative path.
2668 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2669 INSTALL="${srcpwd}/install-sh -c"
2670 fi
2671
2672 # Set srcdir to "." if that's what it is.
2673 # This is important for multilib support.
2674 pwd=`${PWDCMD-pwd}`
2675 if test "${pwd}" = "${srcpwd}" ; then
2676 srcdir=.
2677 fi
2678
2679 topsrcdir=$srcpwd
2680
2681 extra_host_args=
2682
2683 ### To add a new directory to the tree, first choose whether it is a target
2684 ### or a host dependent tool. Then put it into the appropriate list
2685 ### (library or tools, host or target), doing a dependency sort.
2686
2687 # Subdirs will be configured in the order listed in build_configdirs,
2688 # configdirs, or target_configdirs; see the serialization section below.
2689
2690 # Dependency sorting is only needed when *configuration* must be done in
2691 # a particular order. In all cases a dependency should be specified in
2692 # the Makefile, whether or not it's implicitly specified here.
2693
2694 # Double entries in build_configdirs, configdirs, or target_configdirs may
2695 # cause circular dependencies and break everything horribly.
2696
2697 # these library is used by various programs built for the build
2698 # environment
2699 #
2700 build_libs="build-libiberty"
2701
2702 # these tools are built for the build environment
2703 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2704
2705 # these libraries are used by various programs built for the host environment
2706 #
2707 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2708
2709 # these tools are built for the host environment
2710 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2711 # know that we are building the simulator.
2712 # binutils, gas and ld appear in that order because it makes sense to run
2713 # "make check" in that particular order.
2714 # If --enable-gold is used, "gold" may replace "ld".
2715 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2716
2717 # libgcj represents the runtime libraries only used by gcj.
2718 libgcj="target-libffi \
2719 target-zlib \
2720 target-libjava"
2721
2722 # these libraries are built for the target environment, and are built after
2723 # the host libraries and the host tools (which may be a cross compiler)
2724 # Note that libiberty is not a target library.
2725 target_libraries="target-libgcc \
2726 target-libgloss \
2727 target-newlib \
2728 target-libgomp \
2729 target-libatomic \
2730 target-libitm \
2731 target-libstdc++-v3 \
2732 target-libmudflap \
2733 target-libssp \
2734 target-libquadmath \
2735 target-libgfortran \
2736 target-boehm-gc \
2737 ${libgcj} \
2738 target-libobjc \
2739 target-libada \
2740 target-libgo"
2741
2742 # these tools are built using the target libraries, and are intended to
2743 # run only in the target environment
2744 #
2745 # note: any program that *uses* libraries that are in the "target_libraries"
2746 # list belongs in this list.
2747 #
2748 target_tools="target-rda"
2749
2750 ################################################################################
2751
2752 ## All tools belong in one of the four categories, and are assigned above
2753 ## We assign ${configdirs} this way to remove all embedded newlines. This
2754 ## is important because configure will choke if they ever get through.
2755 ## ${configdirs} is directories we build using the host tools.
2756 ## ${target_configdirs} is directories we build using the target tools.
2757 configdirs=`echo ${host_libs} ${host_tools}`
2758 target_configdirs=`echo ${target_libraries} ${target_tools}`
2759 build_configdirs=`echo ${build_libs} ${build_tools}`
2760
2761
2762
2763 ################################################################################
2764
2765 srcname="gnu development package"
2766
2767 # This gets set non-empty for some net releases of packages.
2768 appdirs=""
2769
2770 # Define is_cross_compiler to save on calls to 'test'.
2771 is_cross_compiler=
2772 if test x"${host}" = x"${target}" ; then
2773 is_cross_compiler=no
2774 else
2775 is_cross_compiler=yes
2776 fi
2777
2778 # Find the build and target subdir names.
2779
2780 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2781 # have matching libraries, they should use host libraries: Makefile.tpl
2782 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2783 # However, they still use the build modules, because the corresponding
2784 # host modules (e.g. bison) are only built for the host when bootstrap
2785 # finishes. So:
2786 # - build_subdir is where we find build modules, and never changes.
2787 # - build_libsubdir is where we find build libraries, and can be overridden.
2788
2789 # Prefix 'build-' so this never conflicts with target_subdir.
2790 build_subdir="build-${build_noncanonical}"
2791
2792 # Check whether --with-build-libsubdir was given.
2793 if test "${with_build_libsubdir+set}" = set; then :
2794 withval=$with_build_libsubdir; build_libsubdir="$withval"
2795 else
2796 build_libsubdir="$build_subdir"
2797 fi
2798
2799 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2800 if ( test $srcdir = . && test -d gcc ) \
2801 || test -d $srcdir/../host-${host_noncanonical}; then
2802 host_subdir="host-${host_noncanonical}"
2803 else
2804 host_subdir=.
2805 fi
2806 # No prefix.
2807 target_subdir=${target_noncanonical}
2808
2809 # Be sure to cover against remnants of an in-tree build.
2810 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2811 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2812 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2813 fi
2814
2815 # Skipdirs are removed silently.
2816 skipdirs=
2817 # Noconfigdirs are removed loudly.
2818 noconfigdirs=""
2819
2820 use_gnu_ld=
2821 # Make sure we don't let GNU ld be added if we didn't want it.
2822 if test x$with_gnu_ld = xno ; then
2823 use_gnu_ld=no
2824 noconfigdirs="$noconfigdirs ld gold"
2825 fi
2826
2827 use_gnu_as=
2828 # Make sure we don't let GNU as be added if we didn't want it.
2829 if test x$with_gnu_as = xno ; then
2830 use_gnu_as=no
2831 noconfigdirs="$noconfigdirs gas"
2832 fi
2833
2834 use_included_zlib=
2835 # Make sure we don't let ZLIB be added if we didn't want it.
2836 if test x$with_system_zlib = xyes ; then
2837 use_included_zlib=no
2838 noconfigdirs="$noconfigdirs zlib"
2839 fi
2840
2841 # some tools are so dependent upon X11 that if we're not building with X,
2842 # it's not even worth trying to configure, much less build, that tool.
2843
2844 case ${with_x} in
2845 yes | "") ;; # the default value for this tree is that X11 is available
2846 no)
2847 skipdirs="${skipdirs} tk itcl libgui"
2848 # We won't be able to build gdbtk without X.
2849 enable_gdbtk=no
2850 ;;
2851 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2852 esac
2853
2854 # Some are only suitable for cross toolchains.
2855 # Remove these if host=target.
2856 cross_only="target-libgloss target-newlib target-opcodes"
2857
2858 case $is_cross_compiler in
2859 no) skipdirs="${skipdirs} ${cross_only}" ;;
2860 esac
2861
2862 # If both --with-headers and --with-libs are specified, default to
2863 # --without-newlib.
2864 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2865 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2866 if test x"${with_newlib}" = x ; then
2867 with_newlib=no
2868 fi
2869 fi
2870
2871 # Recognize --with-newlib/--without-newlib.
2872 case ${with_newlib} in
2873 no) skipdirs="${skipdirs} target-newlib" ;;
2874 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2875 esac
2876
2877 # Handle --enable-gold, --enable-ld.
2878 # --disable-gold [--enable-ld]
2879 # Build only ld. Default option.
2880 # --enable-gold [--enable-ld]
2881 # Build both gold and ld. Install gold as "ld.gold", install ld
2882 # as "ld.bfd" and "ld".
2883 # --enable-gold=default [--enable-ld]
2884 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2885 # install ld as "ld.bfd".
2886 # --enable-gold[=default] --disable-ld
2887 # Build only gold, which is then installed as both "ld.gold" and "ld".
2888 # --enable-gold --enable-ld=default
2889 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2890 # and ld.bfd).
2891 # In other words, ld is default
2892 # --enable-gold=default --enable-ld=default
2893 # Error.
2894
2895 default_ld=
2896 # Check whether --enable-gold was given.
2897 if test "${enable_gold+set}" = set; then :
2898 enableval=$enable_gold; ENABLE_GOLD=$enableval
2899 else
2900 ENABLE_GOLD=no
2901 fi
2902
2903 case "${ENABLE_GOLD}" in
2904 yes|default)
2905 # Check for ELF target.
2906 is_elf=no
2907 case "${target}" in
2908 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2909 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2910 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2911 | *-*-solaris2* | *-*-nto*)
2912 case "${target}" in
2913 *-*-linux*aout* | *-*-linux*oldld*)
2914 ;;
2915 *)
2916 is_elf=yes
2917 ;;
2918 esac
2919 esac
2920
2921 if test "$is_elf" = "yes"; then
2922 # Check for target supported by gold.
2923 case "${target}" in
2924 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2925 configdirs="$configdirs gold"
2926 if test x${ENABLE_GOLD} = xdefault; then
2927 default_ld=gold
2928 fi
2929 ENABLE_GOLD=yes
2930 ;;
2931 esac
2932 fi
2933 ;;
2934 no)
2935 ;;
2936 *)
2937 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2938 ;;
2939 esac
2940
2941 # Check whether --enable-ld was given.
2942 if test "${enable_ld+set}" = set; then :
2943 enableval=$enable_ld; ENABLE_LD=$enableval
2944 else
2945 ENABLE_LD=yes
2946 fi
2947
2948
2949 case "${ENABLE_LD}" in
2950 default)
2951 if test x${default_ld} != x; then
2952 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2953 fi
2954 ;;
2955 yes)
2956 ;;
2957 no)
2958 if test x${ENABLE_GOLD} != xyes; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2960 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2961 fi
2962 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2963 ;;
2964 *)
2965 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2966 ;;
2967 esac
2968
2969 # Configure extra directories which are host specific
2970
2971 case "${host}" in
2972 *-cygwin*)
2973 configdirs="$configdirs libtermcap" ;;
2974 esac
2975
2976 # A target can indicate whether a language isn't supported for some reason.
2977 # Only spaces may be used in this macro; not newlines or tabs.
2978 unsupported_languages=
2979
2980 # Remove more programs from consideration, based on the host or
2981 # target this usually means that a port of the program doesn't
2982 # exist yet.
2983
2984 case "${host}" in
2985 i[3456789]86-*-msdosdjgpp*)
2986 noconfigdirs="$noconfigdirs tcl tk itcl"
2987 ;;
2988 esac
2989
2990
2991 # Check whether --enable-libquadmath was given.
2992 if test "${enable_libquadmath+set}" = set; then :
2993 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2994 else
2995 ENABLE_LIBQUADMATH=yes
2996 fi
2997
2998 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2999 noconfigdirs="$noconfigdirs target-libquadmath"
3000 fi
3001
3002
3003 # Check whether --enable-libquadmath-support was given.
3004 if test "${enable_libquadmath_support+set}" = set; then :
3005 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3006 else
3007 ENABLE_LIBQUADMATH_SUPPORT=yes
3008 fi
3009
3010 enable_libquadmath_support=
3011 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3012 enable_libquadmath_support=no
3013 fi
3014
3015
3016 # Check whether --enable-libada was given.
3017 if test "${enable_libada+set}" = set; then :
3018 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3019 else
3020 ENABLE_LIBADA=yes
3021 fi
3022
3023 if test "${ENABLE_LIBADA}" != "yes" ; then
3024 noconfigdirs="$noconfigdirs gnattools"
3025 fi
3026
3027 # Check whether --enable-libssp was given.
3028 if test "${enable_libssp+set}" = set; then :
3029 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3030 else
3031 ENABLE_LIBSSP=yes
3032 fi
3033
3034
3035 # Save it here so that, even in case of --enable-libgcj, if the Java
3036 # front-end isn't enabled, we still get libgcj disabled.
3037 libgcj_saved=$libgcj
3038 case $enable_libgcj in
3039 yes)
3040 # If we reset it here, it won't get added to noconfigdirs in the
3041 # target-specific build rules, so it will be forcibly enabled
3042 # (unless the Java language itself isn't enabled).
3043 libgcj=
3044 ;;
3045 no)
3046 # Make sure we get it printed in the list of not supported target libs.
3047 # Don't disable libffi, though, other languages use it.
3048 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3049 # Clear libgcj_saved so that even if java is enabled libffi won't be
3050 # built.
3051 libgcj_saved=
3052 ;;
3053 esac
3054
3055 # Check whether --enable-static-libjava was given.
3056 if test "${enable_static_libjava+set}" = set; then :
3057 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3058 else
3059 ENABLE_STATIC_LIBJAVA=no
3060 fi
3061
3062 enable_static_libjava=
3063 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3064 enable_static_libjava=yes
3065 fi
3066
3067 if test x$enable_static_libjava != xyes ; then
3068 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3069 fi
3070
3071
3072 # Disable libmudflap on some systems.
3073 if test x$enable_libmudflap = x ; then
3074 case "${target}" in
3075 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3076 # Enable libmudflap by default in GNU and friends.
3077 ;;
3078 *-*-freebsd*)
3079 # Enable libmudflap by default in FreeBSD.
3080 ;;
3081 *)
3082 # Disable it by default everywhere else.
3083 noconfigdirs="$noconfigdirs target-libmudflap"
3084 ;;
3085 esac
3086 fi
3087
3088 # Disable libgomp on non POSIX hosted systems.
3089 if test x$enable_libgomp = x ; then
3090 # Enable libgomp by default on hosted POSIX systems.
3091 case "${target}" in
3092 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3093 ;;
3094 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3095 ;;
3096 *-*-solaris2* | *-*-hpux11*)
3097 ;;
3098 *-*-darwin* | *-*-aix*)
3099 ;;
3100 *)
3101 noconfigdirs="$noconfigdirs target-libgomp"
3102 ;;
3103 esac
3104 fi
3105
3106 # Disable libatomic on unsupported systems.
3107 if test -d ${srcdir}/libatomic; then
3108 if test x$enable_libatomic = x; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3110 $as_echo_n "checking for libatomic support... " >&6; }
3111 if (srcdir=${srcdir}/libatomic; \
3112 . ${srcdir}/configure.tgt; \
3113 test -n "$UNSUPPORTED")
3114 then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 noconfigdirs="$noconfigdirs target-libatomic"
3118 else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3120 $as_echo "yes" >&6; }
3121 fi
3122 fi
3123 fi
3124
3125 # Disable libitm on unsupported systems.
3126 if test -d ${srcdir}/libitm; then
3127 if test x$enable_libitm = x; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3129 $as_echo_n "checking for libitm support... " >&6; }
3130 if (srcdir=${srcdir}/libitm; \
3131 . ${srcdir}/configure.tgt; \
3132 test -n "$UNSUPPORTED")
3133 then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 noconfigdirs="$noconfigdirs target-libitm"
3137 else
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3139 $as_echo "yes" >&6; }
3140 fi
3141 fi
3142 fi
3143
3144 # Disable libssp for some systems.
3145 case "${target}" in
3146 avr-*-*)
3147 # No hosted I/O support.
3148 noconfigdirs="$noconfigdirs target-libssp"
3149 ;;
3150 powerpc-*-aix* | rs6000-*-aix*)
3151 noconfigdirs="$noconfigdirs target-libssp"
3152 ;;
3153 rl78-*-*)
3154 # libssp uses a misaligned load to trigger a fault, but the RL78
3155 # doesn't fault for those - instead, it gives a build-time error
3156 # for explicit misaligned loads.
3157 noconfigdirs="$noconfigdirs target-libssp"
3158 ;;
3159 esac
3160
3161 # Disable libstdc++-v3 for some systems.
3162 case "${target}" in
3163 *-*-vxworks*)
3164 # VxWorks uses the Dinkumware C++ library.
3165 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3166 ;;
3167 arm*-wince-pe*)
3168 # the C++ libraries don't build on top of CE's C libraries
3169 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3170 ;;
3171 avr-*-*)
3172 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3173 ;;
3174 esac
3175
3176 # Disable Fortran for some systems.
3177 case "${target}" in
3178 mmix-*-*)
3179 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3180 unsupported_languages="$unsupported_languages fortran"
3181 ;;
3182 esac
3183
3184 # Disable Java if libffi is not supported.
3185 case "${target}" in
3186 alpha*-*-*)
3187 ;;
3188 arm*-*-*)
3189 ;;
3190 cris-*-*)
3191 ;;
3192 frv-*-*)
3193 ;;
3194 hppa*-*-linux*)
3195 ;;
3196 hppa*-*-hpux*)
3197 ;;
3198 i?86-*-*)
3199 ;;
3200 ia64*-*-*)
3201 ;;
3202 m32r*-*-*)
3203 ;;
3204 m68k-*-*)
3205 ;;
3206 mips*-*-rtems*)
3207 ;;
3208 mips*-*-linux*)
3209 ;;
3210 powerpc*-*-linux*)
3211 ;;
3212 powerpc-*-darwin*)
3213 ;;
3214 powerpc-*-aix* | rs6000-*-aix*)
3215 ;;
3216 powerpc-*-freebsd*)
3217 ;;
3218 powerpc64-*-freebsd*)
3219 ;;
3220 powerpc*-*-rtems*)
3221 ;;
3222 s390-*-* | s390x-*-*)
3223 ;;
3224 sh-*-* | sh[34]*-*-*)
3225 ;;
3226 sh64-*-* | sh5*-*-*)
3227 ;;
3228 sparc*-*-*)
3229 ;;
3230 x86_64-*-*)
3231 ;;
3232 *-*-*)
3233 unsupported_languages="$unsupported_languages java"
3234 ;;
3235 esac
3236
3237 # Disable Java, libgcj or related libraries for some systems.
3238 case "${target}" in
3239 powerpc-*-darwin*)
3240 ;;
3241 i[3456789]86-*-darwin*)
3242 ;;
3243 x86_64-*-darwin[912]*)
3244 ;;
3245 *-*-darwin*)
3246 noconfigdirs="$noconfigdirs ${libgcj}"
3247 ;;
3248 *-*-netware*)
3249 noconfigdirs="$noconfigdirs ${libgcj}"
3250 ;;
3251 *-*-rtems*)
3252 noconfigdirs="$noconfigdirs ${libgcj}"
3253 ;;
3254 *-*-tpf*)
3255 noconfigdirs="$noconfigdirs ${libgcj}"
3256 ;;
3257 *-*-uclinux*)
3258 noconfigdirs="$noconfigdirs ${libgcj}"
3259 ;;
3260 *-*-vxworks*)
3261 noconfigdirs="$noconfigdirs ${libgcj}"
3262 ;;
3263 alpha*-*-*vms*)
3264 noconfigdirs="$noconfigdirs ${libgcj}"
3265 ;;
3266 arm-wince-pe)
3267 noconfigdirs="$noconfigdirs ${libgcj}"
3268 ;;
3269 arm*-*-symbianelf*)
3270 noconfigdirs="$noconfigdirs ${libgcj}"
3271 ;;
3272 bfin-*-*)
3273 noconfigdirs="$noconfigdirs target-boehm-gc"
3274 ;;
3275 cris-*-* | crisv32-*-*)
3276 unsupported_languages="$unsupported_languages java"
3277 case "${target}" in
3278 *-*-linux*)
3279 ;;
3280 *) # See PR46792 regarding target-libffi.
3281 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3282 esac
3283 ;;
3284 hppa*64*-*-linux*)
3285 # In this case, it's because the hppa64-linux target is for
3286 # the kernel only at this point and has no libc, and thus no
3287 # headers, crt*.o, etc., all of which are needed by these.
3288 unsupported_languages="$unsupported_languages java"
3289 ;;
3290 hppa*64*-*-hpux*)
3291 noconfigdirs="$noconfigdirs ${libgcj}"
3292 ;;
3293 hppa*-hp-hpux11*)
3294 ;;
3295 hppa*-*-hpux*)
3296 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3297 # build on HP-UX 10.20.
3298 noconfigdirs="$noconfigdirs ${libgcj}"
3299 ;;
3300 ia64*-*-*vms*)
3301 noconfigdirs="$noconfigdirs ${libgcj}"
3302 ;;
3303 i[3456789]86-w64-mingw*)
3304 noconfigdirs="$noconfigdirs ${libgcj}"
3305 ;;
3306 i[3456789]86-*-mingw*)
3307 noconfigdirs="$noconfigdirs ${libgcj}"
3308 ;;
3309 x86_64-*-mingw*)
3310 noconfigdirs="$noconfigdirs ${libgcj}"
3311 ;;
3312 mmix-*-*)
3313 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3314 ;;
3315 powerpc-*-aix*)
3316 # copied from rs6000-*-* entry
3317 noconfigdirs="$noconfigdirs ${libgcj}"
3318 ;;
3319 rs6000-*-aix*)
3320 noconfigdirs="$noconfigdirs ${libgcj}"
3321 ;;
3322 *-*-lynxos*)
3323 noconfigdirs="$noconfigdirs ${libgcj}"
3324 ;;
3325 esac
3326
3327 # Default libgloss CPU subdirectory.
3328 libgloss_dir="$target_cpu"
3329
3330 case "${target}" in
3331 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3332 libgloss_dir=wince
3333 ;;
3334 arm*-*-*)
3335 libgloss_dir=arm
3336 ;;
3337 cris-*-* | crisv32-*-*)
3338 libgloss_dir=cris
3339 ;;
3340 hppa*-*-*)
3341 libgloss_dir=pa
3342 ;;
3343 i[3456789]86-*-*)
3344 libgloss_dir=i386
3345 ;;
3346 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3347 libgloss_dir=m68hc11
3348 ;;
3349 m68*-*-* | fido-*-*)
3350 libgloss_dir=m68k
3351 ;;
3352 mips*-*-*)
3353 libgloss_dir=mips
3354 ;;
3355 powerpc*-*-*)
3356 libgloss_dir=rs6000
3357 ;;
3358 sparc*-*-*)
3359 libgloss_dir=sparc
3360 ;;
3361 esac
3362
3363 # Disable newlib and libgloss for various target OSes.
3364 case "${target}" in
3365 alpha*-dec-osf*)
3366 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3367 ;;
3368 i[3456789]86-*-linux*)
3369 # This section makes it possible to build newlib natively on linux.
3370 # If we are using a cross compiler then don't configure newlib.
3371 if test x${is_cross_compiler} != xno ; then
3372 noconfigdirs="$noconfigdirs target-newlib"
3373 fi
3374 noconfigdirs="$noconfigdirs target-libgloss"
3375 # If we are not using a cross compiler, do configure newlib.
3376 # Note however, that newlib will only be configured in this situation
3377 # if the --with-newlib option has been given, because otherwise
3378 # 'target-newlib' will appear in skipdirs.
3379 ;;
3380 i[3456789]86-*-rdos*)
3381 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3382 ;;
3383 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3384 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3385 ;;
3386 sparc-*-sunos4*)
3387 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3388 ;;
3389 *-*-aix*)
3390 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3391 ;;
3392 *-*-beos*)
3393 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3394 ;;
3395 *-*-chorusos)
3396 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3397 ;;
3398 *-*-dragonfly*)
3399 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3400 ;;
3401 *-*-freebsd*)
3402 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3403 ;;
3404 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3405 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3406 ;;
3407 *-*-lynxos*)
3408 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3409 ;;
3410 *-*-mingw*)
3411 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3412 ;;
3413 *-*-netbsd*)
3414 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3415 ;;
3416 *-*-netware*)
3417 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3418 ;;
3419 *-*-tpf*)
3420 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3421 ;;
3422 *-*-uclinux*)
3423 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3424 ;;
3425 *-*-vxworks*)
3426 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3427 ;;
3428 esac
3429
3430 case "${target}" in
3431 *-*-chorusos)
3432 ;;
3433 powerpc-*-darwin*)
3434 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3435 noconfigdirs="$noconfigdirs sim target-rda"
3436 ;;
3437 i[3456789]86-*-darwin*)
3438 noconfigdirs="$noconfigdirs ld gprof"
3439 noconfigdirs="$noconfigdirs sim target-rda"
3440 ;;
3441 x86_64-*-darwin[912]*)
3442 noconfigdirs="$noconfigdirs ld gas gprof"
3443 noconfigdirs="$noconfigdirs sim target-rda"
3444 ;;
3445 *-*-darwin*)
3446 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3447 noconfigdirs="$noconfigdirs sim target-rda"
3448 ;;
3449 *-*-dragonfly*)
3450 ;;
3451 *-*-freebsd*)
3452 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3453 && test -f /usr/local/include/gmp.h; then
3454 with_gmp=/usr/local
3455 fi
3456 ;;
3457 *-*-kaos*)
3458 # Remove unsupported stuff on all kaOS configurations.
3459 noconfigdirs="$noconfigdirs target-libgloss"
3460 ;;
3461 *-*-netbsd*)
3462 ;;
3463 *-*-netware*)
3464 ;;
3465 *-*-rtems*)
3466 noconfigdirs="$noconfigdirs target-libgloss"
3467 ;;
3468 # The tpf target doesn't support gdb yet.
3469 *-*-tpf*)
3470 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3471 ;;
3472 *-*-uclinux*)
3473 noconfigdirs="$noconfigdirs target-rda"
3474 ;;
3475 *-*-vxworks*)
3476 ;;
3477 alpha*-dec-osf*)
3478 # ld works, but does not support shared libraries.
3479 # gas doesn't generate exception information.
3480 noconfigdirs="$noconfigdirs gas ld"
3481 ;;
3482 alpha*-*-*vms*)
3483 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3484 ;;
3485 alpha*-*-*)
3486 # newlib is not 64 bit ready
3487 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3488 ;;
3489 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3490 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3491 ;;
3492 arc-*-*)
3493 noconfigdirs="$noconfigdirs target-libgloss"
3494 ;;
3495 arm-*-pe*)
3496 noconfigdirs="$noconfigdirs target-libgloss"
3497 ;;
3498 arm-*-riscix*)
3499 noconfigdirs="$noconfigdirs ld target-libgloss"
3500 ;;
3501 c4x-*-* | tic4x-*-*)
3502 noconfigdirs="$noconfigdirs target-libgloss"
3503 ;;
3504 tic54x-*-*)
3505 noconfigdirs="$noconfigdirs target-libgloss gdb"
3506 ;;
3507 d10v-*-*)
3508 noconfigdirs="$noconfigdirs target-libgloss"
3509 ;;
3510 d30v-*-*)
3511 noconfigdirs="$noconfigdirs gdb"
3512 ;;
3513 fr30-*-elf*)
3514 noconfigdirs="$noconfigdirs gdb"
3515 ;;
3516 moxie-*-*)
3517 noconfigdirs="$noconfigdirs gprof"
3518 ;;
3519 h8300*-*-*)
3520 noconfigdirs="$noconfigdirs target-libgloss"
3521 ;;
3522 h8500-*-*)
3523 noconfigdirs="$noconfigdirs target-libgloss"
3524 ;;
3525 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3526 ;;
3527 hppa*64*-*-linux*)
3528 ;;
3529 hppa*-*-linux*)
3530 ;;
3531 hppa*-*-*elf* | \
3532 hppa*-*-lites* | \
3533 hppa*-*-openbsd* | \
3534 hppa*64*-*-*)
3535 ;;
3536 hppa*-hp-hpux11*)
3537 noconfigdirs="$noconfigdirs ld"
3538 ;;
3539 hppa*-*-pro*)
3540 ;;
3541 hppa*-*-*)
3542 noconfigdirs="$noconfigdirs ld"
3543 ;;
3544 i960-*-*)
3545 noconfigdirs="$noconfigdirs gdb"
3546 ;;
3547 ia64*-*-elf*)
3548 # No gdb support yet.
3549 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3550 ;;
3551 ia64*-**-hpux*)
3552 # No ld support yet.
3553 noconfigdirs="$noconfigdirs libgui itcl ld"
3554 ;;
3555 ia64*-*-*vms*)
3556 # No ld support yet.
3557 noconfigdirs="$noconfigdirs libgui itcl ld"
3558 ;;
3559 i[3456789]86-w64-mingw*)
3560 ;;
3561 i[3456789]86-*-mingw*)
3562 target_configdirs="$target_configdirs target-winsup"
3563 ;;
3564 *-*-cygwin*)
3565 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3566 noconfigdirs="$noconfigdirs target-libgloss"
3567 # always build newlib if winsup directory is present.
3568 if test -d "$srcdir/winsup/cygwin"; then
3569 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3570 elif test -d "$srcdir/newlib"; then
3571 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3572 fi
3573 ;;
3574 i[3456789]86-*-pe)
3575 noconfigdirs="$noconfigdirs target-libgloss"
3576 ;;
3577 i[3456789]86-*-sco3.2v5*)
3578 # The linker does not yet know about weak symbols in COFF,
3579 # and is not configured to handle mixed ELF and COFF.
3580 noconfigdirs="$noconfigdirs ld target-libgloss"
3581 ;;
3582 i[3456789]86-*-sco*)
3583 noconfigdirs="$noconfigdirs gprof target-libgloss"
3584 ;;
3585 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3586 noconfigdirs="$noconfigdirs target-libgloss"
3587 ;;
3588 i[3456789]86-*-sysv4*)
3589 noconfigdirs="$noconfigdirs target-libgloss"
3590 ;;
3591 i[3456789]86-*-beos*)
3592 noconfigdirs="$noconfigdirs gdb"
3593 ;;
3594 i[3456789]86-*-rdos*)
3595 noconfigdirs="$noconfigdirs gdb"
3596 ;;
3597 mmix-*-*)
3598 noconfigdirs="$noconfigdirs gdb"
3599 ;;
3600 mt-*-*)
3601 noconfigdirs="$noconfigdirs sim"
3602 ;;
3603 powerpc-*-aix*)
3604 # copied from rs6000-*-* entry
3605 noconfigdirs="$noconfigdirs gprof"
3606 ;;
3607 powerpc*-*-winnt* | powerpc*-*-pe*)
3608 target_configdirs="$target_configdirs target-winsup"
3609 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3610 # always build newlib.
3611 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3612 ;;
3613 # This is temporary until we can link against shared libraries
3614 powerpcle-*-solaris*)
3615 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3616 ;;
3617 powerpc-*-beos*)
3618 noconfigdirs="$noconfigdirs gdb"
3619 ;;
3620 rs6000-*-lynxos*)
3621 noconfigdirs="$noconfigdirs gprof"
3622 ;;
3623 rs6000-*-aix*)
3624 noconfigdirs="$noconfigdirs gprof"
3625 ;;
3626 rs6000-*-*)
3627 noconfigdirs="$noconfigdirs gprof"
3628 ;;
3629 m68k-apollo-*)
3630 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3631 ;;
3632 microblaze*)
3633 noconfigdirs="$noconfigdirs gprof"
3634 ;;
3635 mips*-sde-elf*)
3636 if test x$with_newlib = xyes; then
3637 noconfigdirs="$noconfigdirs gprof"
3638 fi
3639 ;;
3640 mips*-*-irix5*)
3641 noconfigdirs="$noconfigdirs gprof target-libgloss"
3642 ;;
3643 mips*-*-irix6*)
3644 noconfigdirs="$noconfigdirs gprof target-libgloss"
3645 ;;
3646 mips*-*-bsd*)
3647 noconfigdirs="$noconfigdirs gprof target-libgloss"
3648 ;;
3649 mips*-*-linux*)
3650 ;;
3651 mips*-*-*)
3652 noconfigdirs="$noconfigdirs gprof"
3653 ;;
3654 sh-*-* | sh64-*-*)
3655 case "${target}" in
3656 sh*-*-elf)
3657 ;;
3658 *)
3659 noconfigdirs="$noconfigdirs target-libgloss" ;;
3660 esac
3661 ;;
3662 sparc-*-sunos4*)
3663 if test x${is_cross_compiler} = xno ; then
3664 use_gnu_ld=no
3665 fi
3666 ;;
3667 tic6x-*-*)
3668 noconfigdirs="$noconfigdirs sim"
3669 ;;
3670 tilepro-*-* | tilegx-*-*)
3671 noconfigdirs="$noconfigdirs sim"
3672 ;;
3673 v810-*-*)
3674 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3675 ;;
3676 vax-*-*)
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678 ;;
3679 esac
3680
3681 # If we aren't building newlib, then don't build libgloss, since libgloss
3682 # depends upon some newlib header files.
3683 case "${noconfigdirs}" in
3684 *target-libgloss*) ;;
3685 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3686 esac
3687
3688 # Work in distributions that contain no compiler tools, like Autoconf.
3689 host_makefile_frag=/dev/null
3690 if test -d ${srcdir}/config ; then
3691 case "${host}" in
3692 i[3456789]86-*-msdosdjgpp*)
3693 host_makefile_frag="config/mh-djgpp"
3694 ;;
3695 *-cygwin*)
3696
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3698 $as_echo_n "checking to see if cat works as expected... " >&6; }
3699 echo a >cygwin-cat-check
3700 if test `cat cygwin-cat-check` = a ; then
3701 rm cygwin-cat-check
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703 $as_echo "yes" >&6; }
3704 else
3705 rm cygwin-cat-check
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3708 as_fn_error "The cat command does not ignore carriage return characters.
3709 Please either mount the build directory in binary mode or run the following
3710 commands before running any configure script:
3711 set -o igncr
3712 export SHELLOPTS
3713 " "$LINENO" 5
3714 fi
3715
3716 host_makefile_frag="config/mh-cygwin"
3717 ;;
3718 *-mingw*)
3719 host_makefile_frag="config/mh-mingw"
3720 ;;
3721 hppa*-hp-hpux10*)
3722 host_makefile_frag="config/mh-pa-hpux10"
3723 ;;
3724 hppa*-hp-hpux*)
3725 host_makefile_frag="config/mh-pa"
3726 ;;
3727 hppa*-*)
3728 host_makefile_frag="config/mh-pa"
3729 ;;
3730 *-*-darwin*)
3731 host_makefile_frag="config/mh-darwin"
3732 ;;
3733 powerpc-*-aix*)
3734 host_makefile_frag="config/mh-ppc-aix"
3735 ;;
3736 rs6000-*-aix*)
3737 host_makefile_frag="config/mh-ppc-aix"
3738 ;;
3739 esac
3740 fi
3741
3742 if test "${build}" != "${host}" ; then
3743 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3744 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3745 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3746 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3747 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3748 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3749 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3750 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3751 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3752 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3753 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3754 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3755 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3756 else
3757 AR_FOR_BUILD="\$(AR)"
3758 AS_FOR_BUILD="\$(AS)"
3759 CC_FOR_BUILD="\$(CC)"
3760 CXX_FOR_BUILD="\$(CXX)"
3761 GCJ_FOR_BUILD="\$(GCJ)"
3762 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3763 GOC_FOR_BUILD="\$(GOC)"
3764 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3765 LD_FOR_BUILD="\$(LD)"
3766 NM_FOR_BUILD="\$(NM)"
3767 RANLIB_FOR_BUILD="\$(RANLIB)"
3768 WINDRES_FOR_BUILD="\$(WINDRES)"
3769 WINDMC_FOR_BUILD="\$(WINDMC)"
3770 fi
3771
3772 ac_ext=c
3773 ac_cpp='$CPP $CPPFLAGS'
3774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777 if test -n "$ac_tool_prefix"; then
3778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3779 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if test "${ac_cv_prog_CC+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
3784 else
3785 if test -n "$CC"; then
3786 ac_cv_prog_CC="$CC" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3795 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 break 2
3798 fi
3799 done
3800 done
3801 IFS=$as_save_IFS
3802
3803 fi
3804 fi
3805 CC=$ac_cv_prog_CC
3806 if test -n "$CC"; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3808 $as_echo "$CC" >&6; }
3809 else
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3812 fi
3813
3814
3815 fi
3816 if test -z "$ac_cv_prog_CC"; then
3817 ac_ct_CC=$CC
3818 # Extract the first word of "gcc", so it can be a program name with args.
3819 set dummy gcc; ac_word=$2
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3823 $as_echo_n "(cached) " >&6
3824 else
3825 if test -n "$ac_ct_CC"; then
3826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3827 else
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 ac_cv_prog_ac_ct_CC="gcc"
3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 break 2
3838 fi
3839 done
3840 done
3841 IFS=$as_save_IFS
3842
3843 fi
3844 fi
3845 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3846 if test -n "$ac_ct_CC"; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3848 $as_echo "$ac_ct_CC" >&6; }
3849 else
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3852 fi
3853
3854 if test "x$ac_ct_CC" = x; then
3855 CC=""
3856 else
3857 case $cross_compiling:$ac_tool_warned in
3858 yes:)
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3861 ac_tool_warned=yes ;;
3862 esac
3863 CC=$ac_ct_CC
3864 fi
3865 else
3866 CC="$ac_cv_prog_CC"
3867 fi
3868
3869 if test -z "$CC"; then
3870 if test -n "$ac_tool_prefix"; then
3871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3872 set dummy ${ac_tool_prefix}cc; ac_word=$2
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874 $as_echo_n "checking for $ac_word... " >&6; }
3875 if test "${ac_cv_prog_CC+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3877 else
3878 if test -n "$CC"; then
3879 ac_cv_prog_CC="$CC" # Let the user override the test.
3880 else
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3888 ac_cv_prog_CC="${ac_tool_prefix}cc"
3889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3890 break 2
3891 fi
3892 done
3893 done
3894 IFS=$as_save_IFS
3895
3896 fi
3897 fi
3898 CC=$ac_cv_prog_CC
3899 if test -n "$CC"; then
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3901 $as_echo "$CC" >&6; }
3902 else
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 $as_echo "no" >&6; }
3905 fi
3906
3907
3908 fi
3909 fi
3910 if test -z "$CC"; then
3911 # Extract the first word of "cc", so it can be a program name with args.
3912 set dummy cc; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if test "${ac_cv_prog_CC+set}" = set; then :
3916 $as_echo_n "(cached) " >&6
3917 else
3918 if test -n "$CC"; then
3919 ac_cv_prog_CC="$CC" # Let the user override the test.
3920 else
3921 ac_prog_rejected=no
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3930 ac_prog_rejected=yes
3931 continue
3932 fi
3933 ac_cv_prog_CC="cc"
3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 break 2
3936 fi
3937 done
3938 done
3939 IFS=$as_save_IFS
3940
3941 if test $ac_prog_rejected = yes; then
3942 # We found a bogon in the path, so make sure we never use it.
3943 set dummy $ac_cv_prog_CC
3944 shift
3945 if test $# != 0; then
3946 # We chose a different compiler from the bogus one.
3947 # However, it has the same basename, so the bogon will be chosen
3948 # first if we set CC to just the basename; use the full file name.
3949 shift
3950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3951 fi
3952 fi
3953 fi
3954 fi
3955 CC=$ac_cv_prog_CC
3956 if test -n "$CC"; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3958 $as_echo "$CC" >&6; }
3959 else
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961 $as_echo "no" >&6; }
3962 fi
3963
3964
3965 fi
3966 if test -z "$CC"; then
3967 if test -n "$ac_tool_prefix"; then
3968 for ac_prog in cl.exe
3969 do
3970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973 $as_echo_n "checking for $ac_word... " >&6; }
3974 if test "${ac_cv_prog_CC+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
3976 else
3977 if test -n "$CC"; then
3978 ac_cv_prog_CC="$CC" # Let the user override the test.
3979 else
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH
3982 do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 break 2
3990 fi
3991 done
3992 done
3993 IFS=$as_save_IFS
3994
3995 fi
3996 fi
3997 CC=$ac_cv_prog_CC
3998 if test -n "$CC"; then
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4000 $as_echo "$CC" >&6; }
4001 else
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003 $as_echo "no" >&6; }
4004 fi
4005
4006
4007 test -n "$CC" && break
4008 done
4009 fi
4010 if test -z "$CC"; then
4011 ac_ct_CC=$CC
4012 for ac_prog in cl.exe
4013 do
4014 # Extract the first word of "$ac_prog", so it can be a program name with args.
4015 set dummy $ac_prog; ac_word=$2
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4017 $as_echo_n "checking for $ac_word... " >&6; }
4018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4019 $as_echo_n "(cached) " >&6
4020 else
4021 if test -n "$ac_ct_CC"; then
4022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4026 do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4031 ac_cv_prog_ac_ct_CC="$ac_prog"
4032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 break 2
4034 fi
4035 done
4036 done
4037 IFS=$as_save_IFS
4038
4039 fi
4040 fi
4041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4042 if test -n "$ac_ct_CC"; then
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4044 $as_echo "$ac_ct_CC" >&6; }
4045 else
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4047 $as_echo "no" >&6; }
4048 fi
4049
4050
4051 test -n "$ac_ct_CC" && break
4052 done
4053
4054 if test "x$ac_ct_CC" = x; then
4055 CC=""
4056 else
4057 case $cross_compiling:$ac_tool_warned in
4058 yes:)
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4061 ac_tool_warned=yes ;;
4062 esac
4063 CC=$ac_ct_CC
4064 fi
4065 fi
4066
4067 fi
4068
4069
4070 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error "no acceptable C compiler found in \$PATH
4073 See \`config.log' for more details." "$LINENO" 5; }
4074
4075 # Provide some information about the compiler.
4076 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4077 set X $ac_compile
4078 ac_compiler=$2
4079 for ac_option in --version -v -V -qversion; do
4080 { { ac_try="$ac_compiler $ac_option >&5"
4081 case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4084 esac
4085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4086 $as_echo "$ac_try_echo"; } >&5
4087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4088 ac_status=$?
4089 if test -s conftest.err; then
4090 sed '10a\
4091 ... rest of stderr output deleted ...
4092 10q' conftest.err >conftest.er1
4093 cat conftest.er1 >&5
4094 rm -f conftest.er1 conftest.err
4095 fi
4096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4097 test $ac_status = 0; }
4098 done
4099
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4102
4103 int
4104 main ()
4105 {
4106
4107 ;
4108 return 0;
4109 }
4110 _ACEOF
4111 ac_clean_files_save=$ac_clean_files
4112 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4113 # Try to create an executable without -o first, disregard a.out.
4114 # It will help us diagnose broken compilers, and finding out an intuition
4115 # of exeext.
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4117 $as_echo_n "checking for C compiler default output file name... " >&6; }
4118 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4119
4120 # The possible output files:
4121 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4122
4123 ac_rmfiles=
4124 for ac_file in $ac_files
4125 do
4126 case $ac_file in
4127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4128 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4129 esac
4130 done
4131 rm -f $ac_rmfiles
4132
4133 if { { ac_try="$ac_link_default"
4134 case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137 esac
4138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4139 $as_echo "$ac_try_echo"; } >&5
4140 (eval "$ac_link_default") 2>&5
4141 ac_status=$?
4142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4143 test $ac_status = 0; }; then :
4144 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4145 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4146 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4147 # so that the user can short-circuit this test for compilers unknown to
4148 # Autoconf.
4149 for ac_file in $ac_files ''
4150 do
4151 test -f "$ac_file" || continue
4152 case $ac_file in
4153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4154 ;;
4155 [ab].out )
4156 # We found the default executable, but exeext='' is most
4157 # certainly right.
4158 break;;
4159 *.* )
4160 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4161 then :; else
4162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4163 fi
4164 # We set ac_cv_exeext here because the later test for it is not
4165 # safe: cross compilers may not add the suffix if given an `-o'
4166 # argument, so we may need to know it at that point already.
4167 # Even if this section looks crufty: it has the advantage of
4168 # actually working.
4169 break;;
4170 * )
4171 break;;
4172 esac
4173 done
4174 test "$ac_cv_exeext" = no && ac_cv_exeext=
4175
4176 else
4177 ac_file=''
4178 fi
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4180 $as_echo "$ac_file" >&6; }
4181 if test -z "$ac_file"; then :
4182 $as_echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4184
4185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4187 { as_fn_set_status 77
4188 as_fn_error "C compiler cannot create executables
4189 See \`config.log' for more details." "$LINENO" 5; }; }
4190 fi
4191 ac_exeext=$ac_cv_exeext
4192
4193 # Check that the compiler produces executables we can run. If not, either
4194 # the compiler is broken, or we cross compile.
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4196 $as_echo_n "checking whether the C compiler works... " >&6; }
4197 # If not cross compiling, check that we can run a simple program.
4198 if test "$cross_compiling" != yes; then
4199 if { ac_try='./$ac_file'
4200 { { case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4203 esac
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206 (eval "$ac_try") 2>&5
4207 ac_status=$?
4208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209 test $ac_status = 0; }; }; then
4210 cross_compiling=no
4211 else
4212 if test "$cross_compiling" = maybe; then
4213 cross_compiling=yes
4214 else
4215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4217 as_fn_error "cannot run C compiled programs.
4218 If you meant to cross compile, use \`--host'.
4219 See \`config.log' for more details." "$LINENO" 5; }
4220 fi
4221 fi
4222 fi
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4224 $as_echo "yes" >&6; }
4225
4226 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4227 ac_clean_files=$ac_clean_files_save
4228 # Check that the compiler produces executables we can run. If not, either
4229 # the compiler is broken, or we cross compile.
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4231 $as_echo_n "checking whether we are cross compiling... " >&6; }
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4233 $as_echo "$cross_compiling" >&6; }
4234
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4236 $as_echo_n "checking for suffix of executables... " >&6; }
4237 if { { ac_try="$ac_link"
4238 case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241 esac
4242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243 $as_echo "$ac_try_echo"; } >&5
4244 (eval "$ac_link") 2>&5
4245 ac_status=$?
4246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4247 test $ac_status = 0; }; then :
4248 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4249 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4250 # work properly (i.e., refer to `conftest.exe'), while it won't with
4251 # `rm'.
4252 for ac_file in conftest.exe conftest conftest.*; do
4253 test -f "$ac_file" || continue
4254 case $ac_file in
4255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4256 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4257 break;;
4258 * ) break;;
4259 esac
4260 done
4261 else
4262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4264 as_fn_error "cannot compute suffix of executables: cannot compile and link
4265 See \`config.log' for more details." "$LINENO" 5; }
4266 fi
4267 rm -f conftest$ac_cv_exeext
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4269 $as_echo "$ac_cv_exeext" >&6; }
4270
4271 rm -f conftest.$ac_ext
4272 EXEEXT=$ac_cv_exeext
4273 ac_exeext=$EXEEXT
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4275 $as_echo_n "checking for suffix of object files... " >&6; }
4276 if test "${ac_cv_objext+set}" = set; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281
4282 int
4283 main ()
4284 {
4285
4286 ;
4287 return 0;
4288 }
4289 _ACEOF
4290 rm -f conftest.o conftest.obj
4291 if { { ac_try="$ac_compile"
4292 case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_compile") 2>&5
4299 ac_status=$?
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; }; then :
4302 for ac_file in conftest.o conftest.obj conftest.*; do
4303 test -f "$ac_file" || continue;
4304 case $ac_file in
4305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4307 break;;
4308 esac
4309 done
4310 else
4311 $as_echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4313
4314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4316 as_fn_error "cannot compute suffix of object files: cannot compile
4317 See \`config.log' for more details." "$LINENO" 5; }
4318 fi
4319 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4320 fi
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4322 $as_echo "$ac_cv_objext" >&6; }
4323 OBJEXT=$ac_cv_objext
4324 ac_objext=$OBJEXT
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4326 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4327 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
4329 else
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4332
4333 int
4334 main ()
4335 {
4336 #ifndef __GNUC__
4337 choke me
4338 #endif
4339
4340 ;
4341 return 0;
4342 }
4343 _ACEOF
4344 if ac_fn_c_try_compile "$LINENO"; then :
4345 ac_compiler_gnu=yes
4346 else
4347 ac_compiler_gnu=no
4348 fi
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4351
4352 fi
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4354 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4355 if test $ac_compiler_gnu = yes; then
4356 GCC=yes
4357 else
4358 GCC=
4359 fi
4360 ac_test_CFLAGS=${CFLAGS+set}
4361 ac_save_CFLAGS=$CFLAGS
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4363 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4364 if test "${ac_cv_prog_cc_g+set}" = set; then :
4365 $as_echo_n "(cached) " >&6
4366 else
4367 ac_save_c_werror_flag=$ac_c_werror_flag
4368 ac_c_werror_flag=yes
4369 ac_cv_prog_cc_g=no
4370 CFLAGS="-g"
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373
4374 int
4375 main ()
4376 {
4377
4378 ;
4379 return 0;
4380 }
4381 _ACEOF
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383 ac_cv_prog_cc_g=yes
4384 else
4385 CFLAGS=""
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388
4389 int
4390 main ()
4391 {
4392
4393 ;
4394 return 0;
4395 }
4396 _ACEOF
4397 if ac_fn_c_try_compile "$LINENO"; then :
4398
4399 else
4400 ac_c_werror_flag=$ac_save_c_werror_flag
4401 CFLAGS="-g"
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4404
4405 int
4406 main ()
4407 {
4408
4409 ;
4410 return 0;
4411 }
4412 _ACEOF
4413 if ac_fn_c_try_compile "$LINENO"; then :
4414 ac_cv_prog_cc_g=yes
4415 fi
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417 fi
4418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 fi
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 ac_c_werror_flag=$ac_save_c_werror_flag
4422 fi
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4424 $as_echo "$ac_cv_prog_cc_g" >&6; }
4425 if test "$ac_test_CFLAGS" = set; then
4426 CFLAGS=$ac_save_CFLAGS
4427 elif test $ac_cv_prog_cc_g = yes; then
4428 if test "$GCC" = yes; then
4429 CFLAGS="-g -O2"
4430 else
4431 CFLAGS="-g"
4432 fi
4433 else
4434 if test "$GCC" = yes; then
4435 CFLAGS="-O2"
4436 else
4437 CFLAGS=
4438 fi
4439 fi
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4441 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4442 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 ac_cv_prog_cc_c89=no
4446 ac_save_CC=$CC
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4449 #include <stdarg.h>
4450 #include <stdio.h>
4451 #include <sys/types.h>
4452 #include <sys/stat.h>
4453 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4454 struct buf { int x; };
4455 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4456 static char *e (p, i)
4457 char **p;
4458 int i;
4459 {
4460 return p[i];
4461 }
4462 static char *f (char * (*g) (char **, int), char **p, ...)
4463 {
4464 char *s;
4465 va_list v;
4466 va_start (v,p);
4467 s = g (p, va_arg (v,int));
4468 va_end (v);
4469 return s;
4470 }
4471
4472 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4473 function prototypes and stuff, but not '\xHH' hex character constants.
4474 These don't provoke an error unfortunately, instead are silently treated
4475 as 'x'. The following induces an error, until -std is added to get
4476 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4477 array size at least. It's necessary to write '\x00'==0 to get something
4478 that's true only with -std. */
4479 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4480
4481 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4482 inside strings and character constants. */
4483 #define FOO(x) 'x'
4484 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4485
4486 int test (int i, double x);
4487 struct s1 {int (*f) (int a);};
4488 struct s2 {int (*f) (double a);};
4489 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4490 int argc;
4491 char **argv;
4492 int
4493 main ()
4494 {
4495 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4496 ;
4497 return 0;
4498 }
4499 _ACEOF
4500 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4501 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4502 do
4503 CC="$ac_save_CC $ac_arg"
4504 if ac_fn_c_try_compile "$LINENO"; then :
4505 ac_cv_prog_cc_c89=$ac_arg
4506 fi
4507 rm -f core conftest.err conftest.$ac_objext
4508 test "x$ac_cv_prog_cc_c89" != "xno" && break
4509 done
4510 rm -f conftest.$ac_ext
4511 CC=$ac_save_CC
4512
4513 fi
4514 # AC_CACHE_VAL
4515 case "x$ac_cv_prog_cc_c89" in
4516 x)
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4518 $as_echo "none needed" >&6; } ;;
4519 xno)
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4521 $as_echo "unsupported" >&6; } ;;
4522 *)
4523 CC="$CC $ac_cv_prog_cc_c89"
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4525 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4526 esac
4527 if test "x$ac_cv_prog_cc_c89" != xno; then :
4528
4529 fi
4530
4531 ac_ext=c
4532 ac_cpp='$CPP $CPPFLAGS'
4533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536
4537 ac_ext=cpp
4538 ac_cpp='$CXXCPP $CPPFLAGS'
4539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4542 if test -z "$CXX"; then
4543 if test -n "$CCC"; then
4544 CXX=$CCC
4545 else
4546 if test -n "$ac_tool_prefix"; then
4547 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4548 do
4549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if test "${ac_cv_prog_CXX+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 if test -n "$CXX"; then
4557 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4558 else
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4561 do
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 break 2
4569 fi
4570 done
4571 done
4572 IFS=$as_save_IFS
4573
4574 fi
4575 fi
4576 CXX=$ac_cv_prog_CXX
4577 if test -n "$CXX"; then
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4579 $as_echo "$CXX" >&6; }
4580 else
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582 $as_echo "no" >&6; }
4583 fi
4584
4585
4586 test -n "$CXX" && break
4587 done
4588 fi
4589 if test -z "$CXX"; then
4590 ac_ct_CXX=$CXX
4591 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4592 do
4593 # Extract the first word of "$ac_prog", so it can be a program name with args.
4594 set dummy $ac_prog; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test -n "$ac_ct_CXX"; then
4601 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_prog_ac_ct_CXX="$ac_prog"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614 done
4615 done
4616 IFS=$as_save_IFS
4617
4618 fi
4619 fi
4620 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4621 if test -n "$ac_ct_CXX"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4623 $as_echo "$ac_ct_CXX" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4627 fi
4628
4629
4630 test -n "$ac_ct_CXX" && break
4631 done
4632
4633 if test "x$ac_ct_CXX" = x; then
4634 CXX="g++"
4635 else
4636 case $cross_compiling:$ac_tool_warned in
4637 yes:)
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640 ac_tool_warned=yes ;;
4641 esac
4642 CXX=$ac_ct_CXX
4643 fi
4644 fi
4645
4646 fi
4647 fi
4648 # Provide some information about the compiler.
4649 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4650 set X $ac_compile
4651 ac_compiler=$2
4652 for ac_option in --version -v -V -qversion; do
4653 { { ac_try="$ac_compiler $ac_option >&5"
4654 case "(($ac_try" in
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4657 esac
4658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4659 $as_echo "$ac_try_echo"; } >&5
4660 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4661 ac_status=$?
4662 if test -s conftest.err; then
4663 sed '10a\
4664 ... rest of stderr output deleted ...
4665 10q' conftest.err >conftest.er1
4666 cat conftest.er1 >&5
4667 rm -f conftest.er1 conftest.err
4668 fi
4669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4670 test $ac_status = 0; }
4671 done
4672
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4674 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4675 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4680
4681 int
4682 main ()
4683 {
4684 #ifndef __GNUC__
4685 choke me
4686 #endif
4687
4688 ;
4689 return 0;
4690 }
4691 _ACEOF
4692 if ac_fn_cxx_try_compile "$LINENO"; then :
4693 ac_compiler_gnu=yes
4694 else
4695 ac_compiler_gnu=no
4696 fi
4697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4699
4700 fi
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4702 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4703 if test $ac_compiler_gnu = yes; then
4704 GXX=yes
4705 else
4706 GXX=
4707 fi
4708 ac_test_CXXFLAGS=${CXXFLAGS+set}
4709 ac_save_CXXFLAGS=$CXXFLAGS
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4711 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4712 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4716 ac_cxx_werror_flag=yes
4717 ac_cv_prog_cxx_g=no
4718 CXXFLAGS="-g"
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721
4722 int
4723 main ()
4724 {
4725
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_cxx_try_compile "$LINENO"; then :
4731 ac_cv_prog_cxx_g=yes
4732 else
4733 CXXFLAGS=""
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4736
4737 int
4738 main ()
4739 {
4740
4741 ;
4742 return 0;
4743 }
4744 _ACEOF
4745 if ac_fn_cxx_try_compile "$LINENO"; then :
4746
4747 else
4748 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4749 CXXFLAGS="-g"
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4752
4753 int
4754 main ()
4755 {
4756
4757 ;
4758 return 0;
4759 }
4760 _ACEOF
4761 if ac_fn_cxx_try_compile "$LINENO"; then :
4762 ac_cv_prog_cxx_g=yes
4763 fi
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 fi
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4770 fi
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4772 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4773 if test "$ac_test_CXXFLAGS" = set; then
4774 CXXFLAGS=$ac_save_CXXFLAGS
4775 elif test $ac_cv_prog_cxx_g = yes; then
4776 if test "$GXX" = yes; then
4777 CXXFLAGS="-g -O2"
4778 else
4779 CXXFLAGS="-g"
4780 fi
4781 else
4782 if test "$GXX" = yes; then
4783 CXXFLAGS="-O2"
4784 else
4785 CXXFLAGS=
4786 fi
4787 fi
4788 ac_ext=c
4789 ac_cpp='$CPP $CPPFLAGS'
4790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793
4794
4795 # We must set the default linker to the linker used by gcc for the correct
4796 # operation of libtool. If LD is not defined and we are using gcc, try to
4797 # set the LD default to the ld used by gcc.
4798 if test -z "$LD"; then
4799 if test "$GCC" = yes; then
4800 case $build in
4801 *-*-mingw*)
4802 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4803 *)
4804 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4805 esac
4806 case $gcc_prog_ld in
4807 # Accept absolute paths.
4808 [\\/]* | [A-Za-z]:[\\/]*)
4809 LD="$gcc_prog_ld" ;;
4810 esac
4811 fi
4812 fi
4813
4814
4815
4816
4817 if test -n "$ac_tool_prefix"; then
4818 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4819 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821 $as_echo_n "checking for $ac_word... " >&6; }
4822 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 if test -n "$GNATBIND"; then
4826 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4838 fi
4839 done
4840 done
4841 IFS=$as_save_IFS
4842
4843 fi
4844 fi
4845 GNATBIND=$ac_cv_prog_GNATBIND
4846 if test -n "$GNATBIND"; then
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4848 $as_echo "$GNATBIND" >&6; }
4849 else
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4852 fi
4853
4854
4855 fi
4856 if test -z "$ac_cv_prog_GNATBIND"; then
4857 ac_ct_GNATBIND=$GNATBIND
4858 # Extract the first word of "gnatbind", so it can be a program name with args.
4859 set dummy gnatbind; ac_word=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 if test -n "$ac_ct_GNATBIND"; then
4866 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4870 do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879 done
4880 done
4881 IFS=$as_save_IFS
4882
4883 fi
4884 fi
4885 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4886 if test -n "$ac_ct_GNATBIND"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4888 $as_echo "$ac_ct_GNATBIND" >&6; }
4889 else
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 $as_echo "no" >&6; }
4892 fi
4893
4894 if test "x$ac_ct_GNATBIND" = x; then
4895 GNATBIND="no"
4896 else
4897 case $cross_compiling:$ac_tool_warned in
4898 yes:)
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901 ac_tool_warned=yes ;;
4902 esac
4903 GNATBIND=$ac_ct_GNATBIND
4904 fi
4905 else
4906 GNATBIND="$ac_cv_prog_GNATBIND"
4907 fi
4908
4909 if test -n "$ac_tool_prefix"; then
4910 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4911 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 if test -n "$GNATMAKE"; then
4918 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 break 2
4930 fi
4931 done
4932 done
4933 IFS=$as_save_IFS
4934
4935 fi
4936 fi
4937 GNATMAKE=$ac_cv_prog_GNATMAKE
4938 if test -n "$GNATMAKE"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4940 $as_echo "$GNATMAKE" >&6; }
4941 else
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4944 fi
4945
4946
4947 fi
4948 if test -z "$ac_cv_prog_GNATMAKE"; then
4949 ac_ct_GNATMAKE=$GNATMAKE
4950 # Extract the first word of "gnatmake", so it can be a program name with args.
4951 set dummy gnatmake; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 if test -n "$ac_ct_GNATMAKE"; then
4958 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4970 fi
4971 done
4972 done
4973 IFS=$as_save_IFS
4974
4975 fi
4976 fi
4977 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4978 if test -n "$ac_ct_GNATMAKE"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4980 $as_echo "$ac_ct_GNATMAKE" >&6; }
4981 else
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4984 fi
4985
4986 if test "x$ac_ct_GNATMAKE" = x; then
4987 GNATMAKE="no"
4988 else
4989 case $cross_compiling:$ac_tool_warned in
4990 yes:)
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4993 ac_tool_warned=yes ;;
4994 esac
4995 GNATMAKE=$ac_ct_GNATMAKE
4996 fi
4997 else
4998 GNATMAKE="$ac_cv_prog_GNATMAKE"
4999 fi
5000
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5002 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5003 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 cat >conftest.adb <<EOF
5007 procedure conftest is begin null; end conftest;
5008 EOF
5009 acx_cv_cc_gcc_supports_ada=no
5010 # There is a bug in old released versions of GCC which causes the
5011 # driver to exit successfully when the appropriate language module
5012 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5013 # Therefore we must check for the error message as well as an
5014 # unsuccessful exit.
5015 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5016 # given a .adb file, but produce no object file. So we must check
5017 # if an object file was really produced to guard against this.
5018 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5019 if test x"$errors" = x && test -f conftest.$ac_objext; then
5020 acx_cv_cc_gcc_supports_ada=yes
5021 fi
5022 rm -f conftest.*
5023 fi
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5025 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5026
5027 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5028 have_gnat=yes
5029 else
5030 have_gnat=no
5031 fi
5032
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5034 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5035 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 echo abfoo >t1
5039 echo cdfoo >t2
5040 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5041 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5042 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5043 :
5044 else
5045 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5046 fi
5047 fi
5048 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5049 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5050 :
5051 else
5052 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5053 fi
5054 fi
5055 rm t1 t2
5056
5057 fi
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5059 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5060 do_compare="$gcc_cv_prog_cmp_skip"
5061
5062
5063
5064 # Check whether --enable-bootstrap was given.
5065 if test "${enable_bootstrap+set}" = set; then :
5066 enableval=$enable_bootstrap;
5067 else
5068 enable_bootstrap=default
5069 fi
5070
5071
5072 # Issue errors and warnings for invalid/strange bootstrap combinations.
5073 if test -r $srcdir/gcc/configure; then
5074 have_compiler=yes
5075 else
5076 have_compiler=no
5077 fi
5078
5079 case "$have_compiler:$host:$target:$enable_bootstrap" in
5080 *:*:*:no) ;;
5081
5082 # Default behavior. Enable bootstrap if we have a compiler
5083 # and we are in a native configuration.
5084 yes:$build:$build:default)
5085 enable_bootstrap=yes ;;
5086
5087 *:*:*:default)
5088 enable_bootstrap=no ;;
5089
5090 # We have a compiler and we are in a native configuration, bootstrap is ok
5091 yes:$build:$build:yes)
5092 ;;
5093
5094 # Other configurations, but we have a compiler. Assume the user knows
5095 # what he's doing.
5096 yes:*:*:yes)
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5098 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5099 ;;
5100
5101 # No compiler: if they passed --enable-bootstrap explicitly, fail
5102 no:*:*:yes)
5103 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5104
5105 # Fail if wrong command line
5106 *)
5107 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5108 ;;
5109 esac
5110
5111 # See if we are building gcc with C++.
5112 # Check whether --enable-build-with-cxx was given.
5113 if test "${enable_build_with_cxx+set}" = set; then :
5114 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5115 else
5116 ENABLE_BUILD_WITH_CXX=no
5117 fi
5118
5119
5120 # Build stage1 with C and build stages 2 and 3 with C++.
5121 # Check whether --enable-build-poststage1-with-cxx was given.
5122 if test "${enable_build_poststage1_with_cxx+set}" = set; then :
5123 enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval
5124 else
5125 ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes
5126 fi
5127
5128
5129 # Used for setting $lt_cv_objdir
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5131 $as_echo_n "checking for objdir... " >&6; }
5132 if test "${lt_cv_objdir+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 rm -f .libs 2>/dev/null
5136 mkdir .libs 2>/dev/null
5137 if test -d .libs; then
5138 lt_cv_objdir=.libs
5139 else
5140 # MS-DOS does not allow filenames that begin with a dot.
5141 lt_cv_objdir=_libs
5142 fi
5143 rmdir .libs 2>/dev/null
5144 fi
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5146 $as_echo "$lt_cv_objdir" >&6; }
5147 objdir=$lt_cv_objdir
5148
5149
5150
5151
5152
5153 cat >>confdefs.h <<_ACEOF
5154 #define LT_OBJDIR "$lt_cv_objdir/"
5155 _ACEOF
5156
5157
5158
5159 # Check for GMP, MPFR and MPC
5160 gmplibs="-lmpc -lmpfr -lgmp"
5161 gmpinc=
5162 have_gmp=no
5163
5164 # Specify a location for mpc
5165 # check for this first so it ends up on the link line before mpfr.
5166
5167 # Check whether --with-mpc was given.
5168 if test "${with_mpc+set}" = set; then :
5169 withval=$with_mpc;
5170 fi
5171
5172
5173 # Check whether --with-mpc-include was given.
5174 if test "${with_mpc_include+set}" = set; then :
5175 withval=$with_mpc_include;
5176 fi
5177
5178
5179 # Check whether --with-mpc-lib was given.
5180 if test "${with_mpc_lib+set}" = set; then :
5181 withval=$with_mpc_lib;
5182 fi
5183
5184
5185 if test "x$with_mpc" != x; then
5186 gmplibs="-L$with_mpc/lib $gmplibs"
5187 gmpinc="-I$with_mpc/include $gmpinc"
5188 fi
5189 if test "x$with_mpc_include" != x; then
5190 gmpinc="-I$with_mpc_include $gmpinc"
5191 fi
5192 if test "x$with_mpc_lib" != x; then
5193 gmplibs="-L$with_mpc_lib $gmplibs"
5194 fi
5195 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5196 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5197 gmpinc='-I$$s/mpc/src '"$gmpinc"
5198 # Do not test the mpc version. Assume that it is sufficient, since
5199 # it is in the source tree, and the library has not been built yet
5200 # but it would be included on the link line in the version check below
5201 # hence making the test fail.
5202 have_gmp=yes
5203 fi
5204
5205 # Specify a location for mpfr
5206 # check for this first so it ends up on the link line before gmp.
5207
5208 # Check whether --with-mpfr-dir was given.
5209 if test "${with_mpfr_dir+set}" = set; then :
5210 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5211 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5212 fi
5213
5214
5215
5216 # Check whether --with-mpfr was given.
5217 if test "${with_mpfr+set}" = set; then :
5218 withval=$with_mpfr;
5219 fi
5220
5221
5222 # Check whether --with-mpfr-include was given.
5223 if test "${with_mpfr_include+set}" = set; then :
5224 withval=$with_mpfr_include;
5225 fi
5226
5227
5228 # Check whether --with-mpfr-lib was given.
5229 if test "${with_mpfr_lib+set}" = set; then :
5230 withval=$with_mpfr_lib;
5231 fi
5232
5233
5234 if test "x$with_mpfr" != x; then
5235 gmplibs="-L$with_mpfr/lib $gmplibs"
5236 gmpinc="-I$with_mpfr/include $gmpinc"
5237 fi
5238 if test "x$with_mpfr_include" != x; then
5239 gmpinc="-I$with_mpfr_include $gmpinc"
5240 fi
5241 if test "x$with_mpfr_lib" != x; then
5242 gmplibs="-L$with_mpfr_lib $gmplibs"
5243 fi
5244 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5245 # MPFR v3.1.0 moved the sources into a src sub-directory.
5246 if test -d ${srcdir}/mpfr/src; then
5247 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5248 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5249 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5250 else
5251 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5252 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5253 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5254 fi
5255 # Do not test the mpfr version. Assume that it is sufficient, since
5256 # it is in the source tree, and the library has not been built yet
5257 # but it would be included on the link line in the version check below
5258 # hence making the test fail.
5259 have_gmp=yes
5260 fi
5261
5262 # Specify a location for gmp
5263
5264 # Check whether --with-gmp-dir was given.
5265 if test "${with_gmp_dir+set}" = set; then :
5266 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5267 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5268 fi
5269
5270
5271
5272 # Check whether --with-gmp was given.
5273 if test "${with_gmp+set}" = set; then :
5274 withval=$with_gmp;
5275 fi
5276
5277
5278 # Check whether --with-gmp-include was given.
5279 if test "${with_gmp_include+set}" = set; then :
5280 withval=$with_gmp_include;
5281 fi
5282
5283
5284 # Check whether --with-gmp-lib was given.
5285 if test "${with_gmp_lib+set}" = set; then :
5286 withval=$with_gmp_lib;
5287 fi
5288
5289
5290
5291 if test "x$with_gmp" != x; then
5292 gmplibs="-L$with_gmp/lib $gmplibs"
5293 gmpinc="-I$with_gmp/include $gmpinc"
5294 fi
5295 if test "x$with_gmp_include" != x; then
5296 gmpinc="-I$with_gmp_include $gmpinc"
5297 fi
5298 if test "x$with_gmp_lib" != x; then
5299 gmplibs="-L$with_gmp_lib $gmplibs"
5300 fi
5301 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5302 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5303 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5304 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5305 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5306 # Do not test the gmp version. Assume that it is sufficient, since
5307 # it is in the source tree, and the library has not been built yet
5308 # but it would be included on the link line in the version check below
5309 # hence making the test fail.
5310 have_gmp=yes
5311 fi
5312
5313 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5314 have_gmp=yes
5315 saved_CFLAGS="$CFLAGS"
5316 CFLAGS="$CFLAGS $gmpinc"
5317 # Check for the recommended and required versions of GMP.
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5319 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5320
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323 #include "gmp.h"
5324 int
5325 main ()
5326 {
5327
5328 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5329 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5330 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5331 choke me
5332 #endif
5333
5334 ;
5335 return 0;
5336 }
5337 _ACEOF
5338 if ac_fn_c_try_compile "$LINENO"; then :
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5341 #include <gmp.h>
5342 int
5343 main ()
5344 {
5345
5346 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5347 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5348 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5349 choke me
5350 #endif
5351
5352 ;
5353 return 0;
5354 }
5355 _ACEOF
5356 if ac_fn_c_try_compile "$LINENO"; then :
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5358 $as_echo "yes" >&6; }
5359 else
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5361 $as_echo "buggy but acceptable" >&6; }
5362 fi
5363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364 else
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }; have_gmp=no
5367 fi
5368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5369
5370 # If we have GMP, check the MPFR version.
5371 if test x"$have_gmp" = xyes; then
5372 # Check for the recommended and required versions of MPFR.
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5374 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377 #include <gmp.h>
5378 #include <mpfr.h>
5379 int
5380 main ()
5381 {
5382
5383 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5384 choke me
5385 #endif
5386
5387 ;
5388 return 0;
5389 }
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"; then :
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5394 #include <gmp.h>
5395 #include <mpfr.h>
5396 int
5397 main ()
5398 {
5399
5400 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5401 choke me
5402 #endif
5403
5404 ;
5405 return 0;
5406 }
5407 _ACEOF
5408 if ac_fn_c_try_compile "$LINENO"; then :
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5410 $as_echo "yes" >&6; }
5411 else
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5413 $as_echo "buggy but acceptable" >&6; }
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }; have_gmp=no
5419 fi
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 fi
5422
5423 # Check for the MPC header version.
5424 if test x"$have_gmp" = xyes ; then
5425 # Check for the recommended and required versions of MPC.
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5427 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430 #include <mpc.h>
5431 int
5432 main ()
5433 {
5434
5435 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5436 choke me
5437 #endif
5438
5439 ;
5440 return 0;
5441 }
5442 _ACEOF
5443 if ac_fn_c_try_compile "$LINENO"; then :
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 #include <mpc.h>
5447 int
5448 main ()
5449 {
5450
5451 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5452 choke me
5453 #endif
5454
5455 ;
5456 return 0;
5457 }
5458 _ACEOF
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5461 $as_echo "yes" >&6; }
5462 else
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5464 $as_echo "buggy but acceptable" >&6; }
5465 fi
5466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 else
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }; have_gmp=no
5470 fi
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 fi
5473
5474 # Now check the MPFR library.
5475 if test x"$have_gmp" = xyes; then
5476 saved_LIBS="$LIBS"
5477 LIBS="$LIBS $gmplibs"
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5479 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5482 #include <mpc.h>
5483 int
5484 main ()
5485 {
5486
5487 mpfr_t n;
5488 mpfr_t x;
5489 mpc_t c;
5490 int t;
5491 mpfr_init (n);
5492 mpfr_init (x);
5493 mpfr_atan2 (n, n, x, GMP_RNDN);
5494 mpfr_erfc (n, x, GMP_RNDN);
5495 mpfr_subnormalize (x, t, GMP_RNDN);
5496 mpfr_clear(n);
5497 mpfr_clear(x);
5498 mpc_init2 (c, 53);
5499 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5500 mpc_cosh (c, c, MPC_RNDNN);
5501 mpc_pow (c, c, c, MPC_RNDNN);
5502 mpc_acosh (c, c, MPC_RNDNN);
5503 mpc_clear (c);
5504
5505 ;
5506 return 0;
5507 }
5508 _ACEOF
5509 if ac_fn_c_try_link "$LINENO"; then :
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5511 $as_echo "yes" >&6; }
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }; have_gmp=no
5515 fi
5516 rm -f core conftest.err conftest.$ac_objext \
5517 conftest$ac_exeext conftest.$ac_ext
5518 LIBS="$saved_LIBS"
5519 fi
5520
5521 CFLAGS="$saved_CFLAGS"
5522
5523 # The library versions listed in the error message below should match
5524 # the HARD-minimums enforced above.
5525 if test x$have_gmp != xyes; then
5526 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5527 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5528 their locations. Source code for these libraries can be found at
5529 their respective hosting sites as well as at
5530 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5531 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5532 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5533 make sure that you have installed both the libraries and the header
5534 files. They may be located in separate packages." "$LINENO" 5
5535 fi
5536 fi
5537
5538 # Flags needed for both GMP, MPFR and/or MPC.
5539
5540
5541
5542
5543
5544
5545 # Allow host libstdc++ to be specified for static linking with PPL.
5546
5547 # Check whether --with-host-libstdcxx was given.
5548 if test "${with_host_libstdcxx+set}" = set; then :
5549 withval=$with_host_libstdcxx;
5550 fi
5551
5552
5553 case $with_host_libstdcxx in
5554 no|yes)
5555 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5556 ;;
5557 esac
5558
5559 # Linker flags to use for stage1 or when not boostrapping.
5560
5561 # Check whether --with-stage1-ldflags was given.
5562 if test "${with_stage1_ldflags+set}" = set; then :
5563 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5564 stage1_ldflags=
5565 else
5566 stage1_ldflags=$withval
5567 fi
5568 else
5569 stage1_ldflags=
5570 fi
5571
5572
5573
5574 # Libraries to use for stage1 or when not bootstrapping.
5575
5576 # Check whether --with-stage1-libs was given.
5577 if test "${with_stage1_libs+set}" = set; then :
5578 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5579 stage1_libs=
5580 else
5581 stage1_libs=$withval
5582 fi
5583 else
5584 stage1_libs=$with_host_libstdcxx
5585 fi
5586
5587
5588
5589 # Libraries to use for stage2 and later builds. This defaults to the
5590 # argument passed to --with-host-libstdcxx.
5591
5592 # Check whether --with-boot-libs was given.
5593 if test "${with_boot_libs+set}" = set; then :
5594 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5595 poststage1_libs=
5596 else
5597 poststage1_libs=$withval
5598 fi
5599 else
5600 poststage1_libs=$with_host_libstdcxx
5601 fi
5602
5603
5604
5605 # Linker flags to use for stage2 and later builds.
5606
5607 # Check whether --with-boot-ldflags was given.
5608 if test "${with_boot_ldflags+set}" = set; then :
5609 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5610 poststage1_ldflags=
5611 else
5612 poststage1_ldflags=$withval
5613 fi
5614 else
5615 poststage1_ldflags=
5616 # In stages 2 and 3, default to linking libstdc++ and libgcc
5617 # statically. But if the user explicitly specified the libraries to
5618 # use, trust that they are doing what they want.
5619 if test "$poststage1_libs" = ""; then
5620 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5621 fi
5622 fi
5623
5624
5625
5626 # Check for ISL
5627
5628
5629 # Check whether --with-isl was given.
5630 if test "${with_isl+set}" = set; then :
5631 withval=$with_isl;
5632 fi
5633
5634
5635 # Check whether --with-isl-include was given.
5636 if test "${with_isl_include+set}" = set; then :
5637 withval=$with_isl_include;
5638 fi
5639
5640
5641 # Check whether --with-isl-lib was given.
5642 if test "${with_isl_lib+set}" = set; then :
5643 withval=$with_isl_lib;
5644 fi
5645
5646
5647 # Check whether --enable-isl-version-check was given.
5648 if test "${enable_isl_version_check+set}" = set; then :
5649 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5650 else
5651 ENABLE_ISL_CHECK=yes
5652 fi
5653
5654
5655 # Initialize isllibs and islinc.
5656 case $with_isl in
5657 no)
5658 isllibs=
5659 islinc=
5660 ;;
5661 "" | yes)
5662 ;;
5663 *)
5664 isllibs="-L$with_isl/lib"
5665 islinc="-I$with_isl/include"
5666 ;;
5667 esac
5668 if test "x${with_isl_include}" != x ; then
5669 islinc="-I$with_isl_include"
5670 fi
5671 if test "x${with_isl_lib}" != x; then
5672 isllibs="-L$with_isl_lib"
5673 fi
5674 if test "x${islinc}" = x && test "x${isllibs}" = x \
5675 && test -d ${srcdir}/isl; then
5676 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5677 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5678 ENABLE_ISL_CHECK=no
5679 fi
5680
5681 isllibs="${isllibs} -lisl"
5682
5683
5684
5685
5686
5687 if test "x$with_isl" != "xno"; then
5688
5689 if test "${ENABLE_ISL_CHECK}" = yes ; then
5690 _isl_saved_CFLAGS=$CFLAGS
5691 _isl_saved_LDFLAGS=$LDFLAGS
5692
5693 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5694 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} -lisl"
5695 echo $CFLAGS
5696
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5698 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5699 if test "${gcc_cv_isl+set}" = set; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if test "$cross_compiling" = yes; then :
5703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5705 as_fn_error "cannot run test program while cross compiling
5706 See \`config.log' for more details." "$LINENO" 5; }
5707 else
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5710 #include <isl/version.h>
5711 #include <string.h>
5712 int
5713 main ()
5714 {
5715 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5716 return 1;
5717
5718 ;
5719 return 0;
5720 }
5721 _ACEOF
5722 if ac_fn_c_try_run "$LINENO"; then :
5723 gcc_cv_isl=yes
5724 else
5725 gcc_cv_isl=no
5726 fi
5727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5728 conftest.$ac_objext conftest.beam conftest.$ac_ext
5729 fi
5730
5731 fi
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5733 $as_echo "$gcc_cv_isl" >&6; }
5734
5735 CFLAGS=$_isl_saved_CFLAGS
5736 LDFLAGS=$_isl_saved_LDFLAGS
5737 fi
5738
5739
5740
5741
5742
5743
5744
5745 if test "x${with_isl}" = xno; then
5746 graphite_requested=no
5747 elif test "x${with_isl}" != x \
5748 || test "x${with_isl_include}" != x \
5749 || test "x${with_isl_lib}" != x ; then
5750 graphite_requested=yes
5751 else
5752 graphite_requested=no
5753 fi
5754
5755
5756
5757 if test "${gcc_cv_isl}" = no ; then
5758 isllibs=
5759 islinc=
5760 fi
5761
5762 if test "${graphite_requested}" = yes \
5763 && test "x${isllibs}" = x \
5764 && test "x${islinc}" = x ; then
5765
5766 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5767 fi
5768
5769
5770 fi
5771
5772 # Check for CLOOG
5773
5774
5775 # Check whether --with-cloog was given.
5776 if test "${with_cloog+set}" = set; then :
5777 withval=$with_cloog;
5778 fi
5779
5780
5781 # Check whether --with-cloog-include was given.
5782 if test "${with_cloog_include+set}" = set; then :
5783 withval=$with_cloog_include;
5784 fi
5785
5786
5787 # Check whether --with-cloog-lib was given.
5788 if test "${with_cloog_lib+set}" = set; then :
5789 withval=$with_cloog_lib;
5790 fi
5791
5792
5793 # Check whether --enable-cloog-version-check was given.
5794 if test "${enable_cloog_version_check+set}" = set; then :
5795 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5796 else
5797 ENABLE_CLOOG_CHECK=yes
5798 fi
5799
5800
5801 # Initialize clooglibs and clooginc.
5802 case $with_cloog in
5803 no)
5804 clooglibs=
5805 clooginc=
5806 ;;
5807 "" | yes)
5808 ;;
5809 *)
5810 clooglibs="-L$with_cloog/lib"
5811 clooginc="-I$with_cloog/include"
5812 ;;
5813 esac
5814 if test "x${with_cloog_include}" != x ; then
5815 clooginc="-I$with_cloog_include"
5816 fi
5817 if test "x${with_cloog_lib}" != x; then
5818 clooglibs="-L$with_cloog_lib"
5819 fi
5820 if test "x${clooginc}" == x && test "x${clooglibs}" == x \
5821 && test -d ${srcdir}/cloog; then
5822 echo FooBar
5823 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5824 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
5825 fi
5826
5827 clooginc="-DCLOOG_INT_GMP ${clooginc}"
5828 clooglibs="${clooglibs} -lcloog-isl ${isllibs}"
5829
5830
5831
5832
5833
5834 if test "x$with_cloog" != "xno"; then
5835
5836
5837
5838 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5839 _cloog_saved_CFLAGS=$CFLAGS
5840 _cloog_saved_LDFLAGS=$LDFLAGS
5841
5842 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5843 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
5844
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5846 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5847 if test "${gcc_cv_cloog+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5852 #include "cloog/version.h"
5853 int
5854 main ()
5855 {
5856 #if CLOOG_VERSION_MAJOR != 0 \
5857 || CLOOG_VERSION_MINOR != 17 \
5858 || CLOOG_VERSION_REVISION < 0
5859 choke me
5860 #endif
5861 ;
5862 return 0;
5863 }
5864 _ACEOF
5865 if ac_fn_c_try_compile "$LINENO"; then :
5866 gcc_cv_cloog=yes
5867 else
5868 gcc_cv_cloog=no
5869 fi
5870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871 fi
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5873 $as_echo "$gcc_cv_cloog" >&6; }
5874
5875 CFLAGS=$_cloog_saved_CFLAGS
5876 LDFLAGS=$_cloog_saved_LDFLAGS
5877 fi
5878
5879
5880
5881
5882
5883
5884
5885 if test "x${with_cloog}" = xno; then
5886 graphite_requested=no
5887 elif test "x${with_cloog}" != x \
5888 || test "x${with_cloog_include}" != x \
5889 || test "x${with_cloog_lib}" != x ; then
5890 graphite_requested=yes
5891 else
5892 graphite_requested=no
5893 fi
5894
5895
5896
5897 if test "${gcc_cv_cloog}" = no ; then
5898 clooglibs=
5899 clooginc=
5900 fi
5901
5902 if test "${graphite_requested}" = yes \
5903 && test "x${clooglibs}" = x \
5904 && test "x${clooginc}" = x ; then
5905
5906 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
5907 fi
5908
5909
5910 fi
5911
5912 # Check for LTO support.
5913 # Check whether --enable-lto was given.
5914 if test "${enable_lto+set}" = set; then :
5915 enableval=$enable_lto; enable_lto=$enableval
5916 else
5917 enable_lto=yes; default_enable_lto=yes
5918 fi
5919
5920
5921
5922
5923
5924 target_elf=no
5925 case $target in
5926 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5927 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
5928 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5929 target_elf=no
5930 ;;
5931 *)
5932 target_elf=yes
5933 ;;
5934 esac
5935
5936 if test $target_elf = yes; then :
5937 # ELF platforms build the lto-plugin always.
5938 build_lto_plugin=yes
5939
5940 else
5941 if test x"$default_enable_lto" = x"yes" ; then
5942 case $target in
5943 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
5944 # On other non-ELF platforms, LTO has yet to be validated.
5945 *) enable_lto=no ;;
5946 esac
5947 else
5948 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5949 # It would also be nice to check the binutils support, but we don't
5950 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5951 # warn during gcc/ subconfigure; unless you're bootstrapping with
5952 # -flto it won't be needed until after installation anyway.
5953 case $target in
5954 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
5955 *) if test x"$enable_lto" = x"yes"; then
5956 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5957 fi
5958 ;;
5959 esac
5960 fi
5961 # Among non-ELF, only Windows platforms support the lto-plugin so far.
5962 # Build it unless LTO was explicitly disabled.
5963 case $target in
5964 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
5965 *) ;;
5966 esac
5967
5968 fi
5969
5970
5971
5972 # By default, C is the only stage 1 language.
5973 stage1_languages=,c,
5974
5975 # Target libraries that we bootstrap.
5976 bootstrap_target_libs=,target-libgcc,
5977
5978 # Figure out what language subdirectories are present.
5979 # Look if the user specified --enable-languages="..."; if not, use
5980 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5981 # go away some day.
5982 # NB: embedded tabs in this IF block -- do not untabify
5983 if test -d ${srcdir}/gcc; then
5984 if test x"${enable_languages+set}" != xset; then
5985 if test x"${LANGUAGES+set}" = xset; then
5986 enable_languages="${LANGUAGES}"
5987 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5988 else
5989 enable_languages=all
5990 fi
5991 else
5992 if test x"${enable_languages}" = x ||
5993 test x"${enable_languages}" = xyes;
5994 then
5995 echo configure.in: --enable-languages needs at least one language argument 1>&2
5996 exit 1
5997 fi
5998 fi
5999 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6000
6001 # 'f95' is the old name for the 'fortran' language. We issue a warning
6002 # and make the substitution.
6003 case ,${enable_languages}, in
6004 *,f95,*)
6005 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6006 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6007 ;;
6008 esac
6009
6010 # If bootstrapping, then using --enable-build-with-cxx or
6011 # --enable-build-poststage1-with-cxx requires enabling C++.
6012 case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in
6013 *,c++,*:*:*) ;;
6014 *:*,yes,*:yes)
6015 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6016 enable_languages="${enable_languages},c++"
6017 else
6018 as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5
6019 fi
6020 ;;
6021 esac
6022
6023 # First scan to see if an enabled language requires some other language.
6024 # We assume that a given config-lang.in will list all the language
6025 # front ends it requires, even if some are required indirectly.
6026 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6027 case ${lang_frag} in
6028 ..) ;;
6029 # The odd quoting in the next line works around
6030 # an apparent bug in bash 1.12 on linux.
6031 ${srcdir}/gcc/[*]/config-lang.in) ;;
6032 *)
6033 # From the config-lang.in, get $language, $lang_requires, and
6034 # $lang_requires_boot_languages.
6035 language=
6036 lang_requires=
6037 lang_requires_boot_languages=
6038 . ${lang_frag}
6039 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6040 case ,${enable_languages}, in
6041 *,$other,*) ;;
6042 *,all,*) ;;
6043 *,$language,*)
6044 echo " \`$other' language required by \`$language'; enabling" 1>&2
6045 enable_languages="${enable_languages},${other}"
6046 ;;
6047 esac
6048 done
6049 for other in ${lang_requires_boot_languages} ; do
6050 if test "$other" != "c"; then
6051 case ,${enable_stage1_languages}, in
6052 *,$other,*) ;;
6053 *,all,*) ;;
6054 *)
6055 case ,${enable_languages}, in
6056 *,$language,*)
6057 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6058 enable_stage1_languages="$enable_stage1_languages,${other}"
6059 ;;
6060 esac
6061 ;;
6062 esac
6063 fi
6064 done
6065 ;;
6066 esac
6067 done
6068
6069 new_enable_languages=,c,
6070
6071 # If LTO is enabled, add the LTO front end.
6072 extra_host_libiberty_configure_flags=
6073 if test "$enable_lto" = "yes" ; then
6074 case ,${enable_languages}, in
6075 *,lto,*) ;;
6076 *) enable_languages="${enable_languages},lto" ;;
6077 esac
6078 if test "${build_lto_plugin}" = "yes" ; then
6079 configdirs="$configdirs lto-plugin"
6080 extra_host_libiberty_configure_flags=--enable-shared
6081 fi
6082 fi
6083
6084
6085 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6086 potential_languages=,c,
6087
6088 enabled_target_libs=
6089 disabled_target_libs=
6090
6091 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6092 case ${lang_frag} in
6093 ..) ;;
6094 # The odd quoting in the next line works around
6095 # an apparent bug in bash 1.12 on linux.
6096 ${srcdir}/gcc/[*]/config-lang.in) ;;
6097 *)
6098 # From the config-lang.in, get $language, $target_libs,
6099 # $lang_dirs, $boot_language, and $build_by_default
6100 language=
6101 target_libs=
6102 lang_dirs=
6103 subdir_requires=
6104 boot_language=no
6105 build_by_default=yes
6106 . ${lang_frag}
6107 if test x${language} = x; then
6108 echo "${lang_frag} doesn't set \$language." 1>&2
6109 exit 1
6110 fi
6111
6112 if test "$language" = "c++"; then
6113 if test "$ENABLE_BUILD_WITH_CXX" = "yes" \
6114 || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
6115 boot_language=yes
6116 fi
6117 fi
6118
6119 case ,${enable_languages}, in
6120 *,${language},*)
6121 # Language was explicitly selected; include it
6122 # unless it is C, which is enabled by default.
6123 if test "$language" != "c"; then
6124 add_this_lang=yes
6125 fi
6126 ;;
6127 *,all,*)
6128 # 'all' was selected, select it if it is a default language
6129 add_this_lang=${build_by_default}
6130 ;;
6131 *)
6132 add_this_lang=no
6133 ;;
6134 esac
6135
6136 # Disable languages that need other directories if these aren't available.
6137 for i in $subdir_requires; do
6138 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6139 case ,${enable_languages}, in
6140 *,${language},*)
6141 # Specifically requested language; tell them.
6142 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6143 ;;
6144 *)
6145 # Silently disable.
6146 add_this_lang=unsupported
6147 ;;
6148 esac
6149 done
6150
6151 # Disable Ada if no preexisting GNAT is available.
6152 case ,${enable_languages},:${language}:${have_gnat} in
6153 *,${language},*:ada:no)
6154 # Specifically requested language; tell them.
6155 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6156 ;;
6157 *:ada:no)
6158 # Silently disable.
6159 add_this_lang=unsupported
6160 ;;
6161 esac
6162
6163 # Disable a language that is unsupported by the target.
6164 case " $unsupported_languages " in
6165 *" $language "*)
6166 add_this_lang=unsupported
6167 ;;
6168 esac
6169
6170 case $add_this_lang in
6171 unsupported)
6172 # Remove language-dependent dirs.
6173 disabled_target_libs="$disabled_target_libs $target_libs"
6174 noconfigdirs="$noconfigdirs $lang_dirs"
6175 ;;
6176 no)
6177 # Remove language-dependent dirs; still show language as supported.
6178 disabled_target_libs="$disabled_target_libs $target_libs"
6179 noconfigdirs="$noconfigdirs $lang_dirs"
6180 potential_languages="${potential_languages}${language},"
6181 ;;
6182 yes)
6183 new_enable_languages="${new_enable_languages}${language},"
6184 potential_languages="${potential_languages}${language},"
6185 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6186 enabled_target_libs="$enabled_target_libs $target_libs"
6187 case "${boot_language}:,$enable_stage1_languages," in
6188 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6189 # Add to (comma-separated) list of stage 1 languages.
6190 case ",$stage1_languages," in
6191 *,$language,* | ,yes, | ,all,) ;;
6192 *) stage1_languages="${stage1_languages}${language}," ;;
6193 esac
6194 # We need to bootstrap any supporting libraries.
6195 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6196 ;;
6197 esac
6198 ;;
6199 esac
6200 ;;
6201 esac
6202 done
6203
6204 # Add target libraries which are only needed for disabled languages
6205 # to noconfigdirs.
6206 if test -n "$disabled_target_libs"; then
6207 for dir in $disabled_target_libs; do
6208 case " $enabled_target_libs " in
6209 *" ${dir} "*) ;;
6210 *) noconfigdirs="$noconfigdirs $dir" ;;
6211 esac
6212 done
6213 fi
6214
6215 # Check whether --enable-stage1-languages was given.
6216 if test "${enable_stage1_languages+set}" = set; then :
6217 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6218 ,no,|,,)
6219 # Set it to something that will have no effect in the loop below
6220 enable_stage1_languages=c ;;
6221 ,yes,)
6222 enable_stage1_languages=`echo $new_enable_languages | \
6223 sed -e "s/^,//" -e "s/,$//" ` ;;
6224 *,all,*)
6225 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6226 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6227 esac
6228
6229 # Add "good" languages from enable_stage1_languages to stage1_languages,
6230 # while "bad" languages go in missing_languages. Leave no duplicates.
6231 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6232 case $potential_languages in
6233 *,$i,*)
6234 case $stage1_languages in
6235 *,$i,*) ;;
6236 *) stage1_languages="$stage1_languages$i," ;;
6237 esac ;;
6238 *)
6239 case $missing_languages in
6240 *,$i,*) ;;
6241 *) missing_languages="$missing_languages$i," ;;
6242 esac ;;
6243 esac
6244 done
6245 fi
6246
6247
6248 # Remove leading/trailing commas that were added for simplicity
6249 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6250 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6251 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6252 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6253
6254 if test "x$missing_languages" != x; then
6255 as_fn_error "
6256 The following requested languages could not be built: ${missing_languages}
6257 Supported languages are: ${potential_languages}" "$LINENO" 5
6258 fi
6259 if test "x$new_enable_languages" != "x$enable_languages"; then
6260 echo The following languages will be built: ${new_enable_languages}
6261 enable_languages="$new_enable_languages"
6262 fi
6263
6264
6265 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6266 fi
6267
6268 # Handle --disable-<component> generically.
6269 for dir in $configdirs $build_configdirs $target_configdirs ; do
6270 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6271 varname=`echo $dirname | sed -e s/+/_/g`
6272 if eval test x\${enable_${varname}} "=" xno ; then
6273 noconfigdirs="$noconfigdirs $dir"
6274 fi
6275 done
6276
6277 # Check for Boehm's garbage collector
6278 # Check whether --enable-objc-gc was given.
6279 if test "${enable_objc_gc+set}" = set; then :
6280 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6281 *,objc,*:*:yes:*target-boehm-gc*)
6282 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6283 ;;
6284 esac
6285 fi
6286
6287
6288 # Make sure we only build Boehm's garbage collector if required.
6289 case ,${enable_languages},:${enable_objc_gc} in
6290 *,objc,*:yes)
6291 # Keep target-boehm-gc if requested for Objective-C.
6292 ;;
6293 *)
6294 # Otherwise remove target-boehm-gc depending on target-libjava.
6295 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6296 noconfigdirs="$noconfigdirs target-boehm-gc"
6297 fi
6298 ;;
6299 esac
6300
6301 # Disable libitm if we're not building C++
6302 case ,${enable_languages}, in
6303 *,c++,*) ;;
6304 *)
6305 noconfigdirs="$noconfigdirs target-libitm"
6306 ;;
6307 esac
6308
6309 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6310 # $build_configdirs and $target_configdirs.
6311 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6312
6313 notsupp=""
6314 for dir in . $skipdirs $noconfigdirs ; do
6315 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6316 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6317 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6318 if test -r $srcdir/$dirname/configure ; then
6319 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6320 true
6321 else
6322 notsupp="$notsupp $dir"
6323 fi
6324 fi
6325 fi
6326 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6327 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6328 if test -r $srcdir/$dirname/configure ; then
6329 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6330 true
6331 else
6332 notsupp="$notsupp $dir"
6333 fi
6334 fi
6335 fi
6336 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6337 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6338 if test -r $srcdir/$dirname/configure ; then
6339 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6340 true
6341 else
6342 notsupp="$notsupp $dir"
6343 fi
6344 fi
6345 fi
6346 done
6347
6348 # Quietly strip out all directories which aren't configurable in this tree.
6349 # This relies on all configurable subdirectories being autoconfiscated, which
6350 # is now the case.
6351 build_configdirs_all="$build_configdirs"
6352 build_configdirs=
6353 for i in ${build_configdirs_all} ; do
6354 j=`echo $i | sed -e s/build-//g`
6355 if test -f ${srcdir}/$j/configure ; then
6356 build_configdirs="${build_configdirs} $i"
6357 fi
6358 done
6359
6360 configdirs_all="$configdirs"
6361 configdirs=
6362 for i in ${configdirs_all} ; do
6363 if test -f ${srcdir}/$i/configure ; then
6364 configdirs="${configdirs} $i"
6365 fi
6366 done
6367
6368 target_configdirs_all="$target_configdirs"
6369 target_configdirs=
6370 for i in ${target_configdirs_all} ; do
6371 j=`echo $i | sed -e s/target-//g`
6372 if test -f ${srcdir}/$j/configure ; then
6373 target_configdirs="${target_configdirs} $i"
6374 fi
6375 done
6376
6377 # Produce a warning message for the subdirs we can't configure.
6378 # This isn't especially interesting in the Cygnus tree, but in the individual
6379 # FSF releases, it's important to let people know when their machine isn't
6380 # supported by the one or two programs in a package.
6381
6382 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6383 # If $appdirs is non-empty, at least one of those directories must still
6384 # be configured, or we error out. (E.g., if the gas release supports a
6385 # specified target in some subdirs but not the gas subdir, we shouldn't
6386 # pretend that all is well.)
6387 if test -n "$appdirs" ; then
6388 for dir in $appdirs ; do
6389 if test -r $dir/Makefile.in ; then
6390 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6391 appdirs=""
6392 break
6393 fi
6394 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6395 appdirs=""
6396 break
6397 fi
6398 fi
6399 done
6400 if test -n "$appdirs" ; then
6401 echo "*** This configuration is not supported by this package." 1>&2
6402 exit 1
6403 fi
6404 fi
6405 # Okay, some application will build, or we don't care to check. Still
6406 # notify of subdirs not getting built.
6407 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6408 echo " ${notsupp}" 1>&2
6409 echo " (Any other directories should still work fine.)" 1>&2
6410 fi
6411
6412 case "$host" in
6413 *msdosdjgpp*)
6414 enable_gdbtk=no ;;
6415 esac
6416
6417 # To find our prefix, in gcc_cv_tool_prefix.
6418
6419 # The user is always right.
6420 if test "${PATH_SEPARATOR+set}" != set; then
6421 echo "#! /bin/sh" >conf$$.sh
6422 echo "exit 0" >>conf$$.sh
6423 chmod +x conf$$.sh
6424 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6425 PATH_SEPARATOR=';'
6426 else
6427 PATH_SEPARATOR=:
6428 fi
6429 rm -f conf$$.sh
6430 fi
6431
6432
6433
6434 if test "x$exec_prefix" = xNONE; then
6435 if test "x$prefix" = xNONE; then
6436 gcc_cv_tool_prefix=$ac_default_prefix
6437 else
6438 gcc_cv_tool_prefix=$prefix
6439 fi
6440 else
6441 gcc_cv_tool_prefix=$exec_prefix
6442 fi
6443
6444 # If there is no compiler in the tree, use the PATH only. In any
6445 # case, if there is no compiler in the tree nobody should use
6446 # AS_FOR_TARGET and LD_FOR_TARGET.
6447 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6448 gcc_version=`cat $srcdir/gcc/BASE-VER`
6449 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6450 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6451 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6452 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6453 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6454 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6455 else
6456 gcc_cv_tool_dirs=
6457 fi
6458
6459 if test x$build = x$target && test -n "$md_exec_prefix"; then
6460 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6461 fi
6462
6463
6464
6465 copy_dirs=
6466
6467
6468 # Check whether --with-build-sysroot was given.
6469 if test "${with_build_sysroot+set}" = set; then :
6470 withval=$with_build_sysroot; if test x"$withval" != x ; then
6471 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6472 fi
6473 else
6474 SYSROOT_CFLAGS_FOR_TARGET=
6475 fi
6476
6477
6478
6479
6480 # Check whether --with-debug-prefix-map was given.
6481 if test "${with_debug_prefix_map+set}" = set; then :
6482 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6483 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6484 for debug_map in $withval; do
6485 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6486 done
6487 fi
6488 else
6489 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6490 fi
6491
6492
6493
6494 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6495 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6496 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6497 # We want to ensure that TARGET libraries (which we know are built with
6498 # gcc) are built with "-O2 -g", so include those options when setting
6499 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6500 if test "x$CFLAGS_FOR_TARGET" = x; then
6501 CFLAGS_FOR_TARGET=$CFLAGS
6502 case " $CFLAGS " in
6503 *" -O2 "*) ;;
6504 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6505 esac
6506 case " $CFLAGS " in
6507 *" -g "* | *" -g3 "*) ;;
6508 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6509 esac
6510 fi
6511
6512
6513 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6514 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6515 case " $CXXFLAGS " in
6516 *" -O2 "*) ;;
6517 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6518 esac
6519 case " $CXXFLAGS " in
6520 *" -g "* | *" -g3 "*) ;;
6521 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6522 esac
6523 fi
6524
6525
6526
6527
6528 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6529 # the named directory are copied to $(tooldir)/sys-include.
6530 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6531 if test x${is_cross_compiler} = xno ; then
6532 echo 1>&2 '***' --with-headers is only supported when cross compiling
6533 exit 1
6534 fi
6535 if test x"${with_headers}" != xyes ; then
6536 x=${gcc_cv_tool_prefix}
6537 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6538 fi
6539 fi
6540
6541 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6542 # the name directories are copied to $(tooldir)/lib. Multiple directories
6543 # are permitted.
6544 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6545 if test x${is_cross_compiler} = xno ; then
6546 echo 1>&2 '***' --with-libs is only supported when cross compiling
6547 exit 1
6548 fi
6549 if test x"${with_libs}" != xyes ; then
6550 # Copy the libraries in reverse order, so that files in the first named
6551 # library override files in subsequent libraries.
6552 x=${gcc_cv_tool_prefix}
6553 for l in ${with_libs}; do
6554 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6555 done
6556 fi
6557 fi
6558
6559 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6560 #
6561 # This is done by determining whether or not the appropriate directory
6562 # is available, and by checking whether or not specific configurations
6563 # have requested that this magic not happen.
6564 #
6565 # The command line options always override the explicit settings in
6566 # configure.in, and the settings in configure.in override this magic.
6567 #
6568 # If the default for a toolchain is to use GNU as and ld, and you don't
6569 # want to do that, then you should use the --without-gnu-as and
6570 # --without-gnu-ld options for the configure script. Similarly, if
6571 # the default is to use the included zlib and you don't want to do that,
6572 # you should use the --with-system-zlib option for the configure script.
6573
6574 if test x${use_gnu_as} = x &&
6575 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6576 with_gnu_as=yes
6577 extra_host_args="$extra_host_args --with-gnu-as"
6578 fi
6579
6580 if test x${use_gnu_ld} = x &&
6581 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6582 with_gnu_ld=yes
6583 extra_host_args="$extra_host_args --with-gnu-ld"
6584 fi
6585
6586 if test x${use_included_zlib} = x &&
6587 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6588 :
6589 else
6590 with_system_zlib=yes
6591 extra_host_args="$extra_host_args --with-system-zlib"
6592 fi
6593
6594 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6595 # can detect this case.
6596
6597 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6598 with_newlib=yes
6599 extra_host_args="$extra_host_args --with-newlib"
6600 fi
6601
6602 # Handle ${copy_dirs}
6603 set fnord ${copy_dirs}
6604 shift
6605 while test $# != 0 ; do
6606 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6607 :
6608 else
6609 echo Copying $1 to $2
6610
6611 # Use the install script to create the directory and all required
6612 # parent directories.
6613 if test -d $2 ; then
6614 :
6615 else
6616 echo >config.temp
6617 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6618 fi
6619
6620 # Copy the directory, assuming we have tar.
6621 # FIXME: Should we use B in the second tar? Not all systems support it.
6622 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6623
6624 # It is the responsibility of the user to correctly adjust all
6625 # symlinks. If somebody can figure out how to handle them correctly
6626 # here, feel free to add the code.
6627
6628 echo $1 > $2/COPIED
6629 fi
6630 shift; shift
6631 done
6632
6633 # Determine a target-dependent exec_prefix that the installed
6634 # gcc will search in. Keep this list sorted by triplet, with
6635 # the *-*-osname triplets last.
6636 md_exec_prefix=
6637 case "${target}" in
6638 i[34567]86-pc-msdosdjgpp*)
6639 md_exec_prefix=/dev/env/DJDIR/bin
6640 ;;
6641 *-*-hpux* | \
6642 *-*-nto-qnx* | \
6643 *-*-solaris2*)
6644 md_exec_prefix=/usr/ccs/bin
6645 ;;
6646 esac
6647
6648 extra_arflags_for_target=
6649 extra_nmflags_for_target=
6650 extra_ranlibflags_for_target=
6651 target_makefile_frag=/dev/null
6652 case "${target}" in
6653 spu-*-*)
6654 target_makefile_frag="config/mt-spu"
6655 ;;
6656 mips*-sde-elf*)
6657 target_makefile_frag="config/mt-sde"
6658 ;;
6659 mipsisa*-*-elfoabi*)
6660 target_makefile_frag="config/mt-mips-elfoabi"
6661 ;;
6662 mips*-*-*linux* | mips*-*-gnu*)
6663 target_makefile_frag="config/mt-mips-gnu"
6664 ;;
6665 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6666 target_makefile_frag="config/mt-gnu"
6667 ;;
6668 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6669 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6670 # commands to handle both 32-bit and 64-bit objects. These flags are
6671 # harmless if we're using GNU nm or ar.
6672 extra_arflags_for_target=" -X32_64"
6673 extra_nmflags_for_target=" -B -X32_64"
6674 ;;
6675 esac
6676
6677 alphaieee_frag=/dev/null
6678 case $target in
6679 alpha*-*-*)
6680 # This just makes sure to use the -mieee option to build target libs.
6681 # This should probably be set individually by each library.
6682 alphaieee_frag="config/mt-alphaieee"
6683 ;;
6684 esac
6685
6686 # If --enable-target-optspace always use -Os instead of -O2 to build
6687 # the target libraries, similarly if it is not specified, use -Os
6688 # on selected platforms.
6689 ospace_frag=/dev/null
6690 case "${enable_target_optspace}:${target}" in
6691 yes:*)
6692 ospace_frag="config/mt-ospace"
6693 ;;
6694 :d30v-*)
6695 ospace_frag="config/mt-d30v"
6696 ;;
6697 :m32r-* | :d10v-* | :fr30-*)
6698 ospace_frag="config/mt-ospace"
6699 ;;
6700 no:* | :*)
6701 ;;
6702 *)
6703 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6704 ;;
6705 esac
6706
6707 # Some systems (e.g., one of the i386-aix systems the gas testers are
6708 # using) don't handle "\$" correctly, so don't use it here.
6709 tooldir='${exec_prefix}'/${target_noncanonical}
6710 build_tooldir=${tooldir}
6711
6712 # Create a .gdbinit file which runs the one in srcdir
6713 # and tells GDB to look there for source files.
6714
6715 if test -r ${srcdir}/.gdbinit ; then
6716 case ${srcdir} in
6717 .) ;;
6718 *) cat > ./.gdbinit <<EOF
6719 # ${NO_EDIT}
6720 dir ${srcdir}
6721 dir .
6722 source ${srcdir}/.gdbinit
6723 EOF
6724 ;;
6725 esac
6726 fi
6727
6728 # Make sure that the compiler is able to generate an executable. If it
6729 # can't, we are probably in trouble. We don't care whether we can run the
6730 # executable--we might be using a cross compiler--we only care whether it
6731 # can be created. At this point the main configure script has set CC.
6732 we_are_ok=no
6733 echo "int main () { return 0; }" > conftest.c
6734 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6735 if test $? = 0 ; then
6736 if test -s conftest || test -s conftest.exe ; then
6737 we_are_ok=yes
6738 fi
6739 fi
6740 case $we_are_ok in
6741 no)
6742 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6743 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6744 rm -f conftest*
6745 exit 1
6746 ;;
6747 esac
6748 rm -f conftest*
6749
6750 # Decide which environment variable is used to find dynamic libraries.
6751 case "${host}" in
6752 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6753 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6754 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6755 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6756 esac
6757
6758 # On systems where the dynamic library environment variable is PATH,
6759 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6760 # built executables to PATH.
6761 if test "$RPATH_ENVVAR" = PATH; then
6762 GCC_SHLIB_SUBDIR=/shlib
6763 else
6764 GCC_SHLIB_SUBDIR=
6765 fi
6766
6767 # Record target_configdirs and the configure arguments for target and
6768 # build configuration in Makefile.
6769 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6770 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6771
6772 # If we are building libgomp, bootstrap it.
6773 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6774 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6775 fi
6776
6777 # Determine whether gdb needs tk/tcl or not.
6778 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6779 # and in that case we want gdb to be built without tk. Ugh!
6780 # In fact I believe gdb is the *only* package directly dependent on tk,
6781 # so we should be able to put the 'maybe's in unconditionally and
6782 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6783 # 100% sure that that's safe though.
6784
6785 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6786 case "$enable_gdbtk" in
6787 no)
6788 GDB_TK="" ;;
6789 yes)
6790 GDB_TK="${gdb_tk}" ;;
6791 *)
6792 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6793 # distro. Eventually someone will fix this and move Insight, nee
6794 # gdbtk to a separate directory.
6795 if test -d ${srcdir}/gdb/gdbtk ; then
6796 GDB_TK="${gdb_tk}"
6797 else
6798 GDB_TK=""
6799 fi
6800 ;;
6801 esac
6802 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6803 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6804
6805 # Strip out unwanted targets.
6806
6807 # While at that, we remove Makefiles if we were started for recursive
6808 # configuration, so that the top-level Makefile reconfigures them,
6809 # like we used to do when configure itself was recursive.
6810
6811 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6812 # but now we're fixing up the Makefile ourselves with the additional
6813 # commands passed to AC_CONFIG_FILES. Use separate variables
6814 # extrasub-{build,host,target} not because there is any reason to split
6815 # the substitutions up that way, but only to remain below the limit of
6816 # 99 commands in a script, for HP-UX sed.
6817 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6818
6819 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6820 yes:yes:*\ gold\ *:*,c++,*) ;;
6821 yes:yes:*\ gold\ *:*)
6822 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6823 ;;
6824 esac
6825
6826 # Adjust the toplevel makefile according to whether bootstrap was selected.
6827 case $enable_bootstrap in
6828 yes)
6829 bootstrap_suffix=bootstrap
6830 BUILD_CONFIG=bootstrap-debug
6831 ;;
6832 no)
6833 bootstrap_suffix=no-bootstrap
6834 BUILD_CONFIG=
6835 ;;
6836 esac
6837
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6839 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6840
6841
6842 # Check whether --with-build-config was given.
6843 if test "${with_build_config+set}" = set; then :
6844 withval=$with_build_config; case $with_build_config in
6845 yes) with_build_config= ;;
6846 no) with_build_config= BUILD_CONFIG= ;;
6847 esac
6848 fi
6849
6850
6851 if test "x${with_build_config}" != x; then
6852 BUILD_CONFIG=$with_build_config
6853 else
6854 case $BUILD_CONFIG in
6855 bootstrap-debug)
6856 if echo "int f (void) { return 0; }" > conftest.c &&
6857 ${CC} -c conftest.c &&
6858 mv conftest.o conftest.o.g0 &&
6859 ${CC} -c -g conftest.c &&
6860 mv conftest.o conftest.o.g &&
6861 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6862 :
6863 else
6864 BUILD_CONFIG=
6865 fi
6866 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6867 ;;
6868 esac
6869 fi
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6871 $as_echo "$BUILD_CONFIG" >&6; }
6872
6873
6874 extrasub_build=
6875 for module in ${build_configdirs} ; do
6876 if test -z "${no_recursion}" \
6877 && test -f ${build_subdir}/${module}/Makefile; then
6878 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6879 rm -f ${build_subdir}/${module}/Makefile
6880 fi
6881 extrasub_build="$extrasub_build
6882 /^@if build-$module\$/d
6883 /^@endif build-$module\$/d
6884 /^@if build-$module-$bootstrap_suffix\$/d
6885 /^@endif build-$module-$bootstrap_suffix\$/d"
6886 done
6887 extrasub_host=
6888 for module in ${configdirs} ; do
6889 if test -z "${no_recursion}"; then
6890 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6891 if test -f ${file}; then
6892 echo 1>&2 "*** removing ${file} to force reconfigure"
6893 rm -f ${file}
6894 fi
6895 done
6896 fi
6897 extrasub_host="$extrasub_host
6898 /^@if $module\$/d
6899 /^@endif $module\$/d
6900 /^@if $module-$bootstrap_suffix\$/d
6901 /^@endif $module-$bootstrap_suffix\$/d"
6902 done
6903 extrasub_target=
6904 for module in ${target_configdirs} ; do
6905 if test -z "${no_recursion}" \
6906 && test -f ${target_subdir}/${module}/Makefile; then
6907 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6908 rm -f ${target_subdir}/${module}/Makefile
6909 fi
6910
6911 # We only bootstrap target libraries listed in bootstrap_target_libs.
6912 case $bootstrap_target_libs in
6913 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6914 *) target_bootstrap_suffix=no-bootstrap ;;
6915 esac
6916
6917 extrasub_target="$extrasub_target
6918 /^@if target-$module\$/d
6919 /^@endif target-$module\$/d
6920 /^@if target-$module-$target_bootstrap_suffix\$/d
6921 /^@endif target-$module-$target_bootstrap_suffix\$/d"
6922 done
6923
6924 # Do the final fixup along with target modules.
6925 extrasub_target="$extrasub_target
6926 /^@if /,/^@endif /d"
6927
6928 # Create the serialization dependencies. This uses a temporary file.
6929
6930 # Check whether --enable-serial-configure was given.
6931 if test "${enable_serial_configure+set}" = set; then :
6932 enableval=$enable_serial_configure;
6933 fi
6934
6935
6936 case ${enable_serial_configure} in
6937 yes)
6938 enable_serial_build_configure=yes
6939 enable_serial_host_configure=yes
6940 enable_serial_target_configure=yes
6941 ;;
6942 esac
6943
6944 # These force 'configure's to be done one at a time, to avoid problems
6945 # with contention over a shared config.cache.
6946 rm -f serdep.tmp
6947 echo '# serdep.tmp' > serdep.tmp
6948 olditem=
6949 test "x${enable_serial_build_configure}" = xyes &&
6950 for item in ${build_configdirs} ; do
6951 case ${olditem} in
6952 "") ;;
6953 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6954 esac
6955 olditem=${item}
6956 done
6957 olditem=
6958 test "x${enable_serial_host_configure}" = xyes &&
6959 for item in ${configdirs} ; do
6960 case ${olditem} in
6961 "") ;;
6962 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6963 esac
6964 olditem=${item}
6965 done
6966 olditem=
6967 test "x${enable_serial_target_configure}" = xyes &&
6968 for item in ${target_configdirs} ; do
6969 case ${olditem} in
6970 "") ;;
6971 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6972 esac
6973 olditem=${item}
6974 done
6975 serialization_dependencies=serdep.tmp
6976
6977
6978 # Base args. Strip norecursion, cache-file, srcdir, host, build,
6979 # target, nonopt, and variable assignments. These are the ones we
6980 # might not want to pass down to subconfigures. The exception being
6981 # --cache-file=/dev/null, which is used to turn off the use of cache
6982 # files altogether, and which should be passed on to subconfigures.
6983 # Also strip program-prefix, program-suffix, and program-transform-name,
6984 # so that we can pass down a consistent program-transform-name.
6985 baseargs=
6986 tbaseargs=
6987 keep_next=no
6988 skip_next=no
6989 eval "set -- $ac_configure_args"
6990 for ac_arg
6991 do
6992 if test X"$skip_next" = X"yes"; then
6993 skip_next=no
6994 continue
6995 fi
6996 if test X"$keep_next" = X"yes"; then
6997 case $ac_arg in
6998 *\'*)
6999 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7000 esac
7001 baseargs="$baseargs '$ac_arg'"
7002 tbaseargs="$tbaseargs '$ac_arg'"
7003 keep_next=no
7004 continue
7005 fi
7006
7007 # Handle separated arguments. Based on the logic generated by
7008 # autoconf 2.59.
7009 case $ac_arg in
7010 *=* | --config-cache | -C | -disable-* | --disable-* \
7011 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7012 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7013 | -with-* | --with-* | -without-* | --without-* | --x)
7014 separate_arg=no
7015 ;;
7016 -*)
7017 separate_arg=yes
7018 ;;
7019 *)
7020 separate_arg=no
7021 ;;
7022 esac
7023
7024 skip_targ=no
7025 case $ac_arg in
7026
7027 --with-* | --without-*)
7028 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7029
7030 case $libopt in
7031 *[-_]include)
7032 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7033 ;;
7034 *[-_]lib)
7035 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7036 ;;
7037 *)
7038 lib=$libopt
7039 ;;
7040 esac
7041
7042
7043 case $lib in
7044 mpc | mpfr | gmp | cloog)
7045 # If we're processing --with-$lib, --with-$lib-include or
7046 # --with-$lib-lib, for one of the libs above, and target is
7047 # different from host, don't pass the current argument to any
7048 # target library's configure.
7049 if test x$is_cross_compiler = xyes; then
7050 skip_targ=yes
7051 fi
7052 ;;
7053 esac
7054 ;;
7055 esac
7056
7057 case "$ac_arg" in
7058 --cache-file=/dev/null | \
7059 -cache-file=/dev/null )
7060 # Handled here to avoid the test to skip args below.
7061 baseargs="$baseargs '$ac_arg'"
7062 tbaseargs="$tbaseargs '$ac_arg'"
7063 # Assert: $separate_arg should always be no.
7064 keep_next=$separate_arg
7065 ;;
7066 --no*)
7067 continue
7068 ;;
7069 --c* | \
7070 --sr* | \
7071 --ho* | \
7072 --bu* | \
7073 --t* | \
7074 --program-* | \
7075 -cache_file* | \
7076 -srcdir* | \
7077 -host* | \
7078 -build* | \
7079 -target* | \
7080 -program-prefix* | \
7081 -program-suffix* | \
7082 -program-transform-name* )
7083 skip_next=$separate_arg
7084 continue
7085 ;;
7086 -*)
7087 # An option. Add it.
7088 case $ac_arg in
7089 *\'*)
7090 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7091 esac
7092 baseargs="$baseargs '$ac_arg'"
7093 if test X"$skip_targ" = Xno; then
7094 tbaseargs="$tbaseargs '$ac_arg'"
7095 fi
7096 keep_next=$separate_arg
7097 ;;
7098 *)
7099 # Either a variable assignment, or a nonopt (triplet). Don't
7100 # pass it down; let the Makefile handle this.
7101 continue
7102 ;;
7103 esac
7104 done
7105 # Remove the initial space we just introduced and, as these will be
7106 # expanded by make, quote '$'.
7107 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7108
7109 # Add in --program-transform-name, after --program-prefix and
7110 # --program-suffix have been applied to it. Autoconf has already
7111 # doubled dollar signs and backslashes in program_transform_name; we want
7112 # the backslashes un-doubled, and then the entire thing wrapped in single
7113 # quotes, because this will be expanded first by make and then by the shell.
7114 # Also, because we want to override the logic in subdir configure scripts to
7115 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7116 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7117 ${program_transform_name}
7118 EOF_SED
7119 gcc_transform_name=`cat conftestsed.out`
7120 rm -f conftestsed.out
7121 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7122 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7123 if test "$silent" = yes; then
7124 baseargs="$baseargs --silent"
7125 tbaseargs="$tbaseargs --silent"
7126 fi
7127 baseargs="$baseargs --disable-option-checking"
7128 tbaseargs="$tbaseargs --disable-option-checking"
7129
7130 # Record and document user additions to sub configure arguments.
7131
7132
7133
7134
7135 # For the build-side libraries, we just need to pretend we're native,
7136 # and not use the same cache file. Multilibs are neither needed nor
7137 # desired.
7138 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7139
7140 # For host modules, accept cache file option, or specification as blank.
7141 case "${cache_file}" in
7142 "") # empty
7143 cache_file_option="" ;;
7144 /* | [A-Za-z]:[\\/]* ) # absolute path
7145 cache_file_option="--cache-file=${cache_file}" ;;
7146 *) # relative path
7147 cache_file_option="--cache-file=../${cache_file}" ;;
7148 esac
7149
7150 # Host dirs don't like to share a cache file either, horribly enough.
7151 # This seems to be due to autoconf 2.5x stupidity.
7152 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7153
7154 target_configargs="$target_configargs ${tbaseargs}"
7155
7156 # Passing a --with-cross-host argument lets the target libraries know
7157 # whether they are being built with a cross-compiler or being built
7158 # native. However, it would be better to use other mechanisms to make the
7159 # sorts of decisions they want to make on this basis. Please consider
7160 # this option to be deprecated. FIXME.
7161 if test x${is_cross_compiler} = xyes ; then
7162 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7163 fi
7164
7165 # Default to --enable-multilib.
7166 if test x${enable_multilib} = x ; then
7167 target_configargs="--enable-multilib ${target_configargs}"
7168 fi
7169
7170 # Pass --with-newlib if appropriate. Note that target_configdirs has
7171 # changed from the earlier setting of with_newlib.
7172 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7173 target_configargs="--with-newlib ${target_configargs}"
7174 fi
7175
7176 # Different target subdirs use different values of certain variables
7177 # (notably CXX). Worse, multilibs use *lots* of different values.
7178 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7179 # it doesn't automatically accept command-line overrides of them.
7180 # This means it's not safe for target subdirs to share a cache file,
7181 # which is disgusting, but there you have it. Hopefully this can be
7182 # fixed in future. It's still worthwhile to use a cache file for each
7183 # directory. I think.
7184
7185 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7186 # We need to pass --target, as newer autoconf's requires consistency
7187 # for target_alias and gcc doesn't manage it consistently.
7188 target_configargs="--cache-file=./config.cache ${target_configargs}"
7189
7190 FLAGS_FOR_TARGET=
7191 case " $target_configdirs " in
7192 *" newlib "*)
7193 case " $target_configargs " in
7194 *" --with-newlib "*)
7195 case "$target" in
7196 *-cygwin*)
7197 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7198 ;;
7199 esac
7200
7201 # If we're not building GCC, don't discard standard headers.
7202 if test -d ${srcdir}/gcc; then
7203 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7204
7205 if test "${build}" != "${host}"; then
7206 # On Canadian crosses, CC_FOR_TARGET will have already been set
7207 # by `configure', so we won't have an opportunity to add -Bgcc/
7208 # to it. This is right: we don't want to search that directory
7209 # for binaries, but we want the header files in there, so add
7210 # them explicitly.
7211 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7212
7213 # Someone might think of using the pre-installed headers on
7214 # Canadian crosses, in case the installed compiler is not fully
7215 # compatible with the compiler being built. In this case, it
7216 # would be better to flag an error than risking having
7217 # incompatible object files being constructed. We can't
7218 # guarantee that an error will be flagged, but let's hope the
7219 # compiler will do it, when presented with incompatible header
7220 # files.
7221 fi
7222 fi
7223
7224 case "${target}-${is_cross_compiler}" in
7225 i[3456789]86-*-linux*-no)
7226 # Here host == target, so we don't need to build gcc,
7227 # so we don't want to discard standard headers.
7228 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7229 ;;
7230 *)
7231 # If we're building newlib, use its generic headers last, but search
7232 # for any libc-related directories first (so make it the last -B
7233 # switch).
7234 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7235
7236 # If we're building libgloss, find the startup file, simulator library
7237 # and linker script.
7238 case " $target_configdirs " in
7239 *" libgloss "*)
7240 # Look for startup file, simulator library and maybe linker script.
7241 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7242 # Look for libnosys.a in case the target needs it.
7243 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7244 # Most targets have the linker script in the source directory.
7245 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7246 ;;
7247 esac
7248 ;;
7249 esac
7250 ;;
7251 esac
7252 ;;
7253 esac
7254
7255 case "$target" in
7256 x86_64-*mingw* | *-w64-mingw*)
7257 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7258 # however, use a symlink named 'mingw' in ${prefix} .
7259 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7260 ;;
7261 *-mingw*)
7262 # MinGW can't be handled as Cygwin above since it does not use newlib.
7263 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'
7264 ;;
7265 esac
7266
7267 # Allow the user to override the flags for
7268 # our build compiler if desired.
7269 if test x"${build}" = x"${host}" ; then
7270 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7271 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7272 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7273 fi
7274
7275 # On Canadian crosses, we'll be searching the right directories for
7276 # the previously-installed cross compiler, so don't bother to add
7277 # flags for directories within the install tree of the compiler
7278 # being built; programs in there won't even run.
7279 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7280 # Search for pre-installed headers if nothing else fits.
7281 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7282 fi
7283
7284 if test "x${use_gnu_ld}" = x &&
7285 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7286 # Arrange for us to find uninstalled linker scripts.
7287 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7288 fi
7289
7290 # Search for other target-specific linker scripts and such.
7291 case "${target}" in
7292 mep*)
7293 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7294 ;;
7295 esac
7296
7297 # Makefile fragments.
7298 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7299 do
7300 eval fragval=\$$frag
7301 if test $fragval != /dev/null; then
7302 eval $frag=${srcdir}/$fragval
7303 fi
7304 done
7305
7306
7307
7308
7309
7310 # Miscellanea: directories, flags, etc.
7311
7312
7313
7314
7315
7316
7317
7318
7319 # Build module lists & subconfigure args.
7320
7321
7322
7323 # Host module lists & subconfigure args.
7324
7325
7326
7327
7328 # Target module lists & subconfigure args.
7329
7330
7331
7332 # Build tools.
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350 # Generate default definitions for YACC, M4, LEX and other programs that run
7351 # on the build machine. These are used if the Makefile can't locate these
7352 # programs in objdir.
7353 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7354
7355 for ac_prog in 'bison -y' byacc yacc
7356 do
7357 # Extract the first word of "$ac_prog", so it can be a program name with args.
7358 set dummy $ac_prog; ac_word=$2
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360 $as_echo_n "checking for $ac_word... " >&6; }
7361 if test "${ac_cv_prog_YACC+set}" = set; then :
7362 $as_echo_n "(cached) " >&6
7363 else
7364 if test -n "$YACC"; then
7365 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7366 else
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 for as_dir in $PATH
7369 do
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374 ac_cv_prog_YACC="$ac_prog"
7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7377 fi
7378 done
7379 done
7380 IFS=$as_save_IFS
7381
7382 fi
7383 fi
7384 YACC=$ac_cv_prog_YACC
7385 if test -n "$YACC"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7387 $as_echo "$YACC" >&6; }
7388 else
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390 $as_echo "no" >&6; }
7391 fi
7392
7393
7394 test -n "$YACC" && break
7395 done
7396 test -n "$YACC" || YACC="$MISSING bison -y"
7397
7398 case " $build_configdirs " in
7399 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7400 esac
7401
7402 for ac_prog in bison
7403 do
7404 # Extract the first word of "$ac_prog", so it can be a program name with args.
7405 set dummy $ac_prog; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if test "${ac_cv_prog_BISON+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 if test -n "$BISON"; then
7412 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_prog_BISON="$ac_prog"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7424 fi
7425 done
7426 done
7427 IFS=$as_save_IFS
7428
7429 fi
7430 fi
7431 BISON=$ac_cv_prog_BISON
7432 if test -n "$BISON"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7434 $as_echo "$BISON" >&6; }
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438 fi
7439
7440
7441 test -n "$BISON" && break
7442 done
7443 test -n "$BISON" || BISON="$MISSING bison"
7444
7445 case " $build_configdirs " in
7446 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7447 esac
7448
7449 for ac_prog in gm4 gnum4 m4
7450 do
7451 # Extract the first word of "$ac_prog", so it can be a program name with args.
7452 set dummy $ac_prog; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if test "${ac_cv_prog_M4+set}" = set; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7458 if test -n "$M4"; then
7459 ac_cv_prog_M4="$M4" # Let the user override the test.
7460 else
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7463 do
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7468 ac_cv_prog_M4="$ac_prog"
7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 break 2
7471 fi
7472 done
7473 done
7474 IFS=$as_save_IFS
7475
7476 fi
7477 fi
7478 M4=$ac_cv_prog_M4
7479 if test -n "$M4"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7481 $as_echo "$M4" >&6; }
7482 else
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7485 fi
7486
7487
7488 test -n "$M4" && break
7489 done
7490 test -n "$M4" || M4="$MISSING m4"
7491
7492 case " $build_configdirs " in
7493 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7494 esac
7495
7496 for ac_prog in flex lex
7497 do
7498 # Extract the first word of "$ac_prog", so it can be a program name with args.
7499 set dummy $ac_prog; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if test "${ac_cv_prog_LEX+set}" = set; then :
7503 $as_echo_n "(cached) " >&6
7504 else
7505 if test -n "$LEX"; then
7506 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511 IFS=$as_save_IFS
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515 ac_cv_prog_LEX="$ac_prog"
7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 break 2
7518 fi
7519 done
7520 done
7521 IFS=$as_save_IFS
7522
7523 fi
7524 fi
7525 LEX=$ac_cv_prog_LEX
7526 if test -n "$LEX"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7528 $as_echo "$LEX" >&6; }
7529 else
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7532 fi
7533
7534
7535 test -n "$LEX" && break
7536 done
7537 test -n "$LEX" || LEX="$MISSING flex"
7538
7539 case " $build_configdirs " in
7540 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7541 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7542 esac
7543
7544 for ac_prog in flex
7545 do
7546 # Extract the first word of "$ac_prog", so it can be a program name with args.
7547 set dummy $ac_prog; ac_word=$2
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549 $as_echo_n "checking for $ac_word... " >&6; }
7550 if test "${ac_cv_prog_FLEX+set}" = set; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 if test -n "$FLEX"; then
7554 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_prog_FLEX="$ac_prog"
7564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567 done
7568 done
7569 IFS=$as_save_IFS
7570
7571 fi
7572 fi
7573 FLEX=$ac_cv_prog_FLEX
7574 if test -n "$FLEX"; then
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7576 $as_echo "$FLEX" >&6; }
7577 else
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7580 fi
7581
7582
7583 test -n "$FLEX" && break
7584 done
7585 test -n "$FLEX" || FLEX="$MISSING flex"
7586
7587 case " $build_configdirs " in
7588 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7589 esac
7590
7591 for ac_prog in makeinfo
7592 do
7593 # Extract the first word of "$ac_prog", so it can be a program name with args.
7594 set dummy $ac_prog; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 if test -n "$MAKEINFO"; then
7601 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_prog_MAKEINFO="$ac_prog"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7613 fi
7614 done
7615 done
7616 IFS=$as_save_IFS
7617
7618 fi
7619 fi
7620 MAKEINFO=$ac_cv_prog_MAKEINFO
7621 if test -n "$MAKEINFO"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7623 $as_echo "$MAKEINFO" >&6; }
7624 else
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7627 fi
7628
7629
7630 test -n "$MAKEINFO" && break
7631 done
7632 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7633
7634 case " $build_configdirs " in
7635 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7636 *)
7637
7638 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7639 # higher, else we use the "missing" dummy.
7640 if ${MAKEINFO} --version \
7641 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7642 :
7643 else
7644 MAKEINFO="$MISSING makeinfo"
7645 fi
7646 ;;
7647
7648 esac
7649
7650 # FIXME: expect and dejagnu may become build tools?
7651
7652 for ac_prog in expect
7653 do
7654 # Extract the first word of "$ac_prog", so it can be a program name with args.
7655 set dummy $ac_prog; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 if test -n "$EXPECT"; then
7662 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7663 else
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7666 do
7667 IFS=$as_save_IFS
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7671 ac_cv_prog_EXPECT="$ac_prog"
7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 break 2
7674 fi
7675 done
7676 done
7677 IFS=$as_save_IFS
7678
7679 fi
7680 fi
7681 EXPECT=$ac_cv_prog_EXPECT
7682 if test -n "$EXPECT"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7684 $as_echo "$EXPECT" >&6; }
7685 else
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7688 fi
7689
7690
7691 test -n "$EXPECT" && break
7692 done
7693 test -n "$EXPECT" || EXPECT="expect"
7694
7695 case " $configdirs " in
7696 *" expect "*)
7697 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7698 ;;
7699 esac
7700
7701 for ac_prog in runtest
7702 do
7703 # Extract the first word of "$ac_prog", so it can be a program name with args.
7704 set dummy $ac_prog; ac_word=$2
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706 $as_echo_n "checking for $ac_word... " >&6; }
7707 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710 if test -n "$RUNTEST"; then
7711 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7712 else
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 for as_dir in $PATH
7715 do
7716 IFS=$as_save_IFS
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7720 ac_cv_prog_RUNTEST="$ac_prog"
7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 break 2
7723 fi
7724 done
7725 done
7726 IFS=$as_save_IFS
7727
7728 fi
7729 fi
7730 RUNTEST=$ac_cv_prog_RUNTEST
7731 if test -n "$RUNTEST"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7733 $as_echo "$RUNTEST" >&6; }
7734 else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7737 fi
7738
7739
7740 test -n "$RUNTEST" && break
7741 done
7742 test -n "$RUNTEST" || RUNTEST="runtest"
7743
7744 case " $configdirs " in
7745 *" dejagnu "*)
7746 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7747 ;;
7748 esac
7749
7750
7751 # Host tools.
7752 ncn_tool_prefix=
7753 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7754 ncn_target_tool_prefix=
7755 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7756
7757
7758
7759 if test -n "$AR"; then
7760 ac_cv_prog_AR=$AR
7761 elif test -n "$ac_cv_prog_AR"; then
7762 AR=$ac_cv_prog_AR
7763 fi
7764
7765 if test -n "$ac_cv_prog_AR"; then
7766 for ncn_progname in ar; do
7767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7768 set dummy ${ncn_progname}; ac_word=$2
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 $as_echo_n "checking for $ac_word... " >&6; }
7771 if test "${ac_cv_prog_AR+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774 if test -n "$AR"; then
7775 ac_cv_prog_AR="$AR" # Let the user override the test.
7776 else
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7779 do
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_prog_AR="${ncn_progname}"
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 break 2
7787 fi
7788 done
7789 done
7790 IFS=$as_save_IFS
7791
7792 fi
7793 fi
7794 AR=$ac_cv_prog_AR
7795 if test -n "$AR"; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7797 $as_echo "$AR" >&6; }
7798 else
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 $as_echo "no" >&6; }
7801 fi
7802
7803
7804 done
7805 fi
7806
7807 for ncn_progname in ar; do
7808 if test -n "$ncn_tool_prefix"; then
7809 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7810 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if test "${ac_cv_prog_AR+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 if test -n "$AR"; then
7817 ac_cv_prog_AR="$AR" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7829 fi
7830 done
7831 done
7832 IFS=$as_save_IFS
7833
7834 fi
7835 fi
7836 AR=$ac_cv_prog_AR
7837 if test -n "$AR"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7839 $as_echo "$AR" >&6; }
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843 fi
7844
7845
7846 fi
7847 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7849 set dummy ${ncn_progname}; ac_word=$2
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851 $as_echo_n "checking for $ac_word... " >&6; }
7852 if test "${ac_cv_prog_AR+set}" = set; then :
7853 $as_echo_n "(cached) " >&6
7854 else
7855 if test -n "$AR"; then
7856 ac_cv_prog_AR="$AR" # Let the user override the test.
7857 else
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7860 do
7861 IFS=$as_save_IFS
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7865 ac_cv_prog_AR="${ncn_progname}"
7866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 break 2
7868 fi
7869 done
7870 done
7871 IFS=$as_save_IFS
7872
7873 fi
7874 fi
7875 AR=$ac_cv_prog_AR
7876 if test -n "$AR"; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7878 $as_echo "$AR" >&6; }
7879 else
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881 $as_echo "no" >&6; }
7882 fi
7883
7884
7885 fi
7886 test -n "$ac_cv_prog_AR" && break
7887 done
7888
7889 if test -z "$ac_cv_prog_AR" ; then
7890 set dummy ar
7891 if test $build = $host ; then
7892 AR="$2"
7893 else
7894 AR="${ncn_tool_prefix}$2"
7895 fi
7896 fi
7897
7898
7899
7900 if test -n "$AS"; then
7901 ac_cv_prog_AS=$AS
7902 elif test -n "$ac_cv_prog_AS"; then
7903 AS=$ac_cv_prog_AS
7904 fi
7905
7906 if test -n "$ac_cv_prog_AS"; then
7907 for ncn_progname in as; do
7908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7909 set dummy ${ncn_progname}; ac_word=$2
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7911 $as_echo_n "checking for $ac_word... " >&6; }
7912 if test "${ac_cv_prog_AS+set}" = set; then :
7913 $as_echo_n "(cached) " >&6
7914 else
7915 if test -n "$AS"; then
7916 ac_cv_prog_AS="$AS" # Let the user override the test.
7917 else
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 for as_dir in $PATH
7920 do
7921 IFS=$as_save_IFS
7922 test -z "$as_dir" && as_dir=.
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7925 ac_cv_prog_AS="${ncn_progname}"
7926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 break 2
7928 fi
7929 done
7930 done
7931 IFS=$as_save_IFS
7932
7933 fi
7934 fi
7935 AS=$ac_cv_prog_AS
7936 if test -n "$AS"; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7938 $as_echo "$AS" >&6; }
7939 else
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941 $as_echo "no" >&6; }
7942 fi
7943
7944
7945 done
7946 fi
7947
7948 for ncn_progname in as; do
7949 if test -n "$ncn_tool_prefix"; then
7950 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7951 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953 $as_echo_n "checking for $ac_word... " >&6; }
7954 if test "${ac_cv_prog_AS+set}" = set; then :
7955 $as_echo_n "(cached) " >&6
7956 else
7957 if test -n "$AS"; then
7958 ac_cv_prog_AS="$AS" # Let the user override the test.
7959 else
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7962 do
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7967 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7970 fi
7971 done
7972 done
7973 IFS=$as_save_IFS
7974
7975 fi
7976 fi
7977 AS=$ac_cv_prog_AS
7978 if test -n "$AS"; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7980 $as_echo "$AS" >&6; }
7981 else
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 $as_echo "no" >&6; }
7984 fi
7985
7986
7987 fi
7988 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7990 set dummy ${ncn_progname}; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if test "${ac_cv_prog_AS+set}" = set; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 if test -n "$AS"; then
7997 ac_cv_prog_AS="$AS" # Let the user override the test.
7998 else
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8001 do
8002 IFS=$as_save_IFS
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8006 ac_cv_prog_AS="${ncn_progname}"
8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 break 2
8009 fi
8010 done
8011 done
8012 IFS=$as_save_IFS
8013
8014 fi
8015 fi
8016 AS=$ac_cv_prog_AS
8017 if test -n "$AS"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8019 $as_echo "$AS" >&6; }
8020 else
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8023 fi
8024
8025
8026 fi
8027 test -n "$ac_cv_prog_AS" && break
8028 done
8029
8030 if test -z "$ac_cv_prog_AS" ; then
8031 set dummy as
8032 if test $build = $host ; then
8033 AS="$2"
8034 else
8035 AS="${ncn_tool_prefix}$2"
8036 fi
8037 fi
8038
8039
8040
8041 if test -n "$DLLTOOL"; then
8042 ac_cv_prog_DLLTOOL=$DLLTOOL
8043 elif test -n "$ac_cv_prog_DLLTOOL"; then
8044 DLLTOOL=$ac_cv_prog_DLLTOOL
8045 fi
8046
8047 if test -n "$ac_cv_prog_DLLTOOL"; then
8048 for ncn_progname in dlltool; do
8049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8050 set dummy ${ncn_progname}; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 if test -n "$DLLTOOL"; then
8057 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8061 do
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 ac_cv_prog_DLLTOOL="${ncn_progname}"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8069 fi
8070 done
8071 done
8072 IFS=$as_save_IFS
8073
8074 fi
8075 fi
8076 DLLTOOL=$ac_cv_prog_DLLTOOL
8077 if test -n "$DLLTOOL"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8079 $as_echo "$DLLTOOL" >&6; }
8080 else
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8083 fi
8084
8085
8086 done
8087 fi
8088
8089 for ncn_progname in dlltool; do
8090 if test -n "$ncn_tool_prefix"; then
8091 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8092 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094 $as_echo_n "checking for $ac_word... " >&6; }
8095 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 if test -n "$DLLTOOL"; then
8099 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8100 else
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102 for as_dir in $PATH
8103 do
8104 IFS=$as_save_IFS
8105 test -z "$as_dir" && as_dir=.
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8108 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 break 2
8111 fi
8112 done
8113 done
8114 IFS=$as_save_IFS
8115
8116 fi
8117 fi
8118 DLLTOOL=$ac_cv_prog_DLLTOOL
8119 if test -n "$DLLTOOL"; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8121 $as_echo "$DLLTOOL" >&6; }
8122 else
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 $as_echo "no" >&6; }
8125 fi
8126
8127
8128 fi
8129 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8131 set dummy ${ncn_progname}; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 if test -n "$DLLTOOL"; then
8138 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8142 do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_prog_DLLTOOL="${ncn_progname}"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8150 fi
8151 done
8152 done
8153 IFS=$as_save_IFS
8154
8155 fi
8156 fi
8157 DLLTOOL=$ac_cv_prog_DLLTOOL
8158 if test -n "$DLLTOOL"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8160 $as_echo "$DLLTOOL" >&6; }
8161 else
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8164 fi
8165
8166
8167 fi
8168 test -n "$ac_cv_prog_DLLTOOL" && break
8169 done
8170
8171 if test -z "$ac_cv_prog_DLLTOOL" ; then
8172 set dummy dlltool
8173 if test $build = $host ; then
8174 DLLTOOL="$2"
8175 else
8176 DLLTOOL="${ncn_tool_prefix}$2"
8177 fi
8178 fi
8179
8180
8181
8182 if test -n "$LD"; then
8183 ac_cv_prog_LD=$LD
8184 elif test -n "$ac_cv_prog_LD"; then
8185 LD=$ac_cv_prog_LD
8186 fi
8187
8188 if test -n "$ac_cv_prog_LD"; then
8189 for ncn_progname in ld; do
8190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8191 set dummy ${ncn_progname}; ac_word=$2
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193 $as_echo_n "checking for $ac_word... " >&6; }
8194 if test "${ac_cv_prog_LD+set}" = set; then :
8195 $as_echo_n "(cached) " >&6
8196 else
8197 if test -n "$LD"; then
8198 ac_cv_prog_LD="$LD" # Let the user override the test.
8199 else
8200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201 for as_dir in $PATH
8202 do
8203 IFS=$as_save_IFS
8204 test -z "$as_dir" && as_dir=.
8205 for ac_exec_ext in '' $ac_executable_extensions; do
8206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8207 ac_cv_prog_LD="${ncn_progname}"
8208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 break 2
8210 fi
8211 done
8212 done
8213 IFS=$as_save_IFS
8214
8215 fi
8216 fi
8217 LD=$ac_cv_prog_LD
8218 if test -n "$LD"; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8220 $as_echo "$LD" >&6; }
8221 else
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223 $as_echo "no" >&6; }
8224 fi
8225
8226
8227 done
8228 fi
8229
8230 for ncn_progname in ld; do
8231 if test -n "$ncn_tool_prefix"; then
8232 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8233 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 $as_echo_n "checking for $ac_word... " >&6; }
8236 if test "${ac_cv_prog_LD+set}" = set; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 if test -n "$LD"; then
8240 ac_cv_prog_LD="$LD" # Let the user override the test.
8241 else
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8244 do
8245 IFS=$as_save_IFS
8246 test -z "$as_dir" && as_dir=.
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8249 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8251 break 2
8252 fi
8253 done
8254 done
8255 IFS=$as_save_IFS
8256
8257 fi
8258 fi
8259 LD=$ac_cv_prog_LD
8260 if test -n "$LD"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8262 $as_echo "$LD" >&6; }
8263 else
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8266 fi
8267
8268
8269 fi
8270 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8272 set dummy ${ncn_progname}; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if test "${ac_cv_prog_LD+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 if test -n "$LD"; then
8279 ac_cv_prog_LD="$LD" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8283 do
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288 ac_cv_prog_LD="${ncn_progname}"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8291 fi
8292 done
8293 done
8294 IFS=$as_save_IFS
8295
8296 fi
8297 fi
8298 LD=$ac_cv_prog_LD
8299 if test -n "$LD"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8301 $as_echo "$LD" >&6; }
8302 else
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8305 fi
8306
8307
8308 fi
8309 test -n "$ac_cv_prog_LD" && break
8310 done
8311
8312 if test -z "$ac_cv_prog_LD" ; then
8313 set dummy ld
8314 if test $build = $host ; then
8315 LD="$2"
8316 else
8317 LD="${ncn_tool_prefix}$2"
8318 fi
8319 fi
8320
8321
8322
8323 if test -n "$LIPO"; then
8324 ac_cv_prog_LIPO=$LIPO
8325 elif test -n "$ac_cv_prog_LIPO"; then
8326 LIPO=$ac_cv_prog_LIPO
8327 fi
8328
8329 if test -n "$ac_cv_prog_LIPO"; then
8330 for ncn_progname in lipo; do
8331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8332 set dummy ${ncn_progname}; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if test "${ac_cv_prog_LIPO+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 if test -n "$LIPO"; then
8339 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8340 else
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 for as_dir in $PATH
8343 do
8344 IFS=$as_save_IFS
8345 test -z "$as_dir" && as_dir=.
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348 ac_cv_prog_LIPO="${ncn_progname}"
8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350 break 2
8351 fi
8352 done
8353 done
8354 IFS=$as_save_IFS
8355
8356 fi
8357 fi
8358 LIPO=$ac_cv_prog_LIPO
8359 if test -n "$LIPO"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8361 $as_echo "$LIPO" >&6; }
8362 else
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8365 fi
8366
8367
8368 done
8369 fi
8370
8371 for ncn_progname in lipo; do
8372 if test -n "$ncn_tool_prefix"; then
8373 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8374 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if test "${ac_cv_prog_LIPO+set}" = set; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 if test -n "$LIPO"; then
8381 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8382 else
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 for as_dir in $PATH
8385 do
8386 IFS=$as_save_IFS
8387 test -z "$as_dir" && as_dir=.
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8390 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 break 2
8393 fi
8394 done
8395 done
8396 IFS=$as_save_IFS
8397
8398 fi
8399 fi
8400 LIPO=$ac_cv_prog_LIPO
8401 if test -n "$LIPO"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8403 $as_echo "$LIPO" >&6; }
8404 else
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8407 fi
8408
8409
8410 fi
8411 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8413 set dummy ${ncn_progname}; ac_word=$2
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 $as_echo_n "checking for $ac_word... " >&6; }
8416 if test "${ac_cv_prog_LIPO+set}" = set; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 if test -n "$LIPO"; then
8420 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8421 else
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423 for as_dir in $PATH
8424 do
8425 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8429 ac_cv_prog_LIPO="${ncn_progname}"
8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 break 2
8432 fi
8433 done
8434 done
8435 IFS=$as_save_IFS
8436
8437 fi
8438 fi
8439 LIPO=$ac_cv_prog_LIPO
8440 if test -n "$LIPO"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8442 $as_echo "$LIPO" >&6; }
8443 else
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8446 fi
8447
8448
8449 fi
8450 test -n "$ac_cv_prog_LIPO" && break
8451 done
8452
8453 if test -z "$ac_cv_prog_LIPO" ; then
8454 set dummy lipo
8455 if test $build = $host ; then
8456 LIPO="$2"
8457 else
8458 LIPO="${ncn_tool_prefix}$2"
8459 fi
8460 fi
8461
8462
8463
8464 if test -n "$NM"; then
8465 ac_cv_prog_NM=$NM
8466 elif test -n "$ac_cv_prog_NM"; then
8467 NM=$ac_cv_prog_NM
8468 fi
8469
8470 if test -n "$ac_cv_prog_NM"; then
8471 for ncn_progname in nm; do
8472 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8473 set dummy ${ncn_progname}; ac_word=$2
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475 $as_echo_n "checking for $ac_word... " >&6; }
8476 if test "${ac_cv_prog_NM+set}" = set; then :
8477 $as_echo_n "(cached) " >&6
8478 else
8479 if test -n "$NM"; then
8480 ac_cv_prog_NM="$NM" # Let the user override the test.
8481 else
8482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 for as_dir in $PATH
8484 do
8485 IFS=$as_save_IFS
8486 test -z "$as_dir" && as_dir=.
8487 for ac_exec_ext in '' $ac_executable_extensions; do
8488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8489 ac_cv_prog_NM="${ncn_progname}"
8490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8491 break 2
8492 fi
8493 done
8494 done
8495 IFS=$as_save_IFS
8496
8497 fi
8498 fi
8499 NM=$ac_cv_prog_NM
8500 if test -n "$NM"; then
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8502 $as_echo "$NM" >&6; }
8503 else
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505 $as_echo "no" >&6; }
8506 fi
8507
8508
8509 done
8510 fi
8511
8512 for ncn_progname in nm; do
8513 if test -n "$ncn_tool_prefix"; then
8514 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8515 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517 $as_echo_n "checking for $ac_word... " >&6; }
8518 if test "${ac_cv_prog_NM+set}" = set; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 if test -n "$NM"; then
8522 ac_cv_prog_NM="$NM" # Let the user override the test.
8523 else
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 for as_dir in $PATH
8526 do
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8531 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 break 2
8534 fi
8535 done
8536 done
8537 IFS=$as_save_IFS
8538
8539 fi
8540 fi
8541 NM=$ac_cv_prog_NM
8542 if test -n "$NM"; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8544 $as_echo "$NM" >&6; }
8545 else
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547 $as_echo "no" >&6; }
8548 fi
8549
8550
8551 fi
8552 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8554 set dummy ${ncn_progname}; ac_word=$2
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556 $as_echo_n "checking for $ac_word... " >&6; }
8557 if test "${ac_cv_prog_NM+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8559 else
8560 if test -n "$NM"; then
8561 ac_cv_prog_NM="$NM" # Let the user override the test.
8562 else
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 for as_dir in $PATH
8565 do
8566 IFS=$as_save_IFS
8567 test -z "$as_dir" && as_dir=.
8568 for ac_exec_ext in '' $ac_executable_extensions; do
8569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8570 ac_cv_prog_NM="${ncn_progname}"
8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572 break 2
8573 fi
8574 done
8575 done
8576 IFS=$as_save_IFS
8577
8578 fi
8579 fi
8580 NM=$ac_cv_prog_NM
8581 if test -n "$NM"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8583 $as_echo "$NM" >&6; }
8584 else
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8587 fi
8588
8589
8590 fi
8591 test -n "$ac_cv_prog_NM" && break
8592 done
8593
8594 if test -z "$ac_cv_prog_NM" ; then
8595 set dummy nm
8596 if test $build = $host ; then
8597 NM="$2"
8598 else
8599 NM="${ncn_tool_prefix}$2"
8600 fi
8601 fi
8602
8603
8604
8605 if test -n "$RANLIB"; then
8606 ac_cv_prog_RANLIB=$RANLIB
8607 elif test -n "$ac_cv_prog_RANLIB"; then
8608 RANLIB=$ac_cv_prog_RANLIB
8609 fi
8610
8611 if test -n "$ac_cv_prog_RANLIB"; then
8612 for ncn_progname in ranlib; do
8613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8614 set dummy ${ncn_progname}; ac_word=$2
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616 $as_echo_n "checking for $ac_word... " >&6; }
8617 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8618 $as_echo_n "(cached) " >&6
8619 else
8620 if test -n "$RANLIB"; then
8621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8622 else
8623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 for as_dir in $PATH
8625 do
8626 IFS=$as_save_IFS
8627 test -z "$as_dir" && as_dir=.
8628 for ac_exec_ext in '' $ac_executable_extensions; do
8629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8630 ac_cv_prog_RANLIB="${ncn_progname}"
8631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8632 break 2
8633 fi
8634 done
8635 done
8636 IFS=$as_save_IFS
8637
8638 fi
8639 fi
8640 RANLIB=$ac_cv_prog_RANLIB
8641 if test -n "$RANLIB"; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8643 $as_echo "$RANLIB" >&6; }
8644 else
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8647 fi
8648
8649
8650 done
8651 fi
8652
8653 for ncn_progname in ranlib; do
8654 if test -n "$ncn_tool_prefix"; then
8655 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8656 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658 $as_echo_n "checking for $ac_word... " >&6; }
8659 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8660 $as_echo_n "(cached) " >&6
8661 else
8662 if test -n "$RANLIB"; then
8663 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8664 else
8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666 for as_dir in $PATH
8667 do
8668 IFS=$as_save_IFS
8669 test -z "$as_dir" && as_dir=.
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8672 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674 break 2
8675 fi
8676 done
8677 done
8678 IFS=$as_save_IFS
8679
8680 fi
8681 fi
8682 RANLIB=$ac_cv_prog_RANLIB
8683 if test -n "$RANLIB"; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8685 $as_echo "$RANLIB" >&6; }
8686 else
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688 $as_echo "no" >&6; }
8689 fi
8690
8691
8692 fi
8693 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8695 set dummy ${ncn_progname}; ac_word=$2
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697 $as_echo_n "checking for $ac_word... " >&6; }
8698 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 if test -n "$RANLIB"; then
8702 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8703 else
8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705 for as_dir in $PATH
8706 do
8707 IFS=$as_save_IFS
8708 test -z "$as_dir" && as_dir=.
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8711 ac_cv_prog_RANLIB="${ncn_progname}"
8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713 break 2
8714 fi
8715 done
8716 done
8717 IFS=$as_save_IFS
8718
8719 fi
8720 fi
8721 RANLIB=$ac_cv_prog_RANLIB
8722 if test -n "$RANLIB"; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8724 $as_echo "$RANLIB" >&6; }
8725 else
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8728 fi
8729
8730
8731 fi
8732 test -n "$ac_cv_prog_RANLIB" && break
8733 done
8734
8735 if test -z "$ac_cv_prog_RANLIB" ; then
8736 RANLIB="true"
8737 fi
8738
8739
8740
8741 if test -n "$STRIP"; then
8742 ac_cv_prog_STRIP=$STRIP
8743 elif test -n "$ac_cv_prog_STRIP"; then
8744 STRIP=$ac_cv_prog_STRIP
8745 fi
8746
8747 if test -n "$ac_cv_prog_STRIP"; then
8748 for ncn_progname in strip; do
8749 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8750 set dummy ${ncn_progname}; ac_word=$2
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8752 $as_echo_n "checking for $ac_word... " >&6; }
8753 if test "${ac_cv_prog_STRIP+set}" = set; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 if test -n "$STRIP"; then
8757 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8758 else
8759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8760 for as_dir in $PATH
8761 do
8762 IFS=$as_save_IFS
8763 test -z "$as_dir" && as_dir=.
8764 for ac_exec_ext in '' $ac_executable_extensions; do
8765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8766 ac_cv_prog_STRIP="${ncn_progname}"
8767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8768 break 2
8769 fi
8770 done
8771 done
8772 IFS=$as_save_IFS
8773
8774 fi
8775 fi
8776 STRIP=$ac_cv_prog_STRIP
8777 if test -n "$STRIP"; then
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8779 $as_echo "$STRIP" >&6; }
8780 else
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8782 $as_echo "no" >&6; }
8783 fi
8784
8785
8786 done
8787 fi
8788
8789 for ncn_progname in strip; do
8790 if test -n "$ncn_tool_prefix"; then
8791 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8792 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if test "${ac_cv_prog_STRIP+set}" = set; then :
8796 $as_echo_n "(cached) " >&6
8797 else
8798 if test -n "$STRIP"; then
8799 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8800 else
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 for as_dir in $PATH
8803 do
8804 IFS=$as_save_IFS
8805 test -z "$as_dir" && as_dir=.
8806 for ac_exec_ext in '' $ac_executable_extensions; do
8807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8808 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8810 break 2
8811 fi
8812 done
8813 done
8814 IFS=$as_save_IFS
8815
8816 fi
8817 fi
8818 STRIP=$ac_cv_prog_STRIP
8819 if test -n "$STRIP"; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8821 $as_echo "$STRIP" >&6; }
8822 else
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8825 fi
8826
8827
8828 fi
8829 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8831 set dummy ${ncn_progname}; ac_word=$2
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8833 $as_echo_n "checking for $ac_word... " >&6; }
8834 if test "${ac_cv_prog_STRIP+set}" = set; then :
8835 $as_echo_n "(cached) " >&6
8836 else
8837 if test -n "$STRIP"; then
8838 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8839 else
8840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8841 for as_dir in $PATH
8842 do
8843 IFS=$as_save_IFS
8844 test -z "$as_dir" && as_dir=.
8845 for ac_exec_ext in '' $ac_executable_extensions; do
8846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8847 ac_cv_prog_STRIP="${ncn_progname}"
8848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8849 break 2
8850 fi
8851 done
8852 done
8853 IFS=$as_save_IFS
8854
8855 fi
8856 fi
8857 STRIP=$ac_cv_prog_STRIP
8858 if test -n "$STRIP"; then
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8860 $as_echo "$STRIP" >&6; }
8861 else
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8863 $as_echo "no" >&6; }
8864 fi
8865
8866
8867 fi
8868 test -n "$ac_cv_prog_STRIP" && break
8869 done
8870
8871 if test -z "$ac_cv_prog_STRIP" ; then
8872 STRIP="true"
8873 fi
8874
8875
8876
8877 if test -n "$WINDRES"; then
8878 ac_cv_prog_WINDRES=$WINDRES
8879 elif test -n "$ac_cv_prog_WINDRES"; then
8880 WINDRES=$ac_cv_prog_WINDRES
8881 fi
8882
8883 if test -n "$ac_cv_prog_WINDRES"; then
8884 for ncn_progname in windres; do
8885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8886 set dummy ${ncn_progname}; ac_word=$2
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888 $as_echo_n "checking for $ac_word... " >&6; }
8889 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 if test -n "$WINDRES"; then
8893 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8894 else
8895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896 for as_dir in $PATH
8897 do
8898 IFS=$as_save_IFS
8899 test -z "$as_dir" && as_dir=.
8900 for ac_exec_ext in '' $ac_executable_extensions; do
8901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8902 ac_cv_prog_WINDRES="${ncn_progname}"
8903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 break 2
8905 fi
8906 done
8907 done
8908 IFS=$as_save_IFS
8909
8910 fi
8911 fi
8912 WINDRES=$ac_cv_prog_WINDRES
8913 if test -n "$WINDRES"; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8915 $as_echo "$WINDRES" >&6; }
8916 else
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918 $as_echo "no" >&6; }
8919 fi
8920
8921
8922 done
8923 fi
8924
8925 for ncn_progname in windres; do
8926 if test -n "$ncn_tool_prefix"; then
8927 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8928 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8930 $as_echo_n "checking for $ac_word... " >&6; }
8931 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8932 $as_echo_n "(cached) " >&6
8933 else
8934 if test -n "$WINDRES"; then
8935 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8936 else
8937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938 for as_dir in $PATH
8939 do
8940 IFS=$as_save_IFS
8941 test -z "$as_dir" && as_dir=.
8942 for ac_exec_ext in '' $ac_executable_extensions; do
8943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8944 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8946 break 2
8947 fi
8948 done
8949 done
8950 IFS=$as_save_IFS
8951
8952 fi
8953 fi
8954 WINDRES=$ac_cv_prog_WINDRES
8955 if test -n "$WINDRES"; then
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8957 $as_echo "$WINDRES" >&6; }
8958 else
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960 $as_echo "no" >&6; }
8961 fi
8962
8963
8964 fi
8965 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8967 set dummy ${ncn_progname}; ac_word=$2
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8969 $as_echo_n "checking for $ac_word... " >&6; }
8970 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 if test -n "$WINDRES"; then
8974 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8975 else
8976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977 for as_dir in $PATH
8978 do
8979 IFS=$as_save_IFS
8980 test -z "$as_dir" && as_dir=.
8981 for ac_exec_ext in '' $ac_executable_extensions; do
8982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8983 ac_cv_prog_WINDRES="${ncn_progname}"
8984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8985 break 2
8986 fi
8987 done
8988 done
8989 IFS=$as_save_IFS
8990
8991 fi
8992 fi
8993 WINDRES=$ac_cv_prog_WINDRES
8994 if test -n "$WINDRES"; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8996 $as_echo "$WINDRES" >&6; }
8997 else
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999 $as_echo "no" >&6; }
9000 fi
9001
9002
9003 fi
9004 test -n "$ac_cv_prog_WINDRES" && break
9005 done
9006
9007 if test -z "$ac_cv_prog_WINDRES" ; then
9008 set dummy windres
9009 if test $build = $host ; then
9010 WINDRES="$2"
9011 else
9012 WINDRES="${ncn_tool_prefix}$2"
9013 fi
9014 fi
9015
9016
9017
9018 if test -n "$WINDMC"; then
9019 ac_cv_prog_WINDMC=$WINDMC
9020 elif test -n "$ac_cv_prog_WINDMC"; then
9021 WINDMC=$ac_cv_prog_WINDMC
9022 fi
9023
9024 if test -n "$ac_cv_prog_WINDMC"; then
9025 for ncn_progname in windmc; do
9026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9027 set dummy ${ncn_progname}; ac_word=$2
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029 $as_echo_n "checking for $ac_word... " >&6; }
9030 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9031 $as_echo_n "(cached) " >&6
9032 else
9033 if test -n "$WINDMC"; then
9034 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9035 else
9036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037 for as_dir in $PATH
9038 do
9039 IFS=$as_save_IFS
9040 test -z "$as_dir" && as_dir=.
9041 for ac_exec_ext in '' $ac_executable_extensions; do
9042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9043 ac_cv_prog_WINDMC="${ncn_progname}"
9044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9045 break 2
9046 fi
9047 done
9048 done
9049 IFS=$as_save_IFS
9050
9051 fi
9052 fi
9053 WINDMC=$ac_cv_prog_WINDMC
9054 if test -n "$WINDMC"; then
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9056 $as_echo "$WINDMC" >&6; }
9057 else
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059 $as_echo "no" >&6; }
9060 fi
9061
9062
9063 done
9064 fi
9065
9066 for ncn_progname in windmc; do
9067 if test -n "$ncn_tool_prefix"; then
9068 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9069 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071 $as_echo_n "checking for $ac_word... " >&6; }
9072 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 if test -n "$WINDMC"; then
9076 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9077 else
9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079 for as_dir in $PATH
9080 do
9081 IFS=$as_save_IFS
9082 test -z "$as_dir" && as_dir=.
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9087 break 2
9088 fi
9089 done
9090 done
9091 IFS=$as_save_IFS
9092
9093 fi
9094 fi
9095 WINDMC=$ac_cv_prog_WINDMC
9096 if test -n "$WINDMC"; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9098 $as_echo "$WINDMC" >&6; }
9099 else
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 $as_echo "no" >&6; }
9102 fi
9103
9104
9105 fi
9106 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9108 set dummy ${ncn_progname}; ac_word=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 if test -n "$WINDMC"; then
9115 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9116 else
9117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9118 for as_dir in $PATH
9119 do
9120 IFS=$as_save_IFS
9121 test -z "$as_dir" && as_dir=.
9122 for ac_exec_ext in '' $ac_executable_extensions; do
9123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9124 ac_cv_prog_WINDMC="${ncn_progname}"
9125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9126 break 2
9127 fi
9128 done
9129 done
9130 IFS=$as_save_IFS
9131
9132 fi
9133 fi
9134 WINDMC=$ac_cv_prog_WINDMC
9135 if test -n "$WINDMC"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9137 $as_echo "$WINDMC" >&6; }
9138 else
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9141 fi
9142
9143
9144 fi
9145 test -n "$ac_cv_prog_WINDMC" && break
9146 done
9147
9148 if test -z "$ac_cv_prog_WINDMC" ; then
9149 set dummy windmc
9150 if test $build = $host ; then
9151 WINDMC="$2"
9152 else
9153 WINDMC="${ncn_tool_prefix}$2"
9154 fi
9155 fi
9156
9157
9158
9159 if test -n "$OBJCOPY"; then
9160 ac_cv_prog_OBJCOPY=$OBJCOPY
9161 elif test -n "$ac_cv_prog_OBJCOPY"; then
9162 OBJCOPY=$ac_cv_prog_OBJCOPY
9163 fi
9164
9165 if test -n "$ac_cv_prog_OBJCOPY"; then
9166 for ncn_progname in objcopy; do
9167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9168 set dummy ${ncn_progname}; ac_word=$2
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170 $as_echo_n "checking for $ac_word... " >&6; }
9171 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9172 $as_echo_n "(cached) " >&6
9173 else
9174 if test -n "$OBJCOPY"; then
9175 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9176 else
9177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178 for as_dir in $PATH
9179 do
9180 IFS=$as_save_IFS
9181 test -z "$as_dir" && as_dir=.
9182 for ac_exec_ext in '' $ac_executable_extensions; do
9183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9184 ac_cv_prog_OBJCOPY="${ncn_progname}"
9185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186 break 2
9187 fi
9188 done
9189 done
9190 IFS=$as_save_IFS
9191
9192 fi
9193 fi
9194 OBJCOPY=$ac_cv_prog_OBJCOPY
9195 if test -n "$OBJCOPY"; then
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9197 $as_echo "$OBJCOPY" >&6; }
9198 else
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200 $as_echo "no" >&6; }
9201 fi
9202
9203
9204 done
9205 fi
9206
9207 for ncn_progname in objcopy; do
9208 if test -n "$ncn_tool_prefix"; then
9209 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9210 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9212 $as_echo_n "checking for $ac_word... " >&6; }
9213 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9214 $as_echo_n "(cached) " >&6
9215 else
9216 if test -n "$OBJCOPY"; then
9217 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9218 else
9219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9220 for as_dir in $PATH
9221 do
9222 IFS=$as_save_IFS
9223 test -z "$as_dir" && as_dir=.
9224 for ac_exec_ext in '' $ac_executable_extensions; do
9225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9226 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9228 break 2
9229 fi
9230 done
9231 done
9232 IFS=$as_save_IFS
9233
9234 fi
9235 fi
9236 OBJCOPY=$ac_cv_prog_OBJCOPY
9237 if test -n "$OBJCOPY"; then
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9239 $as_echo "$OBJCOPY" >&6; }
9240 else
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9242 $as_echo "no" >&6; }
9243 fi
9244
9245
9246 fi
9247 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9249 set dummy ${ncn_progname}; ac_word=$2
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251 $as_echo_n "checking for $ac_word... " >&6; }
9252 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9253 $as_echo_n "(cached) " >&6
9254 else
9255 if test -n "$OBJCOPY"; then
9256 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9257 else
9258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259 for as_dir in $PATH
9260 do
9261 IFS=$as_save_IFS
9262 test -z "$as_dir" && as_dir=.
9263 for ac_exec_ext in '' $ac_executable_extensions; do
9264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9265 ac_cv_prog_OBJCOPY="${ncn_progname}"
9266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267 break 2
9268 fi
9269 done
9270 done
9271 IFS=$as_save_IFS
9272
9273 fi
9274 fi
9275 OBJCOPY=$ac_cv_prog_OBJCOPY
9276 if test -n "$OBJCOPY"; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9278 $as_echo "$OBJCOPY" >&6; }
9279 else
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281 $as_echo "no" >&6; }
9282 fi
9283
9284
9285 fi
9286 test -n "$ac_cv_prog_OBJCOPY" && break
9287 done
9288
9289 if test -z "$ac_cv_prog_OBJCOPY" ; then
9290 set dummy objcopy
9291 if test $build = $host ; then
9292 OBJCOPY="$2"
9293 else
9294 OBJCOPY="${ncn_tool_prefix}$2"
9295 fi
9296 fi
9297
9298
9299
9300 if test -n "$OBJDUMP"; then
9301 ac_cv_prog_OBJDUMP=$OBJDUMP
9302 elif test -n "$ac_cv_prog_OBJDUMP"; then
9303 OBJDUMP=$ac_cv_prog_OBJDUMP
9304 fi
9305
9306 if test -n "$ac_cv_prog_OBJDUMP"; then
9307 for ncn_progname in objdump; do
9308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9309 set dummy ${ncn_progname}; ac_word=$2
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9311 $as_echo_n "checking for $ac_word... " >&6; }
9312 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9313 $as_echo_n "(cached) " >&6
9314 else
9315 if test -n "$OBJDUMP"; then
9316 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9317 else
9318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319 for as_dir in $PATH
9320 do
9321 IFS=$as_save_IFS
9322 test -z "$as_dir" && as_dir=.
9323 for ac_exec_ext in '' $ac_executable_extensions; do
9324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9325 ac_cv_prog_OBJDUMP="${ncn_progname}"
9326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9327 break 2
9328 fi
9329 done
9330 done
9331 IFS=$as_save_IFS
9332
9333 fi
9334 fi
9335 OBJDUMP=$ac_cv_prog_OBJDUMP
9336 if test -n "$OBJDUMP"; then
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9338 $as_echo "$OBJDUMP" >&6; }
9339 else
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9341 $as_echo "no" >&6; }
9342 fi
9343
9344
9345 done
9346 fi
9347
9348 for ncn_progname in objdump; do
9349 if test -n "$ncn_tool_prefix"; then
9350 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9351 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9353 $as_echo_n "checking for $ac_word... " >&6; }
9354 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9355 $as_echo_n "(cached) " >&6
9356 else
9357 if test -n "$OBJDUMP"; then
9358 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9359 else
9360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9361 for as_dir in $PATH
9362 do
9363 IFS=$as_save_IFS
9364 test -z "$as_dir" && as_dir=.
9365 for ac_exec_ext in '' $ac_executable_extensions; do
9366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9367 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9369 break 2
9370 fi
9371 done
9372 done
9373 IFS=$as_save_IFS
9374
9375 fi
9376 fi
9377 OBJDUMP=$ac_cv_prog_OBJDUMP
9378 if test -n "$OBJDUMP"; then
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9380 $as_echo "$OBJDUMP" >&6; }
9381 else
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9383 $as_echo "no" >&6; }
9384 fi
9385
9386
9387 fi
9388 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9390 set dummy ${ncn_progname}; ac_word=$2
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9392 $as_echo_n "checking for $ac_word... " >&6; }
9393 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 if test -n "$OBJDUMP"; then
9397 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9398 else
9399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400 for as_dir in $PATH
9401 do
9402 IFS=$as_save_IFS
9403 test -z "$as_dir" && as_dir=.
9404 for ac_exec_ext in '' $ac_executable_extensions; do
9405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9406 ac_cv_prog_OBJDUMP="${ncn_progname}"
9407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9408 break 2
9409 fi
9410 done
9411 done
9412 IFS=$as_save_IFS
9413
9414 fi
9415 fi
9416 OBJDUMP=$ac_cv_prog_OBJDUMP
9417 if test -n "$OBJDUMP"; then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9419 $as_echo "$OBJDUMP" >&6; }
9420 else
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9422 $as_echo "no" >&6; }
9423 fi
9424
9425
9426 fi
9427 test -n "$ac_cv_prog_OBJDUMP" && break
9428 done
9429
9430 if test -z "$ac_cv_prog_OBJDUMP" ; then
9431 set dummy objdump
9432 if test $build = $host ; then
9433 OBJDUMP="$2"
9434 else
9435 OBJDUMP="${ncn_tool_prefix}$2"
9436 fi
9437 fi
9438
9439
9440
9441 if test -n "$READELF"; then
9442 ac_cv_prog_READELF=$READELF
9443 elif test -n "$ac_cv_prog_READELF"; then
9444 READELF=$ac_cv_prog_READELF
9445 fi
9446
9447 if test -n "$ac_cv_prog_READELF"; then
9448 for ncn_progname in readelf; do
9449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9450 set dummy ${ncn_progname}; ac_word=$2
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9452 $as_echo_n "checking for $ac_word... " >&6; }
9453 if test "${ac_cv_prog_READELF+set}" = set; then :
9454 $as_echo_n "(cached) " >&6
9455 else
9456 if test -n "$READELF"; then
9457 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9458 else
9459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460 for as_dir in $PATH
9461 do
9462 IFS=$as_save_IFS
9463 test -z "$as_dir" && as_dir=.
9464 for ac_exec_ext in '' $ac_executable_extensions; do
9465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9466 ac_cv_prog_READELF="${ncn_progname}"
9467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9468 break 2
9469 fi
9470 done
9471 done
9472 IFS=$as_save_IFS
9473
9474 fi
9475 fi
9476 READELF=$ac_cv_prog_READELF
9477 if test -n "$READELF"; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9479 $as_echo "$READELF" >&6; }
9480 else
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482 $as_echo "no" >&6; }
9483 fi
9484
9485
9486 done
9487 fi
9488
9489 for ncn_progname in readelf; do
9490 if test -n "$ncn_tool_prefix"; then
9491 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9492 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9494 $as_echo_n "checking for $ac_word... " >&6; }
9495 if test "${ac_cv_prog_READELF+set}" = set; then :
9496 $as_echo_n "(cached) " >&6
9497 else
9498 if test -n "$READELF"; then
9499 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9500 else
9501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502 for as_dir in $PATH
9503 do
9504 IFS=$as_save_IFS
9505 test -z "$as_dir" && as_dir=.
9506 for ac_exec_ext in '' $ac_executable_extensions; do
9507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9508 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9510 break 2
9511 fi
9512 done
9513 done
9514 IFS=$as_save_IFS
9515
9516 fi
9517 fi
9518 READELF=$ac_cv_prog_READELF
9519 if test -n "$READELF"; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9521 $as_echo "$READELF" >&6; }
9522 else
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524 $as_echo "no" >&6; }
9525 fi
9526
9527
9528 fi
9529 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9531 set dummy ${ncn_progname}; ac_word=$2
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533 $as_echo_n "checking for $ac_word... " >&6; }
9534 if test "${ac_cv_prog_READELF+set}" = set; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 if test -n "$READELF"; then
9538 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9539 else
9540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541 for as_dir in $PATH
9542 do
9543 IFS=$as_save_IFS
9544 test -z "$as_dir" && as_dir=.
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9547 ac_cv_prog_READELF="${ncn_progname}"
9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9549 break 2
9550 fi
9551 done
9552 done
9553 IFS=$as_save_IFS
9554
9555 fi
9556 fi
9557 READELF=$ac_cv_prog_READELF
9558 if test -n "$READELF"; then
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9560 $as_echo "$READELF" >&6; }
9561 else
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 $as_echo "no" >&6; }
9564 fi
9565
9566
9567 fi
9568 test -n "$ac_cv_prog_READELF" && break
9569 done
9570
9571 if test -z "$ac_cv_prog_READELF" ; then
9572 set dummy readelf
9573 if test $build = $host ; then
9574 READELF="$2"
9575 else
9576 READELF="${ncn_tool_prefix}$2"
9577 fi
9578 fi
9579
9580
9581
9582
9583
9584
9585 # Target tools.
9586
9587 # Check whether --with-build-time-tools was given.
9588 if test "${with_build_time_tools+set}" = set; then :
9589 withval=$with_build_time_tools; case x"$withval" in
9590 x/*) ;;
9591 *)
9592 with_build_time_tools=
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9594 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9595 ;;
9596 esac
9597 else
9598 with_build_time_tools=
9599 fi
9600
9601
9602
9603
9604 if test -n "$CC_FOR_TARGET"; then
9605 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9606 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9607 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9608 fi
9609
9610 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9611 for ncn_progname in cc gcc; do
9612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9613 set dummy ${ncn_progname}; ac_word=$2
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9615 $as_echo_n "checking for $ac_word... " >&6; }
9616 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9617 $as_echo_n "(cached) " >&6
9618 else
9619 if test -n "$CC_FOR_TARGET"; then
9620 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9621 else
9622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9623 for as_dir in $PATH
9624 do
9625 IFS=$as_save_IFS
9626 test -z "$as_dir" && as_dir=.
9627 for ac_exec_ext in '' $ac_executable_extensions; do
9628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9629 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9631 break 2
9632 fi
9633 done
9634 done
9635 IFS=$as_save_IFS
9636
9637 fi
9638 fi
9639 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9640 if test -n "$CC_FOR_TARGET"; then
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9642 $as_echo "$CC_FOR_TARGET" >&6; }
9643 else
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9645 $as_echo "no" >&6; }
9646 fi
9647
9648
9649 done
9650 fi
9651
9652 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9653 for ncn_progname in cc gcc; do
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9655 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9656 if test -x $with_build_time_tools/${ncn_progname}; then
9657 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9659 $as_echo "yes" >&6; }
9660 break
9661 else
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663 $as_echo "no" >&6; }
9664 fi
9665 done
9666 fi
9667
9668 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9669 for ncn_progname in cc gcc; do
9670 if test -n "$ncn_target_tool_prefix"; then
9671 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9672 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674 $as_echo_n "checking for $ac_word... " >&6; }
9675 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 if test -n "$CC_FOR_TARGET"; then
9679 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9680 else
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 for as_dir in $PATH
9683 do
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9688 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690 break 2
9691 fi
9692 done
9693 done
9694 IFS=$as_save_IFS
9695
9696 fi
9697 fi
9698 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9699 if test -n "$CC_FOR_TARGET"; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9701 $as_echo "$CC_FOR_TARGET" >&6; }
9702 else
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 $as_echo "no" >&6; }
9705 fi
9706
9707
9708 fi
9709 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9711 set dummy ${ncn_progname}; ac_word=$2
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9713 $as_echo_n "checking for $ac_word... " >&6; }
9714 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9716 else
9717 if test -n "$CC_FOR_TARGET"; then
9718 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9719 else
9720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721 for as_dir in $PATH
9722 do
9723 IFS=$as_save_IFS
9724 test -z "$as_dir" && as_dir=.
9725 for ac_exec_ext in '' $ac_executable_extensions; do
9726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9727 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9729 break 2
9730 fi
9731 done
9732 done
9733 IFS=$as_save_IFS
9734
9735 fi
9736 fi
9737 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9738 if test -n "$CC_FOR_TARGET"; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9740 $as_echo "$CC_FOR_TARGET" >&6; }
9741 else
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743 $as_echo "no" >&6; }
9744 fi
9745
9746
9747 fi
9748 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9749 done
9750 fi
9751
9752 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9753 set dummy cc gcc
9754 if test $build = $target ; then
9755 CC_FOR_TARGET="$2"
9756 else
9757 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9758 fi
9759 else
9760 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9761 fi
9762
9763
9764
9765 if test -n "$CXX_FOR_TARGET"; then
9766 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9767 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9768 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9769 fi
9770
9771 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9772 for ncn_progname in c++ g++ cxx gxx; do
9773 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9774 set dummy ${ncn_progname}; ac_word=$2
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9776 $as_echo_n "checking for $ac_word... " >&6; }
9777 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9778 $as_echo_n "(cached) " >&6
9779 else
9780 if test -n "$CXX_FOR_TARGET"; then
9781 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9782 else
9783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784 for as_dir in $PATH
9785 do
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9790 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9792 break 2
9793 fi
9794 done
9795 done
9796 IFS=$as_save_IFS
9797
9798 fi
9799 fi
9800 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9801 if test -n "$CXX_FOR_TARGET"; then
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9803 $as_echo "$CXX_FOR_TARGET" >&6; }
9804 else
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806 $as_echo "no" >&6; }
9807 fi
9808
9809
9810 done
9811 fi
9812
9813 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9814 for ncn_progname in c++ g++ cxx gxx; do
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9816 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9817 if test -x $with_build_time_tools/${ncn_progname}; then
9818 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9820 $as_echo "yes" >&6; }
9821 break
9822 else
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824 $as_echo "no" >&6; }
9825 fi
9826 done
9827 fi
9828
9829 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9830 for ncn_progname in c++ g++ cxx gxx; do
9831 if test -n "$ncn_target_tool_prefix"; then
9832 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9833 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9835 $as_echo_n "checking for $ac_word... " >&6; }
9836 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9837 $as_echo_n "(cached) " >&6
9838 else
9839 if test -n "$CXX_FOR_TARGET"; then
9840 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9841 else
9842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9843 for as_dir in $PATH
9844 do
9845 IFS=$as_save_IFS
9846 test -z "$as_dir" && as_dir=.
9847 for ac_exec_ext in '' $ac_executable_extensions; do
9848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9849 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9851 break 2
9852 fi
9853 done
9854 done
9855 IFS=$as_save_IFS
9856
9857 fi
9858 fi
9859 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9860 if test -n "$CXX_FOR_TARGET"; then
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9862 $as_echo "$CXX_FOR_TARGET" >&6; }
9863 else
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9865 $as_echo "no" >&6; }
9866 fi
9867
9868
9869 fi
9870 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9872 set dummy ${ncn_progname}; ac_word=$2
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9874 $as_echo_n "checking for $ac_word... " >&6; }
9875 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9876 $as_echo_n "(cached) " >&6
9877 else
9878 if test -n "$CXX_FOR_TARGET"; then
9879 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9880 else
9881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9882 for as_dir in $PATH
9883 do
9884 IFS=$as_save_IFS
9885 test -z "$as_dir" && as_dir=.
9886 for ac_exec_ext in '' $ac_executable_extensions; do
9887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9888 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9890 break 2
9891 fi
9892 done
9893 done
9894 IFS=$as_save_IFS
9895
9896 fi
9897 fi
9898 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9899 if test -n "$CXX_FOR_TARGET"; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9901 $as_echo "$CXX_FOR_TARGET" >&6; }
9902 else
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9905 fi
9906
9907
9908 fi
9909 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9910 done
9911 fi
9912
9913 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9914 set dummy c++ g++ cxx gxx
9915 if test $build = $target ; then
9916 CXX_FOR_TARGET="$2"
9917 else
9918 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9919 fi
9920 else
9921 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9922 fi
9923
9924
9925
9926 if test -n "$GCC_FOR_TARGET"; then
9927 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9928 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9929 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9930 fi
9931
9932 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9933 for ncn_progname in gcc; do
9934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9935 set dummy ${ncn_progname}; ac_word=$2
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9937 $as_echo_n "checking for $ac_word... " >&6; }
9938 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9939 $as_echo_n "(cached) " >&6
9940 else
9941 if test -n "$GCC_FOR_TARGET"; then
9942 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9943 else
9944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9945 for as_dir in $PATH
9946 do
9947 IFS=$as_save_IFS
9948 test -z "$as_dir" && as_dir=.
9949 for ac_exec_ext in '' $ac_executable_extensions; do
9950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9951 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9953 break 2
9954 fi
9955 done
9956 done
9957 IFS=$as_save_IFS
9958
9959 fi
9960 fi
9961 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9962 if test -n "$GCC_FOR_TARGET"; then
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9964 $as_echo "$GCC_FOR_TARGET" >&6; }
9965 else
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9967 $as_echo "no" >&6; }
9968 fi
9969
9970
9971 done
9972 fi
9973
9974 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9975 for ncn_progname in gcc; do
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9977 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9978 if test -x $with_build_time_tools/${ncn_progname}; then
9979 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9981 $as_echo "yes" >&6; }
9982 break
9983 else
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 $as_echo "no" >&6; }
9986 fi
9987 done
9988 fi
9989
9990 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9991 for ncn_progname in gcc; do
9992 if test -n "$ncn_target_tool_prefix"; then
9993 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9994 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9996 $as_echo_n "checking for $ac_word... " >&6; }
9997 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9998 $as_echo_n "(cached) " >&6
9999 else
10000 if test -n "$GCC_FOR_TARGET"; then
10001 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10002 else
10003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004 for as_dir in $PATH
10005 do
10006 IFS=$as_save_IFS
10007 test -z "$as_dir" && as_dir=.
10008 for ac_exec_ext in '' $ac_executable_extensions; do
10009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10010 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10012 break 2
10013 fi
10014 done
10015 done
10016 IFS=$as_save_IFS
10017
10018 fi
10019 fi
10020 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10021 if test -n "$GCC_FOR_TARGET"; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10023 $as_echo "$GCC_FOR_TARGET" >&6; }
10024 else
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026 $as_echo "no" >&6; }
10027 fi
10028
10029
10030 fi
10031 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10033 set dummy ${ncn_progname}; ac_word=$2
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10035 $as_echo_n "checking for $ac_word... " >&6; }
10036 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10037 $as_echo_n "(cached) " >&6
10038 else
10039 if test -n "$GCC_FOR_TARGET"; then
10040 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10041 else
10042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10043 for as_dir in $PATH
10044 do
10045 IFS=$as_save_IFS
10046 test -z "$as_dir" && as_dir=.
10047 for ac_exec_ext in '' $ac_executable_extensions; do
10048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10049 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10051 break 2
10052 fi
10053 done
10054 done
10055 IFS=$as_save_IFS
10056
10057 fi
10058 fi
10059 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10060 if test -n "$GCC_FOR_TARGET"; then
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10062 $as_echo "$GCC_FOR_TARGET" >&6; }
10063 else
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10065 $as_echo "no" >&6; }
10066 fi
10067
10068
10069 fi
10070 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10071 done
10072 fi
10073
10074 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10075 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10076 else
10077 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10078 fi
10079
10080
10081
10082 if test -n "$GCJ_FOR_TARGET"; then
10083 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10084 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10085 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10086 fi
10087
10088 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10089 for ncn_progname in gcj; do
10090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10091 set dummy ${ncn_progname}; ac_word=$2
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10093 $as_echo_n "checking for $ac_word... " >&6; }
10094 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10095 $as_echo_n "(cached) " >&6
10096 else
10097 if test -n "$GCJ_FOR_TARGET"; then
10098 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10099 else
10100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10101 for as_dir in $PATH
10102 do
10103 IFS=$as_save_IFS
10104 test -z "$as_dir" && as_dir=.
10105 for ac_exec_ext in '' $ac_executable_extensions; do
10106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10107 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10109 break 2
10110 fi
10111 done
10112 done
10113 IFS=$as_save_IFS
10114
10115 fi
10116 fi
10117 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10118 if test -n "$GCJ_FOR_TARGET"; then
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10120 $as_echo "$GCJ_FOR_TARGET" >&6; }
10121 else
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123 $as_echo "no" >&6; }
10124 fi
10125
10126
10127 done
10128 fi
10129
10130 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10131 for ncn_progname in gcj; do
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10133 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10134 if test -x $with_build_time_tools/${ncn_progname}; then
10135 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10137 $as_echo "yes" >&6; }
10138 break
10139 else
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 $as_echo "no" >&6; }
10142 fi
10143 done
10144 fi
10145
10146 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10147 for ncn_progname in gcj; do
10148 if test -n "$ncn_target_tool_prefix"; then
10149 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10150 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10152 $as_echo_n "checking for $ac_word... " >&6; }
10153 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10154 $as_echo_n "(cached) " >&6
10155 else
10156 if test -n "$GCJ_FOR_TARGET"; then
10157 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10158 else
10159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10160 for as_dir in $PATH
10161 do
10162 IFS=$as_save_IFS
10163 test -z "$as_dir" && as_dir=.
10164 for ac_exec_ext in '' $ac_executable_extensions; do
10165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10166 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10168 break 2
10169 fi
10170 done
10171 done
10172 IFS=$as_save_IFS
10173
10174 fi
10175 fi
10176 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10177 if test -n "$GCJ_FOR_TARGET"; then
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10179 $as_echo "$GCJ_FOR_TARGET" >&6; }
10180 else
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10182 $as_echo "no" >&6; }
10183 fi
10184
10185
10186 fi
10187 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10189 set dummy ${ncn_progname}; ac_word=$2
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10191 $as_echo_n "checking for $ac_word... " >&6; }
10192 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10193 $as_echo_n "(cached) " >&6
10194 else
10195 if test -n "$GCJ_FOR_TARGET"; then
10196 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10197 else
10198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10199 for as_dir in $PATH
10200 do
10201 IFS=$as_save_IFS
10202 test -z "$as_dir" && as_dir=.
10203 for ac_exec_ext in '' $ac_executable_extensions; do
10204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10205 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10207 break 2
10208 fi
10209 done
10210 done
10211 IFS=$as_save_IFS
10212
10213 fi
10214 fi
10215 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10216 if test -n "$GCJ_FOR_TARGET"; then
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10218 $as_echo "$GCJ_FOR_TARGET" >&6; }
10219 else
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221 $as_echo "no" >&6; }
10222 fi
10223
10224
10225 fi
10226 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10227 done
10228 fi
10229
10230 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10231 set dummy gcj
10232 if test $build = $target ; then
10233 GCJ_FOR_TARGET="$2"
10234 else
10235 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10236 fi
10237 else
10238 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10239 fi
10240
10241
10242
10243 if test -n "$GFORTRAN_FOR_TARGET"; then
10244 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10245 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10246 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10247 fi
10248
10249 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10250 for ncn_progname in gfortran; do
10251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10252 set dummy ${ncn_progname}; ac_word=$2
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10254 $as_echo_n "checking for $ac_word... " >&6; }
10255 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10256 $as_echo_n "(cached) " >&6
10257 else
10258 if test -n "$GFORTRAN_FOR_TARGET"; then
10259 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10260 else
10261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10262 for as_dir in $PATH
10263 do
10264 IFS=$as_save_IFS
10265 test -z "$as_dir" && as_dir=.
10266 for ac_exec_ext in '' $ac_executable_extensions; do
10267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10268 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10270 break 2
10271 fi
10272 done
10273 done
10274 IFS=$as_save_IFS
10275
10276 fi
10277 fi
10278 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10279 if test -n "$GFORTRAN_FOR_TARGET"; then
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10281 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10282 else
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10284 $as_echo "no" >&6; }
10285 fi
10286
10287
10288 done
10289 fi
10290
10291 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10292 for ncn_progname in gfortran; do
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10294 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10295 if test -x $with_build_time_tools/${ncn_progname}; then
10296 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10298 $as_echo "yes" >&6; }
10299 break
10300 else
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302 $as_echo "no" >&6; }
10303 fi
10304 done
10305 fi
10306
10307 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10308 for ncn_progname in gfortran; do
10309 if test -n "$ncn_target_tool_prefix"; then
10310 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10311 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10313 $as_echo_n "checking for $ac_word... " >&6; }
10314 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10315 $as_echo_n "(cached) " >&6
10316 else
10317 if test -n "$GFORTRAN_FOR_TARGET"; then
10318 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10319 else
10320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10321 for as_dir in $PATH
10322 do
10323 IFS=$as_save_IFS
10324 test -z "$as_dir" && as_dir=.
10325 for ac_exec_ext in '' $ac_executable_extensions; do
10326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10327 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10329 break 2
10330 fi
10331 done
10332 done
10333 IFS=$as_save_IFS
10334
10335 fi
10336 fi
10337 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10338 if test -n "$GFORTRAN_FOR_TARGET"; then
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10340 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10341 else
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10343 $as_echo "no" >&6; }
10344 fi
10345
10346
10347 fi
10348 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10350 set dummy ${ncn_progname}; ac_word=$2
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10352 $as_echo_n "checking for $ac_word... " >&6; }
10353 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10354 $as_echo_n "(cached) " >&6
10355 else
10356 if test -n "$GFORTRAN_FOR_TARGET"; then
10357 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10358 else
10359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10360 for as_dir in $PATH
10361 do
10362 IFS=$as_save_IFS
10363 test -z "$as_dir" && as_dir=.
10364 for ac_exec_ext in '' $ac_executable_extensions; do
10365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10366 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10368 break 2
10369 fi
10370 done
10371 done
10372 IFS=$as_save_IFS
10373
10374 fi
10375 fi
10376 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10377 if test -n "$GFORTRAN_FOR_TARGET"; then
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10379 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10380 else
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10382 $as_echo "no" >&6; }
10383 fi
10384
10385
10386 fi
10387 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10388 done
10389 fi
10390
10391 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10392 set dummy gfortran
10393 if test $build = $target ; then
10394 GFORTRAN_FOR_TARGET="$2"
10395 else
10396 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10397 fi
10398 else
10399 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10400 fi
10401
10402
10403
10404 if test -n "$GOC_FOR_TARGET"; then
10405 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10406 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10407 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10408 fi
10409
10410 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10411 for ncn_progname in gccgo; do
10412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10413 set dummy ${ncn_progname}; ac_word=$2
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10415 $as_echo_n "checking for $ac_word... " >&6; }
10416 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10419 if test -n "$GOC_FOR_TARGET"; then
10420 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10421 else
10422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423 for as_dir in $PATH
10424 do
10425 IFS=$as_save_IFS
10426 test -z "$as_dir" && as_dir=.
10427 for ac_exec_ext in '' $ac_executable_extensions; do
10428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10429 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10431 break 2
10432 fi
10433 done
10434 done
10435 IFS=$as_save_IFS
10436
10437 fi
10438 fi
10439 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10440 if test -n "$GOC_FOR_TARGET"; then
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10442 $as_echo "$GOC_FOR_TARGET" >&6; }
10443 else
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10445 $as_echo "no" >&6; }
10446 fi
10447
10448
10449 done
10450 fi
10451
10452 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10453 for ncn_progname in gccgo; do
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10455 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10456 if test -x $with_build_time_tools/${ncn_progname}; then
10457 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10459 $as_echo "yes" >&6; }
10460 break
10461 else
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10463 $as_echo "no" >&6; }
10464 fi
10465 done
10466 fi
10467
10468 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10469 for ncn_progname in gccgo; do
10470 if test -n "$ncn_target_tool_prefix"; then
10471 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10472 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10474 $as_echo_n "checking for $ac_word... " >&6; }
10475 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10476 $as_echo_n "(cached) " >&6
10477 else
10478 if test -n "$GOC_FOR_TARGET"; then
10479 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10480 else
10481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482 for as_dir in $PATH
10483 do
10484 IFS=$as_save_IFS
10485 test -z "$as_dir" && as_dir=.
10486 for ac_exec_ext in '' $ac_executable_extensions; do
10487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10488 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10490 break 2
10491 fi
10492 done
10493 done
10494 IFS=$as_save_IFS
10495
10496 fi
10497 fi
10498 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10499 if test -n "$GOC_FOR_TARGET"; then
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10501 $as_echo "$GOC_FOR_TARGET" >&6; }
10502 else
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; }
10505 fi
10506
10507
10508 fi
10509 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10510 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10511 set dummy ${ncn_progname}; ac_word=$2
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10513 $as_echo_n "checking for $ac_word... " >&6; }
10514 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10515 $as_echo_n "(cached) " >&6
10516 else
10517 if test -n "$GOC_FOR_TARGET"; then
10518 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10519 else
10520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10521 for as_dir in $PATH
10522 do
10523 IFS=$as_save_IFS
10524 test -z "$as_dir" && as_dir=.
10525 for ac_exec_ext in '' $ac_executable_extensions; do
10526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10527 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10529 break 2
10530 fi
10531 done
10532 done
10533 IFS=$as_save_IFS
10534
10535 fi
10536 fi
10537 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10538 if test -n "$GOC_FOR_TARGET"; then
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10540 $as_echo "$GOC_FOR_TARGET" >&6; }
10541 else
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543 $as_echo "no" >&6; }
10544 fi
10545
10546
10547 fi
10548 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10549 done
10550 fi
10551
10552 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10553 set dummy gccgo
10554 if test $build = $target ; then
10555 GOC_FOR_TARGET="$2"
10556 else
10557 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10558 fi
10559 else
10560 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10561 fi
10562
10563
10564
10565 cat > conftest.c << \EOF
10566 #ifdef __GNUC__
10567 gcc_yay;
10568 #endif
10569 EOF
10570 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10571 have_gcc_for_target=yes
10572 else
10573 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10574 have_gcc_for_target=no
10575 fi
10576 rm conftest.c
10577
10578
10579
10580
10581 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10582 if test -n "$with_build_time_tools"; then
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10584 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10585 if test -x $with_build_time_tools/ar; then
10586 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10587 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10589 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10590 else
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 $as_echo "no" >&6; }
10593 fi
10594 elif test $build != $host && test $have_gcc_for_target = yes; then
10595 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10596 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10597 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10598 fi
10599 fi
10600 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10601 # Extract the first word of "ar", so it can be a program name with args.
10602 set dummy ar; ac_word=$2
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10604 $as_echo_n "checking for $ac_word... " >&6; }
10605 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10606 $as_echo_n "(cached) " >&6
10607 else
10608 case $AR_FOR_TARGET in
10609 [\\/]* | ?:[\\/]*)
10610 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10611 ;;
10612 *)
10613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10614 for as_dir in $gcc_cv_tool_dirs
10615 do
10616 IFS=$as_save_IFS
10617 test -z "$as_dir" && as_dir=.
10618 for ac_exec_ext in '' $ac_executable_extensions; do
10619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10620 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10622 break 2
10623 fi
10624 done
10625 done
10626 IFS=$as_save_IFS
10627
10628 ;;
10629 esac
10630 fi
10631 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10632 if test -n "$AR_FOR_TARGET"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10634 $as_echo "$AR_FOR_TARGET" >&6; }
10635 else
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10638 fi
10639
10640
10641 fi
10642 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10643
10644
10645 if test -n "$AR_FOR_TARGET"; then
10646 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10647 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10648 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10649 fi
10650
10651 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10652 for ncn_progname in ar; do
10653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10654 set dummy ${ncn_progname}; ac_word=$2
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10656 $as_echo_n "checking for $ac_word... " >&6; }
10657 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10658 $as_echo_n "(cached) " >&6
10659 else
10660 if test -n "$AR_FOR_TARGET"; then
10661 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10662 else
10663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664 for as_dir in $PATH
10665 do
10666 IFS=$as_save_IFS
10667 test -z "$as_dir" && as_dir=.
10668 for ac_exec_ext in '' $ac_executable_extensions; do
10669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10670 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10672 break 2
10673 fi
10674 done
10675 done
10676 IFS=$as_save_IFS
10677
10678 fi
10679 fi
10680 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10681 if test -n "$AR_FOR_TARGET"; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10683 $as_echo "$AR_FOR_TARGET" >&6; }
10684 else
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; }
10687 fi
10688
10689
10690 done
10691 fi
10692
10693 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10694 for ncn_progname in ar; do
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10696 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10697 if test -x $with_build_time_tools/${ncn_progname}; then
10698 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10700 $as_echo "yes" >&6; }
10701 break
10702 else
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10704 $as_echo "no" >&6; }
10705 fi
10706 done
10707 fi
10708
10709 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10710 for ncn_progname in ar; do
10711 if test -n "$ncn_target_tool_prefix"; then
10712 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10713 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10715 $as_echo_n "checking for $ac_word... " >&6; }
10716 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 if test -n "$AR_FOR_TARGET"; then
10720 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10721 else
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723 for as_dir in $PATH
10724 do
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10729 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10731 break 2
10732 fi
10733 done
10734 done
10735 IFS=$as_save_IFS
10736
10737 fi
10738 fi
10739 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10740 if test -n "$AR_FOR_TARGET"; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10742 $as_echo "$AR_FOR_TARGET" >&6; }
10743 else
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745 $as_echo "no" >&6; }
10746 fi
10747
10748
10749 fi
10750 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10752 set dummy ${ncn_progname}; ac_word=$2
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10754 $as_echo_n "checking for $ac_word... " >&6; }
10755 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 if test -n "$AR_FOR_TARGET"; then
10759 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10760 else
10761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10762 for as_dir in $PATH
10763 do
10764 IFS=$as_save_IFS
10765 test -z "$as_dir" && as_dir=.
10766 for ac_exec_ext in '' $ac_executable_extensions; do
10767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10768 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10770 break 2
10771 fi
10772 done
10773 done
10774 IFS=$as_save_IFS
10775
10776 fi
10777 fi
10778 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10779 if test -n "$AR_FOR_TARGET"; then
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10781 $as_echo "$AR_FOR_TARGET" >&6; }
10782 else
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10784 $as_echo "no" >&6; }
10785 fi
10786
10787
10788 fi
10789 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10790 done
10791 fi
10792
10793 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10794 set dummy ar
10795 if test $build = $target ; then
10796 AR_FOR_TARGET="$2"
10797 else
10798 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10799 fi
10800 else
10801 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10802 fi
10803
10804 else
10805 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10806 fi
10807
10808
10809
10810
10811 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10812 if test -n "$with_build_time_tools"; then
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10814 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10815 if test -x $with_build_time_tools/as; then
10816 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10817 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10819 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10820 else
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822 $as_echo "no" >&6; }
10823 fi
10824 elif test $build != $host && test $have_gcc_for_target = yes; then
10825 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10826 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10827 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10828 fi
10829 fi
10830 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10831 # Extract the first word of "as", so it can be a program name with args.
10832 set dummy as; ac_word=$2
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10834 $as_echo_n "checking for $ac_word... " >&6; }
10835 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10836 $as_echo_n "(cached) " >&6
10837 else
10838 case $AS_FOR_TARGET in
10839 [\\/]* | ?:[\\/]*)
10840 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10841 ;;
10842 *)
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $gcc_cv_tool_dirs
10845 do
10846 IFS=$as_save_IFS
10847 test -z "$as_dir" && as_dir=.
10848 for ac_exec_ext in '' $ac_executable_extensions; do
10849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10850 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10852 break 2
10853 fi
10854 done
10855 done
10856 IFS=$as_save_IFS
10857
10858 ;;
10859 esac
10860 fi
10861 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10862 if test -n "$AS_FOR_TARGET"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10864 $as_echo "$AS_FOR_TARGET" >&6; }
10865 else
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 $as_echo "no" >&6; }
10868 fi
10869
10870
10871 fi
10872 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10873
10874
10875 if test -n "$AS_FOR_TARGET"; then
10876 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10877 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10878 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10879 fi
10880
10881 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10882 for ncn_progname in as; do
10883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10884 set dummy ${ncn_progname}; ac_word=$2
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10886 $as_echo_n "checking for $ac_word... " >&6; }
10887 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 if test -n "$AS_FOR_TARGET"; then
10891 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10892 else
10893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894 for as_dir in $PATH
10895 do
10896 IFS=$as_save_IFS
10897 test -z "$as_dir" && as_dir=.
10898 for ac_exec_ext in '' $ac_executable_extensions; do
10899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10900 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 break 2
10903 fi
10904 done
10905 done
10906 IFS=$as_save_IFS
10907
10908 fi
10909 fi
10910 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10911 if test -n "$AS_FOR_TARGET"; then
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10913 $as_echo "$AS_FOR_TARGET" >&6; }
10914 else
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10916 $as_echo "no" >&6; }
10917 fi
10918
10919
10920 done
10921 fi
10922
10923 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10924 for ncn_progname in as; do
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10926 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10927 if test -x $with_build_time_tools/${ncn_progname}; then
10928 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10930 $as_echo "yes" >&6; }
10931 break
10932 else
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10934 $as_echo "no" >&6; }
10935 fi
10936 done
10937 fi
10938
10939 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10940 for ncn_progname in as; do
10941 if test -n "$ncn_target_tool_prefix"; then
10942 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10943 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10945 $as_echo_n "checking for $ac_word... " >&6; }
10946 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10947 $as_echo_n "(cached) " >&6
10948 else
10949 if test -n "$AS_FOR_TARGET"; then
10950 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10951 else
10952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953 for as_dir in $PATH
10954 do
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10959 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10961 break 2
10962 fi
10963 done
10964 done
10965 IFS=$as_save_IFS
10966
10967 fi
10968 fi
10969 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10970 if test -n "$AS_FOR_TARGET"; then
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10972 $as_echo "$AS_FOR_TARGET" >&6; }
10973 else
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10975 $as_echo "no" >&6; }
10976 fi
10977
10978
10979 fi
10980 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10982 set dummy ${ncn_progname}; ac_word=$2
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10984 $as_echo_n "checking for $ac_word... " >&6; }
10985 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 if test -n "$AS_FOR_TARGET"; then
10989 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10990 else
10991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10992 for as_dir in $PATH
10993 do
10994 IFS=$as_save_IFS
10995 test -z "$as_dir" && as_dir=.
10996 for ac_exec_ext in '' $ac_executable_extensions; do
10997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10998 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11000 break 2
11001 fi
11002 done
11003 done
11004 IFS=$as_save_IFS
11005
11006 fi
11007 fi
11008 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11009 if test -n "$AS_FOR_TARGET"; then
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11011 $as_echo "$AS_FOR_TARGET" >&6; }
11012 else
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11014 $as_echo "no" >&6; }
11015 fi
11016
11017
11018 fi
11019 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11020 done
11021 fi
11022
11023 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11024 set dummy as
11025 if test $build = $target ; then
11026 AS_FOR_TARGET="$2"
11027 else
11028 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11029 fi
11030 else
11031 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11032 fi
11033
11034 else
11035 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11036 fi
11037
11038
11039
11040
11041 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11042 if test -n "$with_build_time_tools"; then
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11044 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11045 if test -x $with_build_time_tools/dlltool; then
11046 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11047 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11049 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11050 else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11053 fi
11054 elif test $build != $host && test $have_gcc_for_target = yes; then
11055 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11056 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11057 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11058 fi
11059 fi
11060 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11061 # Extract the first word of "dlltool", so it can be a program name with args.
11062 set dummy dlltool; ac_word=$2
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11064 $as_echo_n "checking for $ac_word... " >&6; }
11065 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11066 $as_echo_n "(cached) " >&6
11067 else
11068 case $DLLTOOL_FOR_TARGET in
11069 [\\/]* | ?:[\\/]*)
11070 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11071 ;;
11072 *)
11073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11074 for as_dir in $gcc_cv_tool_dirs
11075 do
11076 IFS=$as_save_IFS
11077 test -z "$as_dir" && as_dir=.
11078 for ac_exec_ext in '' $ac_executable_extensions; do
11079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11080 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11082 break 2
11083 fi
11084 done
11085 done
11086 IFS=$as_save_IFS
11087
11088 ;;
11089 esac
11090 fi
11091 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11092 if test -n "$DLLTOOL_FOR_TARGET"; then
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11094 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11095 else
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11097 $as_echo "no" >&6; }
11098 fi
11099
11100
11101 fi
11102 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11103
11104
11105 if test -n "$DLLTOOL_FOR_TARGET"; then
11106 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11107 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11108 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11109 fi
11110
11111 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11112 for ncn_progname in dlltool; do
11113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11114 set dummy ${ncn_progname}; ac_word=$2
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11116 $as_echo_n "checking for $ac_word... " >&6; }
11117 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11118 $as_echo_n "(cached) " >&6
11119 else
11120 if test -n "$DLLTOOL_FOR_TARGET"; then
11121 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11122 else
11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in $PATH
11125 do
11126 IFS=$as_save_IFS
11127 test -z "$as_dir" && as_dir=.
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11130 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11132 break 2
11133 fi
11134 done
11135 done
11136 IFS=$as_save_IFS
11137
11138 fi
11139 fi
11140 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11141 if test -n "$DLLTOOL_FOR_TARGET"; then
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11143 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11144 else
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146 $as_echo "no" >&6; }
11147 fi
11148
11149
11150 done
11151 fi
11152
11153 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11154 for ncn_progname in dlltool; do
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11156 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11157 if test -x $with_build_time_tools/${ncn_progname}; then
11158 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11160 $as_echo "yes" >&6; }
11161 break
11162 else
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11164 $as_echo "no" >&6; }
11165 fi
11166 done
11167 fi
11168
11169 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11170 for ncn_progname in dlltool; do
11171 if test -n "$ncn_target_tool_prefix"; then
11172 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11173 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11175 $as_echo_n "checking for $ac_word... " >&6; }
11176 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11177 $as_echo_n "(cached) " >&6
11178 else
11179 if test -n "$DLLTOOL_FOR_TARGET"; then
11180 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11181 else
11182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183 for as_dir in $PATH
11184 do
11185 IFS=$as_save_IFS
11186 test -z "$as_dir" && as_dir=.
11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11189 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11191 break 2
11192 fi
11193 done
11194 done
11195 IFS=$as_save_IFS
11196
11197 fi
11198 fi
11199 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11200 if test -n "$DLLTOOL_FOR_TARGET"; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11202 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11203 else
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205 $as_echo "no" >&6; }
11206 fi
11207
11208
11209 fi
11210 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11212 set dummy ${ncn_progname}; ac_word=$2
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11214 $as_echo_n "checking for $ac_word... " >&6; }
11215 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11216 $as_echo_n "(cached) " >&6
11217 else
11218 if test -n "$DLLTOOL_FOR_TARGET"; then
11219 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11220 else
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11223 do
11224 IFS=$as_save_IFS
11225 test -z "$as_dir" && as_dir=.
11226 for ac_exec_ext in '' $ac_executable_extensions; do
11227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11228 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11230 break 2
11231 fi
11232 done
11233 done
11234 IFS=$as_save_IFS
11235
11236 fi
11237 fi
11238 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11239 if test -n "$DLLTOOL_FOR_TARGET"; then
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11241 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11242 else
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11244 $as_echo "no" >&6; }
11245 fi
11246
11247
11248 fi
11249 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11250 done
11251 fi
11252
11253 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11254 set dummy dlltool
11255 if test $build = $target ; then
11256 DLLTOOL_FOR_TARGET="$2"
11257 else
11258 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11259 fi
11260 else
11261 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11262 fi
11263
11264 else
11265 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11266 fi
11267
11268
11269
11270
11271 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11272 if test -n "$with_build_time_tools"; then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11274 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11275 if test -x $with_build_time_tools/ld; then
11276 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11277 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11279 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11280 else
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282 $as_echo "no" >&6; }
11283 fi
11284 elif test $build != $host && test $have_gcc_for_target = yes; then
11285 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11286 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11287 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11288 fi
11289 fi
11290 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11291 # Extract the first word of "ld", so it can be a program name with args.
11292 set dummy ld; ac_word=$2
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11294 $as_echo_n "checking for $ac_word... " >&6; }
11295 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11296 $as_echo_n "(cached) " >&6
11297 else
11298 case $LD_FOR_TARGET in
11299 [\\/]* | ?:[\\/]*)
11300 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11301 ;;
11302 *)
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304 for as_dir in $gcc_cv_tool_dirs
11305 do
11306 IFS=$as_save_IFS
11307 test -z "$as_dir" && as_dir=.
11308 for ac_exec_ext in '' $ac_executable_extensions; do
11309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11310 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11312 break 2
11313 fi
11314 done
11315 done
11316 IFS=$as_save_IFS
11317
11318 ;;
11319 esac
11320 fi
11321 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11322 if test -n "$LD_FOR_TARGET"; then
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11324 $as_echo "$LD_FOR_TARGET" >&6; }
11325 else
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11327 $as_echo "no" >&6; }
11328 fi
11329
11330
11331 fi
11332 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11333
11334
11335 if test -n "$LD_FOR_TARGET"; then
11336 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11337 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11338 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11339 fi
11340
11341 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11342 for ncn_progname in ld; do
11343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11344 set dummy ${ncn_progname}; ac_word=$2
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11346 $as_echo_n "checking for $ac_word... " >&6; }
11347 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11348 $as_echo_n "(cached) " >&6
11349 else
11350 if test -n "$LD_FOR_TARGET"; then
11351 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11352 else
11353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11354 for as_dir in $PATH
11355 do
11356 IFS=$as_save_IFS
11357 test -z "$as_dir" && as_dir=.
11358 for ac_exec_ext in '' $ac_executable_extensions; do
11359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11360 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11362 break 2
11363 fi
11364 done
11365 done
11366 IFS=$as_save_IFS
11367
11368 fi
11369 fi
11370 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11371 if test -n "$LD_FOR_TARGET"; then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11373 $as_echo "$LD_FOR_TARGET" >&6; }
11374 else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376 $as_echo "no" >&6; }
11377 fi
11378
11379
11380 done
11381 fi
11382
11383 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11384 for ncn_progname in ld; do
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11386 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11387 if test -x $with_build_time_tools/${ncn_progname}; then
11388 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11390 $as_echo "yes" >&6; }
11391 break
11392 else
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11394 $as_echo "no" >&6; }
11395 fi
11396 done
11397 fi
11398
11399 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11400 for ncn_progname in ld; do
11401 if test -n "$ncn_target_tool_prefix"; then
11402 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11403 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11405 $as_echo_n "checking for $ac_word... " >&6; }
11406 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11407 $as_echo_n "(cached) " >&6
11408 else
11409 if test -n "$LD_FOR_TARGET"; then
11410 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11411 else
11412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11413 for as_dir in $PATH
11414 do
11415 IFS=$as_save_IFS
11416 test -z "$as_dir" && as_dir=.
11417 for ac_exec_ext in '' $ac_executable_extensions; do
11418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11419 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11421 break 2
11422 fi
11423 done
11424 done
11425 IFS=$as_save_IFS
11426
11427 fi
11428 fi
11429 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11430 if test -n "$LD_FOR_TARGET"; then
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11432 $as_echo "$LD_FOR_TARGET" >&6; }
11433 else
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11435 $as_echo "no" >&6; }
11436 fi
11437
11438
11439 fi
11440 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11442 set dummy ${ncn_progname}; ac_word=$2
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11444 $as_echo_n "checking for $ac_word... " >&6; }
11445 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 if test -n "$LD_FOR_TARGET"; then
11449 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11450 else
11451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452 for as_dir in $PATH
11453 do
11454 IFS=$as_save_IFS
11455 test -z "$as_dir" && as_dir=.
11456 for ac_exec_ext in '' $ac_executable_extensions; do
11457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11458 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11460 break 2
11461 fi
11462 done
11463 done
11464 IFS=$as_save_IFS
11465
11466 fi
11467 fi
11468 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11469 if test -n "$LD_FOR_TARGET"; then
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11471 $as_echo "$LD_FOR_TARGET" >&6; }
11472 else
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474 $as_echo "no" >&6; }
11475 fi
11476
11477
11478 fi
11479 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11480 done
11481 fi
11482
11483 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11484 set dummy ld
11485 if test $build = $target ; then
11486 LD_FOR_TARGET="$2"
11487 else
11488 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11489 fi
11490 else
11491 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11492 fi
11493
11494 else
11495 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11496 fi
11497
11498
11499
11500
11501 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11502 if test -n "$with_build_time_tools"; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11504 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11505 if test -x $with_build_time_tools/lipo; then
11506 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11507 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11509 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11510 else
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11513 fi
11514 elif test $build != $host && test $have_gcc_for_target = yes; then
11515 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11516 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11517 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11518 fi
11519 fi
11520 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11521 # Extract the first word of "lipo", so it can be a program name with args.
11522 set dummy lipo; ac_word=$2
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524 $as_echo_n "checking for $ac_word... " >&6; }
11525 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 case $LIPO_FOR_TARGET in
11529 [\\/]* | ?:[\\/]*)
11530 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11531 ;;
11532 *)
11533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534 for as_dir in $gcc_cv_tool_dirs
11535 do
11536 IFS=$as_save_IFS
11537 test -z "$as_dir" && as_dir=.
11538 for ac_exec_ext in '' $ac_executable_extensions; do
11539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11540 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11542 break 2
11543 fi
11544 done
11545 done
11546 IFS=$as_save_IFS
11547
11548 ;;
11549 esac
11550 fi
11551 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11552 if test -n "$LIPO_FOR_TARGET"; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11554 $as_echo "$LIPO_FOR_TARGET" >&6; }
11555 else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557 $as_echo "no" >&6; }
11558 fi
11559
11560
11561 fi
11562 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11563
11564
11565 if test -n "$LIPO_FOR_TARGET"; then
11566 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11567 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11568 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11569 fi
11570
11571 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11572 for ncn_progname in lipo; do
11573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11574 set dummy ${ncn_progname}; ac_word=$2
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576 $as_echo_n "checking for $ac_word... " >&6; }
11577 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11578 $as_echo_n "(cached) " >&6
11579 else
11580 if test -n "$LIPO_FOR_TARGET"; then
11581 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11582 else
11583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11585 do
11586 IFS=$as_save_IFS
11587 test -z "$as_dir" && as_dir=.
11588 for ac_exec_ext in '' $ac_executable_extensions; do
11589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11590 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 break 2
11593 fi
11594 done
11595 done
11596 IFS=$as_save_IFS
11597
11598 fi
11599 fi
11600 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11601 if test -n "$LIPO_FOR_TARGET"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11603 $as_echo "$LIPO_FOR_TARGET" >&6; }
11604 else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 $as_echo "no" >&6; }
11607 fi
11608
11609
11610 done
11611 fi
11612
11613 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11614 for ncn_progname in lipo; do
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11616 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11617 if test -x $with_build_time_tools/${ncn_progname}; then
11618 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11620 $as_echo "yes" >&6; }
11621 break
11622 else
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11624 $as_echo "no" >&6; }
11625 fi
11626 done
11627 fi
11628
11629 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11630 for ncn_progname in lipo; do
11631 if test -n "$ncn_target_tool_prefix"; then
11632 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11633 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11635 $as_echo_n "checking for $ac_word... " >&6; }
11636 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11637 $as_echo_n "(cached) " >&6
11638 else
11639 if test -n "$LIPO_FOR_TARGET"; then
11640 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11641 else
11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643 for as_dir in $PATH
11644 do
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11649 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11651 break 2
11652 fi
11653 done
11654 done
11655 IFS=$as_save_IFS
11656
11657 fi
11658 fi
11659 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11660 if test -n "$LIPO_FOR_TARGET"; then
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11662 $as_echo "$LIPO_FOR_TARGET" >&6; }
11663 else
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11665 $as_echo "no" >&6; }
11666 fi
11667
11668
11669 fi
11670 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11672 set dummy ${ncn_progname}; ac_word=$2
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674 $as_echo_n "checking for $ac_word... " >&6; }
11675 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11676 $as_echo_n "(cached) " >&6
11677 else
11678 if test -n "$LIPO_FOR_TARGET"; then
11679 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11680 else
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11683 do
11684 IFS=$as_save_IFS
11685 test -z "$as_dir" && as_dir=.
11686 for ac_exec_ext in '' $ac_executable_extensions; do
11687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11688 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11690 break 2
11691 fi
11692 done
11693 done
11694 IFS=$as_save_IFS
11695
11696 fi
11697 fi
11698 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11699 if test -n "$LIPO_FOR_TARGET"; then
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11701 $as_echo "$LIPO_FOR_TARGET" >&6; }
11702 else
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704 $as_echo "no" >&6; }
11705 fi
11706
11707
11708 fi
11709 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11710 done
11711 fi
11712
11713 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11714 set dummy lipo
11715 if test $build = $target ; then
11716 LIPO_FOR_TARGET="$2"
11717 else
11718 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11719 fi
11720 else
11721 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11722 fi
11723
11724 else
11725 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11726 fi
11727
11728
11729
11730
11731 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11732 if test -n "$with_build_time_tools"; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11734 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11735 if test -x $with_build_time_tools/nm; then
11736 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11737 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11739 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11740 else
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11743 fi
11744 elif test $build != $host && test $have_gcc_for_target = yes; then
11745 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11746 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11747 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11748 fi
11749 fi
11750 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11751 # Extract the first word of "nm", so it can be a program name with args.
11752 set dummy nm; ac_word=$2
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11754 $as_echo_n "checking for $ac_word... " >&6; }
11755 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11756 $as_echo_n "(cached) " >&6
11757 else
11758 case $NM_FOR_TARGET in
11759 [\\/]* | ?:[\\/]*)
11760 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11761 ;;
11762 *)
11763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764 for as_dir in $gcc_cv_tool_dirs
11765 do
11766 IFS=$as_save_IFS
11767 test -z "$as_dir" && as_dir=.
11768 for ac_exec_ext in '' $ac_executable_extensions; do
11769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11770 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11772 break 2
11773 fi
11774 done
11775 done
11776 IFS=$as_save_IFS
11777
11778 ;;
11779 esac
11780 fi
11781 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11782 if test -n "$NM_FOR_TARGET"; then
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11784 $as_echo "$NM_FOR_TARGET" >&6; }
11785 else
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11787 $as_echo "no" >&6; }
11788 fi
11789
11790
11791 fi
11792 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11793
11794
11795 if test -n "$NM_FOR_TARGET"; then
11796 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11797 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11798 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11799 fi
11800
11801 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11802 for ncn_progname in nm; do
11803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11804 set dummy ${ncn_progname}; ac_word=$2
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806 $as_echo_n "checking for $ac_word... " >&6; }
11807 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11808 $as_echo_n "(cached) " >&6
11809 else
11810 if test -n "$NM_FOR_TARGET"; then
11811 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11812 else
11813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11814 for as_dir in $PATH
11815 do
11816 IFS=$as_save_IFS
11817 test -z "$as_dir" && as_dir=.
11818 for ac_exec_ext in '' $ac_executable_extensions; do
11819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11820 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11822 break 2
11823 fi
11824 done
11825 done
11826 IFS=$as_save_IFS
11827
11828 fi
11829 fi
11830 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11831 if test -n "$NM_FOR_TARGET"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11833 $as_echo "$NM_FOR_TARGET" >&6; }
11834 else
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11837 fi
11838
11839
11840 done
11841 fi
11842
11843 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11844 for ncn_progname in nm; do
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11846 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11847 if test -x $with_build_time_tools/${ncn_progname}; then
11848 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11850 $as_echo "yes" >&6; }
11851 break
11852 else
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11855 fi
11856 done
11857 fi
11858
11859 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11860 for ncn_progname in nm; do
11861 if test -n "$ncn_target_tool_prefix"; then
11862 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11863 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865 $as_echo_n "checking for $ac_word... " >&6; }
11866 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11867 $as_echo_n "(cached) " >&6
11868 else
11869 if test -n "$NM_FOR_TARGET"; then
11870 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11871 else
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $PATH
11874 do
11875 IFS=$as_save_IFS
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11879 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881 break 2
11882 fi
11883 done
11884 done
11885 IFS=$as_save_IFS
11886
11887 fi
11888 fi
11889 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11890 if test -n "$NM_FOR_TARGET"; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11892 $as_echo "$NM_FOR_TARGET" >&6; }
11893 else
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11896 fi
11897
11898
11899 fi
11900 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11902 set dummy ${ncn_progname}; ac_word=$2
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11904 $as_echo_n "checking for $ac_word... " >&6; }
11905 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11906 $as_echo_n "(cached) " >&6
11907 else
11908 if test -n "$NM_FOR_TARGET"; then
11909 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11910 else
11911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912 for as_dir in $PATH
11913 do
11914 IFS=$as_save_IFS
11915 test -z "$as_dir" && as_dir=.
11916 for ac_exec_ext in '' $ac_executable_extensions; do
11917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11918 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11920 break 2
11921 fi
11922 done
11923 done
11924 IFS=$as_save_IFS
11925
11926 fi
11927 fi
11928 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11929 if test -n "$NM_FOR_TARGET"; then
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11931 $as_echo "$NM_FOR_TARGET" >&6; }
11932 else
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934 $as_echo "no" >&6; }
11935 fi
11936
11937
11938 fi
11939 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11940 done
11941 fi
11942
11943 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11944 set dummy nm
11945 if test $build = $target ; then
11946 NM_FOR_TARGET="$2"
11947 else
11948 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11949 fi
11950 else
11951 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11952 fi
11953
11954 else
11955 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11956 fi
11957
11958
11959
11960
11961 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11962 if test -n "$with_build_time_tools"; then
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11964 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11965 if test -x $with_build_time_tools/objdump; then
11966 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11967 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11969 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11970 else
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11973 fi
11974 elif test $build != $host && test $have_gcc_for_target = yes; then
11975 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11976 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11977 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11978 fi
11979 fi
11980 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11981 # Extract the first word of "objdump", so it can be a program name with args.
11982 set dummy objdump; ac_word=$2
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11984 $as_echo_n "checking for $ac_word... " >&6; }
11985 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11986 $as_echo_n "(cached) " >&6
11987 else
11988 case $OBJDUMP_FOR_TARGET in
11989 [\\/]* | ?:[\\/]*)
11990 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11991 ;;
11992 *)
11993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11994 for as_dir in $gcc_cv_tool_dirs
11995 do
11996 IFS=$as_save_IFS
11997 test -z "$as_dir" && as_dir=.
11998 for ac_exec_ext in '' $ac_executable_extensions; do
11999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12000 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12002 break 2
12003 fi
12004 done
12005 done
12006 IFS=$as_save_IFS
12007
12008 ;;
12009 esac
12010 fi
12011 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12012 if test -n "$OBJDUMP_FOR_TARGET"; then
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12014 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12015 else
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017 $as_echo "no" >&6; }
12018 fi
12019
12020
12021 fi
12022 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12023
12024
12025 if test -n "$OBJDUMP_FOR_TARGET"; then
12026 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12027 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12028 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12029 fi
12030
12031 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12032 for ncn_progname in objdump; do
12033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12034 set dummy ${ncn_progname}; ac_word=$2
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12036 $as_echo_n "checking for $ac_word... " >&6; }
12037 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040 if test -n "$OBJDUMP_FOR_TARGET"; then
12041 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12042 else
12043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044 for as_dir in $PATH
12045 do
12046 IFS=$as_save_IFS
12047 test -z "$as_dir" && as_dir=.
12048 for ac_exec_ext in '' $ac_executable_extensions; do
12049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12050 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12052 break 2
12053 fi
12054 done
12055 done
12056 IFS=$as_save_IFS
12057
12058 fi
12059 fi
12060 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12061 if test -n "$OBJDUMP_FOR_TARGET"; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12063 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12064 else
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 $as_echo "no" >&6; }
12067 fi
12068
12069
12070 done
12071 fi
12072
12073 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12074 for ncn_progname in objdump; do
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12076 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12077 if test -x $with_build_time_tools/${ncn_progname}; then
12078 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12080 $as_echo "yes" >&6; }
12081 break
12082 else
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12085 fi
12086 done
12087 fi
12088
12089 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12090 for ncn_progname in objdump; do
12091 if test -n "$ncn_target_tool_prefix"; then
12092 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12093 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12095 $as_echo_n "checking for $ac_word... " >&6; }
12096 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12097 $as_echo_n "(cached) " >&6
12098 else
12099 if test -n "$OBJDUMP_FOR_TARGET"; then
12100 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12101 else
12102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103 for as_dir in $PATH
12104 do
12105 IFS=$as_save_IFS
12106 test -z "$as_dir" && as_dir=.
12107 for ac_exec_ext in '' $ac_executable_extensions; do
12108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12109 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 break 2
12112 fi
12113 done
12114 done
12115 IFS=$as_save_IFS
12116
12117 fi
12118 fi
12119 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12120 if test -n "$OBJDUMP_FOR_TARGET"; then
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12122 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12123 else
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125 $as_echo "no" >&6; }
12126 fi
12127
12128
12129 fi
12130 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12132 set dummy ${ncn_progname}; ac_word=$2
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12134 $as_echo_n "checking for $ac_word... " >&6; }
12135 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12136 $as_echo_n "(cached) " >&6
12137 else
12138 if test -n "$OBJDUMP_FOR_TARGET"; then
12139 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12140 else
12141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142 for as_dir in $PATH
12143 do
12144 IFS=$as_save_IFS
12145 test -z "$as_dir" && as_dir=.
12146 for ac_exec_ext in '' $ac_executable_extensions; do
12147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12148 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12150 break 2
12151 fi
12152 done
12153 done
12154 IFS=$as_save_IFS
12155
12156 fi
12157 fi
12158 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12159 if test -n "$OBJDUMP_FOR_TARGET"; then
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12161 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12162 else
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164 $as_echo "no" >&6; }
12165 fi
12166
12167
12168 fi
12169 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12170 done
12171 fi
12172
12173 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12174 set dummy objdump
12175 if test $build = $target ; then
12176 OBJDUMP_FOR_TARGET="$2"
12177 else
12178 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12179 fi
12180 else
12181 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12182 fi
12183
12184 else
12185 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12186 fi
12187
12188
12189
12190
12191 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12192 if test -n "$with_build_time_tools"; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12194 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12195 if test -x $with_build_time_tools/ranlib; then
12196 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12197 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12199 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12200 else
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12203 fi
12204 elif test $build != $host && test $have_gcc_for_target = yes; then
12205 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12206 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12207 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12208 fi
12209 fi
12210 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12211 # Extract the first word of "ranlib", so it can be a program name with args.
12212 set dummy ranlib; ac_word=$2
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12214 $as_echo_n "checking for $ac_word... " >&6; }
12215 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12216 $as_echo_n "(cached) " >&6
12217 else
12218 case $RANLIB_FOR_TARGET in
12219 [\\/]* | ?:[\\/]*)
12220 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12221 ;;
12222 *)
12223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12224 for as_dir in $gcc_cv_tool_dirs
12225 do
12226 IFS=$as_save_IFS
12227 test -z "$as_dir" && as_dir=.
12228 for ac_exec_ext in '' $ac_executable_extensions; do
12229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12230 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12232 break 2
12233 fi
12234 done
12235 done
12236 IFS=$as_save_IFS
12237
12238 ;;
12239 esac
12240 fi
12241 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12242 if test -n "$RANLIB_FOR_TARGET"; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12244 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12245 else
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247 $as_echo "no" >&6; }
12248 fi
12249
12250
12251 fi
12252 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12253
12254
12255 if test -n "$RANLIB_FOR_TARGET"; then
12256 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12257 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12258 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12259 fi
12260
12261 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12262 for ncn_progname in ranlib; do
12263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12264 set dummy ${ncn_progname}; ac_word=$2
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12266 $as_echo_n "checking for $ac_word... " >&6; }
12267 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12268 $as_echo_n "(cached) " >&6
12269 else
12270 if test -n "$RANLIB_FOR_TARGET"; then
12271 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12272 else
12273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274 for as_dir in $PATH
12275 do
12276 IFS=$as_save_IFS
12277 test -z "$as_dir" && as_dir=.
12278 for ac_exec_ext in '' $ac_executable_extensions; do
12279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12280 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12282 break 2
12283 fi
12284 done
12285 done
12286 IFS=$as_save_IFS
12287
12288 fi
12289 fi
12290 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12291 if test -n "$RANLIB_FOR_TARGET"; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12293 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12294 else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296 $as_echo "no" >&6; }
12297 fi
12298
12299
12300 done
12301 fi
12302
12303 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12304 for ncn_progname in ranlib; do
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12306 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12307 if test -x $with_build_time_tools/${ncn_progname}; then
12308 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12310 $as_echo "yes" >&6; }
12311 break
12312 else
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314 $as_echo "no" >&6; }
12315 fi
12316 done
12317 fi
12318
12319 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12320 for ncn_progname in ranlib; do
12321 if test -n "$ncn_target_tool_prefix"; then
12322 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12323 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12325 $as_echo_n "checking for $ac_word... " >&6; }
12326 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 if test -n "$RANLIB_FOR_TARGET"; then
12330 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12331 else
12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333 for as_dir in $PATH
12334 do
12335 IFS=$as_save_IFS
12336 test -z "$as_dir" && as_dir=.
12337 for ac_exec_ext in '' $ac_executable_extensions; do
12338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12339 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341 break 2
12342 fi
12343 done
12344 done
12345 IFS=$as_save_IFS
12346
12347 fi
12348 fi
12349 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12350 if test -n "$RANLIB_FOR_TARGET"; then
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12352 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12353 else
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355 $as_echo "no" >&6; }
12356 fi
12357
12358
12359 fi
12360 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12361 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12362 set dummy ${ncn_progname}; ac_word=$2
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364 $as_echo_n "checking for $ac_word... " >&6; }
12365 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 if test -n "$RANLIB_FOR_TARGET"; then
12369 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12370 else
12371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372 for as_dir in $PATH
12373 do
12374 IFS=$as_save_IFS
12375 test -z "$as_dir" && as_dir=.
12376 for ac_exec_ext in '' $ac_executable_extensions; do
12377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12378 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12380 break 2
12381 fi
12382 done
12383 done
12384 IFS=$as_save_IFS
12385
12386 fi
12387 fi
12388 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12389 if test -n "$RANLIB_FOR_TARGET"; then
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12391 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12392 else
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394 $as_echo "no" >&6; }
12395 fi
12396
12397
12398 fi
12399 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12400 done
12401 fi
12402
12403 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12404 set dummy ranlib
12405 if test $build = $target ; then
12406 RANLIB_FOR_TARGET="$2"
12407 else
12408 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12409 fi
12410 else
12411 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12412 fi
12413
12414 else
12415 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12416 fi
12417
12418
12419
12420
12421 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12422 if test -n "$with_build_time_tools"; then
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12424 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12425 if test -x $with_build_time_tools/readelf; then
12426 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12427 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12429 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12430 else
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 $as_echo "no" >&6; }
12433 fi
12434 elif test $build != $host && test $have_gcc_for_target = yes; then
12435 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12436 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12437 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12438 fi
12439 fi
12440 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12441 # Extract the first word of "readelf", so it can be a program name with args.
12442 set dummy readelf; ac_word=$2
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12444 $as_echo_n "checking for $ac_word... " >&6; }
12445 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12446 $as_echo_n "(cached) " >&6
12447 else
12448 case $READELF_FOR_TARGET in
12449 [\\/]* | ?:[\\/]*)
12450 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12451 ;;
12452 *)
12453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454 for as_dir in $gcc_cv_tool_dirs
12455 do
12456 IFS=$as_save_IFS
12457 test -z "$as_dir" && as_dir=.
12458 for ac_exec_ext in '' $ac_executable_extensions; do
12459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12460 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12462 break 2
12463 fi
12464 done
12465 done
12466 IFS=$as_save_IFS
12467
12468 ;;
12469 esac
12470 fi
12471 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12472 if test -n "$READELF_FOR_TARGET"; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12474 $as_echo "$READELF_FOR_TARGET" >&6; }
12475 else
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477 $as_echo "no" >&6; }
12478 fi
12479
12480
12481 fi
12482 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12483
12484
12485 if test -n "$READELF_FOR_TARGET"; then
12486 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12487 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12488 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12489 fi
12490
12491 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12492 for ncn_progname in readelf; do
12493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12494 set dummy ${ncn_progname}; ac_word=$2
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12496 $as_echo_n "checking for $ac_word... " >&6; }
12497 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12498 $as_echo_n "(cached) " >&6
12499 else
12500 if test -n "$READELF_FOR_TARGET"; then
12501 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12502 else
12503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12504 for as_dir in $PATH
12505 do
12506 IFS=$as_save_IFS
12507 test -z "$as_dir" && as_dir=.
12508 for ac_exec_ext in '' $ac_executable_extensions; do
12509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12510 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12512 break 2
12513 fi
12514 done
12515 done
12516 IFS=$as_save_IFS
12517
12518 fi
12519 fi
12520 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12521 if test -n "$READELF_FOR_TARGET"; then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12523 $as_echo "$READELF_FOR_TARGET" >&6; }
12524 else
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 $as_echo "no" >&6; }
12527 fi
12528
12529
12530 done
12531 fi
12532
12533 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12534 for ncn_progname in readelf; do
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12536 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12537 if test -x $with_build_time_tools/${ncn_progname}; then
12538 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12540 $as_echo "yes" >&6; }
12541 break
12542 else
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 $as_echo "no" >&6; }
12545 fi
12546 done
12547 fi
12548
12549 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12550 for ncn_progname in readelf; do
12551 if test -n "$ncn_target_tool_prefix"; then
12552 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12553 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12555 $as_echo_n "checking for $ac_word... " >&6; }
12556 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12557 $as_echo_n "(cached) " >&6
12558 else
12559 if test -n "$READELF_FOR_TARGET"; then
12560 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12561 else
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $PATH
12564 do
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12569 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12571 break 2
12572 fi
12573 done
12574 done
12575 IFS=$as_save_IFS
12576
12577 fi
12578 fi
12579 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12580 if test -n "$READELF_FOR_TARGET"; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12582 $as_echo "$READELF_FOR_TARGET" >&6; }
12583 else
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12586 fi
12587
12588
12589 fi
12590 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12592 set dummy ${ncn_progname}; ac_word=$2
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594 $as_echo_n "checking for $ac_word... " >&6; }
12595 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12596 $as_echo_n "(cached) " >&6
12597 else
12598 if test -n "$READELF_FOR_TARGET"; then
12599 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12600 else
12601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602 for as_dir in $PATH
12603 do
12604 IFS=$as_save_IFS
12605 test -z "$as_dir" && as_dir=.
12606 for ac_exec_ext in '' $ac_executable_extensions; do
12607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12608 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12610 break 2
12611 fi
12612 done
12613 done
12614 IFS=$as_save_IFS
12615
12616 fi
12617 fi
12618 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12619 if test -n "$READELF_FOR_TARGET"; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12621 $as_echo "$READELF_FOR_TARGET" >&6; }
12622 else
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12625 fi
12626
12627
12628 fi
12629 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12630 done
12631 fi
12632
12633 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12634 set dummy readelf
12635 if test $build = $target ; then
12636 READELF_FOR_TARGET="$2"
12637 else
12638 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12639 fi
12640 else
12641 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12642 fi
12643
12644 else
12645 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12646 fi
12647
12648
12649
12650
12651 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12652 if test -n "$with_build_time_tools"; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12654 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12655 if test -x $with_build_time_tools/strip; then
12656 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12657 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12659 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12660 else
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662 $as_echo "no" >&6; }
12663 fi
12664 elif test $build != $host && test $have_gcc_for_target = yes; then
12665 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12666 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12667 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12668 fi
12669 fi
12670 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12671 # Extract the first word of "strip", so it can be a program name with args.
12672 set dummy strip; ac_word=$2
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12674 $as_echo_n "checking for $ac_word... " >&6; }
12675 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12676 $as_echo_n "(cached) " >&6
12677 else
12678 case $STRIP_FOR_TARGET in
12679 [\\/]* | ?:[\\/]*)
12680 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12681 ;;
12682 *)
12683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12684 for as_dir in $gcc_cv_tool_dirs
12685 do
12686 IFS=$as_save_IFS
12687 test -z "$as_dir" && as_dir=.
12688 for ac_exec_ext in '' $ac_executable_extensions; do
12689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12690 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12692 break 2
12693 fi
12694 done
12695 done
12696 IFS=$as_save_IFS
12697
12698 ;;
12699 esac
12700 fi
12701 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12702 if test -n "$STRIP_FOR_TARGET"; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12704 $as_echo "$STRIP_FOR_TARGET" >&6; }
12705 else
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12708 fi
12709
12710
12711 fi
12712 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12713
12714
12715 if test -n "$STRIP_FOR_TARGET"; then
12716 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12717 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12718 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12719 fi
12720
12721 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12722 for ncn_progname in strip; do
12723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12724 set dummy ${ncn_progname}; ac_word=$2
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12726 $as_echo_n "checking for $ac_word... " >&6; }
12727 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12728 $as_echo_n "(cached) " >&6
12729 else
12730 if test -n "$STRIP_FOR_TARGET"; then
12731 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12732 else
12733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12734 for as_dir in $PATH
12735 do
12736 IFS=$as_save_IFS
12737 test -z "$as_dir" && as_dir=.
12738 for ac_exec_ext in '' $ac_executable_extensions; do
12739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12740 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12742 break 2
12743 fi
12744 done
12745 done
12746 IFS=$as_save_IFS
12747
12748 fi
12749 fi
12750 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12751 if test -n "$STRIP_FOR_TARGET"; then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12753 $as_echo "$STRIP_FOR_TARGET" >&6; }
12754 else
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 $as_echo "no" >&6; }
12757 fi
12758
12759
12760 done
12761 fi
12762
12763 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12764 for ncn_progname in strip; do
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12766 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12767 if test -x $with_build_time_tools/${ncn_progname}; then
12768 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12770 $as_echo "yes" >&6; }
12771 break
12772 else
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12774 $as_echo "no" >&6; }
12775 fi
12776 done
12777 fi
12778
12779 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12780 for ncn_progname in strip; do
12781 if test -n "$ncn_target_tool_prefix"; then
12782 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12783 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12785 $as_echo_n "checking for $ac_word... " >&6; }
12786 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12787 $as_echo_n "(cached) " >&6
12788 else
12789 if test -n "$STRIP_FOR_TARGET"; then
12790 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12791 else
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793 for as_dir in $PATH
12794 do
12795 IFS=$as_save_IFS
12796 test -z "$as_dir" && as_dir=.
12797 for ac_exec_ext in '' $ac_executable_extensions; do
12798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12799 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12801 break 2
12802 fi
12803 done
12804 done
12805 IFS=$as_save_IFS
12806
12807 fi
12808 fi
12809 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12810 if test -n "$STRIP_FOR_TARGET"; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12812 $as_echo "$STRIP_FOR_TARGET" >&6; }
12813 else
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815 $as_echo "no" >&6; }
12816 fi
12817
12818
12819 fi
12820 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12822 set dummy ${ncn_progname}; ac_word=$2
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12824 $as_echo_n "checking for $ac_word... " >&6; }
12825 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12826 $as_echo_n "(cached) " >&6
12827 else
12828 if test -n "$STRIP_FOR_TARGET"; then
12829 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12830 else
12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $PATH
12833 do
12834 IFS=$as_save_IFS
12835 test -z "$as_dir" && as_dir=.
12836 for ac_exec_ext in '' $ac_executable_extensions; do
12837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12838 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12840 break 2
12841 fi
12842 done
12843 done
12844 IFS=$as_save_IFS
12845
12846 fi
12847 fi
12848 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12849 if test -n "$STRIP_FOR_TARGET"; then
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12851 $as_echo "$STRIP_FOR_TARGET" >&6; }
12852 else
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12854 $as_echo "no" >&6; }
12855 fi
12856
12857
12858 fi
12859 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12860 done
12861 fi
12862
12863 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12864 set dummy strip
12865 if test $build = $target ; then
12866 STRIP_FOR_TARGET="$2"
12867 else
12868 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12869 fi
12870 else
12871 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12872 fi
12873
12874 else
12875 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12876 fi
12877
12878
12879
12880
12881 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12882 if test -n "$with_build_time_tools"; then
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12884 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12885 if test -x $with_build_time_tools/windres; then
12886 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12887 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12889 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12890 else
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892 $as_echo "no" >&6; }
12893 fi
12894 elif test $build != $host && test $have_gcc_for_target = yes; then
12895 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12896 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12897 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12898 fi
12899 fi
12900 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12901 # Extract the first word of "windres", so it can be a program name with args.
12902 set dummy windres; ac_word=$2
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12904 $as_echo_n "checking for $ac_word... " >&6; }
12905 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12906 $as_echo_n "(cached) " >&6
12907 else
12908 case $WINDRES_FOR_TARGET in
12909 [\\/]* | ?:[\\/]*)
12910 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12911 ;;
12912 *)
12913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12914 for as_dir in $gcc_cv_tool_dirs
12915 do
12916 IFS=$as_save_IFS
12917 test -z "$as_dir" && as_dir=.
12918 for ac_exec_ext in '' $ac_executable_extensions; do
12919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12920 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12922 break 2
12923 fi
12924 done
12925 done
12926 IFS=$as_save_IFS
12927
12928 ;;
12929 esac
12930 fi
12931 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12932 if test -n "$WINDRES_FOR_TARGET"; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12934 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12935 else
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937 $as_echo "no" >&6; }
12938 fi
12939
12940
12941 fi
12942 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12943
12944
12945 if test -n "$WINDRES_FOR_TARGET"; then
12946 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12947 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12948 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12949 fi
12950
12951 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12952 for ncn_progname in windres; do
12953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12954 set dummy ${ncn_progname}; ac_word=$2
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12956 $as_echo_n "checking for $ac_word... " >&6; }
12957 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12958 $as_echo_n "(cached) " >&6
12959 else
12960 if test -n "$WINDRES_FOR_TARGET"; then
12961 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12962 else
12963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12964 for as_dir in $PATH
12965 do
12966 IFS=$as_save_IFS
12967 test -z "$as_dir" && as_dir=.
12968 for ac_exec_ext in '' $ac_executable_extensions; do
12969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12970 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12972 break 2
12973 fi
12974 done
12975 done
12976 IFS=$as_save_IFS
12977
12978 fi
12979 fi
12980 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12981 if test -n "$WINDRES_FOR_TARGET"; then
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12983 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12984 else
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986 $as_echo "no" >&6; }
12987 fi
12988
12989
12990 done
12991 fi
12992
12993 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12994 for ncn_progname in windres; do
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12996 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12997 if test -x $with_build_time_tools/${ncn_progname}; then
12998 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13000 $as_echo "yes" >&6; }
13001 break
13002 else
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13004 $as_echo "no" >&6; }
13005 fi
13006 done
13007 fi
13008
13009 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13010 for ncn_progname in windres; do
13011 if test -n "$ncn_target_tool_prefix"; then
13012 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13013 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13015 $as_echo_n "checking for $ac_word... " >&6; }
13016 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13017 $as_echo_n "(cached) " >&6
13018 else
13019 if test -n "$WINDRES_FOR_TARGET"; then
13020 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13021 else
13022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023 for as_dir in $PATH
13024 do
13025 IFS=$as_save_IFS
13026 test -z "$as_dir" && as_dir=.
13027 for ac_exec_ext in '' $ac_executable_extensions; do
13028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13029 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13031 break 2
13032 fi
13033 done
13034 done
13035 IFS=$as_save_IFS
13036
13037 fi
13038 fi
13039 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13040 if test -n "$WINDRES_FOR_TARGET"; then
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13042 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13043 else
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045 $as_echo "no" >&6; }
13046 fi
13047
13048
13049 fi
13050 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13052 set dummy ${ncn_progname}; ac_word=$2
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13054 $as_echo_n "checking for $ac_word... " >&6; }
13055 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 if test -n "$WINDRES_FOR_TARGET"; then
13059 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13060 else
13061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13062 for as_dir in $PATH
13063 do
13064 IFS=$as_save_IFS
13065 test -z "$as_dir" && as_dir=.
13066 for ac_exec_ext in '' $ac_executable_extensions; do
13067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13068 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13070 break 2
13071 fi
13072 done
13073 done
13074 IFS=$as_save_IFS
13075
13076 fi
13077 fi
13078 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13079 if test -n "$WINDRES_FOR_TARGET"; then
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13081 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13082 else
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084 $as_echo "no" >&6; }
13085 fi
13086
13087
13088 fi
13089 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13090 done
13091 fi
13092
13093 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13094 set dummy windres
13095 if test $build = $target ; then
13096 WINDRES_FOR_TARGET="$2"
13097 else
13098 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13099 fi
13100 else
13101 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13102 fi
13103
13104 else
13105 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13106 fi
13107
13108
13109
13110
13111 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13112 if test -n "$with_build_time_tools"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13114 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13115 if test -x $with_build_time_tools/windmc; then
13116 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13117 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13119 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13120 else
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122 $as_echo "no" >&6; }
13123 fi
13124 elif test $build != $host && test $have_gcc_for_target = yes; then
13125 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13126 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13127 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13128 fi
13129 fi
13130 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13131 # Extract the first word of "windmc", so it can be a program name with args.
13132 set dummy windmc; ac_word=$2
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13134 $as_echo_n "checking for $ac_word... " >&6; }
13135 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13136 $as_echo_n "(cached) " >&6
13137 else
13138 case $WINDMC_FOR_TARGET in
13139 [\\/]* | ?:[\\/]*)
13140 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13141 ;;
13142 *)
13143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144 for as_dir in $gcc_cv_tool_dirs
13145 do
13146 IFS=$as_save_IFS
13147 test -z "$as_dir" && as_dir=.
13148 for ac_exec_ext in '' $ac_executable_extensions; do
13149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13150 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13152 break 2
13153 fi
13154 done
13155 done
13156 IFS=$as_save_IFS
13157
13158 ;;
13159 esac
13160 fi
13161 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13162 if test -n "$WINDMC_FOR_TARGET"; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13164 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13165 else
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13167 $as_echo "no" >&6; }
13168 fi
13169
13170
13171 fi
13172 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13173
13174
13175 if test -n "$WINDMC_FOR_TARGET"; then
13176 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13177 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13178 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13179 fi
13180
13181 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13182 for ncn_progname in windmc; do
13183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13184 set dummy ${ncn_progname}; ac_word=$2
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13186 $as_echo_n "checking for $ac_word... " >&6; }
13187 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13188 $as_echo_n "(cached) " >&6
13189 else
13190 if test -n "$WINDMC_FOR_TARGET"; then
13191 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13192 else
13193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194 for as_dir in $PATH
13195 do
13196 IFS=$as_save_IFS
13197 test -z "$as_dir" && as_dir=.
13198 for ac_exec_ext in '' $ac_executable_extensions; do
13199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13200 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13202 break 2
13203 fi
13204 done
13205 done
13206 IFS=$as_save_IFS
13207
13208 fi
13209 fi
13210 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13211 if test -n "$WINDMC_FOR_TARGET"; then
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13213 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13214 else
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216 $as_echo "no" >&6; }
13217 fi
13218
13219
13220 done
13221 fi
13222
13223 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13224 for ncn_progname in windmc; do
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13226 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13227 if test -x $with_build_time_tools/${ncn_progname}; then
13228 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13230 $as_echo "yes" >&6; }
13231 break
13232 else
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234 $as_echo "no" >&6; }
13235 fi
13236 done
13237 fi
13238
13239 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13240 for ncn_progname in windmc; do
13241 if test -n "$ncn_target_tool_prefix"; then
13242 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13243 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13245 $as_echo_n "checking for $ac_word... " >&6; }
13246 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13247 $as_echo_n "(cached) " >&6
13248 else
13249 if test -n "$WINDMC_FOR_TARGET"; then
13250 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13251 else
13252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253 for as_dir in $PATH
13254 do
13255 IFS=$as_save_IFS
13256 test -z "$as_dir" && as_dir=.
13257 for ac_exec_ext in '' $ac_executable_extensions; do
13258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13259 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13261 break 2
13262 fi
13263 done
13264 done
13265 IFS=$as_save_IFS
13266
13267 fi
13268 fi
13269 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13270 if test -n "$WINDMC_FOR_TARGET"; then
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13272 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13273 else
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13275 $as_echo "no" >&6; }
13276 fi
13277
13278
13279 fi
13280 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13282 set dummy ${ncn_progname}; ac_word=$2
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13284 $as_echo_n "checking for $ac_word... " >&6; }
13285 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13286 $as_echo_n "(cached) " >&6
13287 else
13288 if test -n "$WINDMC_FOR_TARGET"; then
13289 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13290 else
13291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292 for as_dir in $PATH
13293 do
13294 IFS=$as_save_IFS
13295 test -z "$as_dir" && as_dir=.
13296 for ac_exec_ext in '' $ac_executable_extensions; do
13297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13298 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13300 break 2
13301 fi
13302 done
13303 done
13304 IFS=$as_save_IFS
13305
13306 fi
13307 fi
13308 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13309 if test -n "$WINDMC_FOR_TARGET"; then
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13311 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13312 else
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314 $as_echo "no" >&6; }
13315 fi
13316
13317
13318 fi
13319 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13320 done
13321 fi
13322
13323 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13324 set dummy windmc
13325 if test $build = $target ; then
13326 WINDMC_FOR_TARGET="$2"
13327 else
13328 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13329 fi
13330 else
13331 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13332 fi
13333
13334 else
13335 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13336 fi
13337
13338
13339 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13340
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13342 $as_echo_n "checking where to find the target ar... " >&6; }
13343 if test "x${build}" != "x${host}" ; then
13344 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13345 # We already found the complete path
13346 ac_dir=`dirname $AR_FOR_TARGET`
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13348 $as_echo "pre-installed in $ac_dir" >&6; }
13349 else
13350 # Canadian cross, just use what we found
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13352 $as_echo "pre-installed" >&6; }
13353 fi
13354 else
13355 ok=yes
13356 case " ${configdirs} " in
13357 *" binutils "*) ;;
13358 *) ok=no ;;
13359 esac
13360
13361 if test $ok = yes; then
13362 # An in-tree tool is available and we can use it
13363 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13365 $as_echo "just compiled" >&6; }
13366 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13367 # We already found the complete path
13368 ac_dir=`dirname $AR_FOR_TARGET`
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13370 $as_echo "pre-installed in $ac_dir" >&6; }
13371 elif test "x$target" = "x$host"; then
13372 # We can use an host tool
13373 AR_FOR_TARGET='$(AR)'
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13375 $as_echo "host tool" >&6; }
13376 else
13377 # We need a cross tool
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13379 $as_echo "pre-installed" >&6; }
13380 fi
13381 fi
13382
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13384 $as_echo_n "checking where to find the target as... " >&6; }
13385 if test "x${build}" != "x${host}" ; then
13386 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13387 # We already found the complete path
13388 ac_dir=`dirname $AS_FOR_TARGET`
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13390 $as_echo "pre-installed in $ac_dir" >&6; }
13391 else
13392 # Canadian cross, just use what we found
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13394 $as_echo "pre-installed" >&6; }
13395 fi
13396 else
13397 ok=yes
13398 case " ${configdirs} " in
13399 *" gas "*) ;;
13400 *) ok=no ;;
13401 esac
13402
13403 if test $ok = yes; then
13404 # An in-tree tool is available and we can use it
13405 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13407 $as_echo "just compiled" >&6; }
13408 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13409 # We already found the complete path
13410 ac_dir=`dirname $AS_FOR_TARGET`
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13412 $as_echo "pre-installed in $ac_dir" >&6; }
13413 elif test "x$target" = "x$host"; then
13414 # We can use an host tool
13415 AS_FOR_TARGET='$(AS)'
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13417 $as_echo "host tool" >&6; }
13418 else
13419 # We need a cross tool
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13421 $as_echo "pre-installed" >&6; }
13422 fi
13423 fi
13424
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13426 $as_echo_n "checking where to find the target cc... " >&6; }
13427 if test "x${build}" != "x${host}" ; then
13428 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13429 # We already found the complete path
13430 ac_dir=`dirname $CC_FOR_TARGET`
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13432 $as_echo "pre-installed in $ac_dir" >&6; }
13433 else
13434 # Canadian cross, just use what we found
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13436 $as_echo "pre-installed" >&6; }
13437 fi
13438 else
13439 ok=yes
13440 case " ${configdirs} " in
13441 *" gcc "*) ;;
13442 *) ok=no ;;
13443 esac
13444
13445 if test $ok = yes; then
13446 # An in-tree tool is available and we can use it
13447 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13449 $as_echo "just compiled" >&6; }
13450 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13451 # We already found the complete path
13452 ac_dir=`dirname $CC_FOR_TARGET`
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13454 $as_echo "pre-installed in $ac_dir" >&6; }
13455 elif test "x$target" = "x$host"; then
13456 # We can use an host tool
13457 CC_FOR_TARGET='$(CC)'
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13459 $as_echo "host tool" >&6; }
13460 else
13461 # We need a cross tool
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13463 $as_echo "pre-installed" >&6; }
13464 fi
13465 fi
13466
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13468 $as_echo_n "checking where to find the target c++... " >&6; }
13469 if test "x${build}" != "x${host}" ; then
13470 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13471 # We already found the complete path
13472 ac_dir=`dirname $CXX_FOR_TARGET`
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13474 $as_echo "pre-installed in $ac_dir" >&6; }
13475 else
13476 # Canadian cross, just use what we found
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13478 $as_echo "pre-installed" >&6; }
13479 fi
13480 else
13481 ok=yes
13482 case " ${configdirs} " in
13483 *" gcc "*) ;;
13484 *) ok=no ;;
13485 esac
13486 case ,${enable_languages}, in
13487 *,c++,*) ;;
13488 *) ok=no ;;
13489 esac
13490 if test $ok = yes; then
13491 # An in-tree tool is available and we can use it
13492 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -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'
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13494 $as_echo "just compiled" >&6; }
13495 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13496 # We already found the complete path
13497 ac_dir=`dirname $CXX_FOR_TARGET`
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13499 $as_echo "pre-installed in $ac_dir" >&6; }
13500 elif test "x$target" = "x$host"; then
13501 # We can use an host tool
13502 CXX_FOR_TARGET='$(CXX)'
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13504 $as_echo "host tool" >&6; }
13505 else
13506 # We need a cross tool
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13508 $as_echo "pre-installed" >&6; }
13509 fi
13510 fi
13511
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13513 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13514 if test "x${build}" != "x${host}" ; then
13515 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13516 # We already found the complete path
13517 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13519 $as_echo "pre-installed in $ac_dir" >&6; }
13520 else
13521 # Canadian cross, just use what we found
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13523 $as_echo "pre-installed" >&6; }
13524 fi
13525 else
13526 ok=yes
13527 case " ${configdirs} " in
13528 *" gcc "*) ;;
13529 *) ok=no ;;
13530 esac
13531 case ,${enable_languages}, in
13532 *,c++,*) ;;
13533 *) ok=no ;;
13534 esac
13535 if test $ok = yes; then
13536 # An in-tree tool is available and we can use it
13537 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'
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13539 $as_echo "just compiled" >&6; }
13540 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13541 # We already found the complete path
13542 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13544 $as_echo "pre-installed in $ac_dir" >&6; }
13545 elif test "x$target" = "x$host"; then
13546 # We can use an host tool
13547 RAW_CXX_FOR_TARGET='$(CXX)'
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13549 $as_echo "host tool" >&6; }
13550 else
13551 # We need a cross tool
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13553 $as_echo "pre-installed" >&6; }
13554 fi
13555 fi
13556
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13558 $as_echo_n "checking where to find the target dlltool... " >&6; }
13559 if test "x${build}" != "x${host}" ; then
13560 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13561 # We already found the complete path
13562 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13564 $as_echo "pre-installed in $ac_dir" >&6; }
13565 else
13566 # Canadian cross, just use what we found
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13568 $as_echo "pre-installed" >&6; }
13569 fi
13570 else
13571 ok=yes
13572 case " ${configdirs} " in
13573 *" binutils "*) ;;
13574 *) ok=no ;;
13575 esac
13576
13577 if test $ok = yes; then
13578 # An in-tree tool is available and we can use it
13579 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13581 $as_echo "just compiled" >&6; }
13582 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13583 # We already found the complete path
13584 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13586 $as_echo "pre-installed in $ac_dir" >&6; }
13587 elif test "x$target" = "x$host"; then
13588 # We can use an host tool
13589 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13591 $as_echo "host tool" >&6; }
13592 else
13593 # We need a cross tool
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13595 $as_echo "pre-installed" >&6; }
13596 fi
13597 fi
13598
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13600 $as_echo_n "checking where to find the target gcc... " >&6; }
13601 if test "x${build}" != "x${host}" ; then
13602 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13603 # We already found the complete path
13604 ac_dir=`dirname $GCC_FOR_TARGET`
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13606 $as_echo "pre-installed in $ac_dir" >&6; }
13607 else
13608 # Canadian cross, just use what we found
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13610 $as_echo "pre-installed" >&6; }
13611 fi
13612 else
13613 ok=yes
13614 case " ${configdirs} " in
13615 *" gcc "*) ;;
13616 *) ok=no ;;
13617 esac
13618
13619 if test $ok = yes; then
13620 # An in-tree tool is available and we can use it
13621 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13623 $as_echo "just compiled" >&6; }
13624 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13625 # We already found the complete path
13626 ac_dir=`dirname $GCC_FOR_TARGET`
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13628 $as_echo "pre-installed in $ac_dir" >&6; }
13629 elif test "x$target" = "x$host"; then
13630 # We can use an host tool
13631 GCC_FOR_TARGET='$()'
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13633 $as_echo "host tool" >&6; }
13634 else
13635 # We need a cross tool
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13637 $as_echo "pre-installed" >&6; }
13638 fi
13639 fi
13640
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13642 $as_echo_n "checking where to find the target gcj... " >&6; }
13643 if test "x${build}" != "x${host}" ; then
13644 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13645 # We already found the complete path
13646 ac_dir=`dirname $GCJ_FOR_TARGET`
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13648 $as_echo "pre-installed in $ac_dir" >&6; }
13649 else
13650 # Canadian cross, just use what we found
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13652 $as_echo "pre-installed" >&6; }
13653 fi
13654 else
13655 ok=yes
13656 case " ${configdirs} " in
13657 *" gcc "*) ;;
13658 *) ok=no ;;
13659 esac
13660 case ,${enable_languages}, in
13661 *,java,*) ;;
13662 *) ok=no ;;
13663 esac
13664 if test $ok = yes; then
13665 # An in-tree tool is available and we can use it
13666 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13668 $as_echo "just compiled" >&6; }
13669 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13670 # We already found the complete path
13671 ac_dir=`dirname $GCJ_FOR_TARGET`
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13673 $as_echo "pre-installed in $ac_dir" >&6; }
13674 elif test "x$target" = "x$host"; then
13675 # We can use an host tool
13676 GCJ_FOR_TARGET='$(GCJ)'
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13678 $as_echo "host tool" >&6; }
13679 else
13680 # We need a cross tool
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13682 $as_echo "pre-installed" >&6; }
13683 fi
13684 fi
13685
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13687 $as_echo_n "checking where to find the target gfortran... " >&6; }
13688 if test "x${build}" != "x${host}" ; then
13689 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13690 # We already found the complete path
13691 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13693 $as_echo "pre-installed in $ac_dir" >&6; }
13694 else
13695 # Canadian cross, just use what we found
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13697 $as_echo "pre-installed" >&6; }
13698 fi
13699 else
13700 ok=yes
13701 case " ${configdirs} " in
13702 *" gcc "*) ;;
13703 *) ok=no ;;
13704 esac
13705 case ,${enable_languages}, in
13706 *,fortran,*) ;;
13707 *) ok=no ;;
13708 esac
13709 if test $ok = yes; then
13710 # An in-tree tool is available and we can use it
13711 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13713 $as_echo "just compiled" >&6; }
13714 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13715 # We already found the complete path
13716 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13718 $as_echo "pre-installed in $ac_dir" >&6; }
13719 elif test "x$target" = "x$host"; then
13720 # We can use an host tool
13721 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13723 $as_echo "host tool" >&6; }
13724 else
13725 # We need a cross tool
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13727 $as_echo "pre-installed" >&6; }
13728 fi
13729 fi
13730
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13732 $as_echo_n "checking where to find the target gccgo... " >&6; }
13733 if test "x${build}" != "x${host}" ; then
13734 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13735 # We already found the complete path
13736 ac_dir=`dirname $GOC_FOR_TARGET`
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13738 $as_echo "pre-installed in $ac_dir" >&6; }
13739 else
13740 # Canadian cross, just use what we found
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13742 $as_echo "pre-installed" >&6; }
13743 fi
13744 else
13745 ok=yes
13746 case " ${configdirs} " in
13747 *" gcc "*) ;;
13748 *) ok=no ;;
13749 esac
13750 case ,${enable_languages}, in
13751 *,go,*) ;;
13752 *) ok=no ;;
13753 esac
13754 if test $ok = yes; then
13755 # An in-tree tool is available and we can use it
13756 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13758 $as_echo "just compiled" >&6; }
13759 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13760 # We already found the complete path
13761 ac_dir=`dirname $GOC_FOR_TARGET`
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13763 $as_echo "pre-installed in $ac_dir" >&6; }
13764 elif test "x$target" = "x$host"; then
13765 # We can use an host tool
13766 GOC_FOR_TARGET='$(GOC)'
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13768 $as_echo "host tool" >&6; }
13769 else
13770 # We need a cross tool
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13772 $as_echo "pre-installed" >&6; }
13773 fi
13774 fi
13775
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13777 $as_echo_n "checking where to find the target ld... " >&6; }
13778 if test "x${build}" != "x${host}" ; then
13779 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13780 # We already found the complete path
13781 ac_dir=`dirname $LD_FOR_TARGET`
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13783 $as_echo "pre-installed in $ac_dir" >&6; }
13784 else
13785 # Canadian cross, just use what we found
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13787 $as_echo "pre-installed" >&6; }
13788 fi
13789 else
13790 ok=yes
13791 case " ${configdirs} " in
13792 *" ld "*) ;;
13793 *) ok=no ;;
13794 esac
13795
13796 if test $ok = yes; then
13797 # An in-tree tool is available and we can use it
13798 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13800 $as_echo "just compiled" >&6; }
13801 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13802 # We already found the complete path
13803 ac_dir=`dirname $LD_FOR_TARGET`
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13805 $as_echo "pre-installed in $ac_dir" >&6; }
13806 elif test "x$target" = "x$host"; then
13807 # We can use an host tool
13808 LD_FOR_TARGET='$(LD)'
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13810 $as_echo "host tool" >&6; }
13811 else
13812 # We need a cross tool
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13814 $as_echo "pre-installed" >&6; }
13815 fi
13816 fi
13817
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13819 $as_echo_n "checking where to find the target lipo... " >&6; }
13820 if test "x${build}" != "x${host}" ; then
13821 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13822 # We already found the complete path
13823 ac_dir=`dirname $LIPO_FOR_TARGET`
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13825 $as_echo "pre-installed in $ac_dir" >&6; }
13826 else
13827 # Canadian cross, just use what we found
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13829 $as_echo "pre-installed" >&6; }
13830 fi
13831 else
13832 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13833 # We already found the complete path
13834 ac_dir=`dirname $LIPO_FOR_TARGET`
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13836 $as_echo "pre-installed in $ac_dir" >&6; }
13837 elif test "x$target" = "x$host"; then
13838 # We can use an host tool
13839 LIPO_FOR_TARGET='$(LIPO)'
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13841 $as_echo "host tool" >&6; }
13842 else
13843 # We need a cross tool
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13845 $as_echo "pre-installed" >&6; }
13846 fi
13847 fi
13848
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13850 $as_echo_n "checking where to find the target nm... " >&6; }
13851 if test "x${build}" != "x${host}" ; then
13852 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13853 # We already found the complete path
13854 ac_dir=`dirname $NM_FOR_TARGET`
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13856 $as_echo "pre-installed in $ac_dir" >&6; }
13857 else
13858 # Canadian cross, just use what we found
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13860 $as_echo "pre-installed" >&6; }
13861 fi
13862 else
13863 ok=yes
13864 case " ${configdirs} " in
13865 *" binutils "*) ;;
13866 *) ok=no ;;
13867 esac
13868
13869 if test $ok = yes; then
13870 # An in-tree tool is available and we can use it
13871 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13873 $as_echo "just compiled" >&6; }
13874 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13875 # We already found the complete path
13876 ac_dir=`dirname $NM_FOR_TARGET`
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13878 $as_echo "pre-installed in $ac_dir" >&6; }
13879 elif test "x$target" = "x$host"; then
13880 # We can use an host tool
13881 NM_FOR_TARGET='$(NM)'
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13883 $as_echo "host tool" >&6; }
13884 else
13885 # We need a cross tool
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13887 $as_echo "pre-installed" >&6; }
13888 fi
13889 fi
13890
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13892 $as_echo_n "checking where to find the target objdump... " >&6; }
13893 if test "x${build}" != "x${host}" ; then
13894 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13895 # We already found the complete path
13896 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13898 $as_echo "pre-installed in $ac_dir" >&6; }
13899 else
13900 # Canadian cross, just use what we found
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13902 $as_echo "pre-installed" >&6; }
13903 fi
13904 else
13905 ok=yes
13906 case " ${configdirs} " in
13907 *" binutils "*) ;;
13908 *) ok=no ;;
13909 esac
13910
13911 if test $ok = yes; then
13912 # An in-tree tool is available and we can use it
13913 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13915 $as_echo "just compiled" >&6; }
13916 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13917 # We already found the complete path
13918 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13920 $as_echo "pre-installed in $ac_dir" >&6; }
13921 elif test "x$target" = "x$host"; then
13922 # We can use an host tool
13923 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13925 $as_echo "host tool" >&6; }
13926 else
13927 # We need a cross tool
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13929 $as_echo "pre-installed" >&6; }
13930 fi
13931 fi
13932
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13934 $as_echo_n "checking where to find the target ranlib... " >&6; }
13935 if test "x${build}" != "x${host}" ; then
13936 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13937 # We already found the complete path
13938 ac_dir=`dirname $RANLIB_FOR_TARGET`
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13940 $as_echo "pre-installed in $ac_dir" >&6; }
13941 else
13942 # Canadian cross, just use what we found
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13944 $as_echo "pre-installed" >&6; }
13945 fi
13946 else
13947 ok=yes
13948 case " ${configdirs} " in
13949 *" binutils "*) ;;
13950 *) ok=no ;;
13951 esac
13952
13953 if test $ok = yes; then
13954 # An in-tree tool is available and we can use it
13955 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13957 $as_echo "just compiled" >&6; }
13958 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13959 # We already found the complete path
13960 ac_dir=`dirname $RANLIB_FOR_TARGET`
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13962 $as_echo "pre-installed in $ac_dir" >&6; }
13963 elif test "x$target" = "x$host"; then
13964 # We can use an host tool
13965 RANLIB_FOR_TARGET='$(RANLIB)'
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13967 $as_echo "host tool" >&6; }
13968 else
13969 # We need a cross tool
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13971 $as_echo "pre-installed" >&6; }
13972 fi
13973 fi
13974
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
13976 $as_echo_n "checking where to find the target readelf... " >&6; }
13977 if test "x${build}" != "x${host}" ; then
13978 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13979 # We already found the complete path
13980 ac_dir=`dirname $READELF_FOR_TARGET`
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13982 $as_echo "pre-installed in $ac_dir" >&6; }
13983 else
13984 # Canadian cross, just use what we found
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13986 $as_echo "pre-installed" >&6; }
13987 fi
13988 else
13989 ok=yes
13990 case " ${configdirs} " in
13991 *" binutils "*) ;;
13992 *) ok=no ;;
13993 esac
13994
13995 if test $ok = yes; then
13996 # An in-tree tool is available and we can use it
13997 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13999 $as_echo "just compiled" >&6; }
14000 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14001 # We already found the complete path
14002 ac_dir=`dirname $READELF_FOR_TARGET`
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14004 $as_echo "pre-installed in $ac_dir" >&6; }
14005 elif test "x$target" = "x$host"; then
14006 # We can use an host tool
14007 READELF_FOR_TARGET='$(READELF)'
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14009 $as_echo "host tool" >&6; }
14010 else
14011 # We need a cross tool
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14013 $as_echo "pre-installed" >&6; }
14014 fi
14015 fi
14016
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14018 $as_echo_n "checking where to find the target strip... " >&6; }
14019 if test "x${build}" != "x${host}" ; then
14020 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14021 # We already found the complete path
14022 ac_dir=`dirname $STRIP_FOR_TARGET`
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14024 $as_echo "pre-installed in $ac_dir" >&6; }
14025 else
14026 # Canadian cross, just use what we found
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14028 $as_echo "pre-installed" >&6; }
14029 fi
14030 else
14031 ok=yes
14032 case " ${configdirs} " in
14033 *" binutils "*) ;;
14034 *) ok=no ;;
14035 esac
14036
14037 if test $ok = yes; then
14038 # An in-tree tool is available and we can use it
14039 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14041 $as_echo "just compiled" >&6; }
14042 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14043 # We already found the complete path
14044 ac_dir=`dirname $STRIP_FOR_TARGET`
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14046 $as_echo "pre-installed in $ac_dir" >&6; }
14047 elif test "x$target" = "x$host"; then
14048 # We can use an host tool
14049 STRIP_FOR_TARGET='$(STRIP)'
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14051 $as_echo "host tool" >&6; }
14052 else
14053 # We need a cross tool
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14055 $as_echo "pre-installed" >&6; }
14056 fi
14057 fi
14058
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14060 $as_echo_n "checking where to find the target windres... " >&6; }
14061 if test "x${build}" != "x${host}" ; then
14062 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14063 # We already found the complete path
14064 ac_dir=`dirname $WINDRES_FOR_TARGET`
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14066 $as_echo "pre-installed in $ac_dir" >&6; }
14067 else
14068 # Canadian cross, just use what we found
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14070 $as_echo "pre-installed" >&6; }
14071 fi
14072 else
14073 ok=yes
14074 case " ${configdirs} " in
14075 *" binutils "*) ;;
14076 *) ok=no ;;
14077 esac
14078
14079 if test $ok = yes; then
14080 # An in-tree tool is available and we can use it
14081 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14083 $as_echo "just compiled" >&6; }
14084 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14085 # We already found the complete path
14086 ac_dir=`dirname $WINDRES_FOR_TARGET`
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14088 $as_echo "pre-installed in $ac_dir" >&6; }
14089 elif test "x$target" = "x$host"; then
14090 # We can use an host tool
14091 WINDRES_FOR_TARGET='$(WINDRES)'
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14093 $as_echo "host tool" >&6; }
14094 else
14095 # We need a cross tool
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14097 $as_echo "pre-installed" >&6; }
14098 fi
14099 fi
14100
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14102 $as_echo_n "checking where to find the target windmc... " >&6; }
14103 if test "x${build}" != "x${host}" ; then
14104 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14105 # We already found the complete path
14106 ac_dir=`dirname $WINDMC_FOR_TARGET`
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14108 $as_echo "pre-installed in $ac_dir" >&6; }
14109 else
14110 # Canadian cross, just use what we found
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14112 $as_echo "pre-installed" >&6; }
14113 fi
14114 else
14115 ok=yes
14116 case " ${configdirs} " in
14117 *" binutils "*) ;;
14118 *) ok=no ;;
14119 esac
14120
14121 if test $ok = yes; then
14122 # An in-tree tool is available and we can use it
14123 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14125 $as_echo "just compiled" >&6; }
14126 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14127 # We already found the complete path
14128 ac_dir=`dirname $WINDMC_FOR_TARGET`
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14130 $as_echo "pre-installed in $ac_dir" >&6; }
14131 elif test "x$target" = "x$host"; then
14132 # We can use an host tool
14133 WINDMC_FOR_TARGET='$(WINDMC)'
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14135 $as_echo "host tool" >&6; }
14136 else
14137 # We need a cross tool
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14139 $as_echo "pre-installed" >&6; }
14140 fi
14141 fi
14142
14143
14144
14145
14146
14147 # Certain tools may need extra flags.
14148 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14149 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14150 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14151
14152 # When building target libraries, except in a Canadian cross, we use
14153 # the same toolchain as the compiler we just built.
14154 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14155 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14156 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14157 if test $host = $build; then
14158 case " $configdirs " in
14159 *" gcc "*)
14160 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14161 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14162 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14163 ;;
14164 esac
14165 fi
14166
14167
14168
14169
14170
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14172 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14173 # Check whether --enable-maintainer-mode was given.
14174 if test "${enable_maintainer_mode+set}" = set; then :
14175 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14176 else
14177 USE_MAINTAINER_MODE=no
14178 fi
14179
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14181 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14182
14183
14184 if test "$USE_MAINTAINER_MODE" = yes; then
14185 MAINTAINER_MODE_TRUE=
14186 MAINTAINER_MODE_FALSE='#'
14187 else
14188 MAINTAINER_MODE_TRUE='#'
14189 MAINTAINER_MODE_FALSE=
14190 fi
14191 MAINT=$MAINTAINER_MODE_TRUE
14192
14193 # ---------------------
14194 # GCC bootstrap support
14195 # ---------------------
14196
14197 # Stage specific cflags for build.
14198 stage1_cflags="-g"
14199 case $build in
14200 vax-*-*)
14201 case ${GCC} in
14202 yes) stage1_cflags="-g -Wa,-J" ;;
14203 *) stage1_cflags="-g -J" ;;
14204 esac ;;
14205 esac
14206
14207 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14208 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14209 saved_CFLAGS="$CFLAGS"
14210
14211 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14212 CFLAGS="$CFLAGS -fkeep-inline-functions"
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14214 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14217
14218 #if (__GNUC__ < 3) \
14219 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14220 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14221 #error http://gcc.gnu.org/PR29382
14222 #endif
14223
14224 int
14225 main ()
14226 {
14227
14228 ;
14229 return 0;
14230 }
14231 _ACEOF
14232 if ac_fn_c_try_compile "$LINENO"; then :
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14234 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14235 else
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237 $as_echo "no" >&6; }
14238 fi
14239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14240
14241 CFLAGS="$saved_CFLAGS"
14242 fi
14243
14244
14245
14246 # Enable --enable-checking in stage1 of the compiler.
14247 # Check whether --enable-stage1-checking was given.
14248 if test "${enable_stage1_checking+set}" = set; then :
14249 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14250 else
14251 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14252 stage1_checking=--enable-checking=yes,types
14253 else
14254 stage1_checking=--enable-checking=$enable_checking,types
14255 fi
14256 fi
14257
14258
14259
14260 # Enable -Werror in bootstrap stage2 and later.
14261 # Check whether --enable-werror was given.
14262 if test "${enable_werror+set}" = set; then :
14263 enableval=$enable_werror;
14264 else
14265 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14266 enable_werror=yes
14267 else
14268 enable_werror=no
14269 fi
14270 fi
14271
14272 case ${enable_werror} in
14273 yes) stage2_werror_flag="--enable-werror-always" ;;
14274 *) stage2_werror_flag="" ;;
14275 esac
14276
14277
14278 # If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass
14279 # --enable-build-with-cxx after stage1.
14280 if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
14281 POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx
14282 else
14283 POSTSTAGE1_CONFIGURE_FLAGS=
14284 fi
14285
14286
14287 # Specify what files to not compare during bootstrap.
14288
14289 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14290 case "$target" in
14291 hppa*64*-*-hpux*) ;;
14292 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14293 esac
14294
14295
14296 ac_config_files="$ac_config_files Makefile"
14297
14298 cat >confcache <<\_ACEOF
14299 # This file is a shell script that caches the results of configure
14300 # tests run on this system so they can be shared between configure
14301 # scripts and configure runs, see configure's option --config-cache.
14302 # It is not useful on other systems. If it contains results you don't
14303 # want to keep, you may remove or edit it.
14304 #
14305 # config.status only pays attention to the cache file if you give it
14306 # the --recheck option to rerun configure.
14307 #
14308 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14309 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14310 # following values.
14311
14312 _ACEOF
14313
14314 # The following way of writing the cache mishandles newlines in values,
14315 # but we know of no workaround that is simple, portable, and efficient.
14316 # So, we kill variables containing newlines.
14317 # Ultrix sh set writes to stderr and can't be redirected directly,
14318 # and sets the high bit in the cache file unless we assign to the vars.
14319 (
14320 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14321 eval ac_val=\$$ac_var
14322 case $ac_val in #(
14323 *${as_nl}*)
14324 case $ac_var in #(
14325 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14326 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14327 esac
14328 case $ac_var in #(
14329 _ | IFS | as_nl) ;; #(
14330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14331 *) { eval $ac_var=; unset $ac_var;} ;;
14332 esac ;;
14333 esac
14334 done
14335
14336 (set) 2>&1 |
14337 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14338 *${as_nl}ac_space=\ *)
14339 # `set' does not quote correctly, so add quotes: double-quote
14340 # substitution turns \\\\ into \\, and sed turns \\ into \.
14341 sed -n \
14342 "s/'/'\\\\''/g;
14343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14344 ;; #(
14345 *)
14346 # `set' quotes correctly as required by POSIX, so do not add quotes.
14347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14348 ;;
14349 esac |
14350 sort
14351 ) |
14352 sed '
14353 /^ac_cv_env_/b end
14354 t clear
14355 :clear
14356 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14357 t end
14358 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14359 :end' >>confcache
14360 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14361 if test -w "$cache_file"; then
14362 test "x$cache_file" != "x/dev/null" &&
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14364 $as_echo "$as_me: updating cache $cache_file" >&6;}
14365 cat confcache >$cache_file
14366 else
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14368 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14369 fi
14370 fi
14371 rm -f confcache
14372
14373 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14374 # Let make expand exec_prefix.
14375 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14376
14377 # Transform confdefs.h into DEFS.
14378 # Protect against shell expansion while executing Makefile rules.
14379 # Protect against Makefile macro expansion.
14380 #
14381 # If the first sed substitution is executed (which looks for macros that
14382 # take arguments), then branch to the quote section. Otherwise,
14383 # look for a macro that doesn't take arguments.
14384 ac_script='
14385 :mline
14386 /\\$/{
14387 N
14388 s,\\\n,,
14389 b mline
14390 }
14391 t clear
14392 :clear
14393 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14394 t quote
14395 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14396 t quote
14397 b any
14398 :quote
14399 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14400 s/\[/\\&/g
14401 s/\]/\\&/g
14402 s/\$/$$/g
14403 H
14404 :any
14405 ${
14406 g
14407 s/^\n//
14408 s/\n/ /g
14409 p
14410 }
14411 '
14412 DEFS=`sed -n "$ac_script" confdefs.h`
14413
14414
14415 ac_libobjs=
14416 ac_ltlibobjs=
14417 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14418 # 1. Remove the extension, and $U if already installed.
14419 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14420 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14421 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14422 # will be set to the directory where LIBOBJS objects are built.
14423 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14424 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14425 done
14426 LIBOBJS=$ac_libobjs
14427
14428 LTLIBOBJS=$ac_ltlibobjs
14429
14430
14431
14432 : ${CONFIG_STATUS=./config.status}
14433 ac_write_fail=0
14434 ac_clean_files_save=$ac_clean_files
14435 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14437 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14438 as_write_fail=0
14439 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14440 #! $SHELL
14441 # Generated by $as_me.
14442 # Run this file to recreate the current configuration.
14443 # Compiler output produced by configure, useful for debugging
14444 # configure, is in config.log if it exists.
14445
14446 debug=false
14447 ac_cs_recheck=false
14448 ac_cs_silent=false
14449
14450 SHELL=\${CONFIG_SHELL-$SHELL}
14451 export SHELL
14452 _ASEOF
14453 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14454 ## -------------------- ##
14455 ## M4sh Initialization. ##
14456 ## -------------------- ##
14457
14458 # Be more Bourne compatible
14459 DUALCASE=1; export DUALCASE # for MKS sh
14460 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14461 emulate sh
14462 NULLCMD=:
14463 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14464 # is contrary to our usage. Disable this feature.
14465 alias -g '${1+"$@"}'='"$@"'
14466 setopt NO_GLOB_SUBST
14467 else
14468 case `(set -o) 2>/dev/null` in #(
14469 *posix*) :
14470 set -o posix ;; #(
14471 *) :
14472 ;;
14473 esac
14474 fi
14475
14476
14477 as_nl='
14478 '
14479 export as_nl
14480 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14481 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14482 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14483 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14484 # Prefer a ksh shell builtin over an external printf program on Solaris,
14485 # but without wasting forks for bash or zsh.
14486 if test -z "$BASH_VERSION$ZSH_VERSION" \
14487 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14488 as_echo='print -r --'
14489 as_echo_n='print -rn --'
14490 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14491 as_echo='printf %s\n'
14492 as_echo_n='printf %s'
14493 else
14494 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14495 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14496 as_echo_n='/usr/ucb/echo -n'
14497 else
14498 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14499 as_echo_n_body='eval
14500 arg=$1;
14501 case $arg in #(
14502 *"$as_nl"*)
14503 expr "X$arg" : "X\\(.*\\)$as_nl";
14504 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14505 esac;
14506 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14507 '
14508 export as_echo_n_body
14509 as_echo_n='sh -c $as_echo_n_body as_echo'
14510 fi
14511 export as_echo_body
14512 as_echo='sh -c $as_echo_body as_echo'
14513 fi
14514
14515 # The user is always right.
14516 if test "${PATH_SEPARATOR+set}" != set; then
14517 PATH_SEPARATOR=:
14518 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14519 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14520 PATH_SEPARATOR=';'
14521 }
14522 fi
14523
14524
14525 # IFS
14526 # We need space, tab and new line, in precisely that order. Quoting is
14527 # there to prevent editors from complaining about space-tab.
14528 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14529 # splitting by setting IFS to empty value.)
14530 IFS=" "" $as_nl"
14531
14532 # Find who we are. Look in the path if we contain no directory separator.
14533 case $0 in #((
14534 *[\\/]* ) as_myself=$0 ;;
14535 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14536 for as_dir in $PATH
14537 do
14538 IFS=$as_save_IFS
14539 test -z "$as_dir" && as_dir=.
14540 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14541 done
14542 IFS=$as_save_IFS
14543
14544 ;;
14545 esac
14546 # We did not find ourselves, most probably we were run as `sh COMMAND'
14547 # in which case we are not to be found in the path.
14548 if test "x$as_myself" = x; then
14549 as_myself=$0
14550 fi
14551 if test ! -f "$as_myself"; then
14552 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14553 exit 1
14554 fi
14555
14556 # Unset variables that we do not need and which cause bugs (e.g. in
14557 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14558 # suppresses any "Segmentation fault" message there. '((' could
14559 # trigger a bug in pdksh 5.2.14.
14560 for as_var in BASH_ENV ENV MAIL MAILPATH
14561 do eval test x\${$as_var+set} = xset \
14562 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14563 done
14564 PS1='$ '
14565 PS2='> '
14566 PS4='+ '
14567
14568 # NLS nuisances.
14569 LC_ALL=C
14570 export LC_ALL
14571 LANGUAGE=C
14572 export LANGUAGE
14573
14574 # CDPATH.
14575 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14576
14577
14578 # as_fn_error ERROR [LINENO LOG_FD]
14579 # ---------------------------------
14580 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14581 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14582 # script with status $?, using 1 if that was 0.
14583 as_fn_error ()
14584 {
14585 as_status=$?; test $as_status -eq 0 && as_status=1
14586 if test "$3"; then
14587 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14588 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14589 fi
14590 $as_echo "$as_me: error: $1" >&2
14591 as_fn_exit $as_status
14592 } # as_fn_error
14593
14594
14595 # as_fn_set_status STATUS
14596 # -----------------------
14597 # Set $? to STATUS, without forking.
14598 as_fn_set_status ()
14599 {
14600 return $1
14601 } # as_fn_set_status
14602
14603 # as_fn_exit STATUS
14604 # -----------------
14605 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14606 as_fn_exit ()
14607 {
14608 set +e
14609 as_fn_set_status $1
14610 exit $1
14611 } # as_fn_exit
14612
14613 # as_fn_unset VAR
14614 # ---------------
14615 # Portably unset VAR.
14616 as_fn_unset ()
14617 {
14618 { eval $1=; unset $1;}
14619 }
14620 as_unset=as_fn_unset
14621 # as_fn_append VAR VALUE
14622 # ----------------------
14623 # Append the text in VALUE to the end of the definition contained in VAR. Take
14624 # advantage of any shell optimizations that allow amortized linear growth over
14625 # repeated appends, instead of the typical quadratic growth present in naive
14626 # implementations.
14627 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14628 eval 'as_fn_append ()
14629 {
14630 eval $1+=\$2
14631 }'
14632 else
14633 as_fn_append ()
14634 {
14635 eval $1=\$$1\$2
14636 }
14637 fi # as_fn_append
14638
14639 # as_fn_arith ARG...
14640 # ------------------
14641 # Perform arithmetic evaluation on the ARGs, and store the result in the
14642 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14643 # must be portable across $(()) and expr.
14644 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14645 eval 'as_fn_arith ()
14646 {
14647 as_val=$(( $* ))
14648 }'
14649 else
14650 as_fn_arith ()
14651 {
14652 as_val=`expr "$@" || test $? -eq 1`
14653 }
14654 fi # as_fn_arith
14655
14656
14657 if expr a : '\(a\)' >/dev/null 2>&1 &&
14658 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14659 as_expr=expr
14660 else
14661 as_expr=false
14662 fi
14663
14664 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14665 as_basename=basename
14666 else
14667 as_basename=false
14668 fi
14669
14670 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14671 as_dirname=dirname
14672 else
14673 as_dirname=false
14674 fi
14675
14676 as_me=`$as_basename -- "$0" ||
14677 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14678 X"$0" : 'X\(//\)$' \| \
14679 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14680 $as_echo X/"$0" |
14681 sed '/^.*\/\([^/][^/]*\)\/*$/{
14682 s//\1/
14683 q
14684 }
14685 /^X\/\(\/\/\)$/{
14686 s//\1/
14687 q
14688 }
14689 /^X\/\(\/\).*/{
14690 s//\1/
14691 q
14692 }
14693 s/.*/./; q'`
14694
14695 # Avoid depending upon Character Ranges.
14696 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14697 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14698 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14699 as_cr_digits='0123456789'
14700 as_cr_alnum=$as_cr_Letters$as_cr_digits
14701
14702 ECHO_C= ECHO_N= ECHO_T=
14703 case `echo -n x` in #(((((
14704 -n*)
14705 case `echo 'xy\c'` in
14706 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14707 xy) ECHO_C='\c';;
14708 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14709 ECHO_T=' ';;
14710 esac;;
14711 *)
14712 ECHO_N='-n';;
14713 esac
14714
14715 rm -f conf$$ conf$$.exe conf$$.file
14716 if test -d conf$$.dir; then
14717 rm -f conf$$.dir/conf$$.file
14718 else
14719 rm -f conf$$.dir
14720 mkdir conf$$.dir 2>/dev/null
14721 fi
14722 if (echo >conf$$.file) 2>/dev/null; then
14723 if ln -s conf$$.file conf$$ 2>/dev/null; then
14724 as_ln_s='ln -s'
14725 # ... but there are two gotchas:
14726 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14727 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14728 # In both cases, we have to default to `cp -p'.
14729 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14730 as_ln_s='cp -p'
14731 elif ln conf$$.file conf$$ 2>/dev/null; then
14732 as_ln_s=ln
14733 else
14734 as_ln_s='cp -p'
14735 fi
14736 else
14737 as_ln_s='cp -p'
14738 fi
14739 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14740 rmdir conf$$.dir 2>/dev/null
14741
14742
14743 # as_fn_mkdir_p
14744 # -------------
14745 # Create "$as_dir" as a directory, including parents if necessary.
14746 as_fn_mkdir_p ()
14747 {
14748
14749 case $as_dir in #(
14750 -*) as_dir=./$as_dir;;
14751 esac
14752 test -d "$as_dir" || eval $as_mkdir_p || {
14753 as_dirs=
14754 while :; do
14755 case $as_dir in #(
14756 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14757 *) as_qdir=$as_dir;;
14758 esac
14759 as_dirs="'$as_qdir' $as_dirs"
14760 as_dir=`$as_dirname -- "$as_dir" ||
14761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14762 X"$as_dir" : 'X\(//\)[^/]' \| \
14763 X"$as_dir" : 'X\(//\)$' \| \
14764 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14765 $as_echo X"$as_dir" |
14766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14767 s//\1/
14768 q
14769 }
14770 /^X\(\/\/\)[^/].*/{
14771 s//\1/
14772 q
14773 }
14774 /^X\(\/\/\)$/{
14775 s//\1/
14776 q
14777 }
14778 /^X\(\/\).*/{
14779 s//\1/
14780 q
14781 }
14782 s/.*/./; q'`
14783 test -d "$as_dir" && break
14784 done
14785 test -z "$as_dirs" || eval "mkdir $as_dirs"
14786 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14787
14788
14789 } # as_fn_mkdir_p
14790 if mkdir -p . 2>/dev/null; then
14791 as_mkdir_p='mkdir -p "$as_dir"'
14792 else
14793 test -d ./-p && rmdir ./-p
14794 as_mkdir_p=false
14795 fi
14796
14797 if test -x / >/dev/null 2>&1; then
14798 as_test_x='test -x'
14799 else
14800 if ls -dL / >/dev/null 2>&1; then
14801 as_ls_L_option=L
14802 else
14803 as_ls_L_option=
14804 fi
14805 as_test_x='
14806 eval sh -c '\''
14807 if test -d "$1"; then
14808 test -d "$1/.";
14809 else
14810 case $1 in #(
14811 -*)set "./$1";;
14812 esac;
14813 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14814 ???[sx]*):;;*)false;;esac;fi
14815 '\'' sh
14816 '
14817 fi
14818 as_executable_p=$as_test_x
14819
14820 # Sed expression to map a string onto a valid CPP name.
14821 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14822
14823 # Sed expression to map a string onto a valid variable name.
14824 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14825
14826
14827 exec 6>&1
14828 ## ----------------------------------- ##
14829 ## Main body of $CONFIG_STATUS script. ##
14830 ## ----------------------------------- ##
14831 _ASEOF
14832 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14833
14834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14835 # Save the log message, to keep $0 and so on meaningful, and to
14836 # report actual input values of CONFIG_FILES etc. instead of their
14837 # values after options handling.
14838 ac_log="
14839 This file was extended by $as_me, which was
14840 generated by GNU Autoconf 2.64. Invocation command line was
14841
14842 CONFIG_FILES = $CONFIG_FILES
14843 CONFIG_HEADERS = $CONFIG_HEADERS
14844 CONFIG_LINKS = $CONFIG_LINKS
14845 CONFIG_COMMANDS = $CONFIG_COMMANDS
14846 $ $0 $@
14847
14848 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14849 "
14850
14851 _ACEOF
14852
14853 case $ac_config_files in *"
14854 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14855 esac
14856
14857
14858
14859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14860 # Files that config.status was made for.
14861 config_files="$ac_config_files"
14862
14863 _ACEOF
14864
14865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14866 ac_cs_usage="\
14867 \`$as_me' instantiates files and other configuration actions
14868 from templates according to the current configuration. Unless the files
14869 and actions are specified as TAGs, all are instantiated by default.
14870
14871 Usage: $0 [OPTION]... [TAG]...
14872
14873 -h, --help print this help, then exit
14874 -V, --version print version number and configuration settings, then exit
14875 -q, --quiet, --silent
14876 do not print progress messages
14877 -d, --debug don't remove temporary files
14878 --recheck update $as_me by reconfiguring in the same conditions
14879 --file=FILE[:TEMPLATE]
14880 instantiate the configuration file FILE
14881
14882 Configuration files:
14883 $config_files
14884
14885 Report bugs to the package provider."
14886
14887 _ACEOF
14888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14889 ac_cs_version="\\
14890 config.status
14891 configured by $0, generated by GNU Autoconf 2.64,
14892 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14893
14894 Copyright (C) 2009 Free Software Foundation, Inc.
14895 This config.status script is free software; the Free Software Foundation
14896 gives unlimited permission to copy, distribute and modify it."
14897
14898 ac_pwd='$ac_pwd'
14899 srcdir='$srcdir'
14900 INSTALL='$INSTALL'
14901 AWK='$AWK'
14902 test -n "\$AWK" || AWK=awk
14903 _ACEOF
14904
14905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14906 # The default lists apply if the user does not specify any file.
14907 ac_need_defaults=:
14908 while test $# != 0
14909 do
14910 case $1 in
14911 --*=*)
14912 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14913 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14914 ac_shift=:
14915 ;;
14916 *)
14917 ac_option=$1
14918 ac_optarg=$2
14919 ac_shift=shift
14920 ;;
14921 esac
14922
14923 case $ac_option in
14924 # Handling of the options.
14925 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14926 ac_cs_recheck=: ;;
14927 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14928 $as_echo "$ac_cs_version"; exit ;;
14929 --debug | --debu | --deb | --de | --d | -d )
14930 debug=: ;;
14931 --file | --fil | --fi | --f )
14932 $ac_shift
14933 case $ac_optarg in
14934 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14935 esac
14936 as_fn_append CONFIG_FILES " '$ac_optarg'"
14937 ac_need_defaults=false;;
14938 --he | --h | --help | --hel | -h )
14939 $as_echo "$ac_cs_usage"; exit ;;
14940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14941 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14942 ac_cs_silent=: ;;
14943
14944 # This is an error.
14945 -*) as_fn_error "unrecognized option: \`$1'
14946 Try \`$0 --help' for more information." ;;
14947
14948 *) as_fn_append ac_config_targets " $1"
14949 ac_need_defaults=false ;;
14950
14951 esac
14952 shift
14953 done
14954
14955 ac_configure_extra_args=
14956
14957 if $ac_cs_silent; then
14958 exec 6>/dev/null
14959 ac_configure_extra_args="$ac_configure_extra_args --silent"
14960 fi
14961
14962 _ACEOF
14963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14964 if \$ac_cs_recheck; then
14965 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14966 shift
14967 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14968 CONFIG_SHELL='$SHELL'
14969 export CONFIG_SHELL
14970 exec "\$@"
14971 fi
14972
14973 _ACEOF
14974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14975 exec 5>>config.log
14976 {
14977 echo
14978 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14979 ## Running $as_me. ##
14980 _ASBOX
14981 $as_echo "$ac_log"
14982 } >&5
14983
14984 _ACEOF
14985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14986 #
14987 # INIT-COMMANDS
14988 #
14989 extrasub_build="$extrasub_build"
14990 extrasub_host="$extrasub_host"
14991 extrasub_target="$extrasub_target"
14992
14993 _ACEOF
14994
14995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14996
14997 # Handling of arguments.
14998 for ac_config_target in $ac_config_targets
14999 do
15000 case $ac_config_target in
15001 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15002
15003 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15004 esac
15005 done
15006
15007
15008 # If the user did not use the arguments to specify the items to instantiate,
15009 # then the envvar interface is used. Set only those that are not.
15010 # We use the long form for the default assignment because of an extremely
15011 # bizarre bug on SunOS 4.1.3.
15012 if $ac_need_defaults; then
15013 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15014 fi
15015
15016 # Have a temporary directory for convenience. Make it in the build tree
15017 # simply because there is no reason against having it here, and in addition,
15018 # creating and moving files from /tmp can sometimes cause problems.
15019 # Hook for its removal unless debugging.
15020 # Note that there is a small window in which the directory will not be cleaned:
15021 # after its creation but before its name has been assigned to `$tmp'.
15022 $debug ||
15023 {
15024 tmp=
15025 trap 'exit_status=$?
15026 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15027 ' 0
15028 trap 'as_fn_exit 1' 1 2 13 15
15029 }
15030 # Create a (secure) tmp directory for tmp files.
15031
15032 {
15033 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15034 test -n "$tmp" && test -d "$tmp"
15035 } ||
15036 {
15037 tmp=./conf$$-$RANDOM
15038 (umask 077 && mkdir "$tmp")
15039 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15040
15041 # Set up the scripts for CONFIG_FILES section.
15042 # No need to generate them if there are no CONFIG_FILES.
15043 # This happens for instance with `./config.status config.h'.
15044 if test -n "$CONFIG_FILES"; then
15045
15046 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15047 ac_cs_awk_getline=:
15048 ac_cs_awk_pipe_init=
15049 ac_cs_awk_read_file='
15050 while ((getline aline < (F[key])) > 0)
15051 print(aline)
15052 close(F[key])'
15053 ac_cs_awk_pipe_fini=
15054 else
15055 ac_cs_awk_getline=false
15056 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15057 ac_cs_awk_read_file='
15058 print "|#_!!_#|"
15059 print "cat " F[key] " &&"
15060 '$ac_cs_awk_pipe_init
15061 # The final `:' finishes the AND list.
15062 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15063 fi
15064 ac_cr=`echo X | tr X '\015'`
15065 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15066 # But we know of no other shell where ac_cr would be empty at this
15067 # point, so we can use a bashism as a fallback.
15068 if test "x$ac_cr" = x; then
15069 eval ac_cr=\$\'\\r\'
15070 fi
15071 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15072 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15073 ac_cs_awk_cr='\r'
15074 else
15075 ac_cs_awk_cr=$ac_cr
15076 fi
15077
15078 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15079 _ACEOF
15080
15081 # Create commands to substitute file output variables.
15082 {
15083 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15084 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15085 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15086 echo "_ACAWK" &&
15087 echo "_ACEOF"
15088 } >conf$$files.sh &&
15089 . ./conf$$files.sh ||
15090 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15091 rm -f conf$$files.sh
15092
15093 {
15094 echo "cat >conf$$subs.awk <<_ACEOF" &&
15095 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15096 echo "_ACEOF"
15097 } >conf$$subs.sh ||
15098 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15099 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15100 ac_delim='%!_!# '
15101 for ac_last_try in false false false false false :; do
15102 . ./conf$$subs.sh ||
15103 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15104
15105 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15106 if test $ac_delim_n = $ac_delim_num; then
15107 break
15108 elif $ac_last_try; then
15109 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15110 else
15111 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15112 fi
15113 done
15114 rm -f conf$$subs.sh
15115
15116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15117 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15118 _ACEOF
15119 sed -n '
15120 h
15121 s/^/S["/; s/!.*/"]=/
15122 p
15123 g
15124 s/^[^!]*!//
15125 :repl
15126 t repl
15127 s/'"$ac_delim"'$//
15128 t delim
15129 :nl
15130 h
15131 s/\(.\{148\}\).*/\1/
15132 t more1
15133 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15134 p
15135 n
15136 b repl
15137 :more1
15138 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15139 p
15140 g
15141 s/.\{148\}//
15142 t nl
15143 :delim
15144 h
15145 s/\(.\{148\}\).*/\1/
15146 t more2
15147 s/["\\]/\\&/g; s/^/"/; s/$/"/
15148 p
15149 b
15150 :more2
15151 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15152 p
15153 g
15154 s/.\{148\}//
15155 t delim
15156 ' <conf$$subs.awk | sed '
15157 /^[^""]/{
15158 N
15159 s/\n//
15160 }
15161 ' >>$CONFIG_STATUS || ac_write_fail=1
15162 rm -f conf$$subs.awk
15163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15164 _ACAWK
15165 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15166 for (key in S) S_is_set[key] = 1
15167 FS = "\a"
15168 \$ac_cs_awk_pipe_init
15169 }
15170 {
15171 line = $ 0
15172 nfields = split(line, field, "@")
15173 substed = 0
15174 len = length(field[1])
15175 for (i = 2; i < nfields; i++) {
15176 key = field[i]
15177 keylen = length(key)
15178 if (S_is_set[key]) {
15179 value = S[key]
15180 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15181 len += length(value) + length(field[++i])
15182 substed = 1
15183 } else
15184 len += 1 + keylen
15185 }
15186 if (nfields == 3 && !substed) {
15187 key = field[2]
15188 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15189 \$ac_cs_awk_read_file
15190 next
15191 }
15192 }
15193 print line
15194 }
15195 \$ac_cs_awk_pipe_fini
15196 _ACAWK
15197 _ACEOF
15198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15199 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15200 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15201 else
15202 cat
15203 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15204 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15205 _ACEOF
15206
15207 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15208 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15209 # trailing colons and then remove the whole line if VPATH becomes empty
15210 # (actually we leave an empty line to preserve line numbers).
15211 if test "x$srcdir" = x.; then
15212 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15213 s/:*\$(srcdir):*/:/
15214 s/:*\${srcdir}:*/:/
15215 s/:*@srcdir@:*/:/
15216 s/^\([^=]*=[ ]*\):*/\1/
15217 s/:*$//
15218 s/^[^=]*=[ ]*$//
15219 }'
15220 fi
15221
15222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15223 fi # test -n "$CONFIG_FILES"
15224
15225
15226 eval set X " :F $CONFIG_FILES "
15227 shift
15228 for ac_tag
15229 do
15230 case $ac_tag in
15231 :[FHLC]) ac_mode=$ac_tag; continue;;
15232 esac
15233 case $ac_mode$ac_tag in
15234 :[FHL]*:*);;
15235 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15236 :[FH]-) ac_tag=-:-;;
15237 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15238 esac
15239 ac_save_IFS=$IFS
15240 IFS=:
15241 set x $ac_tag
15242 IFS=$ac_save_IFS
15243 shift
15244 ac_file=$1
15245 shift
15246
15247 case $ac_mode in
15248 :L) ac_source=$1;;
15249 :[FH])
15250 ac_file_inputs=
15251 for ac_f
15252 do
15253 case $ac_f in
15254 -) ac_f="$tmp/stdin";;
15255 *) # Look for the file first in the build tree, then in the source tree
15256 # (if the path is not absolute). The absolute path cannot be DOS-style,
15257 # because $ac_f cannot contain `:'.
15258 test -f "$ac_f" ||
15259 case $ac_f in
15260 [\\/$]*) false;;
15261 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15262 esac ||
15263 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15264 esac
15265 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15266 as_fn_append ac_file_inputs " '$ac_f'"
15267 done
15268
15269 # Let's still pretend it is `configure' which instantiates (i.e., don't
15270 # use $as_me), people would be surprised to read:
15271 # /* config.h. Generated by config.status. */
15272 configure_input='Generated from '`
15273 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15274 `' by configure.'
15275 if test x"$ac_file" != x-; then
15276 configure_input="$ac_file. $configure_input"
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15278 $as_echo "$as_me: creating $ac_file" >&6;}
15279 fi
15280 # Neutralize special characters interpreted by sed in replacement strings.
15281 case $configure_input in #(
15282 *\&* | *\|* | *\\* )
15283 ac_sed_conf_input=`$as_echo "$configure_input" |
15284 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15285 *) ac_sed_conf_input=$configure_input;;
15286 esac
15287
15288 case $ac_tag in
15289 *:-:* | *:-) cat >"$tmp/stdin" \
15290 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15291 esac
15292 ;;
15293 esac
15294
15295 ac_dir=`$as_dirname -- "$ac_file" ||
15296 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15297 X"$ac_file" : 'X\(//\)[^/]' \| \
15298 X"$ac_file" : 'X\(//\)$' \| \
15299 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15300 $as_echo X"$ac_file" |
15301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15302 s//\1/
15303 q
15304 }
15305 /^X\(\/\/\)[^/].*/{
15306 s//\1/
15307 q
15308 }
15309 /^X\(\/\/\)$/{
15310 s//\1/
15311 q
15312 }
15313 /^X\(\/\).*/{
15314 s//\1/
15315 q
15316 }
15317 s/.*/./; q'`
15318 as_dir="$ac_dir"; as_fn_mkdir_p
15319 ac_builddir=.
15320
15321 case "$ac_dir" in
15322 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15323 *)
15324 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15325 # A ".." for each directory in $ac_dir_suffix.
15326 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15327 case $ac_top_builddir_sub in
15328 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15329 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15330 esac ;;
15331 esac
15332 ac_abs_top_builddir=$ac_pwd
15333 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15334 # for backward compatibility:
15335 ac_top_builddir=$ac_top_build_prefix
15336
15337 case $srcdir in
15338 .) # We are building in place.
15339 ac_srcdir=.
15340 ac_top_srcdir=$ac_top_builddir_sub
15341 ac_abs_top_srcdir=$ac_pwd ;;
15342 [\\/]* | ?:[\\/]* ) # Absolute name.
15343 ac_srcdir=$srcdir$ac_dir_suffix;
15344 ac_top_srcdir=$srcdir
15345 ac_abs_top_srcdir=$srcdir ;;
15346 *) # Relative name.
15347 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15348 ac_top_srcdir=$ac_top_build_prefix$srcdir
15349 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15350 esac
15351 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15352
15353
15354 case $ac_mode in
15355 :F)
15356 #
15357 # CONFIG_FILE
15358 #
15359
15360 case $INSTALL in
15361 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15362 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15363 esac
15364 _ACEOF
15365
15366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15367 # If the template does not know about datarootdir, expand it.
15368 # FIXME: This hack should be removed a few years after 2.60.
15369 ac_datarootdir_hack=; ac_datarootdir_seen=
15370 ac_sed_dataroot='
15371 /datarootdir/ {
15372 p
15373 q
15374 }
15375 /@datadir@/p
15376 /@docdir@/p
15377 /@infodir@/p
15378 /@localedir@/p
15379 /@mandir@/p'
15380 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15381 *datarootdir*) ac_datarootdir_seen=yes;;
15382 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15384 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15385 _ACEOF
15386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15387 ac_datarootdir_hack='
15388 s&@datadir@&$datadir&g
15389 s&@docdir@&$docdir&g
15390 s&@infodir@&$infodir&g
15391 s&@localedir@&$localedir&g
15392 s&@mandir@&$mandir&g
15393 s&\\\${datarootdir}&$datarootdir&g' ;;
15394 esac
15395 _ACEOF
15396
15397 # Neutralize VPATH when `$srcdir' = `.'.
15398 # Shell code in configure.ac might set extrasub.
15399 # FIXME: do we really want to maintain this feature?
15400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15401 ac_sed_extra="$ac_vpsub
15402 $extrasub
15403 _ACEOF
15404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15405 :t
15406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15407 s|@configure_input@|$ac_sed_conf_input|;t t
15408 s&@top_builddir@&$ac_top_builddir_sub&;t t
15409 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15410 s&@srcdir@&$ac_srcdir&;t t
15411 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15412 s&@top_srcdir@&$ac_top_srcdir&;t t
15413 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15414 s&@builddir@&$ac_builddir&;t t
15415 s&@abs_builddir@&$ac_abs_builddir&;t t
15416 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15417 s&@INSTALL@&$ac_INSTALL&;t t
15418 $ac_datarootdir_hack
15419 "
15420 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15421 if $ac_cs_awk_getline; then
15422 $AWK -f "$tmp/subs.awk"
15423 else
15424 $AWK -f "$tmp/subs.awk" | $SHELL
15425 fi >$tmp/out \
15426 || as_fn_error "could not create $ac_file" "$LINENO" 5
15427
15428 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15429 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15430 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15432 which seems to be undefined. Please make sure it is defined." >&5
15433 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15434 which seems to be undefined. Please make sure it is defined." >&2;}
15435
15436 rm -f "$tmp/stdin"
15437 case $ac_file in
15438 -) cat "$tmp/out" && rm -f "$tmp/out";;
15439 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15440 esac \
15441 || as_fn_error "could not create $ac_file" "$LINENO" 5
15442 ;;
15443
15444
15445
15446 esac
15447
15448
15449 case $ac_file$ac_mode in
15450 "Makefile":F) sed "$extrasub_build" Makefile |
15451 sed "$extrasub_host" |
15452 sed "$extrasub_target" > mf$$
15453 mv -f mf$$ Makefile ;;
15454
15455 esac
15456 done # for ac_tag
15457
15458
15459 as_fn_exit 0
15460 _ACEOF
15461 ac_clean_files=$ac_clean_files_save
15462
15463 test $ac_write_fail = 0 ||
15464 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15465
15466
15467 # configure is writing to config.log, and then calls config.status.
15468 # config.status does its own redirection, appending to config.log.
15469 # Unfortunately, on DOS this fails, as config.log is still kept open
15470 # by configure, so config.status won't be able to write to it; its
15471 # output is simply discarded. So we exec the FD to /dev/null,
15472 # effectively closing config.log, so it can be properly (re)opened and
15473 # appended to by config.status. When coming back to configure, we
15474 # need to make the FD available again.
15475 if test "$no_create" != yes; then
15476 ac_cs_success=:
15477 ac_config_status_args=
15478 test "$silent" = yes &&
15479 ac_config_status_args="$ac_config_status_args --quiet"
15480 exec 5>/dev/null
15481 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15482 exec 5>>config.log
15483 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15484 # would make configure fail if this is the last instruction.
15485 $ac_cs_success || as_fn_exit $?
15486 fi
15487 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15489 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15490 fi
15491