]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
Add libatomic as a target library.
[thirdparty/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 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 pplinc
650 ppllibs
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_ppl
774 with_ppl_include
775 with_ppl_lib
776 enable_ppl_version_check
777 with_cloog
778 with_cloog_include
779 with_cloog_lib
780 enable_cloog_backend
781 enable_cloog_version_check
782 enable_lto
783 enable_stage1_languages
784 enable_objc_gc
785 with_build_sysroot
786 with_debug_prefix_map
787 with_build_config
788 enable_serial_configure
789 with_build_time_tools
790 enable_maintainer_mode
791 enable_stage1_checking
792 enable_werror
793 '
794 ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
802 CXX
803 CXXFLAGS
804 CCC
805 build_configargs
806 host_configargs
807 target_configargs
808 AR
809 AS
810 DLLTOOL
811 LD
812 LIPO
813 NM
814 RANLIB
815 STRIP
816 WINDRES
817 WINDMC
818 OBJCOPY
819 OBJDUMP
820 READELF
821 CC_FOR_TARGET
822 CXX_FOR_TARGET
823 GCC_FOR_TARGET
824 GCJ_FOR_TARGET
825 GFORTRAN_FOR_TARGET
826 GOC_FOR_TARGET
827 AR_FOR_TARGET
828 AS_FOR_TARGET
829 DLLTOOL_FOR_TARGET
830 LD_FOR_TARGET
831 LIPO_FOR_TARGET
832 NM_FOR_TARGET
833 OBJDUMP_FOR_TARGET
834 RANLIB_FOR_TARGET
835 READELF_FOR_TARGET
836 STRIP_FOR_TARGET
837 WINDRES_FOR_TARGET
838 WINDMC_FOR_TARGET'
839
840
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
862
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
888
889 ac_prev=
890 ac_dashdash=
891 for ac_option
892 do
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
898 fi
899
900 case $ac_option in
901 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *) ac_optarg=yes ;;
903 esac
904
905 # Accept the important Cygnus configure options, so we can diagnose typos.
906
907 case $ac_dashdash$ac_option in
908 --)
909 ac_dashdash=yes ;;
910
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
915
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
920
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
927
928 --config-cache | -C)
929 cache_file=config.cache ;;
930
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
935
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
942
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
958
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
963
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
968
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
984
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
993
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
997
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1004
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1009
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1015
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1022
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1027
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1032
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1039
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1044
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1051
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1056
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1060
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1063 no_create=yes ;;
1064
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1068
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1077
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1082
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1089
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1096
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1113
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1118
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1123
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1127
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1132 sbindir=$ac_optarg ;;
1133
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1143 sharedstatedir=$ac_optarg ;;
1144
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1148 site=$ac_optarg ;;
1149
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1154
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1161
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1166
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1169
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1172
1173 -with-* | --with-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=\$ac_optarg ;;
1188
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
1204
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1208
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1215
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1222
1223 -*) as_fn_error "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information."
1225 ;;
1226
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1233 esac
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1236
1237 *)
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1243 ;;
1244
1245 esac
1246 done
1247
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error "missing argument to $ac_option"
1251 fi
1252
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 esac
1259 fi
1260
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1266 do
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
1275 case $ac_val in
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 esac
1279 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1281
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1288
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1294 If a cross compiler is detected then cross compile mode will be used." >&2
1295 elif test "x$build_alias" != "x$host_alias"; then
1296 cross_compiling=yes
1297 fi
1298 fi
1299
1300 ac_tool_prefix=
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
1303 test "$silent" = yes && exec 6>/dev/null
1304
1305
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309 as_fn_error "working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 as_fn_error "pwd does not report name of working directory"
1312
1313
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316 ac_srcdir_defaulted=yes
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)[^/].*/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\/\)$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\).*/{
1337 s//\1/
1338 q
1339 }
1340 s/.*/./; q'`
1341 srcdir=$ac_confdir
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 srcdir=..
1344 fi
1345 else
1346 ac_srcdir_defaulted=no
1347 fi
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1351 fi
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1355 pwd)`
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 srcdir=.
1359 fi
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1363 case $srcdir in
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 esac
1366 case $srcdir in
1367 *" "*)
1368 as_fn_error "path to source, $srcdir, contains spaces"
1369 ;;
1370 esac
1371 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1372
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1379
1380 #
1381 # Report the --help message.
1382 #
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
1387 \`configure' configures this package to adapt to many kinds of systems.
1388
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1393
1394 Defaults for the options are specified in brackets.
1395
1396 Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1411 [PREFIX]
1412
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1417
1418 For better control, use the options below.
1419
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1440 _ACEOF
1441
1442 cat <<\_ACEOF
1443
1444 Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1448
1449 System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 --target=TARGET configure for building compilers for TARGET [HOST]
1453 _ACEOF
1454 fi
1455
1456 if test -n "$ac_init_help"; then
1457
1458 cat <<\_ACEOF
1459
1460 Optional Features:
1461 --disable-option-checking ignore unrecognized --enable/--with options
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1465 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1466 --disable-libquadmath do not build libquadmath directory
1467 --disable-libquadmath-support
1468 disable libquadmath support for Fortran
1469 --enable-libada build libada directory
1470 --enable-libssp build libssp directory
1471 --enable-static-libjava[=ARG]
1472 build static libjava [default=no]
1473 --enable-bootstrap enable bootstrapping [yes if native build]
1474 --enable-build-with-cxx build with C++ compiler instead of C compiler
1475 --enable-build-poststage1-with-cxx
1476 build stages 2 and 3 with C++, not C
1477 --disable-ppl-version-check
1478 disable check for PPL version
1479 --enable-cloog-backend[=BACKEND]
1480 set the CLooG BACKEND used to either isl, ppl or
1481 ppl-legacy (default)
1482 --disable-cloog-version-check
1483 disable check for CLooG version
1484 --enable-lto enable link time optimization support
1485 --enable-stage1-languages[=all]
1486 choose additional languages to build during stage1.
1487 Mostly useful for compiler development
1488 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1489 Objective-C runtime
1490 --enable-serial-[{host,target,build}-]configure
1491 force sequential configuration of sub-packages for
1492 the host, target or build machine, or all
1493 sub-packages
1494 --enable-maintainer-mode
1495 enable make rules and dependencies not useful (and
1496 sometimes confusing) to the casual installer
1497 --enable-stage1-checking[=all]
1498 choose additional checking for stage1 of the
1499 compiler
1500 --enable-werror enable -Werror in bootstrap stage2 and later
1501
1502 Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-build-libsubdir=DIR Directory where to find libraries for build system
1506 --with-mpc=PATH specify prefix directory for installed MPC package.
1507 Equivalent to --with-mpc-include=PATH/include plus
1508 --with-mpc-lib=PATH/lib
1509 --with-mpc-include=PATH specify directory for installed MPC include files
1510 --with-mpc-lib=PATH specify directory for the installed MPC library
1511 --with-mpfr-dir=PATH this option has been REMOVED
1512 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1513 Equivalent to --with-mpfr-include=PATH/include plus
1514 --with-mpfr-lib=PATH/lib
1515 --with-mpfr-include=PATH
1516 specify directory for installed MPFR include files
1517 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1518 --with-gmp-dir=PATH this option has been REMOVED
1519 --with-gmp=PATH specify prefix directory for the installed GMP
1520 package. Equivalent to
1521 --with-gmp-include=PATH/include plus
1522 --with-gmp-lib=PATH/lib
1523 --with-gmp-include=PATH specify directory for installed GMP include files
1524 --with-gmp-lib=PATH specify directory for the installed GMP library
1525 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1526 linking with PPL
1527 --with-stage1-ldflags=FLAGS
1528 linker flags for stage1
1529 --with-stage1-libs=LIBS libraries for stage1
1530 --with-boot-libs=LIBS libraries for stage2 and later
1531 --with-boot-ldflags=FLAGS
1532 linker flags for stage2 and later
1533 --with-ppl=PATH specify prefix directory for the installed PPL
1534 package. Equivalent to
1535 --with-ppl-include=PATH/include plus
1536 --with-ppl-lib=PATH/lib
1537 --with-ppl-include=PATH specify directory for installed PPL include files
1538 --with-ppl-lib=PATH specify directory for the installed PPL library
1539 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1540 package. Equivalent to
1541 --with-cloog-include=PATH/include plus
1542 --with-cloog-lib=PATH/lib
1543 --with-cloog-include=PATH
1544 Specify directory for installed CLooG include files
1545 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1546 library
1547 --with-build-sysroot=SYSROOT
1548 use sysroot as the system root during the build
1549 --with-debug-prefix-map='A=B C=D ...'
1550 map A to B, C to D ... in debug information
1551 --with-build-config='NAME NAME2...'
1552 use config/NAME.mk build configuration
1553 --with-build-time-tools=PATH
1554 use given path to find target tools during the build
1555
1556 Some influential environment variables:
1557 CC C compiler command
1558 CFLAGS C compiler flags
1559 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1560 nonstandard directory <lib dir>
1561 LIBS libraries to pass to the linker, e.g. -l<library>
1562 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1563 you have headers in a nonstandard directory <include dir>
1564 CXX C++ compiler command
1565 CXXFLAGS C++ compiler flags
1566 build_configargs
1567 additional configure arguments for build directories
1568 host_configargs
1569 additional configure arguments for host directories
1570 target_configargs
1571 additional configure arguments for target directories
1572 AR AR for the host
1573 AS AS for the host
1574 DLLTOOL DLLTOOL for the host
1575 LD LD for the host
1576 LIPO LIPO for the host
1577 NM NM for the host
1578 RANLIB RANLIB for the host
1579 STRIP STRIP for the host
1580 WINDRES WINDRES for the host
1581 WINDMC WINDMC for the host
1582 OBJCOPY OBJCOPY for the host
1583 OBJDUMP OBJDUMP for the host
1584 READELF READELF for the host
1585 CC_FOR_TARGET
1586 CC for the target
1587 CXX_FOR_TARGET
1588 CXX for the target
1589 GCC_FOR_TARGET
1590 GCC for the target
1591 GCJ_FOR_TARGET
1592 GCJ for the target
1593 GFORTRAN_FOR_TARGET
1594 GFORTRAN for the target
1595 GOC_FOR_TARGET
1596 GOC for the target
1597 AR_FOR_TARGET
1598 AR for the target
1599 AS_FOR_TARGET
1600 AS for the target
1601 DLLTOOL_FOR_TARGET
1602 DLLTOOL for the target
1603 LD_FOR_TARGET
1604 LD for the target
1605 LIPO_FOR_TARGET
1606 LIPO for the target
1607 NM_FOR_TARGET
1608 NM for the target
1609 OBJDUMP_FOR_TARGET
1610 OBJDUMP for the target
1611 RANLIB_FOR_TARGET
1612 RANLIB for the target
1613 READELF_FOR_TARGET
1614 READELF for the target
1615 STRIP_FOR_TARGET
1616 STRIP for the target
1617 WINDRES_FOR_TARGET
1618 WINDRES for the target
1619 WINDMC_FOR_TARGET
1620 WINDMC for the target
1621
1622 Use these variables to override the choices made by `configure' or to help
1623 it to find libraries and programs with nonstandard names/locations.
1624
1625 Report bugs to the package provider.
1626 _ACEOF
1627 ac_status=$?
1628 fi
1629
1630 if test "$ac_init_help" = "recursive"; then
1631 # If there are subdirs, report their specific --help.
1632 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1633 test -d "$ac_dir" ||
1634 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1635 continue
1636 ac_builddir=.
1637
1638 case "$ac_dir" in
1639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *)
1641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1642 # A ".." for each directory in $ac_dir_suffix.
1643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1644 case $ac_top_builddir_sub in
1645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1647 esac ;;
1648 esac
1649 ac_abs_top_builddir=$ac_pwd
1650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1651 # for backward compatibility:
1652 ac_top_builddir=$ac_top_build_prefix
1653
1654 case $srcdir in
1655 .) # We are building in place.
1656 ac_srcdir=.
1657 ac_top_srcdir=$ac_top_builddir_sub
1658 ac_abs_top_srcdir=$ac_pwd ;;
1659 [\\/]* | ?:[\\/]* ) # Absolute name.
1660 ac_srcdir=$srcdir$ac_dir_suffix;
1661 ac_top_srcdir=$srcdir
1662 ac_abs_top_srcdir=$srcdir ;;
1663 *) # Relative name.
1664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1665 ac_top_srcdir=$ac_top_build_prefix$srcdir
1666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1667 esac
1668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1669
1670 cd "$ac_dir" || { ac_status=$?; continue; }
1671 # Check for guested configure.
1672 if test -f "$ac_srcdir/configure.gnu"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1675 elif test -f "$ac_srcdir/configure"; then
1676 echo &&
1677 $SHELL "$ac_srcdir/configure" --help=recursive
1678 else
1679 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1680 fi || ac_status=$?
1681 cd "$ac_pwd" || { ac_status=$?; break; }
1682 done
1683 fi
1684
1685 test -n "$ac_init_help" && exit $ac_status
1686 if $ac_init_version; then
1687 cat <<\_ACEOF
1688 configure
1689 generated by GNU Autoconf 2.64
1690
1691 Copyright (C) 2009 Free Software Foundation, Inc.
1692 This configure script is free software; the Free Software Foundation
1693 gives unlimited permission to copy, distribute and modify it.
1694 _ACEOF
1695 exit
1696 fi
1697
1698 ## ------------------------ ##
1699 ## Autoconf initialization. ##
1700 ## ------------------------ ##
1701
1702 # ac_fn_c_try_compile LINENO
1703 # --------------------------
1704 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_c_try_compile ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734 fi
1735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736 return $ac_retval
1737
1738 } # ac_fn_c_try_compile
1739
1740 # ac_fn_cxx_try_compile LINENO
1741 # ----------------------------
1742 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_cxx_try_compile ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext
1747 if { { ac_try="$ac_compile"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_compile") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_cxx_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest.$ac_objext; then :
1766 ac_retval=0
1767 else
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=1
1772 fi
1773 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774 return $ac_retval
1775
1776 } # ac_fn_cxx_try_compile
1777
1778 # ac_fn_c_try_link LINENO
1779 # -----------------------
1780 # Try to link conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_c_try_link ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext conftest$ac_exeext
1785 if { { ac_try="$ac_link"
1786 case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_link") 2>conftest.err
1793 ac_status=$?
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1798 fi
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest$ac_exeext && {
1804 test "$cross_compiling" = yes ||
1805 $as_test_x conftest$ac_exeext
1806 }; then :
1807 ac_retval=0
1808 else
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1811
1812 ac_retval=1
1813 fi
1814 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1815 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1816 # interfere with the next link command; also delete a directory that is
1817 # left behind by Apple's compiler. We do this before executing the actions.
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820 return $ac_retval
1821
1822 } # ac_fn_c_try_link
1823 cat >config.log <<_ACEOF
1824 This file contains any messages produced by compilers while
1825 running configure, to aid debugging if configure makes a mistake.
1826
1827 It was created by $as_me, which was
1828 generated by GNU Autoconf 2.64. Invocation command line was
1829
1830 $ $0 $@
1831
1832 _ACEOF
1833 exec 5>>config.log
1834 {
1835 cat <<_ASUNAME
1836 ## --------- ##
1837 ## Platform. ##
1838 ## --------- ##
1839
1840 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1841 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1842 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1843 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1844 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1845
1846 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1847 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1848
1849 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1850 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1851 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1852 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1853 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1854 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1855 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1856
1857 _ASUNAME
1858
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 for as_dir in $PATH
1861 do
1862 IFS=$as_save_IFS
1863 test -z "$as_dir" && as_dir=.
1864 $as_echo "PATH: $as_dir"
1865 done
1866 IFS=$as_save_IFS
1867
1868 } >&5
1869
1870 cat >&5 <<_ACEOF
1871
1872
1873 ## ----------- ##
1874 ## Core tests. ##
1875 ## ----------- ##
1876
1877 _ACEOF
1878
1879
1880 # Keep a trace of the command line.
1881 # Strip out --no-create and --no-recursion so they do not pile up.
1882 # Strip out --silent because we don't want to record it for future runs.
1883 # Also quote any args containing shell meta-characters.
1884 # Make two passes to allow for proper duplicate-argument suppression.
1885 ac_configure_args=
1886 ac_configure_args0=
1887 ac_configure_args1=
1888 ac_must_keep_next=false
1889 for ac_pass in 1 2
1890 do
1891 for ac_arg
1892 do
1893 case $ac_arg in
1894 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1896 | -silent | --silent | --silen | --sile | --sil)
1897 continue ;;
1898 *\'*)
1899 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1900 esac
1901 case $ac_pass in
1902 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1903 2)
1904 as_fn_append ac_configure_args1 " '$ac_arg'"
1905 if test $ac_must_keep_next = true; then
1906 ac_must_keep_next=false # Got value, back to normal.
1907 else
1908 case $ac_arg in
1909 *=* | --config-cache | -C | -disable-* | --disable-* \
1910 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1911 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1912 | -with-* | --with-* | -without-* | --without-* | --x)
1913 case "$ac_configure_args0 " in
1914 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1915 esac
1916 ;;
1917 -* ) ac_must_keep_next=true ;;
1918 esac
1919 fi
1920 as_fn_append ac_configure_args " '$ac_arg'"
1921 ;;
1922 esac
1923 done
1924 done
1925 { ac_configure_args0=; unset ac_configure_args0;}
1926 { ac_configure_args1=; unset ac_configure_args1;}
1927
1928 # When interrupted or exit'd, cleanup temporary files, and complete
1929 # config.log. We remove comments because anyway the quotes in there
1930 # would cause problems or look ugly.
1931 # WARNING: Use '\'' to represent an apostrophe within the trap.
1932 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1933 trap 'exit_status=$?
1934 # Save into config.log some information that might help in debugging.
1935 {
1936 echo
1937
1938 cat <<\_ASBOX
1939 ## ---------------- ##
1940 ## Cache variables. ##
1941 ## ---------------- ##
1942 _ASBOX
1943 echo
1944 # The following way of writing the cache mishandles newlines in values,
1945 (
1946 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1947 eval ac_val=\$$ac_var
1948 case $ac_val in #(
1949 *${as_nl}*)
1950 case $ac_var in #(
1951 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1952 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1953 esac
1954 case $ac_var in #(
1955 _ | IFS | as_nl) ;; #(
1956 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1957 *) { eval $ac_var=; unset $ac_var;} ;;
1958 esac ;;
1959 esac
1960 done
1961 (set) 2>&1 |
1962 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1963 *${as_nl}ac_space=\ *)
1964 sed -n \
1965 "s/'\''/'\''\\\\'\'''\''/g;
1966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1967 ;; #(
1968 *)
1969 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1970 ;;
1971 esac |
1972 sort
1973 )
1974 echo
1975
1976 cat <<\_ASBOX
1977 ## ----------------- ##
1978 ## Output variables. ##
1979 ## ----------------- ##
1980 _ASBOX
1981 echo
1982 for ac_var in $ac_subst_vars
1983 do
1984 eval ac_val=\$$ac_var
1985 case $ac_val in
1986 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1987 esac
1988 $as_echo "$ac_var='\''$ac_val'\''"
1989 done | sort
1990 echo
1991
1992 if test -n "$ac_subst_files"; then
1993 cat <<\_ASBOX
1994 ## ------------------- ##
1995 ## File substitutions. ##
1996 ## ------------------- ##
1997 _ASBOX
1998 echo
1999 for ac_var in $ac_subst_files
2000 do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in
2003 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 esac
2005 $as_echo "$ac_var='\''$ac_val'\''"
2006 done | sort
2007 echo
2008 fi
2009
2010 if test -s confdefs.h; then
2011 cat <<\_ASBOX
2012 ## ----------- ##
2013 ## confdefs.h. ##
2014 ## ----------- ##
2015 _ASBOX
2016 echo
2017 cat confdefs.h
2018 echo
2019 fi
2020 test "$ac_signal" != 0 &&
2021 $as_echo "$as_me: caught signal $ac_signal"
2022 $as_echo "$as_me: exit $exit_status"
2023 } >&5
2024 rm -f core *.core core.conftest.* &&
2025 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2026 exit $exit_status
2027 ' 0
2028 for ac_signal in 1 2 13 15; do
2029 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2030 done
2031 ac_signal=0
2032
2033 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2034 rm -f -r conftest* confdefs.h
2035
2036 $as_echo "/* confdefs.h */" > confdefs.h
2037
2038 # Predefined preprocessor variables.
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_NAME "$PACKAGE_NAME"
2042 _ACEOF
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2046 _ACEOF
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2050 _ACEOF
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_STRING "$PACKAGE_STRING"
2054 _ACEOF
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2058 _ACEOF
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_URL "$PACKAGE_URL"
2062 _ACEOF
2063
2064
2065 # Let the site file select an alternate cache file if it wants to.
2066 # Prefer an explicitly selected file to automatically selected ones.
2067 ac_site_file1=NONE
2068 ac_site_file2=NONE
2069 if test -n "$CONFIG_SITE"; then
2070 ac_site_file1=$CONFIG_SITE
2071 elif test "x$prefix" != xNONE; then
2072 ac_site_file1=$prefix/share/config.site
2073 ac_site_file2=$prefix/etc/config.site
2074 else
2075 ac_site_file1=$ac_default_prefix/share/config.site
2076 ac_site_file2=$ac_default_prefix/etc/config.site
2077 fi
2078 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2079 do
2080 test "x$ac_site_file" = xNONE && continue
2081 if test -r "$ac_site_file"; then
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2083 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2084 sed 's/^/| /' "$ac_site_file" >&5
2085 . "$ac_site_file"
2086 fi
2087 done
2088
2089 if test -r "$cache_file"; then
2090 # Some versions of bash will fail to source /dev/null (special
2091 # files actually), so we avoid doing that.
2092 if test -f "$cache_file"; then
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2094 $as_echo "$as_me: loading cache $cache_file" >&6;}
2095 case $cache_file in
2096 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2097 *) . "./$cache_file";;
2098 esac
2099 fi
2100 else
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2102 $as_echo "$as_me: creating cache $cache_file" >&6;}
2103 >$cache_file
2104 fi
2105
2106 # Check that the precious variables saved in the cache have kept the same
2107 # value.
2108 ac_cache_corrupted=false
2109 for ac_var in $ac_precious_vars; do
2110 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2111 eval ac_new_set=\$ac_env_${ac_var}_set
2112 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2113 eval ac_new_val=\$ac_env_${ac_var}_value
2114 case $ac_old_set,$ac_new_set in
2115 set,)
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2117 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2118 ac_cache_corrupted=: ;;
2119 ,set)
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2121 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2122 ac_cache_corrupted=: ;;
2123 ,);;
2124 *)
2125 if test "x$ac_old_val" != "x$ac_new_val"; then
2126 # differences in whitespace do not lead to failure.
2127 ac_old_val_w=`echo x $ac_old_val`
2128 ac_new_val_w=`echo x $ac_new_val`
2129 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2131 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2132 ac_cache_corrupted=:
2133 else
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2135 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2136 eval $ac_var=\$ac_old_val
2137 fi
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2139 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2141 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2142 fi;;
2143 esac
2144 # Pass precious variables to config.status.
2145 if test "$ac_new_set" = set; then
2146 case $ac_new_val in
2147 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2148 *) ac_arg=$ac_var=$ac_new_val ;;
2149 esac
2150 case " $ac_configure_args " in
2151 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2152 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2153 esac
2154 fi
2155 done
2156 if $ac_cache_corrupted; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2160 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2161 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2162 fi
2163 ## -------------------- ##
2164 ## Main body of script. ##
2165 ## -------------------- ##
2166
2167 ac_ext=c
2168 ac_cpp='$CPP $CPPFLAGS'
2169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181 progname=$0
2182 # if PWD already has a value, it is probably wrong.
2183 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2184
2185 # Export original configure arguments for use by sub-configures.
2186 # Quote arguments with shell meta charatcers.
2187 TOPLEVEL_CONFIGURE_ARGUMENTS=
2188 set -- "$progname" "$@"
2189 for ac_arg
2190 do
2191 case "$ac_arg" in
2192 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2193 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2194 # if the argument is of the form -foo=baz, quote the baz part only
2195 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2196 *) ;;
2197 esac
2198 # Add the quoted argument to the list.
2199 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2200 done
2201 if test "$silent" = yes; then
2202 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2203 fi
2204 # Remove the initial space we just introduced and, as these will be
2205 # expanded by make, quote '$'.
2206 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2207
2208
2209 # Find the build, host, and target systems.
2210 ac_aux_dir=
2211 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2212 for ac_t in install-sh install.sh shtool; do
2213 if test -f "$ac_dir/$ac_t"; then
2214 ac_aux_dir=$ac_dir
2215 ac_install_sh="$ac_aux_dir/$ac_t -c"
2216 break 2
2217 fi
2218 done
2219 done
2220 if test -z "$ac_aux_dir"; then
2221 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2222 fi
2223
2224 # These three variables are undocumented and unsupported,
2225 # and are intended to be withdrawn in a future Autoconf release.
2226 # They can cause serious problems if a builder's source tree is in a directory
2227 # whose full name contains unusual characters.
2228 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2229 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2230 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2231
2232
2233 # Make sure we can run config.sub.
2234 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2235 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2236
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2238 $as_echo_n "checking build system type... " >&6; }
2239 if test "${ac_cv_build+set}" = set; then :
2240 $as_echo_n "(cached) " >&6
2241 else
2242 ac_build_alias=$build_alias
2243 test "x$ac_build_alias" = x &&
2244 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2245 test "x$ac_build_alias" = x &&
2246 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2247 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2248 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2249
2250 fi
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2252 $as_echo "$ac_cv_build" >&6; }
2253 case $ac_cv_build in
2254 *-*-*) ;;
2255 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2256 esac
2257 build=$ac_cv_build
2258 ac_save_IFS=$IFS; IFS='-'
2259 set x $ac_cv_build
2260 shift
2261 build_cpu=$1
2262 build_vendor=$2
2263 shift; shift
2264 # Remember, the first character of IFS is used to create $*,
2265 # except with old shells:
2266 build_os=$*
2267 IFS=$ac_save_IFS
2268 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2269
2270
2271 case ${build_alias} in
2272 "") build_noncanonical=${build} ;;
2273 *) build_noncanonical=${build_alias} ;;
2274 esac
2275
2276
2277
2278 case ${host_alias} in
2279 "") host_noncanonical=${build_noncanonical} ;;
2280 *) host_noncanonical=${host_alias} ;;
2281 esac
2282
2283
2284
2285 case ${target_alias} in
2286 "") target_noncanonical=${host_noncanonical} ;;
2287 *) target_noncanonical=${target_alias} ;;
2288 esac
2289
2290
2291
2292
2293 test "$host_noncanonical" = "$target_noncanonical" &&
2294 test "$program_prefix$program_suffix$program_transform_name" = \
2295 NONENONEs,x,x, &&
2296 program_transform_name=s,y,y,
2297
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2299 $as_echo_n "checking host system type... " >&6; }
2300 if test "${ac_cv_host+set}" = set; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 if test "x$host_alias" = x; then
2304 ac_cv_host=$ac_cv_build
2305 else
2306 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2307 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2308 fi
2309
2310 fi
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2312 $as_echo "$ac_cv_host" >&6; }
2313 case $ac_cv_host in
2314 *-*-*) ;;
2315 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2316 esac
2317 host=$ac_cv_host
2318 ac_save_IFS=$IFS; IFS='-'
2319 set x $ac_cv_host
2320 shift
2321 host_cpu=$1
2322 host_vendor=$2
2323 shift; shift
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2326 host_os=$*
2327 IFS=$ac_save_IFS
2328 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2329
2330
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2332 $as_echo_n "checking target system type... " >&6; }
2333 if test "${ac_cv_target+set}" = set; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 if test "x$target_alias" = x; then
2337 ac_cv_target=$ac_cv_host
2338 else
2339 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2340 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2341 fi
2342
2343 fi
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2345 $as_echo "$ac_cv_target" >&6; }
2346 case $ac_cv_target in
2347 *-*-*) ;;
2348 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2349 esac
2350 target=$ac_cv_target
2351 ac_save_IFS=$IFS; IFS='-'
2352 set x $ac_cv_target
2353 shift
2354 target_cpu=$1
2355 target_vendor=$2
2356 shift; shift
2357 # Remember, the first character of IFS is used to create $*,
2358 # except with old shells:
2359 target_os=$*
2360 IFS=$ac_save_IFS
2361 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2362
2363
2364 # The aliases save the names the user supplied, while $host etc.
2365 # will get canonicalized.
2366 test -n "$target_alias" &&
2367 test "$program_prefix$program_suffix$program_transform_name" = \
2368 NONENONEs,x,x, &&
2369 program_prefix=${target_alias}-
2370
2371 test "$program_prefix" != NONE &&
2372 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2373 # Use a double $ so make ignores it.
2374 test "$program_suffix" != NONE &&
2375 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2376 # Double any \ or $.
2377 # By default was `s,x,x', remove it if useless.
2378 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2379 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2380
2381
2382
2383 # Get 'install' or 'install-sh' and its variants.
2384 # Find a good install program. We prefer a C program (faster),
2385 # so one script is as good as another. But avoid the broken or
2386 # incompatible versions:
2387 # SysV /etc/install, /usr/sbin/install
2388 # SunOS /usr/etc/install
2389 # IRIX /sbin/install
2390 # AIX /bin/install
2391 # AmigaOS /C/install, which installs bootblocks on floppy discs
2392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2395 # OS/2's system install, which has a completely different semantic
2396 # ./install, which can be erroneously created by make from ./install.sh.
2397 # Reject install programs that cannot install multiple files.
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2399 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2400 if test -z "$INSTALL"; then
2401 if test "${ac_cv_path_install+set}" = set; then :
2402 $as_echo_n "(cached) " >&6
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 # Account for people who put trailing slashes in PATH elements.
2410 case $as_dir/ in #((
2411 ./ | .// | /[cC]/* | \
2412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2413 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2414 /usr/ucb/* ) ;;
2415 *)
2416 # OSF1 and SCO ODT 3.0 have their own names for install.
2417 # Don't use installbsd from OSF since it installs stuff as root
2418 # by default.
2419 for ac_prog in ginstall scoinst install; do
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2422 if test $ac_prog = install &&
2423 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2424 # AIX install. It has an incompatible calling convention.
2425 :
2426 elif test $ac_prog = install &&
2427 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2428 # program-specific install script used by HP pwplus--don't use.
2429 :
2430 else
2431 rm -rf conftest.one conftest.two conftest.dir
2432 echo one > conftest.one
2433 echo two > conftest.two
2434 mkdir conftest.dir
2435 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2436 test -s conftest.one && test -s conftest.two &&
2437 test -s conftest.dir/conftest.one &&
2438 test -s conftest.dir/conftest.two
2439 then
2440 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2441 break 3
2442 fi
2443 fi
2444 fi
2445 done
2446 done
2447 ;;
2448 esac
2449
2450 done
2451 IFS=$as_save_IFS
2452
2453 rm -rf conftest.one conftest.two conftest.dir
2454
2455 fi
2456 if test "${ac_cv_path_install+set}" = set; then
2457 INSTALL=$ac_cv_path_install
2458 else
2459 # As a last resort, use the slow shell script. Don't cache a
2460 # value for INSTALL within a source directory, because that will
2461 # break other packages using the cache if that directory is
2462 # removed, or if the value is a relative name.
2463 INSTALL=$ac_install_sh
2464 fi
2465 fi
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2467 $as_echo "$INSTALL" >&6; }
2468
2469 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2470 # It thinks the first close brace ends the variable substitution.
2471 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2472
2473 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2474
2475 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2476
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2478 $as_echo_n "checking whether ln works... " >&6; }
2479 if test "${acx_cv_prog_LN+set}" = set; then :
2480 $as_echo_n "(cached) " >&6
2481 else
2482 rm -f conftestdata_t
2483 echo >conftestdata_f
2484 if ln conftestdata_f conftestdata_t 2>/dev/null
2485 then
2486 acx_cv_prog_LN=ln
2487 else
2488 acx_cv_prog_LN=no
2489 fi
2490 rm -f conftestdata_f conftestdata_t
2491
2492 fi
2493 if test $acx_cv_prog_LN = no; then
2494 LN="cp"
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2496 $as_echo "no, using $LN" >&6; }
2497 else
2498 LN="$acx_cv_prog_LN"
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2500 $as_echo "yes" >&6; }
2501 fi
2502
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2504 $as_echo_n "checking whether ln -s works... " >&6; }
2505 LN_S=$as_ln_s
2506 if test "$LN_S" = "ln -s"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2508 $as_echo "yes" >&6; }
2509 else
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2511 $as_echo "no, using $LN_S" >&6; }
2512 fi
2513
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2515 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2516 if test "${ac_cv_path_SED+set}" = set; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2520 for ac_i in 1 2 3 4 5 6 7; do
2521 ac_script="$ac_script$as_nl$ac_script"
2522 done
2523 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2524 { ac_script=; unset ac_script;}
2525 if test -z "$SED"; then
2526 ac_path_SED_found=false
2527 # Loop through the user's path and test for each of PROGNAME-LIST
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_prog in sed gsed; do
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2536 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2537 # Check for GNU ac_path_SED and select it if it is found.
2538 # Check for GNU $ac_path_SED
2539 case `"$ac_path_SED" --version 2>&1` in
2540 *GNU*)
2541 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2542 *)
2543 ac_count=0
2544 $as_echo_n 0123456789 >"conftest.in"
2545 while :
2546 do
2547 cat "conftest.in" "conftest.in" >"conftest.tmp"
2548 mv "conftest.tmp" "conftest.in"
2549 cp "conftest.in" "conftest.nl"
2550 $as_echo '' >> "conftest.nl"
2551 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2552 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2553 as_fn_arith $ac_count + 1 && ac_count=$as_val
2554 if test $ac_count -gt ${ac_path_SED_max-0}; then
2555 # Best one so far, save it but keep looking for a better one
2556 ac_cv_path_SED="$ac_path_SED"
2557 ac_path_SED_max=$ac_count
2558 fi
2559 # 10*(2^10) chars as input seems more than enough
2560 test $ac_count -gt 10 && break
2561 done
2562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2563 esac
2564
2565 $ac_path_SED_found && break 3
2566 done
2567 done
2568 done
2569 IFS=$as_save_IFS
2570 if test -z "$ac_cv_path_SED"; then
2571 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2572 fi
2573 else
2574 ac_cv_path_SED=$SED
2575 fi
2576
2577 fi
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2579 $as_echo "$ac_cv_path_SED" >&6; }
2580 SED="$ac_cv_path_SED"
2581 rm -f conftest.sed
2582
2583 for ac_prog in gawk mawk nawk awk
2584 do
2585 # Extract the first word of "$ac_prog", so it can be a program name with args.
2586 set dummy $ac_prog; ac_word=$2
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588 $as_echo_n "checking for $ac_word... " >&6; }
2589 if test "${ac_cv_prog_AWK+set}" = set; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 if test -n "$AWK"; then
2593 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602 ac_cv_prog_AWK="$ac_prog"
2603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 break 2
2605 fi
2606 done
2607 done
2608 IFS=$as_save_IFS
2609
2610 fi
2611 fi
2612 AWK=$ac_cv_prog_AWK
2613 if test -n "$AWK"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2615 $as_echo "$AWK" >&6; }
2616 else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618 $as_echo "no" >&6; }
2619 fi
2620
2621
2622 test -n "$AWK" && break
2623 done
2624
2625
2626 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2627
2628 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2629 # a relative path.
2630 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2631 INSTALL="${srcpwd}/install-sh -c"
2632 fi
2633
2634 # Set srcdir to "." if that's what it is.
2635 # This is important for multilib support.
2636 pwd=`${PWDCMD-pwd}`
2637 if test "${pwd}" = "${srcpwd}" ; then
2638 srcdir=.
2639 fi
2640
2641 topsrcdir=$srcpwd
2642
2643 extra_host_args=
2644
2645 ### To add a new directory to the tree, first choose whether it is a target
2646 ### or a host dependent tool. Then put it into the appropriate list
2647 ### (library or tools, host or target), doing a dependency sort.
2648
2649 # Subdirs will be configured in the order listed in build_configdirs,
2650 # configdirs, or target_configdirs; see the serialization section below.
2651
2652 # Dependency sorting is only needed when *configuration* must be done in
2653 # a particular order. In all cases a dependency should be specified in
2654 # the Makefile, whether or not it's implicitly specified here.
2655
2656 # Double entries in build_configdirs, configdirs, or target_configdirs may
2657 # cause circular dependencies and break everything horribly.
2658
2659 # these library is used by various programs built for the build
2660 # environment
2661 #
2662 build_libs="build-libiberty"
2663
2664 # these tools are built for the build environment
2665 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2666
2667 # these libraries are used by various programs built for the host environment
2668 #
2669 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2670
2671 # these tools are built for the host environment
2672 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2673 # know that we are building the simulator.
2674 # binutils, gas and ld appear in that order because it makes sense to run
2675 # "make check" in that particular order.
2676 # If --enable-gold is used, "gold" may replace "ld".
2677 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2678
2679 # libgcj represents the runtime libraries only used by gcj.
2680 libgcj="target-libffi \
2681 target-zlib \
2682 target-libjava"
2683
2684 # these libraries are built for the target environment, and are built after
2685 # the host libraries and the host tools (which may be a cross compiler)
2686 # Note that libiberty is not a target library.
2687 target_libraries="target-libgcc \
2688 target-libgloss \
2689 target-newlib \
2690 target-libgomp \
2691 target-libatomic \
2692 target-libitm \
2693 target-libstdc++-v3 \
2694 target-libmudflap \
2695 target-libssp \
2696 target-libquadmath \
2697 target-libgfortran \
2698 target-boehm-gc \
2699 ${libgcj} \
2700 target-libobjc \
2701 target-libada \
2702 target-libgo"
2703
2704 # these tools are built using the target libraries, and are intended to
2705 # run only in the target environment
2706 #
2707 # note: any program that *uses* libraries that are in the "target_libraries"
2708 # list belongs in this list.
2709 #
2710 target_tools="target-rda"
2711
2712 ################################################################################
2713
2714 ## All tools belong in one of the four categories, and are assigned above
2715 ## We assign ${configdirs} this way to remove all embedded newlines. This
2716 ## is important because configure will choke if they ever get through.
2717 ## ${configdirs} is directories we build using the host tools.
2718 ## ${target_configdirs} is directories we build using the target tools.
2719 configdirs=`echo ${host_libs} ${host_tools}`
2720 target_configdirs=`echo ${target_libraries} ${target_tools}`
2721 build_configdirs=`echo ${build_libs} ${build_tools}`
2722
2723
2724
2725 ################################################################################
2726
2727 srcname="gnu development package"
2728
2729 # This gets set non-empty for some net releases of packages.
2730 appdirs=""
2731
2732 # Define is_cross_compiler to save on calls to 'test'.
2733 is_cross_compiler=
2734 if test x"${host}" = x"${target}" ; then
2735 is_cross_compiler=no
2736 else
2737 is_cross_compiler=yes
2738 fi
2739
2740 # Find the build and target subdir names.
2741
2742 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2743 # have matching libraries, they should use host libraries: Makefile.tpl
2744 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2745 # However, they still use the build modules, because the corresponding
2746 # host modules (e.g. bison) are only built for the host when bootstrap
2747 # finishes. So:
2748 # - build_subdir is where we find build modules, and never changes.
2749 # - build_libsubdir is where we find build libraries, and can be overridden.
2750
2751 # Prefix 'build-' so this never conflicts with target_subdir.
2752 build_subdir="build-${build_noncanonical}"
2753
2754 # Check whether --with-build-libsubdir was given.
2755 if test "${with_build_libsubdir+set}" = set; then :
2756 withval=$with_build_libsubdir; build_libsubdir="$withval"
2757 else
2758 build_libsubdir="$build_subdir"
2759 fi
2760
2761 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2762 if ( test $srcdir = . && test -d gcc ) \
2763 || test -d $srcdir/../host-${host_noncanonical}; then
2764 host_subdir="host-${host_noncanonical}"
2765 else
2766 host_subdir=.
2767 fi
2768 # No prefix.
2769 target_subdir=${target_noncanonical}
2770
2771 # Be sure to cover against remnants of an in-tree build.
2772 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2773 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2774 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2775 fi
2776
2777 # Skipdirs are removed silently.
2778 skipdirs=
2779 # Noconfigdirs are removed loudly.
2780 noconfigdirs=""
2781
2782 use_gnu_ld=
2783 # Make sure we don't let GNU ld be added if we didn't want it.
2784 if test x$with_gnu_ld = xno ; then
2785 use_gnu_ld=no
2786 noconfigdirs="$noconfigdirs ld gold"
2787 fi
2788
2789 use_gnu_as=
2790 # Make sure we don't let GNU as be added if we didn't want it.
2791 if test x$with_gnu_as = xno ; then
2792 use_gnu_as=no
2793 noconfigdirs="$noconfigdirs gas"
2794 fi
2795
2796 use_included_zlib=
2797 # Make sure we don't let ZLIB be added if we didn't want it.
2798 if test x$with_system_zlib = xyes ; then
2799 use_included_zlib=no
2800 noconfigdirs="$noconfigdirs zlib"
2801 fi
2802
2803 # some tools are so dependent upon X11 that if we're not building with X,
2804 # it's not even worth trying to configure, much less build, that tool.
2805
2806 case ${with_x} in
2807 yes | "") ;; # the default value for this tree is that X11 is available
2808 no)
2809 skipdirs="${skipdirs} tk itcl libgui"
2810 # We won't be able to build gdbtk without X.
2811 enable_gdbtk=no
2812 ;;
2813 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2814 esac
2815
2816 # Some are only suitable for cross toolchains.
2817 # Remove these if host=target.
2818 cross_only="target-libgloss target-newlib target-opcodes"
2819
2820 case $is_cross_compiler in
2821 no) skipdirs="${skipdirs} ${cross_only}" ;;
2822 esac
2823
2824 # If both --with-headers and --with-libs are specified, default to
2825 # --without-newlib.
2826 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2827 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2828 if test x"${with_newlib}" = x ; then
2829 with_newlib=no
2830 fi
2831 fi
2832
2833 # Recognize --with-newlib/--without-newlib.
2834 case ${with_newlib} in
2835 no) skipdirs="${skipdirs} target-newlib" ;;
2836 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2837 esac
2838
2839 # Handle --enable-gold, --enable-ld.
2840 # --disable-gold [--enable-ld]
2841 # Build only ld. Default option.
2842 # --enable-gold [--enable-ld]
2843 # Build both gold and ld. Install gold as "ld.gold", install ld
2844 # as "ld.bfd" and "ld".
2845 # --enable-gold=default [--enable-ld]
2846 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2847 # install ld as "ld.bfd".
2848 # --enable-gold[=default] --disable-ld
2849 # Build only gold, which is then installed as both "ld.gold" and "ld".
2850 # --enable-gold --enable-ld=default
2851 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2852 # and ld.bfd).
2853 # In other words, ld is default
2854 # --enable-gold=default --enable-ld=default
2855 # Error.
2856
2857 default_ld=
2858 # Check whether --enable-gold was given.
2859 if test "${enable_gold+set}" = set; then :
2860 enableval=$enable_gold; ENABLE_GOLD=$enableval
2861 else
2862 ENABLE_GOLD=no
2863 fi
2864
2865 case "${ENABLE_GOLD}" in
2866 yes|default)
2867 # Check for ELF target.
2868 is_elf=no
2869 case "${target}" in
2870 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2871 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2872 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2873 | *-*-solaris2* | *-*-nto*)
2874 case "${target}" in
2875 *-*-linux*aout* | *-*-linux*oldld*)
2876 ;;
2877 *)
2878 is_elf=yes
2879 ;;
2880 esac
2881 esac
2882
2883 if test "$is_elf" = "yes"; then
2884 # Check for target supported by gold.
2885 case "${target}" in
2886 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2887 configdirs="$configdirs gold"
2888 if test x${ENABLE_GOLD} = xdefault; then
2889 default_ld=gold
2890 fi
2891 ENABLE_GOLD=yes
2892 ;;
2893 esac
2894 fi
2895 ;;
2896 no)
2897 ;;
2898 *)
2899 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2900 ;;
2901 esac
2902
2903 # Check whether --enable-ld was given.
2904 if test "${enable_ld+set}" = set; then :
2905 enableval=$enable_ld; ENABLE_LD=$enableval
2906 else
2907 ENABLE_LD=yes
2908 fi
2909
2910
2911 case "${ENABLE_LD}" in
2912 default)
2913 if test x${default_ld} != x; then
2914 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2915 fi
2916 ;;
2917 yes)
2918 ;;
2919 no)
2920 if test x${ENABLE_GOLD} != xyes; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2922 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2923 fi
2924 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2925 ;;
2926 *)
2927 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2928 ;;
2929 esac
2930
2931 # Configure extra directories which are host specific
2932
2933 case "${host}" in
2934 *-cygwin*)
2935 configdirs="$configdirs libtermcap" ;;
2936 esac
2937
2938 # A target can indicate whether a language isn't supported for some reason.
2939 # Only spaces may be used in this macro; not newlines or tabs.
2940 unsupported_languages=
2941
2942 # Remove more programs from consideration, based on the host or
2943 # target this usually means that a port of the program doesn't
2944 # exist yet.
2945
2946 case "${host}" in
2947 i[3456789]86-*-msdosdjgpp*)
2948 noconfigdirs="$noconfigdirs tcl tk itcl"
2949 ;;
2950 esac
2951
2952
2953 # Check whether --enable-libquadmath was given.
2954 if test "${enable_libquadmath+set}" = set; then :
2955 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2956 else
2957 ENABLE_LIBQUADMATH=yes
2958 fi
2959
2960 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2961 noconfigdirs="$noconfigdirs target-libquadmath"
2962 fi
2963
2964
2965 # Check whether --enable-libquadmath-support was given.
2966 if test "${enable_libquadmath_support+set}" = set; then :
2967 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2968 else
2969 ENABLE_LIBQUADMATH_SUPPORT=yes
2970 fi
2971
2972 enable_libquadmath_support=
2973 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2974 enable_libquadmath_support=no
2975 fi
2976
2977
2978 # Check whether --enable-libada was given.
2979 if test "${enable_libada+set}" = set; then :
2980 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2981 else
2982 ENABLE_LIBADA=yes
2983 fi
2984
2985 if test "${ENABLE_LIBADA}" != "yes" ; then
2986 noconfigdirs="$noconfigdirs gnattools"
2987 fi
2988
2989 # Check whether --enable-libssp was given.
2990 if test "${enable_libssp+set}" = set; then :
2991 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2992 else
2993 ENABLE_LIBSSP=yes
2994 fi
2995
2996
2997 # Save it here so that, even in case of --enable-libgcj, if the Java
2998 # front-end isn't enabled, we still get libgcj disabled.
2999 libgcj_saved=$libgcj
3000 case $enable_libgcj in
3001 yes)
3002 # If we reset it here, it won't get added to noconfigdirs in the
3003 # target-specific build rules, so it will be forcibly enabled
3004 # (unless the Java language itself isn't enabled).
3005 libgcj=
3006 ;;
3007 no)
3008 # Make sure we get it printed in the list of not supported target libs.
3009 # Don't disable libffi, though, other languages use it.
3010 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3011 # Clear libgcj_saved so that even if java is enabled libffi won't be
3012 # built.
3013 libgcj_saved=
3014 ;;
3015 esac
3016
3017 # Check whether --enable-static-libjava was given.
3018 if test "${enable_static_libjava+set}" = set; then :
3019 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3020 else
3021 ENABLE_STATIC_LIBJAVA=no
3022 fi
3023
3024 enable_static_libjava=
3025 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3026 enable_static_libjava=yes
3027 fi
3028
3029 if test x$enable_static_libjava != xyes ; then
3030 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3031 fi
3032
3033
3034 # Disable libmudflap on some systems.
3035 if test x$enable_libmudflap = x ; then
3036 case "${target}" in
3037 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3038 # Enable libmudflap by default in GNU and friends.
3039 ;;
3040 *-*-freebsd*)
3041 # Enable libmudflap by default in FreeBSD.
3042 ;;
3043 *)
3044 # Disable it by default everywhere else.
3045 noconfigdirs="$noconfigdirs target-libmudflap"
3046 ;;
3047 esac
3048 fi
3049
3050 # Disable libgomp on non POSIX hosted systems.
3051 if test x$enable_libgomp = x ; then
3052 # Enable libgomp by default on hosted POSIX systems.
3053 case "${target}" in
3054 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3055 ;;
3056 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3057 ;;
3058 *-*-solaris2* | *-*-hpux11*)
3059 ;;
3060 *-*-darwin* | *-*-aix*)
3061 ;;
3062 *)
3063 noconfigdirs="$noconfigdirs target-libgomp"
3064 ;;
3065 esac
3066 fi
3067
3068 # Disable libatomic on unsupported systems.
3069 if test -d ${srcdir}/libatomic; then
3070 if test x$enable_libatomic = x; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3072 $as_echo_n "checking for libatomic support... " >&6; }
3073 if (srcdir=${srcdir}/libatomic; \
3074 . ${srcdir}/configure.tgt; \
3075 test -n "$UNSUPPORTED")
3076 then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3079 noconfigdirs="$noconfigdirs target-libatomic"
3080 else
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3082 $as_echo "yes" >&6; }
3083 fi
3084 fi
3085 fi
3086
3087 # Disable libitm on unsupported systems.
3088 if test -d ${srcdir}/libitm; then
3089 if test x$enable_libitm = x; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3091 $as_echo_n "checking for libitm support... " >&6; }
3092 if (srcdir=${srcdir}/libitm; \
3093 . ${srcdir}/configure.tgt; \
3094 test -n "$UNSUPPORTED")
3095 then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3098 noconfigdirs="$noconfigdirs target-libitm"
3099 else
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3101 $as_echo "yes" >&6; }
3102 fi
3103 fi
3104 fi
3105
3106 # Disable libssp for some systems.
3107 case "${target}" in
3108 avr-*-*)
3109 # No hosted I/O support.
3110 noconfigdirs="$noconfigdirs target-libssp"
3111 ;;
3112 powerpc-*-aix* | rs6000-*-aix*)
3113 noconfigdirs="$noconfigdirs target-libssp"
3114 ;;
3115 rl78-*-*)
3116 # libssp uses a misaligned load to trigger a fault, but the RL78
3117 # doesn't fault for those - instead, it gives a build-time error
3118 # for explicit misaligned loads.
3119 noconfigdirs="$noconfigdirs target-libssp"
3120 ;;
3121 esac
3122
3123 # Disable libstdc++-v3 for some systems.
3124 case "${target}" in
3125 *-*-vxworks*)
3126 # VxWorks uses the Dinkumware C++ library.
3127 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3128 ;;
3129 arm*-wince-pe*)
3130 # the C++ libraries don't build on top of CE's C libraries
3131 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3132 ;;
3133 avr-*-*)
3134 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3135 ;;
3136 esac
3137
3138 # Disable Fortran for some systems.
3139 case "${target}" in
3140 mmix-*-*)
3141 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3142 unsupported_languages="$unsupported_languages fortran"
3143 ;;
3144 esac
3145
3146 # Disable Java if libffi is not supported.
3147 case "${target}" in
3148 alpha*-*-*)
3149 ;;
3150 arm*-*-*)
3151 ;;
3152 cris-*-*)
3153 ;;
3154 frv-*-*)
3155 ;;
3156 hppa*-*-linux*)
3157 ;;
3158 hppa*-*-hpux*)
3159 ;;
3160 i?86-*-*)
3161 ;;
3162 ia64*-*-*)
3163 ;;
3164 m32r*-*-*)
3165 ;;
3166 m68k-*-*)
3167 ;;
3168 mips*-*-rtems*)
3169 ;;
3170 mips*-*-linux*)
3171 ;;
3172 powerpc*-*-linux*)
3173 ;;
3174 powerpc-*-darwin*)
3175 ;;
3176 powerpc-*-aix* | rs6000-*-aix*)
3177 ;;
3178 powerpc-*-freebsd*)
3179 ;;
3180 powerpc64-*-freebsd*)
3181 ;;
3182 powerpc*-*-rtems*)
3183 ;;
3184 s390-*-* | s390x-*-*)
3185 ;;
3186 sh-*-* | sh[34]*-*-*)
3187 ;;
3188 sh64-*-* | sh5*-*-*)
3189 ;;
3190 sparc*-*-*)
3191 ;;
3192 x86_64-*-*)
3193 ;;
3194 *-*-*)
3195 unsupported_languages="$unsupported_languages java"
3196 ;;
3197 esac
3198
3199 # Disable Java, libgcj or related libraries for some systems.
3200 case "${target}" in
3201 powerpc-*-darwin*)
3202 ;;
3203 i[3456789]86-*-darwin*)
3204 ;;
3205 x86_64-*-darwin[912]*)
3206 ;;
3207 *-*-darwin*)
3208 noconfigdirs="$noconfigdirs ${libgcj}"
3209 ;;
3210 *-*-netware*)
3211 noconfigdirs="$noconfigdirs ${libgcj}"
3212 ;;
3213 *-*-rtems*)
3214 noconfigdirs="$noconfigdirs ${libgcj}"
3215 ;;
3216 *-*-tpf*)
3217 noconfigdirs="$noconfigdirs ${libgcj}"
3218 ;;
3219 *-*-uclinux*)
3220 noconfigdirs="$noconfigdirs ${libgcj}"
3221 ;;
3222 *-*-vxworks*)
3223 noconfigdirs="$noconfigdirs ${libgcj}"
3224 ;;
3225 alpha*-*-*vms*)
3226 noconfigdirs="$noconfigdirs ${libgcj}"
3227 ;;
3228 arm-wince-pe)
3229 noconfigdirs="$noconfigdirs ${libgcj}"
3230 ;;
3231 arm*-*-symbianelf*)
3232 noconfigdirs="$noconfigdirs ${libgcj}"
3233 ;;
3234 bfin-*-*)
3235 noconfigdirs="$noconfigdirs target-boehm-gc"
3236 ;;
3237 cris-*-* | crisv32-*-*)
3238 unsupported_languages="$unsupported_languages java"
3239 case "${target}" in
3240 *-*-linux*)
3241 ;;
3242 *) # See PR46792 regarding target-libffi.
3243 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3244 esac
3245 ;;
3246 hppa*64*-*-linux*)
3247 # In this case, it's because the hppa64-linux target is for
3248 # the kernel only at this point and has no libc, and thus no
3249 # headers, crt*.o, etc., all of which are needed by these.
3250 unsupported_languages="$unsupported_languages java"
3251 ;;
3252 hppa*64*-*-hpux*)
3253 noconfigdirs="$noconfigdirs ${libgcj}"
3254 ;;
3255 hppa*-hp-hpux11*)
3256 ;;
3257 hppa*-*-hpux*)
3258 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3259 # build on HP-UX 10.20.
3260 noconfigdirs="$noconfigdirs ${libgcj}"
3261 ;;
3262 ia64*-*-*vms*)
3263 noconfigdirs="$noconfigdirs ${libgcj}"
3264 ;;
3265 i[3456789]86-w64-mingw*)
3266 noconfigdirs="$noconfigdirs ${libgcj}"
3267 ;;
3268 i[3456789]86-*-mingw*)
3269 noconfigdirs="$noconfigdirs ${libgcj}"
3270 ;;
3271 x86_64-*-mingw*)
3272 noconfigdirs="$noconfigdirs ${libgcj}"
3273 ;;
3274 mmix-*-*)
3275 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3276 ;;
3277 powerpc-*-aix*)
3278 # copied from rs6000-*-* entry
3279 noconfigdirs="$noconfigdirs ${libgcj}"
3280 ;;
3281 rs6000-*-aix*)
3282 noconfigdirs="$noconfigdirs ${libgcj}"
3283 ;;
3284 *-*-lynxos*)
3285 noconfigdirs="$noconfigdirs ${libgcj}"
3286 ;;
3287 esac
3288
3289 # Default libgloss CPU subdirectory.
3290 libgloss_dir="$target_cpu"
3291
3292 case "${target}" in
3293 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3294 libgloss_dir=wince
3295 ;;
3296 arm*-*-*)
3297 libgloss_dir=arm
3298 ;;
3299 cris-*-* | crisv32-*-*)
3300 libgloss_dir=cris
3301 ;;
3302 hppa*-*-*)
3303 libgloss_dir=pa
3304 ;;
3305 i[3456789]86-*-*)
3306 libgloss_dir=i386
3307 ;;
3308 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3309 libgloss_dir=m68hc11
3310 ;;
3311 m68*-*-* | fido-*-*)
3312 libgloss_dir=m68k
3313 ;;
3314 mips*-*-*)
3315 libgloss_dir=mips
3316 ;;
3317 powerpc*-*-*)
3318 libgloss_dir=rs6000
3319 ;;
3320 sparc*-*-*)
3321 libgloss_dir=sparc
3322 ;;
3323 esac
3324
3325 # Disable newlib and libgloss for various target OSes.
3326 case "${target}" in
3327 alpha*-dec-osf*)
3328 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3329 ;;
3330 i[3456789]86-*-linux*)
3331 # This section makes it possible to build newlib natively on linux.
3332 # If we are using a cross compiler then don't configure newlib.
3333 if test x${is_cross_compiler} != xno ; then
3334 noconfigdirs="$noconfigdirs target-newlib"
3335 fi
3336 noconfigdirs="$noconfigdirs target-libgloss"
3337 # If we are not using a cross compiler, do configure newlib.
3338 # Note however, that newlib will only be configured in this situation
3339 # if the --with-newlib option has been given, because otherwise
3340 # 'target-newlib' will appear in skipdirs.
3341 ;;
3342 i[3456789]86-*-rdos*)
3343 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3344 ;;
3345 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3346 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3347 ;;
3348 sparc-*-sunos4*)
3349 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3350 ;;
3351 *-*-aix*)
3352 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3353 ;;
3354 *-*-beos*)
3355 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3356 ;;
3357 *-*-chorusos)
3358 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3359 ;;
3360 *-*-dragonfly*)
3361 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3362 ;;
3363 *-*-freebsd*)
3364 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3365 ;;
3366 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3367 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3368 ;;
3369 *-*-lynxos*)
3370 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3371 ;;
3372 *-*-mingw*)
3373 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3374 ;;
3375 *-*-netbsd*)
3376 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3377 ;;
3378 *-*-netware*)
3379 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3380 ;;
3381 *-*-tpf*)
3382 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3383 ;;
3384 *-*-uclinux*)
3385 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3386 ;;
3387 *-*-vxworks*)
3388 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3389 ;;
3390 esac
3391
3392 case "${target}" in
3393 *-*-chorusos)
3394 ;;
3395 powerpc-*-darwin*)
3396 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3397 noconfigdirs="$noconfigdirs sim target-rda"
3398 ;;
3399 i[3456789]86-*-darwin*)
3400 noconfigdirs="$noconfigdirs ld gprof"
3401 noconfigdirs="$noconfigdirs sim target-rda"
3402 ;;
3403 x86_64-*-darwin[912]*)
3404 noconfigdirs="$noconfigdirs ld gas gprof"
3405 noconfigdirs="$noconfigdirs sim target-rda"
3406 ;;
3407 *-*-darwin*)
3408 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3409 noconfigdirs="$noconfigdirs sim target-rda"
3410 ;;
3411 *-*-dragonfly*)
3412 ;;
3413 *-*-freebsd*)
3414 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3415 && test -f /usr/local/include/gmp.h; then
3416 with_gmp=/usr/local
3417 fi
3418 ;;
3419 *-*-kaos*)
3420 # Remove unsupported stuff on all kaOS configurations.
3421 noconfigdirs="$noconfigdirs target-libgloss"
3422 ;;
3423 *-*-netbsd*)
3424 ;;
3425 *-*-netware*)
3426 ;;
3427 *-*-rtems*)
3428 noconfigdirs="$noconfigdirs target-libgloss"
3429 ;;
3430 # The tpf target doesn't support gdb yet.
3431 *-*-tpf*)
3432 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3433 ;;
3434 *-*-uclinux*)
3435 noconfigdirs="$noconfigdirs target-rda"
3436 ;;
3437 *-*-vxworks*)
3438 ;;
3439 alpha*-dec-osf*)
3440 # ld works, but does not support shared libraries.
3441 # gas doesn't generate exception information.
3442 noconfigdirs="$noconfigdirs gas ld"
3443 ;;
3444 alpha*-*-*vms*)
3445 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3446 ;;
3447 alpha*-*-*)
3448 # newlib is not 64 bit ready
3449 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3450 ;;
3451 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3452 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3453 ;;
3454 arc-*-*)
3455 noconfigdirs="$noconfigdirs target-libgloss"
3456 ;;
3457 arm-*-pe*)
3458 noconfigdirs="$noconfigdirs target-libgloss"
3459 ;;
3460 arm-*-riscix*)
3461 noconfigdirs="$noconfigdirs ld target-libgloss"
3462 ;;
3463 c4x-*-* | tic4x-*-*)
3464 noconfigdirs="$noconfigdirs target-libgloss"
3465 ;;
3466 tic54x-*-*)
3467 noconfigdirs="$noconfigdirs target-libgloss gdb"
3468 ;;
3469 d10v-*-*)
3470 noconfigdirs="$noconfigdirs target-libgloss"
3471 ;;
3472 d30v-*-*)
3473 noconfigdirs="$noconfigdirs gdb"
3474 ;;
3475 fr30-*-elf*)
3476 noconfigdirs="$noconfigdirs gdb"
3477 ;;
3478 moxie-*-*)
3479 noconfigdirs="$noconfigdirs gprof"
3480 ;;
3481 h8300*-*-*)
3482 noconfigdirs="$noconfigdirs target-libgloss"
3483 ;;
3484 h8500-*-*)
3485 noconfigdirs="$noconfigdirs target-libgloss"
3486 ;;
3487 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3488 ;;
3489 hppa*64*-*-linux*)
3490 ;;
3491 hppa*-*-linux*)
3492 ;;
3493 hppa*-*-*elf* | \
3494 hppa*-*-lites* | \
3495 hppa*-*-openbsd* | \
3496 hppa*64*-*-*)
3497 ;;
3498 hppa*-hp-hpux11*)
3499 noconfigdirs="$noconfigdirs ld"
3500 ;;
3501 hppa*-*-pro*)
3502 ;;
3503 hppa*-*-*)
3504 noconfigdirs="$noconfigdirs ld"
3505 ;;
3506 i960-*-*)
3507 noconfigdirs="$noconfigdirs gdb"
3508 ;;
3509 ia64*-*-elf*)
3510 # No gdb support yet.
3511 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3512 ;;
3513 ia64*-**-hpux*)
3514 # No ld support yet.
3515 noconfigdirs="$noconfigdirs libgui itcl ld"
3516 ;;
3517 ia64*-*-*vms*)
3518 # No ld support yet.
3519 noconfigdirs="$noconfigdirs libgui itcl ld"
3520 ;;
3521 i[3456789]86-w64-mingw*)
3522 ;;
3523 i[3456789]86-*-mingw*)
3524 target_configdirs="$target_configdirs target-winsup"
3525 ;;
3526 *-*-cygwin*)
3527 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3528 noconfigdirs="$noconfigdirs target-libgloss"
3529 # always build newlib if winsup directory is present.
3530 if test -d "$srcdir/winsup/cygwin"; then
3531 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3532 elif test -d "$srcdir/newlib"; then
3533 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3534 fi
3535 ;;
3536 i[3456789]86-*-pe)
3537 noconfigdirs="$noconfigdirs target-libgloss"
3538 ;;
3539 i[3456789]86-*-sco3.2v5*)
3540 # The linker does not yet know about weak symbols in COFF,
3541 # and is not configured to handle mixed ELF and COFF.
3542 noconfigdirs="$noconfigdirs ld target-libgloss"
3543 ;;
3544 i[3456789]86-*-sco*)
3545 noconfigdirs="$noconfigdirs gprof target-libgloss"
3546 ;;
3547 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3548 noconfigdirs="$noconfigdirs target-libgloss"
3549 ;;
3550 i[3456789]86-*-sysv4*)
3551 noconfigdirs="$noconfigdirs target-libgloss"
3552 ;;
3553 i[3456789]86-*-beos*)
3554 noconfigdirs="$noconfigdirs gdb"
3555 ;;
3556 i[3456789]86-*-rdos*)
3557 noconfigdirs="$noconfigdirs gdb"
3558 ;;
3559 mmix-*-*)
3560 noconfigdirs="$noconfigdirs gdb"
3561 ;;
3562 mt-*-*)
3563 noconfigdirs="$noconfigdirs sim"
3564 ;;
3565 powerpc-*-aix*)
3566 # copied from rs6000-*-* entry
3567 noconfigdirs="$noconfigdirs gprof"
3568 ;;
3569 powerpc*-*-winnt* | powerpc*-*-pe*)
3570 target_configdirs="$target_configdirs target-winsup"
3571 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3572 # always build newlib.
3573 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3574 ;;
3575 # This is temporary until we can link against shared libraries
3576 powerpcle-*-solaris*)
3577 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3578 ;;
3579 powerpc-*-beos*)
3580 noconfigdirs="$noconfigdirs gdb"
3581 ;;
3582 rs6000-*-lynxos*)
3583 noconfigdirs="$noconfigdirs gprof"
3584 ;;
3585 rs6000-*-aix*)
3586 noconfigdirs="$noconfigdirs gprof"
3587 ;;
3588 rs6000-*-*)
3589 noconfigdirs="$noconfigdirs gprof"
3590 ;;
3591 m68k-apollo-*)
3592 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3593 ;;
3594 microblaze*)
3595 noconfigdirs="$noconfigdirs gprof"
3596 ;;
3597 mips*-sde-elf*)
3598 if test x$with_newlib = xyes; then
3599 noconfigdirs="$noconfigdirs gprof"
3600 fi
3601 ;;
3602 mips*-*-irix5*)
3603 noconfigdirs="$noconfigdirs gprof target-libgloss"
3604 ;;
3605 mips*-*-irix6*)
3606 noconfigdirs="$noconfigdirs gprof target-libgloss"
3607 ;;
3608 mips*-*-bsd*)
3609 noconfigdirs="$noconfigdirs gprof target-libgloss"
3610 ;;
3611 mips*-*-linux*)
3612 ;;
3613 mips*-*-*)
3614 noconfigdirs="$noconfigdirs gprof"
3615 ;;
3616 sh-*-* | sh64-*-*)
3617 case "${target}" in
3618 sh*-*-elf)
3619 ;;
3620 *)
3621 noconfigdirs="$noconfigdirs target-libgloss" ;;
3622 esac
3623 ;;
3624 sparc-*-sunos4*)
3625 if test x${is_cross_compiler} = xno ; then
3626 use_gnu_ld=no
3627 fi
3628 ;;
3629 tic6x-*-*)
3630 noconfigdirs="$noconfigdirs sim"
3631 ;;
3632 tilepro-*-* | tilegx-*-*)
3633 noconfigdirs="$noconfigdirs sim"
3634 ;;
3635 v810-*-*)
3636 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3637 ;;
3638 vax-*-*)
3639 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3640 ;;
3641 esac
3642
3643 # If we aren't building newlib, then don't build libgloss, since libgloss
3644 # depends upon some newlib header files.
3645 case "${noconfigdirs}" in
3646 *target-libgloss*) ;;
3647 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3648 esac
3649
3650 # Work in distributions that contain no compiler tools, like Autoconf.
3651 host_makefile_frag=/dev/null
3652 if test -d ${srcdir}/config ; then
3653 case "${host}" in
3654 i[3456789]86-*-msdosdjgpp*)
3655 host_makefile_frag="config/mh-djgpp"
3656 ;;
3657 *-cygwin*)
3658
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3660 $as_echo_n "checking to see if cat works as expected... " >&6; }
3661 echo a >cygwin-cat-check
3662 if test `cat cygwin-cat-check` = a ; then
3663 rm cygwin-cat-check
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3665 $as_echo "yes" >&6; }
3666 else
3667 rm cygwin-cat-check
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 $as_echo "no" >&6; }
3670 as_fn_error "The cat command does not ignore carriage return characters.
3671 Please either mount the build directory in binary mode or run the following
3672 commands before running any configure script:
3673 set -o igncr
3674 export SHELLOPTS
3675 " "$LINENO" 5
3676 fi
3677
3678 host_makefile_frag="config/mh-cygwin"
3679 ;;
3680 *-mingw*)
3681 host_makefile_frag="config/mh-mingw"
3682 ;;
3683 hppa*-hp-hpux10*)
3684 host_makefile_frag="config/mh-pa-hpux10"
3685 ;;
3686 hppa*-hp-hpux*)
3687 host_makefile_frag="config/mh-pa"
3688 ;;
3689 hppa*-*)
3690 host_makefile_frag="config/mh-pa"
3691 ;;
3692 *-*-darwin*)
3693 host_makefile_frag="config/mh-darwin"
3694 ;;
3695 powerpc-*-aix*)
3696 host_makefile_frag="config/mh-ppc-aix"
3697 ;;
3698 rs6000-*-aix*)
3699 host_makefile_frag="config/mh-ppc-aix"
3700 ;;
3701 esac
3702 fi
3703
3704 if test "${build}" != "${host}" ; then
3705 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3706 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3707 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3708 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3709 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3710 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3711 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3712 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3713 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3714 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3715 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3716 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3717 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3718 else
3719 AR_FOR_BUILD="\$(AR)"
3720 AS_FOR_BUILD="\$(AS)"
3721 CC_FOR_BUILD="\$(CC)"
3722 CXX_FOR_BUILD="\$(CXX)"
3723 GCJ_FOR_BUILD="\$(GCJ)"
3724 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3725 GOC_FOR_BUILD="\$(GOC)"
3726 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3727 LD_FOR_BUILD="\$(LD)"
3728 NM_FOR_BUILD="\$(NM)"
3729 RANLIB_FOR_BUILD="\$(RANLIB)"
3730 WINDRES_FOR_BUILD="\$(WINDRES)"
3731 WINDMC_FOR_BUILD="\$(WINDMC)"
3732 fi
3733
3734 ac_ext=c
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739 if test -n "$ac_tool_prefix"; then
3740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if test "${ac_cv_prog_CC+set}" = set; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 if test -n "$CC"; then
3748 ac_cv_prog_CC="$CC" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3757 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3760 fi
3761 done
3762 done
3763 IFS=$as_save_IFS
3764
3765 fi
3766 fi
3767 CC=$ac_cv_prog_CC
3768 if test -n "$CC"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770 $as_echo "$CC" >&6; }
3771 else
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3774 fi
3775
3776
3777 fi
3778 if test -z "$ac_cv_prog_CC"; then
3779 ac_ct_CC=$CC
3780 # Extract the first word of "gcc", so it can be a program name with args.
3781 set dummy gcc; ac_word=$2
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783 $as_echo_n "checking for $ac_word... " >&6; }
3784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3785 $as_echo_n "(cached) " >&6
3786 else
3787 if test -n "$ac_ct_CC"; then
3788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3792 do
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3797 ac_cv_prog_ac_ct_CC="gcc"
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3800 fi
3801 done
3802 done
3803 IFS=$as_save_IFS
3804
3805 fi
3806 fi
3807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3808 if test -n "$ac_ct_CC"; then
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3810 $as_echo "$ac_ct_CC" >&6; }
3811 else
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3814 fi
3815
3816 if test "x$ac_ct_CC" = x; then
3817 CC=""
3818 else
3819 case $cross_compiling:$ac_tool_warned in
3820 yes:)
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823 ac_tool_warned=yes ;;
3824 esac
3825 CC=$ac_ct_CC
3826 fi
3827 else
3828 CC="$ac_cv_prog_CC"
3829 fi
3830
3831 if test -z "$CC"; then
3832 if test -n "$ac_tool_prefix"; then
3833 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3834 set dummy ${ac_tool_prefix}cc; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if test "${ac_cv_prog_CC+set}" = set; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 if test -n "$CC"; then
3841 ac_cv_prog_CC="$CC" # Let the user override the test.
3842 else
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3845 do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3850 ac_cv_prog_CC="${ac_tool_prefix}cc"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3853 fi
3854 done
3855 done
3856 IFS=$as_save_IFS
3857
3858 fi
3859 fi
3860 CC=$ac_cv_prog_CC
3861 if test -n "$CC"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3863 $as_echo "$CC" >&6; }
3864 else
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3867 fi
3868
3869
3870 fi
3871 fi
3872 if test -z "$CC"; then
3873 # Extract the first word of "cc", so it can be a program name with args.
3874 set dummy cc; ac_word=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if test "${ac_cv_prog_CC+set}" = set; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 if test -n "$CC"; then
3881 ac_cv_prog_CC="$CC" # Let the user override the test.
3882 else
3883 ac_prog_rejected=no
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3886 do
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3892 ac_prog_rejected=yes
3893 continue
3894 fi
3895 ac_cv_prog_CC="cc"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3898 fi
3899 done
3900 done
3901 IFS=$as_save_IFS
3902
3903 if test $ac_prog_rejected = yes; then
3904 # We found a bogon in the path, so make sure we never use it.
3905 set dummy $ac_cv_prog_CC
3906 shift
3907 if test $# != 0; then
3908 # We chose a different compiler from the bogus one.
3909 # However, it has the same basename, so the bogon will be chosen
3910 # first if we set CC to just the basename; use the full file name.
3911 shift
3912 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3913 fi
3914 fi
3915 fi
3916 fi
3917 CC=$ac_cv_prog_CC
3918 if test -n "$CC"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3920 $as_echo "$CC" >&6; }
3921 else
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3924 fi
3925
3926
3927 fi
3928 if test -z "$CC"; then
3929 if test -n "$ac_tool_prefix"; then
3930 for ac_prog in cl.exe
3931 do
3932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if test "${ac_cv_prog_CC+set}" = set; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 if test -n "$CC"; then
3940 ac_cv_prog_CC="$CC" # Let the user override the test.
3941 else
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH
3944 do
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3949 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 break 2
3952 fi
3953 done
3954 done
3955 IFS=$as_save_IFS
3956
3957 fi
3958 fi
3959 CC=$ac_cv_prog_CC
3960 if test -n "$CC"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962 $as_echo "$CC" >&6; }
3963 else
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3966 fi
3967
3968
3969 test -n "$CC" && break
3970 done
3971 fi
3972 if test -z "$CC"; then
3973 ac_ct_CC=$CC
3974 for ac_prog in cl.exe
3975 do
3976 # Extract the first word of "$ac_prog", so it can be a program name with args.
3977 set dummy $ac_prog; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 if test -n "$ac_ct_CC"; then
3984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3988 do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3993 ac_cv_prog_ac_ct_CC="$ac_prog"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3996 fi
3997 done
3998 done
3999 IFS=$as_save_IFS
4000
4001 fi
4002 fi
4003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4004 if test -n "$ac_ct_CC"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4006 $as_echo "$ac_ct_CC" >&6; }
4007 else
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4010 fi
4011
4012
4013 test -n "$ac_ct_CC" && break
4014 done
4015
4016 if test "x$ac_ct_CC" = x; then
4017 CC=""
4018 else
4019 case $cross_compiling:$ac_tool_warned in
4020 yes:)
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4023 ac_tool_warned=yes ;;
4024 esac
4025 CC=$ac_ct_CC
4026 fi
4027 fi
4028
4029 fi
4030
4031
4032 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 as_fn_error "no acceptable C compiler found in \$PATH
4035 See \`config.log' for more details." "$LINENO" 5; }
4036
4037 # Provide some information about the compiler.
4038 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4039 set X $ac_compile
4040 ac_compiler=$2
4041 for ac_option in --version -v -V -qversion; do
4042 { { ac_try="$ac_compiler $ac_option >&5"
4043 case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046 esac
4047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4048 $as_echo "$ac_try_echo"; } >&5
4049 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4050 ac_status=$?
4051 if test -s conftest.err; then
4052 sed '10a\
4053 ... rest of stderr output deleted ...
4054 10q' conftest.err >conftest.er1
4055 cat conftest.er1 >&5
4056 rm -f conftest.er1 conftest.err
4057 fi
4058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059 test $ac_status = 0; }
4060 done
4061
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4064
4065 int
4066 main ()
4067 {
4068
4069 ;
4070 return 0;
4071 }
4072 _ACEOF
4073 ac_clean_files_save=$ac_clean_files
4074 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4075 # Try to create an executable without -o first, disregard a.out.
4076 # It will help us diagnose broken compilers, and finding out an intuition
4077 # of exeext.
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4079 $as_echo_n "checking for C compiler default output file name... " >&6; }
4080 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4081
4082 # The possible output files:
4083 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4084
4085 ac_rmfiles=
4086 for ac_file in $ac_files
4087 do
4088 case $ac_file in
4089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4090 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4091 esac
4092 done
4093 rm -f $ac_rmfiles
4094
4095 if { { ac_try="$ac_link_default"
4096 case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099 esac
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_link_default") 2>&5
4103 ac_status=$?
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }; then :
4106 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4107 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4108 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4109 # so that the user can short-circuit this test for compilers unknown to
4110 # Autoconf.
4111 for ac_file in $ac_files ''
4112 do
4113 test -f "$ac_file" || continue
4114 case $ac_file in
4115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4116 ;;
4117 [ab].out )
4118 # We found the default executable, but exeext='' is most
4119 # certainly right.
4120 break;;
4121 *.* )
4122 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4123 then :; else
4124 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4125 fi
4126 # We set ac_cv_exeext here because the later test for it is not
4127 # safe: cross compilers may not add the suffix if given an `-o'
4128 # argument, so we may need to know it at that point already.
4129 # Even if this section looks crufty: it has the advantage of
4130 # actually working.
4131 break;;
4132 * )
4133 break;;
4134 esac
4135 done
4136 test "$ac_cv_exeext" = no && ac_cv_exeext=
4137
4138 else
4139 ac_file=''
4140 fi
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4142 $as_echo "$ac_file" >&6; }
4143 if test -z "$ac_file"; then :
4144 $as_echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4149 { as_fn_set_status 77
4150 as_fn_error "C compiler cannot create executables
4151 See \`config.log' for more details." "$LINENO" 5; }; }
4152 fi
4153 ac_exeext=$ac_cv_exeext
4154
4155 # Check that the compiler produces executables we can run. If not, either
4156 # the compiler is broken, or we cross compile.
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4158 $as_echo_n "checking whether the C compiler works... " >&6; }
4159 # If not cross compiling, check that we can run a simple program.
4160 if test "$cross_compiling" != yes; then
4161 if { ac_try='./$ac_file'
4162 { { case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4165 esac
4166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4167 $as_echo "$ac_try_echo"; } >&5
4168 (eval "$ac_try") 2>&5
4169 ac_status=$?
4170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4171 test $ac_status = 0; }; }; then
4172 cross_compiling=no
4173 else
4174 if test "$cross_compiling" = maybe; then
4175 cross_compiling=yes
4176 else
4177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4179 as_fn_error "cannot run C compiled programs.
4180 If you meant to cross compile, use \`--host'.
4181 See \`config.log' for more details." "$LINENO" 5; }
4182 fi
4183 fi
4184 fi
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4186 $as_echo "yes" >&6; }
4187
4188 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4189 ac_clean_files=$ac_clean_files_save
4190 # Check that the compiler produces executables we can run. If not, either
4191 # the compiler is broken, or we cross compile.
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4193 $as_echo_n "checking whether we are cross compiling... " >&6; }
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4195 $as_echo "$cross_compiling" >&6; }
4196
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4198 $as_echo_n "checking for suffix of executables... " >&6; }
4199 if { { ac_try="$ac_link"
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_link") 2>&5
4207 ac_status=$?
4208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209 test $ac_status = 0; }; then :
4210 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4211 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4212 # work properly (i.e., refer to `conftest.exe'), while it won't with
4213 # `rm'.
4214 for ac_file in conftest.exe conftest conftest.*; do
4215 test -f "$ac_file" || continue
4216 case $ac_file in
4217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4218 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4219 break;;
4220 * ) break;;
4221 esac
4222 done
4223 else
4224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4226 as_fn_error "cannot compute suffix of executables: cannot compile and link
4227 See \`config.log' for more details." "$LINENO" 5; }
4228 fi
4229 rm -f conftest$ac_cv_exeext
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4231 $as_echo "$ac_cv_exeext" >&6; }
4232
4233 rm -f conftest.$ac_ext
4234 EXEEXT=$ac_cv_exeext
4235 ac_exeext=$EXEEXT
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4237 $as_echo_n "checking for suffix of object files... " >&6; }
4238 if test "${ac_cv_objext+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243
4244 int
4245 main ()
4246 {
4247
4248 ;
4249 return 0;
4250 }
4251 _ACEOF
4252 rm -f conftest.o conftest.obj
4253 if { { ac_try="$ac_compile"
4254 case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4257 esac
4258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4259 $as_echo "$ac_try_echo"; } >&5
4260 (eval "$ac_compile") 2>&5
4261 ac_status=$?
4262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4263 test $ac_status = 0; }; then :
4264 for ac_file in conftest.o conftest.obj conftest.*; do
4265 test -f "$ac_file" || continue;
4266 case $ac_file in
4267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4269 break;;
4270 esac
4271 done
4272 else
4273 $as_echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4275
4276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4278 as_fn_error "cannot compute suffix of object files: cannot compile
4279 See \`config.log' for more details." "$LINENO" 5; }
4280 fi
4281 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4282 fi
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4284 $as_echo "$ac_cv_objext" >&6; }
4285 OBJEXT=$ac_cv_objext
4286 ac_objext=$OBJEXT
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4288 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4289 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4294
4295 int
4296 main ()
4297 {
4298 #ifndef __GNUC__
4299 choke me
4300 #endif
4301
4302 ;
4303 return 0;
4304 }
4305 _ACEOF
4306 if ac_fn_c_try_compile "$LINENO"; then :
4307 ac_compiler_gnu=yes
4308 else
4309 ac_compiler_gnu=no
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4313
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4316 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4317 if test $ac_compiler_gnu = yes; then
4318 GCC=yes
4319 else
4320 GCC=
4321 fi
4322 ac_test_CFLAGS=${CFLAGS+set}
4323 ac_save_CFLAGS=$CFLAGS
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4325 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4326 if test "${ac_cv_prog_cc_g+set}" = set; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 ac_save_c_werror_flag=$ac_c_werror_flag
4330 ac_c_werror_flag=yes
4331 ac_cv_prog_cc_g=no
4332 CFLAGS="-g"
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4335
4336 int
4337 main ()
4338 {
4339
4340 ;
4341 return 0;
4342 }
4343 _ACEOF
4344 if ac_fn_c_try_compile "$LINENO"; then :
4345 ac_cv_prog_cc_g=yes
4346 else
4347 CFLAGS=""
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350
4351 int
4352 main ()
4353 {
4354
4355 ;
4356 return 0;
4357 }
4358 _ACEOF
4359 if ac_fn_c_try_compile "$LINENO"; then :
4360
4361 else
4362 ac_c_werror_flag=$ac_save_c_werror_flag
4363 CFLAGS="-g"
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4366
4367 int
4368 main ()
4369 {
4370
4371 ;
4372 return 0;
4373 }
4374 _ACEOF
4375 if ac_fn_c_try_compile "$LINENO"; then :
4376 ac_cv_prog_cc_g=yes
4377 fi
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 fi
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 fi
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 ac_c_werror_flag=$ac_save_c_werror_flag
4384 fi
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4386 $as_echo "$ac_cv_prog_cc_g" >&6; }
4387 if test "$ac_test_CFLAGS" = set; then
4388 CFLAGS=$ac_save_CFLAGS
4389 elif test $ac_cv_prog_cc_g = yes; then
4390 if test "$GCC" = yes; then
4391 CFLAGS="-g -O2"
4392 else
4393 CFLAGS="-g"
4394 fi
4395 else
4396 if test "$GCC" = yes; then
4397 CFLAGS="-O2"
4398 else
4399 CFLAGS=
4400 fi
4401 fi
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4403 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4404 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 ac_cv_prog_cc_c89=no
4408 ac_save_CC=$CC
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 #include <stdarg.h>
4412 #include <stdio.h>
4413 #include <sys/types.h>
4414 #include <sys/stat.h>
4415 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4416 struct buf { int x; };
4417 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4418 static char *e (p, i)
4419 char **p;
4420 int i;
4421 {
4422 return p[i];
4423 }
4424 static char *f (char * (*g) (char **, int), char **p, ...)
4425 {
4426 char *s;
4427 va_list v;
4428 va_start (v,p);
4429 s = g (p, va_arg (v,int));
4430 va_end (v);
4431 return s;
4432 }
4433
4434 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4435 function prototypes and stuff, but not '\xHH' hex character constants.
4436 These don't provoke an error unfortunately, instead are silently treated
4437 as 'x'. The following induces an error, until -std is added to get
4438 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4439 array size at least. It's necessary to write '\x00'==0 to get something
4440 that's true only with -std. */
4441 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4442
4443 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4444 inside strings and character constants. */
4445 #define FOO(x) 'x'
4446 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4447
4448 int test (int i, double x);
4449 struct s1 {int (*f) (int a);};
4450 struct s2 {int (*f) (double a);};
4451 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4452 int argc;
4453 char **argv;
4454 int
4455 main ()
4456 {
4457 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4458 ;
4459 return 0;
4460 }
4461 _ACEOF
4462 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4463 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4464 do
4465 CC="$ac_save_CC $ac_arg"
4466 if ac_fn_c_try_compile "$LINENO"; then :
4467 ac_cv_prog_cc_c89=$ac_arg
4468 fi
4469 rm -f core conftest.err conftest.$ac_objext
4470 test "x$ac_cv_prog_cc_c89" != "xno" && break
4471 done
4472 rm -f conftest.$ac_ext
4473 CC=$ac_save_CC
4474
4475 fi
4476 # AC_CACHE_VAL
4477 case "x$ac_cv_prog_cc_c89" in
4478 x)
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4480 $as_echo "none needed" >&6; } ;;
4481 xno)
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4483 $as_echo "unsupported" >&6; } ;;
4484 *)
4485 CC="$CC $ac_cv_prog_cc_c89"
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4487 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4488 esac
4489 if test "x$ac_cv_prog_cc_c89" != xno; then :
4490
4491 fi
4492
4493 ac_ext=c
4494 ac_cpp='$CPP $CPPFLAGS'
4495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4498
4499 ac_ext=cpp
4500 ac_cpp='$CXXCPP $CPPFLAGS'
4501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4504 if test -z "$CXX"; then
4505 if test -n "$CCC"; then
4506 CXX=$CCC
4507 else
4508 if test -n "$ac_tool_prefix"; then
4509 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4510 do
4511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if test "${ac_cv_prog_CXX+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -n "$CXX"; then
4519 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4531 fi
4532 done
4533 done
4534 IFS=$as_save_IFS
4535
4536 fi
4537 fi
4538 CXX=$ac_cv_prog_CXX
4539 if test -n "$CXX"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4541 $as_echo "$CXX" >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4545 fi
4546
4547
4548 test -n "$CXX" && break
4549 done
4550 fi
4551 if test -z "$CXX"; then
4552 ac_ct_CXX=$CXX
4553 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4554 do
4555 # Extract the first word of "$ac_prog", so it can be a program name with args.
4556 set dummy $ac_prog; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 if test -n "$ac_ct_CXX"; then
4563 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4567 do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_ac_ct_CXX="$ac_prog"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4575 fi
4576 done
4577 done
4578 IFS=$as_save_IFS
4579
4580 fi
4581 fi
4582 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4583 if test -n "$ac_ct_CXX"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4585 $as_echo "$ac_ct_CXX" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4589 fi
4590
4591
4592 test -n "$ac_ct_CXX" && break
4593 done
4594
4595 if test "x$ac_ct_CXX" = x; then
4596 CXX="g++"
4597 else
4598 case $cross_compiling:$ac_tool_warned in
4599 yes:)
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4602 ac_tool_warned=yes ;;
4603 esac
4604 CXX=$ac_ct_CXX
4605 fi
4606 fi
4607
4608 fi
4609 fi
4610 # Provide some information about the compiler.
4611 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4612 set X $ac_compile
4613 ac_compiler=$2
4614 for ac_option in --version -v -V -qversion; do
4615 { { ac_try="$ac_compiler $ac_option >&5"
4616 case "(($ac_try" in
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4619 esac
4620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4621 $as_echo "$ac_try_echo"; } >&5
4622 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4623 ac_status=$?
4624 if test -s conftest.err; then
4625 sed '10a\
4626 ... rest of stderr output deleted ...
4627 10q' conftest.err >conftest.er1
4628 cat conftest.er1 >&5
4629 rm -f conftest.er1 conftest.err
4630 fi
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }
4633 done
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4636 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4637 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4642
4643 int
4644 main ()
4645 {
4646 #ifndef __GNUC__
4647 choke me
4648 #endif
4649
4650 ;
4651 return 0;
4652 }
4653 _ACEOF
4654 if ac_fn_cxx_try_compile "$LINENO"; then :
4655 ac_compiler_gnu=yes
4656 else
4657 ac_compiler_gnu=no
4658 fi
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4661
4662 fi
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4664 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4665 if test $ac_compiler_gnu = yes; then
4666 GXX=yes
4667 else
4668 GXX=
4669 fi
4670 ac_test_CXXFLAGS=${CXXFLAGS+set}
4671 ac_save_CXXFLAGS=$CXXFLAGS
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4673 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4674 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4678 ac_cxx_werror_flag=yes
4679 ac_cv_prog_cxx_g=no
4680 CXXFLAGS="-g"
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683
4684 int
4685 main ()
4686 {
4687
4688 ;
4689 return 0;
4690 }
4691 _ACEOF
4692 if ac_fn_cxx_try_compile "$LINENO"; then :
4693 ac_cv_prog_cxx_g=yes
4694 else
4695 CXXFLAGS=""
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698
4699 int
4700 main ()
4701 {
4702
4703 ;
4704 return 0;
4705 }
4706 _ACEOF
4707 if ac_fn_cxx_try_compile "$LINENO"; then :
4708
4709 else
4710 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4711 CXXFLAGS="-g"
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4714
4715 int
4716 main ()
4717 {
4718
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_cxx_try_compile "$LINENO"; then :
4724 ac_cv_prog_cxx_g=yes
4725 fi
4726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 fi
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729 fi
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4734 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4735 if test "$ac_test_CXXFLAGS" = set; then
4736 CXXFLAGS=$ac_save_CXXFLAGS
4737 elif test $ac_cv_prog_cxx_g = yes; then
4738 if test "$GXX" = yes; then
4739 CXXFLAGS="-g -O2"
4740 else
4741 CXXFLAGS="-g"
4742 fi
4743 else
4744 if test "$GXX" = yes; then
4745 CXXFLAGS="-O2"
4746 else
4747 CXXFLAGS=
4748 fi
4749 fi
4750 ac_ext=c
4751 ac_cpp='$CPP $CPPFLAGS'
4752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4755
4756
4757 # We must set the default linker to the linker used by gcc for the correct
4758 # operation of libtool. If LD is not defined and we are using gcc, try to
4759 # set the LD default to the ld used by gcc.
4760 if test -z "$LD"; then
4761 if test "$GCC" = yes; then
4762 case $build in
4763 *-*-mingw*)
4764 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4765 *)
4766 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4767 esac
4768 case $gcc_prog_ld in
4769 # Accept absolute paths.
4770 [\\/]* | [A-Za-z]:[\\/]*)
4771 LD="$gcc_prog_ld" ;;
4772 esac
4773 fi
4774 fi
4775
4776
4777
4778
4779 if test -n "$ac_tool_prefix"; then
4780 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4781 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 if test -n "$GNATBIND"; then
4788 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4792 do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801 done
4802 done
4803 IFS=$as_save_IFS
4804
4805 fi
4806 fi
4807 GNATBIND=$ac_cv_prog_GNATBIND
4808 if test -n "$GNATBIND"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4810 $as_echo "$GNATBIND" >&6; }
4811 else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4814 fi
4815
4816
4817 fi
4818 if test -z "$ac_cv_prog_GNATBIND"; then
4819 ac_ct_GNATBIND=$GNATBIND
4820 # Extract the first word of "gnatbind", so it can be a program name with args.
4821 set dummy gnatbind; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 if test -n "$ac_ct_GNATBIND"; then
4828 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841 done
4842 done
4843 IFS=$as_save_IFS
4844
4845 fi
4846 fi
4847 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4848 if test -n "$ac_ct_GNATBIND"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4850 $as_echo "$ac_ct_GNATBIND" >&6; }
4851 else
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4854 fi
4855
4856 if test "x$ac_ct_GNATBIND" = x; then
4857 GNATBIND="no"
4858 else
4859 case $cross_compiling:$ac_tool_warned in
4860 yes:)
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4863 ac_tool_warned=yes ;;
4864 esac
4865 GNATBIND=$ac_ct_GNATBIND
4866 fi
4867 else
4868 GNATBIND="$ac_cv_prog_GNATBIND"
4869 fi
4870
4871 if test -n "$ac_tool_prefix"; then
4872 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4873 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875 $as_echo_n "checking for $ac_word... " >&6; }
4876 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 if test -n "$GNATMAKE"; then
4880 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4881 else
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH
4884 do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 break 2
4892 fi
4893 done
4894 done
4895 IFS=$as_save_IFS
4896
4897 fi
4898 fi
4899 GNATMAKE=$ac_cv_prog_GNATMAKE
4900 if test -n "$GNATMAKE"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4902 $as_echo "$GNATMAKE" >&6; }
4903 else
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4906 fi
4907
4908
4909 fi
4910 if test -z "$ac_cv_prog_GNATMAKE"; then
4911 ac_ct_GNATMAKE=$GNATMAKE
4912 # Extract the first word of "gnatmake", so it can be a program name with args.
4913 set dummy gnatmake; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 if test -n "$ac_ct_GNATMAKE"; then
4920 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4929 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4932 fi
4933 done
4934 done
4935 IFS=$as_save_IFS
4936
4937 fi
4938 fi
4939 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4940 if test -n "$ac_ct_GNATMAKE"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4942 $as_echo "$ac_ct_GNATMAKE" >&6; }
4943 else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946 fi
4947
4948 if test "x$ac_ct_GNATMAKE" = x; then
4949 GNATMAKE="no"
4950 else
4951 case $cross_compiling:$ac_tool_warned in
4952 yes:)
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4955 ac_tool_warned=yes ;;
4956 esac
4957 GNATMAKE=$ac_ct_GNATMAKE
4958 fi
4959 else
4960 GNATMAKE="$ac_cv_prog_GNATMAKE"
4961 fi
4962
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4964 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4965 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 cat >conftest.adb <<EOF
4969 procedure conftest is begin null; end conftest;
4970 EOF
4971 acx_cv_cc_gcc_supports_ada=no
4972 # There is a bug in old released versions of GCC which causes the
4973 # driver to exit successfully when the appropriate language module
4974 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4975 # Therefore we must check for the error message as well as an
4976 # unsuccessful exit.
4977 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4978 # given a .adb file, but produce no object file. So we must check
4979 # if an object file was really produced to guard against this.
4980 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4981 if test x"$errors" = x && test -f conftest.$ac_objext; then
4982 acx_cv_cc_gcc_supports_ada=yes
4983 fi
4984 rm -f conftest.*
4985 fi
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4987 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4988
4989 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4990 have_gnat=yes
4991 else
4992 have_gnat=no
4993 fi
4994
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4996 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4997 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4998 $as_echo_n "(cached) " >&6
4999 else
5000 echo abfoo >t1
5001 echo cdfoo >t2
5002 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5003 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5004 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5005 :
5006 else
5007 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5008 fi
5009 fi
5010 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5011 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5012 :
5013 else
5014 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5015 fi
5016 fi
5017 rm t1 t2
5018
5019 fi
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5021 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5022 do_compare="$gcc_cv_prog_cmp_skip"
5023
5024
5025
5026 # Check whether --enable-bootstrap was given.
5027 if test "${enable_bootstrap+set}" = set; then :
5028 enableval=$enable_bootstrap;
5029 else
5030 enable_bootstrap=default
5031 fi
5032
5033
5034 # Issue errors and warnings for invalid/strange bootstrap combinations.
5035 if test -r $srcdir/gcc/configure; then
5036 have_compiler=yes
5037 else
5038 have_compiler=no
5039 fi
5040
5041 case "$have_compiler:$host:$target:$enable_bootstrap" in
5042 *:*:*:no) ;;
5043
5044 # Default behavior. Enable bootstrap if we have a compiler
5045 # and we are in a native configuration.
5046 yes:$build:$build:default)
5047 enable_bootstrap=yes ;;
5048
5049 *:*:*:default)
5050 enable_bootstrap=no ;;
5051
5052 # We have a compiler and we are in a native configuration, bootstrap is ok
5053 yes:$build:$build:yes)
5054 ;;
5055
5056 # Other configurations, but we have a compiler. Assume the user knows
5057 # what he's doing.
5058 yes:*:*:yes)
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5060 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5061 ;;
5062
5063 # No compiler: if they passed --enable-bootstrap explicitly, fail
5064 no:*:*:yes)
5065 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5066
5067 # Fail if wrong command line
5068 *)
5069 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5070 ;;
5071 esac
5072
5073 # See if we are building gcc with C++.
5074 # Check whether --enable-build-with-cxx was given.
5075 if test "${enable_build_with_cxx+set}" = set; then :
5076 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5077 else
5078 ENABLE_BUILD_WITH_CXX=no
5079 fi
5080
5081
5082 # Build stage1 with C and build stages 2 and 3 with C++.
5083 # Check whether --enable-build-poststage1-with-cxx was given.
5084 if test "${enable_build_poststage1_with_cxx+set}" = set; then :
5085 enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval
5086 else
5087 ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes
5088 fi
5089
5090
5091 # Used for setting $lt_cv_objdir
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5093 $as_echo_n "checking for objdir... " >&6; }
5094 if test "${lt_cv_objdir+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 rm -f .libs 2>/dev/null
5098 mkdir .libs 2>/dev/null
5099 if test -d .libs; then
5100 lt_cv_objdir=.libs
5101 else
5102 # MS-DOS does not allow filenames that begin with a dot.
5103 lt_cv_objdir=_libs
5104 fi
5105 rmdir .libs 2>/dev/null
5106 fi
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5108 $as_echo "$lt_cv_objdir" >&6; }
5109 objdir=$lt_cv_objdir
5110
5111
5112
5113
5114
5115 cat >>confdefs.h <<_ACEOF
5116 #define LT_OBJDIR "$lt_cv_objdir/"
5117 _ACEOF
5118
5119
5120
5121 # Check for GMP, MPFR and MPC
5122 gmplibs="-lmpc -lmpfr -lgmp"
5123 gmpinc=
5124 have_gmp=no
5125
5126 # Specify a location for mpc
5127 # check for this first so it ends up on the link line before mpfr.
5128
5129 # Check whether --with-mpc was given.
5130 if test "${with_mpc+set}" = set; then :
5131 withval=$with_mpc;
5132 fi
5133
5134
5135 # Check whether --with-mpc-include was given.
5136 if test "${with_mpc_include+set}" = set; then :
5137 withval=$with_mpc_include;
5138 fi
5139
5140
5141 # Check whether --with-mpc-lib was given.
5142 if test "${with_mpc_lib+set}" = set; then :
5143 withval=$with_mpc_lib;
5144 fi
5145
5146
5147 if test "x$with_mpc" != x; then
5148 gmplibs="-L$with_mpc/lib $gmplibs"
5149 gmpinc="-I$with_mpc/include $gmpinc"
5150 fi
5151 if test "x$with_mpc_include" != x; then
5152 gmpinc="-I$with_mpc_include $gmpinc"
5153 fi
5154 if test "x$with_mpc_lib" != x; then
5155 gmplibs="-L$with_mpc_lib $gmplibs"
5156 fi
5157 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5158 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5159 gmpinc='-I$$s/mpc/src '"$gmpinc"
5160 # Do not test the mpc version. Assume that it is sufficient, since
5161 # it is in the source tree, and the library has not been built yet
5162 # but it would be included on the link line in the version check below
5163 # hence making the test fail.
5164 have_gmp=yes
5165 fi
5166
5167 # Specify a location for mpfr
5168 # check for this first so it ends up on the link line before gmp.
5169
5170 # Check whether --with-mpfr-dir was given.
5171 if test "${with_mpfr_dir+set}" = set; then :
5172 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5173 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5174 fi
5175
5176
5177
5178 # Check whether --with-mpfr was given.
5179 if test "${with_mpfr+set}" = set; then :
5180 withval=$with_mpfr;
5181 fi
5182
5183
5184 # Check whether --with-mpfr-include was given.
5185 if test "${with_mpfr_include+set}" = set; then :
5186 withval=$with_mpfr_include;
5187 fi
5188
5189
5190 # Check whether --with-mpfr-lib was given.
5191 if test "${with_mpfr_lib+set}" = set; then :
5192 withval=$with_mpfr_lib;
5193 fi
5194
5195
5196 if test "x$with_mpfr" != x; then
5197 gmplibs="-L$with_mpfr/lib $gmplibs"
5198 gmpinc="-I$with_mpfr/include $gmpinc"
5199 fi
5200 if test "x$with_mpfr_include" != x; then
5201 gmpinc="-I$with_mpfr_include $gmpinc"
5202 fi
5203 if test "x$with_mpfr_lib" != x; then
5204 gmplibs="-L$with_mpfr_lib $gmplibs"
5205 fi
5206 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5207 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5208 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5209 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5210 # Do not test the mpfr version. Assume that it is sufficient, since
5211 # it is in the source tree, and the library has not been built yet
5212 # but it would be included on the link line in the version check below
5213 # hence making the test fail.
5214 have_gmp=yes
5215 fi
5216
5217 # Specify a location for gmp
5218
5219 # Check whether --with-gmp-dir was given.
5220 if test "${with_gmp_dir+set}" = set; then :
5221 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5222 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5223 fi
5224
5225
5226
5227 # Check whether --with-gmp was given.
5228 if test "${with_gmp+set}" = set; then :
5229 withval=$with_gmp;
5230 fi
5231
5232
5233 # Check whether --with-gmp-include was given.
5234 if test "${with_gmp_include+set}" = set; then :
5235 withval=$with_gmp_include;
5236 fi
5237
5238
5239 # Check whether --with-gmp-lib was given.
5240 if test "${with_gmp_lib+set}" = set; then :
5241 withval=$with_gmp_lib;
5242 fi
5243
5244
5245
5246 if test "x$with_gmp" != x; then
5247 gmplibs="-L$with_gmp/lib $gmplibs"
5248 gmpinc="-I$with_gmp/include $gmpinc"
5249 fi
5250 if test "x$with_gmp_include" != x; then
5251 gmpinc="-I$with_gmp_include $gmpinc"
5252 fi
5253 if test "x$with_gmp_lib" != x; then
5254 gmplibs="-L$with_gmp_lib $gmplibs"
5255 fi
5256 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5257 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5258 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5259 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5260 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5261 # Do not test the gmp version. Assume that it is sufficient, since
5262 # it is in the source tree, and the library has not been built yet
5263 # but it would be included on the link line in the version check below
5264 # hence making the test fail.
5265 have_gmp=yes
5266 fi
5267
5268 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5269 have_gmp=yes
5270 saved_CFLAGS="$CFLAGS"
5271 CFLAGS="$CFLAGS $gmpinc"
5272 # Check for the recommended and required versions of GMP.
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5274 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5275
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 #include "gmp.h"
5279 int
5280 main ()
5281 {
5282
5283 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5284 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5285 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5286 choke me
5287 #endif
5288
5289 ;
5290 return 0;
5291 }
5292 _ACEOF
5293 if ac_fn_c_try_compile "$LINENO"; then :
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296 #include <gmp.h>
5297 int
5298 main ()
5299 {
5300
5301 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5302 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5303 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5304 choke me
5305 #endif
5306
5307 ;
5308 return 0;
5309 }
5310 _ACEOF
5311 if ac_fn_c_try_compile "$LINENO"; then :
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5313 $as_echo "yes" >&6; }
5314 else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5316 $as_echo "buggy but acceptable" >&6; }
5317 fi
5318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319 else
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }; have_gmp=no
5322 fi
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324
5325 # If we have GMP, check the MPFR version.
5326 if test x"$have_gmp" = xyes; then
5327 # Check for the recommended and required versions of MPFR.
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5329 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 #include <gmp.h>
5333 #include <mpfr.h>
5334 int
5335 main ()
5336 {
5337
5338 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5339 choke me
5340 #endif
5341
5342 ;
5343 return 0;
5344 }
5345 _ACEOF
5346 if ac_fn_c_try_compile "$LINENO"; then :
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349 #include <gmp.h>
5350 #include <mpfr.h>
5351 int
5352 main ()
5353 {
5354
5355 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5356 choke me
5357 #endif
5358
5359 ;
5360 return 0;
5361 }
5362 _ACEOF
5363 if ac_fn_c_try_compile "$LINENO"; then :
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5365 $as_echo "yes" >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5368 $as_echo "buggy but acceptable" >&6; }
5369 fi
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 else
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }; have_gmp=no
5374 fi
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376 fi
5377
5378 # Check for the MPC header version.
5379 if test x"$have_gmp" = xyes ; then
5380 # Check for the recommended and required versions of MPC.
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5382 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #include <mpc.h>
5386 int
5387 main ()
5388 {
5389
5390 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5391 choke me
5392 #endif
5393
5394 ;
5395 return 0;
5396 }
5397 _ACEOF
5398 if ac_fn_c_try_compile "$LINENO"; then :
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5401 #include <mpc.h>
5402 int
5403 main ()
5404 {
5405
5406 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5407 choke me
5408 #endif
5409
5410 ;
5411 return 0;
5412 }
5413 _ACEOF
5414 if ac_fn_c_try_compile "$LINENO"; then :
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5416 $as_echo "yes" >&6; }
5417 else
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5419 $as_echo "buggy but acceptable" >&6; }
5420 fi
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 else
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }; have_gmp=no
5425 fi
5426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427 fi
5428
5429 # Now check the MPFR library.
5430 if test x"$have_gmp" = xyes; then
5431 saved_LIBS="$LIBS"
5432 LIBS="$LIBS $gmplibs"
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5434 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5437 #include <mpc.h>
5438 int
5439 main ()
5440 {
5441
5442 mpfr_t n;
5443 mpfr_t x;
5444 mpc_t c;
5445 int t;
5446 mpfr_init (n);
5447 mpfr_init (x);
5448 mpfr_atan2 (n, n, x, GMP_RNDN);
5449 mpfr_erfc (n, x, GMP_RNDN);
5450 mpfr_subnormalize (x, t, GMP_RNDN);
5451 mpfr_clear(n);
5452 mpfr_clear(x);
5453 mpc_init2 (c, 53);
5454 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5455 mpc_cosh (c, c, MPC_RNDNN);
5456 mpc_pow (c, c, c, MPC_RNDNN);
5457 mpc_acosh (c, c, MPC_RNDNN);
5458 mpc_clear (c);
5459
5460 ;
5461 return 0;
5462 }
5463 _ACEOF
5464 if ac_fn_c_try_link "$LINENO"; then :
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5466 $as_echo "yes" >&6; }
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 \
5472 conftest$ac_exeext conftest.$ac_ext
5473 LIBS="$saved_LIBS"
5474 fi
5475
5476 CFLAGS="$saved_CFLAGS"
5477
5478 # The library versions listed in the error message below should match
5479 # the HARD-minimums enforced above.
5480 if test x$have_gmp != xyes; then
5481 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5482 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5483 their locations. Source code for these libraries can be found at
5484 their respective hosting sites as well as at
5485 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5486 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5487 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5488 make sure that you have installed both the libraries and the header
5489 files. They may be located in separate packages." "$LINENO" 5
5490 fi
5491 fi
5492
5493 # Flags needed for both GMP, MPFR and/or MPC.
5494
5495
5496
5497
5498
5499
5500 # Allow host libstdc++ to be specified for static linking with PPL.
5501
5502 # Check whether --with-host-libstdcxx was given.
5503 if test "${with_host_libstdcxx+set}" = set; then :
5504 withval=$with_host_libstdcxx;
5505 fi
5506
5507
5508 case $with_host_libstdcxx in
5509 no|yes)
5510 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5511 ;;
5512 esac
5513
5514 # Linker flags to use for stage1 or when not boostrapping.
5515
5516 # Check whether --with-stage1-ldflags was given.
5517 if test "${with_stage1_ldflags+set}" = set; then :
5518 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5519 stage1_ldflags=
5520 else
5521 stage1_ldflags=$withval
5522 fi
5523 else
5524 stage1_ldflags=
5525 fi
5526
5527
5528
5529 # Libraries to use for stage1 or when not bootstrapping.
5530
5531 # Check whether --with-stage1-libs was given.
5532 if test "${with_stage1_libs+set}" = set; then :
5533 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5534 stage1_libs=
5535 else
5536 stage1_libs=$withval
5537 fi
5538 else
5539 stage1_libs=$with_host_libstdcxx
5540 fi
5541
5542
5543
5544 # Libraries to use for stage2 and later builds. This defaults to the
5545 # argument passed to --with-host-libstdcxx.
5546
5547 # Check whether --with-boot-libs was given.
5548 if test "${with_boot_libs+set}" = set; then :
5549 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5550 poststage1_libs=
5551 else
5552 poststage1_libs=$withval
5553 fi
5554 else
5555 poststage1_libs=$with_host_libstdcxx
5556 fi
5557
5558
5559
5560 # Linker flags to use for stage2 and later builds.
5561
5562 # Check whether --with-boot-ldflags was given.
5563 if test "${with_boot_ldflags+set}" = set; then :
5564 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5565 poststage1_ldflags=
5566 else
5567 poststage1_ldflags=$withval
5568 fi
5569 else
5570 poststage1_ldflags=
5571 # In stages 2 and 3, default to linking libstdc++ and libgcc
5572 # statically. But if the user explicitly specified the libraries to
5573 # use, trust that they are doing what they want.
5574 if test "$poststage1_libs" = ""; then
5575 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5576 fi
5577 fi
5578
5579
5580
5581 # Check for PPL
5582 ppllibs=
5583 pplinc=
5584 pwllib=
5585
5586
5587 # Check whether --with-ppl was given.
5588 if test "${with_ppl+set}" = set; then :
5589 withval=$with_ppl;
5590 fi
5591
5592
5593 # Check whether --with-ppl-include was given.
5594 if test "${with_ppl_include+set}" = set; then :
5595 withval=$with_ppl_include;
5596 fi
5597
5598
5599 # Check whether --with-ppl-lib was given.
5600 if test "${with_ppl_lib+set}" = set; then :
5601 withval=$with_ppl_lib;
5602 fi
5603
5604
5605 # Check whether --enable-ppl-version-check was given.
5606 if test "${enable_ppl_version_check+set}" = set; then :
5607 enableval=$enable_ppl_version_check;
5608 fi
5609
5610
5611 case $with_ppl in
5612 yes | no | "")
5613 ;;
5614 *)
5615 ppllibs="-L$with_ppl/lib"
5616 pplinc="-I$with_ppl/include $pplinc"
5617 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5618 with_ppl=yes
5619 else
5620 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5621 fi
5622 ;;
5623 esac
5624
5625 if test x"$with_ppl_include" != x; then
5626 pplinc="-I$with_ppl_include $pplinc"
5627 with_ppl=yes
5628 fi
5629
5630 if test "x$with_ppl_lib" != x; then
5631 ppllibs="-L$with_ppl_lib"
5632 with_ppl=yes
5633 fi
5634
5635 if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5636 if test x"$enable_watchdog" = xyes; then
5637 pwllib="-lpwl"
5638 fi
5639 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
5640 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5641 enable_ppl_version_check=no
5642 with_ppl=yes
5643 fi
5644
5645 if test "x$with_ppl" != xno; then
5646 if test "x$pwllib" = x; then
5647 saved_LIBS="$LIBS"
5648 LIBS="$LIBS $ppllibs -lstdc++ -lm"
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5650 $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5651 if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 ac_check_lib_save_LIBS=$LIBS
5655 LIBS="-lpwl $LIBS"
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658
5659 /* Override any GCC internal prototype to avoid an error.
5660 Use char because int might match the return type of a GCC
5661 builtin and then its argument prototype would still apply. */
5662 #ifdef __cplusplus
5663 extern "C"
5664 #endif
5665 char PWL_handle_timeout ();
5666 int
5667 main ()
5668 {
5669 return PWL_handle_timeout ();
5670 ;
5671 return 0;
5672 }
5673 _ACEOF
5674 if ac_fn_c_try_link "$LINENO"; then :
5675 ac_cv_lib_pwl_PWL_handle_timeout=yes
5676 else
5677 ac_cv_lib_pwl_PWL_handle_timeout=no
5678 fi
5679 rm -f core conftest.err conftest.$ac_objext \
5680 conftest$ac_exeext conftest.$ac_ext
5681 LIBS=$ac_check_lib_save_LIBS
5682 fi
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5684 $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5685 if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5686 pwllib="-lpwl"
5687 fi
5688
5689 LIBS="$saved_LIBS"
5690 fi
5691
5692 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5693
5694 if test "$enable_ppl_version_check" != no; then
5695 saved_CFLAGS="$CFLAGS"
5696 CFLAGS="$CFLAGS $pplinc $gmpinc"
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5698 $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 #include "ppl_c.h"
5702 int
5703 main ()
5704 {
5705
5706 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5707 choke me
5708 #endif
5709
5710 ;
5711 return 0;
5712 }
5713 _ACEOF
5714 if ac_fn_c_try_compile "$LINENO"; then :
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5716 $as_echo "yes" >&6; }
5717 else
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5720 fi
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 CFLAGS="$saved_CFLAGS"
5723 fi
5724 fi
5725
5726 # Flags needed for PPL
5727
5728
5729
5730
5731 # Check for CLOOG
5732
5733
5734
5735 # Check whether --with-cloog was given.
5736 if test "${with_cloog+set}" = set; then :
5737 withval=$with_cloog;
5738 fi
5739
5740
5741 # Check whether --with-cloog-include was given.
5742 if test "${with_cloog_include+set}" = set; then :
5743 withval=$with_cloog_include;
5744 fi
5745
5746
5747 # Check whether --with-cloog-lib was given.
5748 if test "${with_cloog_lib+set}" = set; then :
5749 withval=$with_cloog_lib;
5750 fi
5751
5752
5753 # Check whether --enable-cloog-backend was given.
5754 if test "${enable_cloog_backend+set}" = set; then :
5755 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5756 cloog_backend=isl
5757 elif test "x${enableval}" = "xppl"; then
5758 cloog_backend=ppl
5759 else
5760 cloog_backend=ppl-legacy
5761 fi
5762 else
5763 cloog_backend=ppl-legacy
5764 fi
5765
5766 # Check whether --enable-cloog-version-check was given.
5767 if test "${enable_cloog_version_check+set}" = set; then :
5768 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5769 else
5770 ENABLE_CLOOG_CHECK=yes
5771 fi
5772
5773
5774 # Initialize clooglibs and clooginc.
5775 case $with_cloog in
5776 no)
5777 clooglibs=
5778 clooginc=
5779 ;;
5780 "" | yes)
5781 ;;
5782 *)
5783 clooglibs="-L$with_cloog/lib"
5784 clooginc="-I$with_cloog/include"
5785 ;;
5786 esac
5787 if test "x${with_cloog_include}" != x ; then
5788 clooginc="-I$with_cloog_include"
5789 fi
5790 if test "x${with_cloog_lib}" != x; then
5791 clooglibs="-L$with_cloog_lib"
5792 fi
5793
5794
5795
5796
5797
5798 if test "x$with_ppl" = "xno"; then
5799
5800
5801
5802 if test "x${with_cloog}" = xno; then
5803 graphite_requested=no
5804 elif test "x${with_cloog}" != x \
5805 || test "x${with_cloog_include}" != x \
5806 || test "x${with_cloog_lib}" != x ; then
5807 graphite_requested=yes
5808 else
5809 graphite_requested=no
5810 fi
5811
5812
5813 if test "${graphite_requested}" = yes; then
5814 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
5815 fi
5816 with_cloog=no
5817 fi
5818 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5819 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5820 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5821 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5822 fi
5823 if test "x$with_cloog" != "xno"; then
5824
5825
5826
5827 _cloog_saved_CFLAGS=$CFLAGS
5828 _cloog_saved_CPPFLAGS=$CPPFLAGS
5829 _cloog_saved_LDFLAGS=$LDFLAGS
5830 _cloog_saved_LIBS=$LIBS
5831
5832 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5833
5834 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5835 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5836 LDFLAGS="${LDFLAGS} ${clooglibs}"
5837
5838 case $cloog_backend in
5839 "ppl-legacy")
5840 CFLAGS="${CFLAGS} ${pplinc}"
5841 LDFLAGS="${LDFLAGS} ${ppllibs}"
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5843 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5844 if test "${gcc_cv_cloog_type+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 LIBS="-lcloog ${_cloog_saved_LIBS}"
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5850 #include "cloog/cloog.h"
5851 int
5852 main ()
5853 {
5854 #ifndef CLOOG_PPL_BACKEND
5855 choke me
5856 #endif
5857 ;
5858 return 0;
5859 }
5860 _ACEOF
5861 if ac_fn_c_try_link "$LINENO"; then :
5862 gcc_cv_cloog_type="PPL Legacy"
5863 else
5864 gcc_cv_cloog_type=no
5865 fi
5866 rm -f core conftest.err conftest.$ac_objext \
5867 conftest$ac_exeext conftest.$ac_ext
5868 fi
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5870 $as_echo "$gcc_cv_cloog_type" >&6; }
5871 ;;
5872 "isl")
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5874 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5875 if test "${gcc_cv_cloog_type+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881 #include "cloog/cloog.h"
5882 int
5883 main ()
5884 {
5885 cloog_version ()
5886 ;
5887 return 0;
5888 }
5889 _ACEOF
5890 if ac_fn_c_try_link "$LINENO"; then :
5891 gcc_cv_cloog_type="ISL"
5892 else
5893 gcc_cv_cloog_type=no
5894 fi
5895 rm -f core conftest.err conftest.$ac_objext \
5896 conftest$ac_exeext conftest.$ac_ext
5897 fi
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5899 $as_echo "$gcc_cv_cloog_type" >&6; }
5900 ;;
5901 "ppl")
5902 CFLAGS="${CFLAGS} ${pplinc}"
5903 LDFLAGS="${LDFLAGS} ${ppllibs}"
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5905 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5906 if test "${gcc_cv_cloog_type+set}" = set; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5912 #include "cloog/cloog.h"
5913 #include "cloog/ppl/cloog.h"
5914 int
5915 main ()
5916 {
5917 cloog_version ()
5918 ;
5919 return 0;
5920 }
5921 _ACEOF
5922 if ac_fn_c_try_link "$LINENO"; then :
5923 gcc_cv_cloog_type="PPL"
5924 else
5925 gcc_cv_cloog_type=no
5926 fi
5927 rm -f core conftest.err conftest.$ac_objext \
5928 conftest$ac_exeext conftest.$ac_ext
5929 fi
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5931 $as_echo "$gcc_cv_cloog_type" >&6; }
5932 ;;
5933 *)
5934 gcc_cv_cloog_type=""
5935 esac
5936
5937 case $gcc_cv_cloog_type in
5938 "PPL Legacy")
5939 clooginc="${clooginc}"
5940 clooglibs="${clooglibs} -lcloog"
5941 cloog_org=no
5942 ;;
5943 "ISL")
5944 clooginc="${clooginc} ${_cloogorginc}"
5945 clooglibs="${clooglibs} -lcloog-isl -lisl"
5946 cloog_org=yes
5947 ;;
5948 "PPL")
5949 clooginc="${clooginc} ${_cloogorginc}"
5950 clooglibs="${clooglibs} -lcloog-ppl"
5951 cloog_org=yes
5952 ;;
5953 *)
5954 clooglibs=
5955 clooginc=
5956 cloog_org=
5957 ;;
5958 esac
5959
5960 LIBS=$_cloog_saved_LIBS
5961 CFLAGS=$_cloog_saved_CFLAGS
5962 CPPFLAGS=$_cloog_saved_CPPFLAGS
5963 LDFLAGS=$_cloog_saved_LDFLAGS
5964
5965
5966
5967
5968
5969 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5970 _cloog_saved_CFLAGS=$CFLAGS
5971 _cloog_saved_LDFLAGS=$LDFLAGS
5972
5973 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5974 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5975
5976 if test "${cloog_org}" = yes ; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5978 $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
5979 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5984 #include "cloog/cloog.h"
5985 int
5986 main ()
5987 {
5988 #if CLOOG_VERSION_MAJOR != 0 \
5989 || CLOOG_VERSION_MINOR != 16 \
5990 || CLOOG_VERSION_REVISION < 1
5991 choke me
5992 #endif
5993 ;
5994 return 0;
5995 }
5996 _ACEOF
5997 if ac_fn_c_try_compile "$LINENO"; then :
5998 gcc_cv_cloog_ct_0_14_0=yes
5999 else
6000 gcc_cv_cloog_ct_0_14_0=no
6001 fi
6002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6003 fi
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
6005 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
6006 elif test "${cloog_org}" = no ; then
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
6008 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
6009 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 #include "cloog/cloog.h"
6015 int
6016 main ()
6017 {
6018 #if CLOOG_VERSION_MAJOR != 0 \
6019 || CLOOG_VERSION_MINOR != 15 \
6020 || CLOOG_VERSION_REVISION < 5
6021 choke me
6022 #endif
6023 ;
6024 return 0;
6025 }
6026 _ACEOF
6027 if ac_fn_c_try_compile "$LINENO"; then :
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6030 #include "cloog/cloog.h"
6031 int
6032 main ()
6033 {
6034 #if CLOOG_VERSION_MAJOR != 0 \
6035 || CLOOG_VERSION_MINOR != 15 \
6036 || CLOOG_VERSION_REVISION < 9
6037 choke me
6038 #endif
6039 ;
6040 return 0;
6041 }
6042 _ACEOF
6043 if ac_fn_c_try_compile "$LINENO"; then :
6044 gcc_cv_cloog_ct_0_15_5=yes
6045 else
6046 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
6047 fi
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 else
6050 gcc_cv_cloog_ct_0_15_5=no
6051 fi
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 fi
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6055 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6056 fi
6057
6058 CFLAGS=$_cloog_saved_CFLAGS
6059 LDFLAGS=$_cloog_saved_LDFLAGS
6060 fi
6061
6062
6063
6064
6065
6066
6067
6068 if test "x${with_cloog}" = xno; then
6069 graphite_requested=no
6070 elif test "x${with_cloog}" != x \
6071 || test "x${with_cloog_include}" != x \
6072 || test "x${with_cloog_lib}" != x ; then
6073 graphite_requested=yes
6074 else
6075 graphite_requested=no
6076 fi
6077
6078
6079
6080 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6081 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6082 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6083 clooglibs=
6084 clooginc=
6085 fi
6086
6087 if test "${graphite_requested}" = yes \
6088 && test "x${clooglibs}" = x \
6089 && test "x${clooginc}" = x ; then
6090
6091 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6092 fi
6093
6094
6095 fi
6096
6097 # Check for LTO support.
6098 # Check whether --enable-lto was given.
6099 if test "${enable_lto+set}" = set; then :
6100 enableval=$enable_lto; enable_lto=$enableval
6101 else
6102 enable_lto=yes; default_enable_lto=yes
6103 fi
6104
6105
6106
6107
6108
6109 target_elf=no
6110 case $target in
6111 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6112 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6113 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6114 target_elf=no
6115 ;;
6116 *)
6117 target_elf=yes
6118 ;;
6119 esac
6120
6121 if test $target_elf = yes; then :
6122 # ELF platforms build the lto-plugin always.
6123 build_lto_plugin=yes
6124
6125 else
6126 if test x"$default_enable_lto" = x"yes" ; then
6127 case $target in
6128 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6129 # On other non-ELF platforms, LTO has yet to be validated.
6130 *) enable_lto=no ;;
6131 esac
6132 else
6133 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6134 # It would also be nice to check the binutils support, but we don't
6135 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6136 # warn during gcc/ subconfigure; unless you're bootstrapping with
6137 # -flto it won't be needed until after installation anyway.
6138 case $target in
6139 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6140 *) if test x"$enable_lto" = x"yes"; then
6141 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6142 fi
6143 ;;
6144 esac
6145 fi
6146 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6147 # Build it unless LTO was explicitly disabled.
6148 case $target in
6149 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6150 *) ;;
6151 esac
6152
6153 fi
6154
6155
6156
6157 # By default, C is the only stage 1 language.
6158 stage1_languages=,c,
6159
6160 # Target libraries that we bootstrap.
6161 bootstrap_target_libs=,target-libgcc,
6162
6163 # Figure out what language subdirectories are present.
6164 # Look if the user specified --enable-languages="..."; if not, use
6165 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6166 # go away some day.
6167 # NB: embedded tabs in this IF block -- do not untabify
6168 if test -d ${srcdir}/gcc; then
6169 if test x"${enable_languages+set}" != xset; then
6170 if test x"${LANGUAGES+set}" = xset; then
6171 enable_languages="${LANGUAGES}"
6172 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6173 else
6174 enable_languages=all
6175 fi
6176 else
6177 if test x"${enable_languages}" = x ||
6178 test x"${enable_languages}" = xyes;
6179 then
6180 echo configure.in: --enable-languages needs at least one language argument 1>&2
6181 exit 1
6182 fi
6183 fi
6184 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6185
6186 # 'f95' is the old name for the 'fortran' language. We issue a warning
6187 # and make the substitution.
6188 case ,${enable_languages}, in
6189 *,f95,*)
6190 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6191 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6192 ;;
6193 esac
6194
6195 # If bootstrapping, then using --enable-build-with-cxx or
6196 # --enable-build-poststage1-with-cxx requires enabling C++.
6197 case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in
6198 *,c++,*:*:*) ;;
6199 *:*,yes,*:yes)
6200 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6201 enable_languages="${enable_languages},c++"
6202 else
6203 as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5
6204 fi
6205 ;;
6206 esac
6207
6208 # First scan to see if an enabled language requires some other language.
6209 # We assume that a given config-lang.in will list all the language
6210 # front ends it requires, even if some are required indirectly.
6211 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6212 case ${lang_frag} in
6213 ..) ;;
6214 # The odd quoting in the next line works around
6215 # an apparent bug in bash 1.12 on linux.
6216 ${srcdir}/gcc/[*]/config-lang.in) ;;
6217 *)
6218 # From the config-lang.in, get $language, $lang_requires, and
6219 # $lang_requires_boot_languages.
6220 language=
6221 lang_requires=
6222 lang_requires_boot_languages=
6223 . ${lang_frag}
6224 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6225 case ,${enable_languages}, in
6226 *,$other,*) ;;
6227 *,all,*) ;;
6228 *,$language,*)
6229 echo " \`$other' language required by \`$language'; enabling" 1>&2
6230 enable_languages="${enable_languages},${other}"
6231 ;;
6232 esac
6233 done
6234 for other in ${lang_requires_boot_languages} ; do
6235 if test "$other" != "c"; then
6236 case ,${enable_stage1_languages}, in
6237 *,$other,*) ;;
6238 *,all,*) ;;
6239 *)
6240 case ,${enable_languages}, in
6241 *,$language,*)
6242 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6243 enable_stage1_languages="$enable_stage1_languages,${other}"
6244 ;;
6245 esac
6246 ;;
6247 esac
6248 fi
6249 done
6250 ;;
6251 esac
6252 done
6253
6254 new_enable_languages=,c,
6255
6256 # If LTO is enabled, add the LTO front end.
6257 extra_host_libiberty_configure_flags=
6258 if test "$enable_lto" = "yes" ; then
6259 case ,${enable_languages}, in
6260 *,lto,*) ;;
6261 *) enable_languages="${enable_languages},lto" ;;
6262 esac
6263 if test "${build_lto_plugin}" = "yes" ; then
6264 configdirs="$configdirs lto-plugin"
6265 extra_host_libiberty_configure_flags=--enable-shared
6266 fi
6267 fi
6268
6269
6270 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6271 potential_languages=,c,
6272
6273 enabled_target_libs=
6274 disabled_target_libs=
6275
6276 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6277 case ${lang_frag} in
6278 ..) ;;
6279 # The odd quoting in the next line works around
6280 # an apparent bug in bash 1.12 on linux.
6281 ${srcdir}/gcc/[*]/config-lang.in) ;;
6282 *)
6283 # From the config-lang.in, get $language, $target_libs,
6284 # $lang_dirs, $boot_language, and $build_by_default
6285 language=
6286 target_libs=
6287 lang_dirs=
6288 subdir_requires=
6289 boot_language=no
6290 build_by_default=yes
6291 . ${lang_frag}
6292 if test x${language} = x; then
6293 echo "${lang_frag} doesn't set \$language." 1>&2
6294 exit 1
6295 fi
6296
6297 if test "$language" = "c++"; then
6298 if test "$ENABLE_BUILD_WITH_CXX" = "yes" \
6299 || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
6300 boot_language=yes
6301 fi
6302 fi
6303
6304 case ,${enable_languages}, in
6305 *,${language},*)
6306 # Language was explicitly selected; include it.
6307 add_this_lang=yes
6308 ;;
6309 *,all,*)
6310 # 'all' was selected, select it if it is a default language
6311 add_this_lang=${build_by_default}
6312 ;;
6313 *)
6314 add_this_lang=no
6315 ;;
6316 esac
6317
6318 # Disable languages that need other directories if these aren't available.
6319 for i in $subdir_requires; do
6320 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6321 case ,${enable_languages}, in
6322 *,${language},*)
6323 # Specifically requested language; tell them.
6324 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6325 ;;
6326 *)
6327 # Silently disable.
6328 add_this_lang=unsupported
6329 ;;
6330 esac
6331 done
6332
6333 # Disable Ada if no preexisting GNAT is available.
6334 case ,${enable_languages},:${language}:${have_gnat} in
6335 *,${language},*:ada:no)
6336 # Specifically requested language; tell them.
6337 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6338 ;;
6339 *:ada:no)
6340 # Silently disable.
6341 add_this_lang=unsupported
6342 ;;
6343 esac
6344
6345 # Disable a language that is unsupported by the target.
6346 case " $unsupported_languages " in
6347 *" $language "*)
6348 add_this_lang=unsupported
6349 ;;
6350 esac
6351
6352 case $add_this_lang in
6353 unsupported)
6354 # Remove language-dependent dirs.
6355 disabled_target_libs="$disabled_target_libs $target_libs"
6356 noconfigdirs="$noconfigdirs $lang_dirs"
6357 ;;
6358 no)
6359 # Remove language-dependent dirs; still show language as supported.
6360 disabled_target_libs="$disabled_target_libs $target_libs"
6361 noconfigdirs="$noconfigdirs $lang_dirs"
6362 potential_languages="${potential_languages}${language},"
6363 ;;
6364 yes)
6365 new_enable_languages="${new_enable_languages}${language},"
6366 potential_languages="${potential_languages}${language},"
6367 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6368 enabled_target_libs="$enabled_target_libs $target_libs"
6369 case "${boot_language}:,$enable_stage1_languages," in
6370 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6371 # Add to (comma-separated) list of stage 1 languages.
6372 case ",$stage1_languages," in
6373 *,$language,* | ,yes, | ,all,) ;;
6374 *) stage1_languages="${stage1_languages}${language}," ;;
6375 esac
6376 # We need to bootstrap any supporting libraries.
6377 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6378 ;;
6379 esac
6380 ;;
6381 esac
6382 ;;
6383 esac
6384 done
6385
6386 # Add target libraries which are only needed for disabled languages
6387 # to noconfigdirs.
6388 if test -n "$disabled_target_libs"; then
6389 for dir in $disabled_target_libs; do
6390 case " $enabled_target_libs " in
6391 *" ${dir} "*) ;;
6392 *) noconfigdirs="$noconfigdirs $dir" ;;
6393 esac
6394 done
6395 fi
6396
6397 # Check whether --enable-stage1-languages was given.
6398 if test "${enable_stage1_languages+set}" = set; then :
6399 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6400 ,no,|,,)
6401 # Set it to something that will have no effect in the loop below
6402 enable_stage1_languages=c ;;
6403 ,yes,)
6404 enable_stage1_languages=`echo $new_enable_languages | \
6405 sed -e "s/^,//" -e "s/,$//" ` ;;
6406 *,all,*)
6407 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6408 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6409 esac
6410
6411 # Add "good" languages from enable_stage1_languages to stage1_languages,
6412 # while "bad" languages go in missing_languages. Leave no duplicates.
6413 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6414 case $potential_languages in
6415 *,$i,*)
6416 case $stage1_languages in
6417 *,$i,*) ;;
6418 *) stage1_languages="$stage1_languages$i," ;;
6419 esac ;;
6420 *)
6421 case $missing_languages in
6422 *,$i,*) ;;
6423 *) missing_languages="$missing_languages$i," ;;
6424 esac ;;
6425 esac
6426 done
6427 fi
6428
6429
6430 # Remove leading/trailing commas that were added for simplicity
6431 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6432 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6433 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6434 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6435
6436 if test "x$missing_languages" != x; then
6437 as_fn_error "
6438 The following requested languages could not be built: ${missing_languages}
6439 Supported languages are: ${potential_languages}" "$LINENO" 5
6440 fi
6441 if test "x$new_enable_languages" != "x$enable_languages"; then
6442 echo The following languages will be built: ${new_enable_languages}
6443 enable_languages="$new_enable_languages"
6444 fi
6445
6446
6447 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6448 fi
6449
6450 # Handle --disable-<component> generically.
6451 for dir in $configdirs $build_configdirs $target_configdirs ; do
6452 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6453 varname=`echo $dirname | sed -e s/+/_/g`
6454 if eval test x\${enable_${varname}} "=" xno ; then
6455 noconfigdirs="$noconfigdirs $dir"
6456 fi
6457 done
6458
6459 # Check for Boehm's garbage collector
6460 # Check whether --enable-objc-gc was given.
6461 if test "${enable_objc_gc+set}" = set; then :
6462 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6463 *,objc,*:*:yes:*target-boehm-gc*)
6464 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6465 ;;
6466 esac
6467 fi
6468
6469
6470 # Make sure we only build Boehm's garbage collector if required.
6471 case ,${enable_languages},:${enable_objc_gc} in
6472 *,objc,*:yes)
6473 # Keep target-boehm-gc if requested for Objective-C.
6474 ;;
6475 *)
6476 # Otherwise remove target-boehm-gc depending on target-libjava.
6477 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6478 noconfigdirs="$noconfigdirs target-boehm-gc"
6479 fi
6480 ;;
6481 esac
6482
6483 # Disable libitm if we're not building C++
6484 case ,${enable_languages}, in
6485 *,c++,*) ;;
6486 *)
6487 noconfigdirs="$noconfigdirs target-libitm"
6488 ;;
6489 esac
6490
6491 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6492 # $build_configdirs and $target_configdirs.
6493 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6494
6495 notsupp=""
6496 for dir in . $skipdirs $noconfigdirs ; do
6497 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6498 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6499 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6500 if test -r $srcdir/$dirname/configure ; then
6501 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6502 true
6503 else
6504 notsupp="$notsupp $dir"
6505 fi
6506 fi
6507 fi
6508 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6509 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6510 if test -r $srcdir/$dirname/configure ; then
6511 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6512 true
6513 else
6514 notsupp="$notsupp $dir"
6515 fi
6516 fi
6517 fi
6518 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6519 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6520 if test -r $srcdir/$dirname/configure ; then
6521 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6522 true
6523 else
6524 notsupp="$notsupp $dir"
6525 fi
6526 fi
6527 fi
6528 done
6529
6530 # Quietly strip out all directories which aren't configurable in this tree.
6531 # This relies on all configurable subdirectories being autoconfiscated, which
6532 # is now the case.
6533 build_configdirs_all="$build_configdirs"
6534 build_configdirs=
6535 for i in ${build_configdirs_all} ; do
6536 j=`echo $i | sed -e s/build-//g`
6537 if test -f ${srcdir}/$j/configure ; then
6538 build_configdirs="${build_configdirs} $i"
6539 fi
6540 done
6541
6542 configdirs_all="$configdirs"
6543 configdirs=
6544 for i in ${configdirs_all} ; do
6545 if test -f ${srcdir}/$i/configure ; then
6546 configdirs="${configdirs} $i"
6547 fi
6548 done
6549
6550 target_configdirs_all="$target_configdirs"
6551 target_configdirs=
6552 for i in ${target_configdirs_all} ; do
6553 j=`echo $i | sed -e s/target-//g`
6554 if test -f ${srcdir}/$j/configure ; then
6555 target_configdirs="${target_configdirs} $i"
6556 fi
6557 done
6558
6559 # Produce a warning message for the subdirs we can't configure.
6560 # This isn't especially interesting in the Cygnus tree, but in the individual
6561 # FSF releases, it's important to let people know when their machine isn't
6562 # supported by the one or two programs in a package.
6563
6564 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6565 # If $appdirs is non-empty, at least one of those directories must still
6566 # be configured, or we error out. (E.g., if the gas release supports a
6567 # specified target in some subdirs but not the gas subdir, we shouldn't
6568 # pretend that all is well.)
6569 if test -n "$appdirs" ; then
6570 for dir in $appdirs ; do
6571 if test -r $dir/Makefile.in ; then
6572 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6573 appdirs=""
6574 break
6575 fi
6576 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6577 appdirs=""
6578 break
6579 fi
6580 fi
6581 done
6582 if test -n "$appdirs" ; then
6583 echo "*** This configuration is not supported by this package." 1>&2
6584 exit 1
6585 fi
6586 fi
6587 # Okay, some application will build, or we don't care to check. Still
6588 # notify of subdirs not getting built.
6589 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6590 echo " ${notsupp}" 1>&2
6591 echo " (Any other directories should still work fine.)" 1>&2
6592 fi
6593
6594 case "$host" in
6595 *msdosdjgpp*)
6596 enable_gdbtk=no ;;
6597 esac
6598
6599 # To find our prefix, in gcc_cv_tool_prefix.
6600
6601 # The user is always right.
6602 if test "${PATH_SEPARATOR+set}" != set; then
6603 echo "#! /bin/sh" >conf$$.sh
6604 echo "exit 0" >>conf$$.sh
6605 chmod +x conf$$.sh
6606 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6607 PATH_SEPARATOR=';'
6608 else
6609 PATH_SEPARATOR=:
6610 fi
6611 rm -f conf$$.sh
6612 fi
6613
6614
6615
6616 if test "x$exec_prefix" = xNONE; then
6617 if test "x$prefix" = xNONE; then
6618 gcc_cv_tool_prefix=$ac_default_prefix
6619 else
6620 gcc_cv_tool_prefix=$prefix
6621 fi
6622 else
6623 gcc_cv_tool_prefix=$exec_prefix
6624 fi
6625
6626 # If there is no compiler in the tree, use the PATH only. In any
6627 # case, if there is no compiler in the tree nobody should use
6628 # AS_FOR_TARGET and LD_FOR_TARGET.
6629 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6630 gcc_version=`cat $srcdir/gcc/BASE-VER`
6631 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6632 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6633 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6634 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6635 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6636 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6637 else
6638 gcc_cv_tool_dirs=
6639 fi
6640
6641 if test x$build = x$target && test -n "$md_exec_prefix"; then
6642 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6643 fi
6644
6645
6646
6647 copy_dirs=
6648
6649
6650 # Check whether --with-build-sysroot was given.
6651 if test "${with_build_sysroot+set}" = set; then :
6652 withval=$with_build_sysroot; if test x"$withval" != x ; then
6653 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6654 fi
6655 else
6656 SYSROOT_CFLAGS_FOR_TARGET=
6657 fi
6658
6659
6660
6661
6662 # Check whether --with-debug-prefix-map was given.
6663 if test "${with_debug_prefix_map+set}" = set; then :
6664 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6665 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6666 for debug_map in $withval; do
6667 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6668 done
6669 fi
6670 else
6671 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6672 fi
6673
6674
6675
6676 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6677 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6678 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6679 # We want to ensure that TARGET libraries (which we know are built with
6680 # gcc) are built with "-O2 -g", so include those options when setting
6681 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6682 if test "x$CFLAGS_FOR_TARGET" = x; then
6683 CFLAGS_FOR_TARGET=$CFLAGS
6684 case " $CFLAGS " in
6685 *" -O2 "*) ;;
6686 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6687 esac
6688 case " $CFLAGS " in
6689 *" -g "* | *" -g3 "*) ;;
6690 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6691 esac
6692 fi
6693
6694
6695 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6696 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6697 case " $CXXFLAGS " in
6698 *" -O2 "*) ;;
6699 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6700 esac
6701 case " $CXXFLAGS " in
6702 *" -g "* | *" -g3 "*) ;;
6703 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6704 esac
6705 fi
6706
6707
6708
6709
6710 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6711 # the named directory are copied to $(tooldir)/sys-include.
6712 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6713 if test x${is_cross_compiler} = xno ; then
6714 echo 1>&2 '***' --with-headers is only supported when cross compiling
6715 exit 1
6716 fi
6717 if test x"${with_headers}" != xyes ; then
6718 x=${gcc_cv_tool_prefix}
6719 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6720 fi
6721 fi
6722
6723 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6724 # the name directories are copied to $(tooldir)/lib. Multiple directories
6725 # are permitted.
6726 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6727 if test x${is_cross_compiler} = xno ; then
6728 echo 1>&2 '***' --with-libs is only supported when cross compiling
6729 exit 1
6730 fi
6731 if test x"${with_libs}" != xyes ; then
6732 # Copy the libraries in reverse order, so that files in the first named
6733 # library override files in subsequent libraries.
6734 x=${gcc_cv_tool_prefix}
6735 for l in ${with_libs}; do
6736 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6737 done
6738 fi
6739 fi
6740
6741 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6742 #
6743 # This is done by determining whether or not the appropriate directory
6744 # is available, and by checking whether or not specific configurations
6745 # have requested that this magic not happen.
6746 #
6747 # The command line options always override the explicit settings in
6748 # configure.in, and the settings in configure.in override this magic.
6749 #
6750 # If the default for a toolchain is to use GNU as and ld, and you don't
6751 # want to do that, then you should use the --without-gnu-as and
6752 # --without-gnu-ld options for the configure script. Similarly, if
6753 # the default is to use the included zlib and you don't want to do that,
6754 # you should use the --with-system-zlib option for the configure script.
6755
6756 if test x${use_gnu_as} = x &&
6757 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6758 with_gnu_as=yes
6759 extra_host_args="$extra_host_args --with-gnu-as"
6760 fi
6761
6762 if test x${use_gnu_ld} = x &&
6763 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6764 with_gnu_ld=yes
6765 extra_host_args="$extra_host_args --with-gnu-ld"
6766 fi
6767
6768 if test x${use_included_zlib} = x &&
6769 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6770 :
6771 else
6772 with_system_zlib=yes
6773 extra_host_args="$extra_host_args --with-system-zlib"
6774 fi
6775
6776 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6777 # can detect this case.
6778
6779 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6780 with_newlib=yes
6781 extra_host_args="$extra_host_args --with-newlib"
6782 fi
6783
6784 # Handle ${copy_dirs}
6785 set fnord ${copy_dirs}
6786 shift
6787 while test $# != 0 ; do
6788 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6789 :
6790 else
6791 echo Copying $1 to $2
6792
6793 # Use the install script to create the directory and all required
6794 # parent directories.
6795 if test -d $2 ; then
6796 :
6797 else
6798 echo >config.temp
6799 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6800 fi
6801
6802 # Copy the directory, assuming we have tar.
6803 # FIXME: Should we use B in the second tar? Not all systems support it.
6804 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6805
6806 # It is the responsibility of the user to correctly adjust all
6807 # symlinks. If somebody can figure out how to handle them correctly
6808 # here, feel free to add the code.
6809
6810 echo $1 > $2/COPIED
6811 fi
6812 shift; shift
6813 done
6814
6815 # Determine a target-dependent exec_prefix that the installed
6816 # gcc will search in. Keep this list sorted by triplet, with
6817 # the *-*-osname triplets last.
6818 md_exec_prefix=
6819 case "${target}" in
6820 i[34567]86-pc-msdosdjgpp*)
6821 md_exec_prefix=/dev/env/DJDIR/bin
6822 ;;
6823 *-*-hpux* | \
6824 *-*-nto-qnx* | \
6825 *-*-solaris2*)
6826 md_exec_prefix=/usr/ccs/bin
6827 ;;
6828 esac
6829
6830 extra_arflags_for_target=
6831 extra_nmflags_for_target=
6832 extra_ranlibflags_for_target=
6833 target_makefile_frag=/dev/null
6834 case "${target}" in
6835 spu-*-*)
6836 target_makefile_frag="config/mt-spu"
6837 ;;
6838 mips*-sde-elf*)
6839 target_makefile_frag="config/mt-sde"
6840 ;;
6841 mipsisa*-*-elfoabi*)
6842 target_makefile_frag="config/mt-mips-elfoabi"
6843 ;;
6844 mips*-*-*linux* | mips*-*-gnu*)
6845 target_makefile_frag="config/mt-mips-gnu"
6846 ;;
6847 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6848 target_makefile_frag="config/mt-gnu"
6849 ;;
6850 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6851 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6852 # commands to handle both 32-bit and 64-bit objects. These flags are
6853 # harmless if we're using GNU nm or ar.
6854 extra_arflags_for_target=" -X32_64"
6855 extra_nmflags_for_target=" -B -X32_64"
6856 ;;
6857 esac
6858
6859 alphaieee_frag=/dev/null
6860 case $target in
6861 alpha*-*-*)
6862 # This just makes sure to use the -mieee option to build target libs.
6863 # This should probably be set individually by each library.
6864 alphaieee_frag="config/mt-alphaieee"
6865 ;;
6866 esac
6867
6868 # If --enable-target-optspace always use -Os instead of -O2 to build
6869 # the target libraries, similarly if it is not specified, use -Os
6870 # on selected platforms.
6871 ospace_frag=/dev/null
6872 case "${enable_target_optspace}:${target}" in
6873 yes:*)
6874 ospace_frag="config/mt-ospace"
6875 ;;
6876 :d30v-*)
6877 ospace_frag="config/mt-d30v"
6878 ;;
6879 :m32r-* | :d10v-* | :fr30-*)
6880 ospace_frag="config/mt-ospace"
6881 ;;
6882 no:* | :*)
6883 ;;
6884 *)
6885 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6886 ;;
6887 esac
6888
6889 # Some systems (e.g., one of the i386-aix systems the gas testers are
6890 # using) don't handle "\$" correctly, so don't use it here.
6891 tooldir='${exec_prefix}'/${target_noncanonical}
6892 build_tooldir=${tooldir}
6893
6894 # Create a .gdbinit file which runs the one in srcdir
6895 # and tells GDB to look there for source files.
6896
6897 if test -r ${srcdir}/.gdbinit ; then
6898 case ${srcdir} in
6899 .) ;;
6900 *) cat > ./.gdbinit <<EOF
6901 # ${NO_EDIT}
6902 dir ${srcdir}
6903 dir .
6904 source ${srcdir}/.gdbinit
6905 EOF
6906 ;;
6907 esac
6908 fi
6909
6910 # Make sure that the compiler is able to generate an executable. If it
6911 # can't, we are probably in trouble. We don't care whether we can run the
6912 # executable--we might be using a cross compiler--we only care whether it
6913 # can be created. At this point the main configure script has set CC.
6914 we_are_ok=no
6915 echo "int main () { return 0; }" > conftest.c
6916 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6917 if test $? = 0 ; then
6918 if test -s conftest || test -s conftest.exe ; then
6919 we_are_ok=yes
6920 fi
6921 fi
6922 case $we_are_ok in
6923 no)
6924 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6925 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6926 rm -f conftest*
6927 exit 1
6928 ;;
6929 esac
6930 rm -f conftest*
6931
6932 # Decide which environment variable is used to find dynamic libraries.
6933 case "${host}" in
6934 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6935 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6936 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6937 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6938 esac
6939
6940 # On systems where the dynamic library environment variable is PATH,
6941 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6942 # built executables to PATH.
6943 if test "$RPATH_ENVVAR" = PATH; then
6944 GCC_SHLIB_SUBDIR=/shlib
6945 else
6946 GCC_SHLIB_SUBDIR=
6947 fi
6948
6949 # Record target_configdirs and the configure arguments for target and
6950 # build configuration in Makefile.
6951 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6952 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6953
6954 # If we are building libgomp, bootstrap it.
6955 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6956 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6957 fi
6958
6959 # Determine whether gdb needs tk/tcl or not.
6960 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6961 # and in that case we want gdb to be built without tk. Ugh!
6962 # In fact I believe gdb is the *only* package directly dependent on tk,
6963 # so we should be able to put the 'maybe's in unconditionally and
6964 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6965 # 100% sure that that's safe though.
6966
6967 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6968 case "$enable_gdbtk" in
6969 no)
6970 GDB_TK="" ;;
6971 yes)
6972 GDB_TK="${gdb_tk}" ;;
6973 *)
6974 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6975 # distro. Eventually someone will fix this and move Insight, nee
6976 # gdbtk to a separate directory.
6977 if test -d ${srcdir}/gdb/gdbtk ; then
6978 GDB_TK="${gdb_tk}"
6979 else
6980 GDB_TK=""
6981 fi
6982 ;;
6983 esac
6984 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6985 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6986
6987 # Strip out unwanted targets.
6988
6989 # While at that, we remove Makefiles if we were started for recursive
6990 # configuration, so that the top-level Makefile reconfigures them,
6991 # like we used to do when configure itself was recursive.
6992
6993 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6994 # but now we're fixing up the Makefile ourselves with the additional
6995 # commands passed to AC_CONFIG_FILES. Use separate variables
6996 # extrasub-{build,host,target} not because there is any reason to split
6997 # the substitutions up that way, but only to remain below the limit of
6998 # 99 commands in a script, for HP-UX sed.
6999 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7000
7001 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7002 yes:yes:*\ gold\ *:*,c++,*) ;;
7003 yes:yes:*\ gold\ *:*)
7004 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7005 ;;
7006 esac
7007
7008 # Adjust the toplevel makefile according to whether bootstrap was selected.
7009 case $enable_bootstrap in
7010 yes)
7011 bootstrap_suffix=bootstrap
7012 BUILD_CONFIG=bootstrap-debug
7013 ;;
7014 no)
7015 bootstrap_suffix=no-bootstrap
7016 BUILD_CONFIG=
7017 ;;
7018 esac
7019
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7021 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7022
7023
7024 # Check whether --with-build-config was given.
7025 if test "${with_build_config+set}" = set; then :
7026 withval=$with_build_config; case $with_build_config in
7027 yes) with_build_config= ;;
7028 no) with_build_config= BUILD_CONFIG= ;;
7029 esac
7030 fi
7031
7032
7033 if test "x${with_build_config}" != x; then
7034 BUILD_CONFIG=$with_build_config
7035 else
7036 case $BUILD_CONFIG in
7037 bootstrap-debug)
7038 if echo "int f (void) { return 0; }" > conftest.c &&
7039 ${CC} -c conftest.c &&
7040 mv conftest.o conftest.o.g0 &&
7041 ${CC} -c -g conftest.c &&
7042 mv conftest.o conftest.o.g &&
7043 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7044 :
7045 else
7046 BUILD_CONFIG=
7047 fi
7048 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7049 ;;
7050 esac
7051 fi
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7053 $as_echo "$BUILD_CONFIG" >&6; }
7054
7055
7056 extrasub_build=
7057 for module in ${build_configdirs} ; do
7058 if test -z "${no_recursion}" \
7059 && test -f ${build_subdir}/${module}/Makefile; then
7060 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7061 rm -f ${build_subdir}/${module}/Makefile
7062 fi
7063 extrasub_build="$extrasub_build
7064 /^@if build-$module\$/d
7065 /^@endif build-$module\$/d
7066 /^@if build-$module-$bootstrap_suffix\$/d
7067 /^@endif build-$module-$bootstrap_suffix\$/d"
7068 done
7069 extrasub_host=
7070 for module in ${configdirs} ; do
7071 if test -z "${no_recursion}"; then
7072 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7073 if test -f ${file}; then
7074 echo 1>&2 "*** removing ${file} to force reconfigure"
7075 rm -f ${file}
7076 fi
7077 done
7078 fi
7079 extrasub_host="$extrasub_host
7080 /^@if $module\$/d
7081 /^@endif $module\$/d
7082 /^@if $module-$bootstrap_suffix\$/d
7083 /^@endif $module-$bootstrap_suffix\$/d"
7084 done
7085 extrasub_target=
7086 for module in ${target_configdirs} ; do
7087 if test -z "${no_recursion}" \
7088 && test -f ${target_subdir}/${module}/Makefile; then
7089 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7090 rm -f ${target_subdir}/${module}/Makefile
7091 fi
7092
7093 # We only bootstrap target libraries listed in bootstrap_target_libs.
7094 case $bootstrap_target_libs in
7095 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7096 *) target_bootstrap_suffix=no-bootstrap ;;
7097 esac
7098
7099 extrasub_target="$extrasub_target
7100 /^@if target-$module\$/d
7101 /^@endif target-$module\$/d
7102 /^@if target-$module-$target_bootstrap_suffix\$/d
7103 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7104 done
7105
7106 # Do the final fixup along with target modules.
7107 extrasub_target="$extrasub_target
7108 /^@if /,/^@endif /d"
7109
7110 # Create the serialization dependencies. This uses a temporary file.
7111
7112 # Check whether --enable-serial-configure was given.
7113 if test "${enable_serial_configure+set}" = set; then :
7114 enableval=$enable_serial_configure;
7115 fi
7116
7117
7118 case ${enable_serial_configure} in
7119 yes)
7120 enable_serial_build_configure=yes
7121 enable_serial_host_configure=yes
7122 enable_serial_target_configure=yes
7123 ;;
7124 esac
7125
7126 # These force 'configure's to be done one at a time, to avoid problems
7127 # with contention over a shared config.cache.
7128 rm -f serdep.tmp
7129 echo '# serdep.tmp' > serdep.tmp
7130 olditem=
7131 test "x${enable_serial_build_configure}" = xyes &&
7132 for item in ${build_configdirs} ; do
7133 case ${olditem} in
7134 "") ;;
7135 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7136 esac
7137 olditem=${item}
7138 done
7139 olditem=
7140 test "x${enable_serial_host_configure}" = xyes &&
7141 for item in ${configdirs} ; do
7142 case ${olditem} in
7143 "") ;;
7144 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7145 esac
7146 olditem=${item}
7147 done
7148 olditem=
7149 test "x${enable_serial_target_configure}" = xyes &&
7150 for item in ${target_configdirs} ; do
7151 case ${olditem} in
7152 "") ;;
7153 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7154 esac
7155 olditem=${item}
7156 done
7157 serialization_dependencies=serdep.tmp
7158
7159
7160 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7161 # target, nonopt, and variable assignments. These are the ones we
7162 # might not want to pass down to subconfigures. The exception being
7163 # --cache-file=/dev/null, which is used to turn off the use of cache
7164 # files altogether, and which should be passed on to subconfigures.
7165 # Also strip program-prefix, program-suffix, and program-transform-name,
7166 # so that we can pass down a consistent program-transform-name.
7167 baseargs=
7168 tbaseargs=
7169 keep_next=no
7170 skip_next=no
7171 eval "set -- $ac_configure_args"
7172 for ac_arg
7173 do
7174 if test X"$skip_next" = X"yes"; then
7175 skip_next=no
7176 continue
7177 fi
7178 if test X"$keep_next" = X"yes"; then
7179 case $ac_arg in
7180 *\'*)
7181 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7182 esac
7183 baseargs="$baseargs '$ac_arg'"
7184 tbaseargs="$tbaseargs '$ac_arg'"
7185 keep_next=no
7186 continue
7187 fi
7188
7189 # Handle separated arguments. Based on the logic generated by
7190 # autoconf 2.59.
7191 case $ac_arg in
7192 *=* | --config-cache | -C | -disable-* | --disable-* \
7193 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7194 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7195 | -with-* | --with-* | -without-* | --without-* | --x)
7196 separate_arg=no
7197 ;;
7198 -*)
7199 separate_arg=yes
7200 ;;
7201 *)
7202 separate_arg=no
7203 ;;
7204 esac
7205
7206 skip_targ=no
7207 case $ac_arg in
7208
7209 --with-* | --without-*)
7210 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7211
7212 case $libopt in
7213 *[-_]include)
7214 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7215 ;;
7216 *[-_]lib)
7217 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7218 ;;
7219 *)
7220 lib=$libopt
7221 ;;
7222 esac
7223
7224
7225 case $lib in
7226 mpc | mpfr | gmp | ppl | cloog)
7227 # If we're processing --with-$lib, --with-$lib-include or
7228 # --with-$lib-lib, for one of the libs above, and target is
7229 # different from host, don't pass the current argument to any
7230 # target library's configure.
7231 if test x$is_cross_compiler = xyes; then
7232 skip_targ=yes
7233 fi
7234 ;;
7235 esac
7236 ;;
7237 esac
7238
7239 case "$ac_arg" in
7240 --cache-file=/dev/null | \
7241 -cache-file=/dev/null )
7242 # Handled here to avoid the test to skip args below.
7243 baseargs="$baseargs '$ac_arg'"
7244 tbaseargs="$tbaseargs '$ac_arg'"
7245 # Assert: $separate_arg should always be no.
7246 keep_next=$separate_arg
7247 ;;
7248 --no*)
7249 continue
7250 ;;
7251 --c* | \
7252 --sr* | \
7253 --ho* | \
7254 --bu* | \
7255 --t* | \
7256 --program-* | \
7257 -cache_file* | \
7258 -srcdir* | \
7259 -host* | \
7260 -build* | \
7261 -target* | \
7262 -program-prefix* | \
7263 -program-suffix* | \
7264 -program-transform-name* )
7265 skip_next=$separate_arg
7266 continue
7267 ;;
7268 -*)
7269 # An option. Add it.
7270 case $ac_arg in
7271 *\'*)
7272 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7273 esac
7274 baseargs="$baseargs '$ac_arg'"
7275 if test X"$skip_targ" = Xno; then
7276 tbaseargs="$tbaseargs '$ac_arg'"
7277 fi
7278 keep_next=$separate_arg
7279 ;;
7280 *)
7281 # Either a variable assignment, or a nonopt (triplet). Don't
7282 # pass it down; let the Makefile handle this.
7283 continue
7284 ;;
7285 esac
7286 done
7287 # Remove the initial space we just introduced and, as these will be
7288 # expanded by make, quote '$'.
7289 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7290
7291 # Add in --program-transform-name, after --program-prefix and
7292 # --program-suffix have been applied to it. Autoconf has already
7293 # doubled dollar signs and backslashes in program_transform_name; we want
7294 # the backslashes un-doubled, and then the entire thing wrapped in single
7295 # quotes, because this will be expanded first by make and then by the shell.
7296 # Also, because we want to override the logic in subdir configure scripts to
7297 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7298 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7299 ${program_transform_name}
7300 EOF_SED
7301 gcc_transform_name=`cat conftestsed.out`
7302 rm -f conftestsed.out
7303 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7304 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7305 if test "$silent" = yes; then
7306 baseargs="$baseargs --silent"
7307 tbaseargs="$tbaseargs --silent"
7308 fi
7309 baseargs="$baseargs --disable-option-checking"
7310 tbaseargs="$tbaseargs --disable-option-checking"
7311
7312 # Record and document user additions to sub configure arguments.
7313
7314
7315
7316
7317 # For the build-side libraries, we just need to pretend we're native,
7318 # and not use the same cache file. Multilibs are neither needed nor
7319 # desired.
7320 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7321
7322 # For host modules, accept cache file option, or specification as blank.
7323 case "${cache_file}" in
7324 "") # empty
7325 cache_file_option="" ;;
7326 /* | [A-Za-z]:[\\/]* ) # absolute path
7327 cache_file_option="--cache-file=${cache_file}" ;;
7328 *) # relative path
7329 cache_file_option="--cache-file=../${cache_file}" ;;
7330 esac
7331
7332 # Host dirs don't like to share a cache file either, horribly enough.
7333 # This seems to be due to autoconf 2.5x stupidity.
7334 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7335
7336 target_configargs="$target_configargs ${tbaseargs}"
7337
7338 # Passing a --with-cross-host argument lets the target libraries know
7339 # whether they are being built with a cross-compiler or being built
7340 # native. However, it would be better to use other mechanisms to make the
7341 # sorts of decisions they want to make on this basis. Please consider
7342 # this option to be deprecated. FIXME.
7343 if test x${is_cross_compiler} = xyes ; then
7344 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7345 fi
7346
7347 # Default to --enable-multilib.
7348 if test x${enable_multilib} = x ; then
7349 target_configargs="--enable-multilib ${target_configargs}"
7350 fi
7351
7352 # Pass --with-newlib if appropriate. Note that target_configdirs has
7353 # changed from the earlier setting of with_newlib.
7354 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7355 target_configargs="--with-newlib ${target_configargs}"
7356 fi
7357
7358 # Different target subdirs use different values of certain variables
7359 # (notably CXX). Worse, multilibs use *lots* of different values.
7360 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7361 # it doesn't automatically accept command-line overrides of them.
7362 # This means it's not safe for target subdirs to share a cache file,
7363 # which is disgusting, but there you have it. Hopefully this can be
7364 # fixed in future. It's still worthwhile to use a cache file for each
7365 # directory. I think.
7366
7367 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7368 # We need to pass --target, as newer autoconf's requires consistency
7369 # for target_alias and gcc doesn't manage it consistently.
7370 target_configargs="--cache-file=./config.cache ${target_configargs}"
7371
7372 FLAGS_FOR_TARGET=
7373 case " $target_configdirs " in
7374 *" newlib "*)
7375 case " $target_configargs " in
7376 *" --with-newlib "*)
7377 case "$target" in
7378 *-cygwin*)
7379 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'
7380 ;;
7381 esac
7382
7383 # If we're not building GCC, don't discard standard headers.
7384 if test -d ${srcdir}/gcc; then
7385 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7386
7387 if test "${build}" != "${host}"; then
7388 # On Canadian crosses, CC_FOR_TARGET will have already been set
7389 # by `configure', so we won't have an opportunity to add -Bgcc/
7390 # to it. This is right: we don't want to search that directory
7391 # for binaries, but we want the header files in there, so add
7392 # them explicitly.
7393 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7394
7395 # Someone might think of using the pre-installed headers on
7396 # Canadian crosses, in case the installed compiler is not fully
7397 # compatible with the compiler being built. In this case, it
7398 # would be better to flag an error than risking having
7399 # incompatible object files being constructed. We can't
7400 # guarantee that an error will be flagged, but let's hope the
7401 # compiler will do it, when presented with incompatible header
7402 # files.
7403 fi
7404 fi
7405
7406 case "${target}-${is_cross_compiler}" in
7407 i[3456789]86-*-linux*-no)
7408 # Here host == target, so we don't need to build gcc,
7409 # so we don't want to discard standard headers.
7410 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7411 ;;
7412 *)
7413 # If we're building newlib, use its generic headers last, but search
7414 # for any libc-related directories first (so make it the last -B
7415 # switch).
7416 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7417
7418 # If we're building libgloss, find the startup file, simulator library
7419 # and linker script.
7420 case " $target_configdirs " in
7421 *" libgloss "*)
7422 # Look for startup file, simulator library and maybe linker script.
7423 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7424 # Look for libnosys.a in case the target needs it.
7425 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7426 # Most targets have the linker script in the source directory.
7427 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7428 ;;
7429 esac
7430 ;;
7431 esac
7432 ;;
7433 esac
7434 ;;
7435 esac
7436
7437 case "$target" in
7438 x86_64-*mingw* | *-w64-mingw*)
7439 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7440 # however, use a symlink named 'mingw' in ${prefix} .
7441 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7442 ;;
7443 *-mingw*)
7444 # MinGW can't be handled as Cygwin above since it does not use newlib.
7445 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'
7446 ;;
7447 esac
7448
7449 # Allow the user to override the flags for
7450 # our build compiler if desired.
7451 if test x"${build}" = x"${host}" ; then
7452 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7453 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7454 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7455 fi
7456
7457 # On Canadian crosses, we'll be searching the right directories for
7458 # the previously-installed cross compiler, so don't bother to add
7459 # flags for directories within the install tree of the compiler
7460 # being built; programs in there won't even run.
7461 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7462 # Search for pre-installed headers if nothing else fits.
7463 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7464 fi
7465
7466 if test "x${use_gnu_ld}" = x &&
7467 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7468 # Arrange for us to find uninstalled linker scripts.
7469 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7470 fi
7471
7472 # Search for other target-specific linker scripts and such.
7473 case "${target}" in
7474 mep*)
7475 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7476 ;;
7477 esac
7478
7479 # Makefile fragments.
7480 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7481 do
7482 eval fragval=\$$frag
7483 if test $fragval != /dev/null; then
7484 eval $frag=${srcdir}/$fragval
7485 fi
7486 done
7487
7488
7489
7490
7491
7492 # Miscellanea: directories, flags, etc.
7493
7494
7495
7496
7497
7498
7499
7500
7501 # Build module lists & subconfigure args.
7502
7503
7504
7505 # Host module lists & subconfigure args.
7506
7507
7508
7509
7510 # Target module lists & subconfigure args.
7511
7512
7513
7514 # Build tools.
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532 # Generate default definitions for YACC, M4, LEX and other programs that run
7533 # on the build machine. These are used if the Makefile can't locate these
7534 # programs in objdir.
7535 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7536
7537 for ac_prog in 'bison -y' byacc yacc
7538 do
7539 # Extract the first word of "$ac_prog", so it can be a program name with args.
7540 set dummy $ac_prog; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if test "${ac_cv_prog_YACC+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
7545 else
7546 if test -n "$YACC"; then
7547 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7548 else
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7551 do
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7556 ac_cv_prog_YACC="$ac_prog"
7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 break 2
7559 fi
7560 done
7561 done
7562 IFS=$as_save_IFS
7563
7564 fi
7565 fi
7566 YACC=$ac_cv_prog_YACC
7567 if test -n "$YACC"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7569 $as_echo "$YACC" >&6; }
7570 else
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7573 fi
7574
7575
7576 test -n "$YACC" && break
7577 done
7578 test -n "$YACC" || YACC="$MISSING bison -y"
7579
7580 case " $build_configdirs " in
7581 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7582 esac
7583
7584 for ac_prog in bison
7585 do
7586 # Extract the first word of "$ac_prog", so it can be a program name with args.
7587 set dummy $ac_prog; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if test "${ac_cv_prog_BISON+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 if test -n "$BISON"; then
7594 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_prog_BISON="$ac_prog"
7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7606 fi
7607 done
7608 done
7609 IFS=$as_save_IFS
7610
7611 fi
7612 fi
7613 BISON=$ac_cv_prog_BISON
7614 if test -n "$BISON"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7616 $as_echo "$BISON" >&6; }
7617 else
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7620 fi
7621
7622
7623 test -n "$BISON" && break
7624 done
7625 test -n "$BISON" || BISON="$MISSING bison"
7626
7627 case " $build_configdirs " in
7628 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7629 esac
7630
7631 for ac_prog in gm4 gnum4 m4
7632 do
7633 # Extract the first word of "$ac_prog", so it can be a program name with args.
7634 set dummy $ac_prog; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if test "${ac_cv_prog_M4+set}" = set; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 if test -n "$M4"; then
7641 ac_cv_prog_M4="$M4" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7645 do
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650 ac_cv_prog_M4="$ac_prog"
7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 break 2
7653 fi
7654 done
7655 done
7656 IFS=$as_save_IFS
7657
7658 fi
7659 fi
7660 M4=$ac_cv_prog_M4
7661 if test -n "$M4"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7663 $as_echo "$M4" >&6; }
7664 else
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7667 fi
7668
7669
7670 test -n "$M4" && break
7671 done
7672 test -n "$M4" || M4="$MISSING m4"
7673
7674 case " $build_configdirs " in
7675 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7676 esac
7677
7678 for ac_prog in flex lex
7679 do
7680 # Extract the first word of "$ac_prog", so it can be a program name with args.
7681 set dummy $ac_prog; ac_word=$2
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683 $as_echo_n "checking for $ac_word... " >&6; }
7684 if test "${ac_cv_prog_LEX+set}" = set; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7687 if test -n "$LEX"; then
7688 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7689 else
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 ac_cv_prog_LEX="$ac_prog"
7698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 break 2
7700 fi
7701 done
7702 done
7703 IFS=$as_save_IFS
7704
7705 fi
7706 fi
7707 LEX=$ac_cv_prog_LEX
7708 if test -n "$LEX"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7710 $as_echo "$LEX" >&6; }
7711 else
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7714 fi
7715
7716
7717 test -n "$LEX" && break
7718 done
7719 test -n "$LEX" || LEX="$MISSING flex"
7720
7721 case " $build_configdirs " in
7722 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7723 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7724 esac
7725
7726 for ac_prog in flex
7727 do
7728 # Extract the first word of "$ac_prog", so it can be a program name with args.
7729 set dummy $ac_prog; ac_word=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if test "${ac_cv_prog_FLEX+set}" = set; then :
7733 $as_echo_n "(cached) " >&6
7734 else
7735 if test -n "$FLEX"; then
7736 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7737 else
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 for as_dir in $PATH
7740 do
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7745 ac_cv_prog_FLEX="$ac_prog"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7748 fi
7749 done
7750 done
7751 IFS=$as_save_IFS
7752
7753 fi
7754 fi
7755 FLEX=$ac_cv_prog_FLEX
7756 if test -n "$FLEX"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7758 $as_echo "$FLEX" >&6; }
7759 else
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7762 fi
7763
7764
7765 test -n "$FLEX" && break
7766 done
7767 test -n "$FLEX" || FLEX="$MISSING flex"
7768
7769 case " $build_configdirs " in
7770 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7771 esac
7772
7773 for ac_prog in makeinfo
7774 do
7775 # Extract the first word of "$ac_prog", so it can be a program name with args.
7776 set dummy $ac_prog; ac_word=$2
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7778 $as_echo_n "checking for $ac_word... " >&6; }
7779 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7780 $as_echo_n "(cached) " >&6
7781 else
7782 if test -n "$MAKEINFO"; then
7783 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7784 else
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7787 do
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7792 ac_cv_prog_MAKEINFO="$ac_prog"
7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 break 2
7795 fi
7796 done
7797 done
7798 IFS=$as_save_IFS
7799
7800 fi
7801 fi
7802 MAKEINFO=$ac_cv_prog_MAKEINFO
7803 if test -n "$MAKEINFO"; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7805 $as_echo "$MAKEINFO" >&6; }
7806 else
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 $as_echo "no" >&6; }
7809 fi
7810
7811
7812 test -n "$MAKEINFO" && break
7813 done
7814 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7815
7816 case " $build_configdirs " in
7817 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7818 *)
7819
7820 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7821 # higher, else we use the "missing" dummy.
7822 if ${MAKEINFO} --version \
7823 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7824 :
7825 else
7826 MAKEINFO="$MISSING makeinfo"
7827 fi
7828 ;;
7829
7830 esac
7831
7832 # FIXME: expect and dejagnu may become build tools?
7833
7834 for ac_prog in expect
7835 do
7836 # Extract the first word of "$ac_prog", so it can be a program name with args.
7837 set dummy $ac_prog; ac_word=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 $as_echo_n "checking for $ac_word... " >&6; }
7840 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
7842 else
7843 if test -n "$EXPECT"; then
7844 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7845 else
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7848 do
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7853 ac_cv_prog_EXPECT="$ac_prog"
7854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7855 break 2
7856 fi
7857 done
7858 done
7859 IFS=$as_save_IFS
7860
7861 fi
7862 fi
7863 EXPECT=$ac_cv_prog_EXPECT
7864 if test -n "$EXPECT"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7866 $as_echo "$EXPECT" >&6; }
7867 else
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7870 fi
7871
7872
7873 test -n "$EXPECT" && break
7874 done
7875 test -n "$EXPECT" || EXPECT="expect"
7876
7877 case " $configdirs " in
7878 *" expect "*)
7879 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7880 ;;
7881 esac
7882
7883 for ac_prog in runtest
7884 do
7885 # Extract the first word of "$ac_prog", so it can be a program name with args.
7886 set dummy $ac_prog; ac_word=$2
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888 $as_echo_n "checking for $ac_word... " >&6; }
7889 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892 if test -n "$RUNTEST"; then
7893 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7894 else
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 for as_dir in $PATH
7897 do
7898 IFS=$as_save_IFS
7899 test -z "$as_dir" && as_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7902 ac_cv_prog_RUNTEST="$ac_prog"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 break 2
7905 fi
7906 done
7907 done
7908 IFS=$as_save_IFS
7909
7910 fi
7911 fi
7912 RUNTEST=$ac_cv_prog_RUNTEST
7913 if test -n "$RUNTEST"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7915 $as_echo "$RUNTEST" >&6; }
7916 else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7919 fi
7920
7921
7922 test -n "$RUNTEST" && break
7923 done
7924 test -n "$RUNTEST" || RUNTEST="runtest"
7925
7926 case " $configdirs " in
7927 *" dejagnu "*)
7928 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7929 ;;
7930 esac
7931
7932
7933 # Host tools.
7934 ncn_tool_prefix=
7935 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7936 ncn_target_tool_prefix=
7937 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7938
7939
7940
7941 if test -n "$AR"; then
7942 ac_cv_prog_AR=$AR
7943 elif test -n "$ac_cv_prog_AR"; then
7944 AR=$ac_cv_prog_AR
7945 fi
7946
7947 if test -n "$ac_cv_prog_AR"; then
7948 for ncn_progname in ar; do
7949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7950 set dummy ${ncn_progname}; ac_word=$2
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952 $as_echo_n "checking for $ac_word... " >&6; }
7953 if test "${ac_cv_prog_AR+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 if test -n "$AR"; then
7957 ac_cv_prog_AR="$AR" # Let the user override the test.
7958 else
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 for as_dir in $PATH
7961 do
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7966 ac_cv_prog_AR="${ncn_progname}"
7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 break 2
7969 fi
7970 done
7971 done
7972 IFS=$as_save_IFS
7973
7974 fi
7975 fi
7976 AR=$ac_cv_prog_AR
7977 if test -n "$AR"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7979 $as_echo "$AR" >&6; }
7980 else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7983 fi
7984
7985
7986 done
7987 fi
7988
7989 for ncn_progname in ar; do
7990 if test -n "$ncn_tool_prefix"; then
7991 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7992 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994 $as_echo_n "checking for $ac_word... " >&6; }
7995 if test "${ac_cv_prog_AR+set}" = set; then :
7996 $as_echo_n "(cached) " >&6
7997 else
7998 if test -n "$AR"; then
7999 ac_cv_prog_AR="$AR" # Let the user override the test.
8000 else
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8003 do
8004 IFS=$as_save_IFS
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8008 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 break 2
8011 fi
8012 done
8013 done
8014 IFS=$as_save_IFS
8015
8016 fi
8017 fi
8018 AR=$ac_cv_prog_AR
8019 if test -n "$AR"; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8021 $as_echo "$AR" >&6; }
8022 else
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }
8025 fi
8026
8027
8028 fi
8029 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8031 set dummy ${ncn_progname}; ac_word=$2
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033 $as_echo_n "checking for $ac_word... " >&6; }
8034 if test "${ac_cv_prog_AR+set}" = set; then :
8035 $as_echo_n "(cached) " >&6
8036 else
8037 if test -n "$AR"; then
8038 ac_cv_prog_AR="$AR" # Let the user override the test.
8039 else
8040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041 for as_dir in $PATH
8042 do
8043 IFS=$as_save_IFS
8044 test -z "$as_dir" && as_dir=.
8045 for ac_exec_ext in '' $ac_executable_extensions; do
8046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8047 ac_cv_prog_AR="${ncn_progname}"
8048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8049 break 2
8050 fi
8051 done
8052 done
8053 IFS=$as_save_IFS
8054
8055 fi
8056 fi
8057 AR=$ac_cv_prog_AR
8058 if test -n "$AR"; then
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8060 $as_echo "$AR" >&6; }
8061 else
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063 $as_echo "no" >&6; }
8064 fi
8065
8066
8067 fi
8068 test -n "$ac_cv_prog_AR" && break
8069 done
8070
8071 if test -z "$ac_cv_prog_AR" ; then
8072 set dummy ar
8073 if test $build = $host ; then
8074 AR="$2"
8075 else
8076 AR="${ncn_tool_prefix}$2"
8077 fi
8078 fi
8079
8080
8081
8082 if test -n "$AS"; then
8083 ac_cv_prog_AS=$AS
8084 elif test -n "$ac_cv_prog_AS"; then
8085 AS=$ac_cv_prog_AS
8086 fi
8087
8088 if test -n "$ac_cv_prog_AS"; then
8089 for ncn_progname in as; do
8090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8091 set dummy ${ncn_progname}; ac_word=$2
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093 $as_echo_n "checking for $ac_word... " >&6; }
8094 if test "${ac_cv_prog_AS+set}" = set; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 if test -n "$AS"; then
8098 ac_cv_prog_AS="$AS" # Let the user override the test.
8099 else
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8102 do
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8107 ac_cv_prog_AS="${ncn_progname}"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8110 fi
8111 done
8112 done
8113 IFS=$as_save_IFS
8114
8115 fi
8116 fi
8117 AS=$ac_cv_prog_AS
8118 if test -n "$AS"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8120 $as_echo "$AS" >&6; }
8121 else
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8124 fi
8125
8126
8127 done
8128 fi
8129
8130 for ncn_progname in as; do
8131 if test -n "$ncn_tool_prefix"; then
8132 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8133 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135 $as_echo_n "checking for $ac_word... " >&6; }
8136 if test "${ac_cv_prog_AS+set}" = set; then :
8137 $as_echo_n "(cached) " >&6
8138 else
8139 if test -n "$AS"; then
8140 ac_cv_prog_AS="$AS" # Let the user override the test.
8141 else
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH
8144 do
8145 IFS=$as_save_IFS
8146 test -z "$as_dir" && as_dir=.
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8149 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 break 2
8152 fi
8153 done
8154 done
8155 IFS=$as_save_IFS
8156
8157 fi
8158 fi
8159 AS=$ac_cv_prog_AS
8160 if test -n "$AS"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8162 $as_echo "$AS" >&6; }
8163 else
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8166 fi
8167
8168
8169 fi
8170 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8172 set dummy ${ncn_progname}; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if test "${ac_cv_prog_AS+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 if test -n "$AS"; then
8179 ac_cv_prog_AS="$AS" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8183 do
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8188 ac_cv_prog_AS="${ncn_progname}"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 break 2
8191 fi
8192 done
8193 done
8194 IFS=$as_save_IFS
8195
8196 fi
8197 fi
8198 AS=$ac_cv_prog_AS
8199 if test -n "$AS"; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8201 $as_echo "$AS" >&6; }
8202 else
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8205 fi
8206
8207
8208 fi
8209 test -n "$ac_cv_prog_AS" && break
8210 done
8211
8212 if test -z "$ac_cv_prog_AS" ; then
8213 set dummy as
8214 if test $build = $host ; then
8215 AS="$2"
8216 else
8217 AS="${ncn_tool_prefix}$2"
8218 fi
8219 fi
8220
8221
8222
8223 if test -n "$DLLTOOL"; then
8224 ac_cv_prog_DLLTOOL=$DLLTOOL
8225 elif test -n "$ac_cv_prog_DLLTOOL"; then
8226 DLLTOOL=$ac_cv_prog_DLLTOOL
8227 fi
8228
8229 if test -n "$ac_cv_prog_DLLTOOL"; then
8230 for ncn_progname in dlltool; do
8231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8232 set dummy ${ncn_progname}; ac_word=$2
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234 $as_echo_n "checking for $ac_word... " >&6; }
8235 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 if test -n "$DLLTOOL"; then
8239 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8240 else
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242 for as_dir in $PATH
8243 do
8244 IFS=$as_save_IFS
8245 test -z "$as_dir" && as_dir=.
8246 for ac_exec_ext in '' $ac_executable_extensions; do
8247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8248 ac_cv_prog_DLLTOOL="${ncn_progname}"
8249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8250 break 2
8251 fi
8252 done
8253 done
8254 IFS=$as_save_IFS
8255
8256 fi
8257 fi
8258 DLLTOOL=$ac_cv_prog_DLLTOOL
8259 if test -n "$DLLTOOL"; then
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8261 $as_echo "$DLLTOOL" >&6; }
8262 else
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264 $as_echo "no" >&6; }
8265 fi
8266
8267
8268 done
8269 fi
8270
8271 for ncn_progname in dlltool; do
8272 if test -n "$ncn_tool_prefix"; then
8273 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8274 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8276 $as_echo_n "checking for $ac_word... " >&6; }
8277 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 if test -n "$DLLTOOL"; then
8281 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8282 else
8283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 for as_dir in $PATH
8285 do
8286 IFS=$as_save_IFS
8287 test -z "$as_dir" && as_dir=.
8288 for ac_exec_ext in '' $ac_executable_extensions; do
8289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8290 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8292 break 2
8293 fi
8294 done
8295 done
8296 IFS=$as_save_IFS
8297
8298 fi
8299 fi
8300 DLLTOOL=$ac_cv_prog_DLLTOOL
8301 if test -n "$DLLTOOL"; then
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8303 $as_echo "$DLLTOOL" >&6; }
8304 else
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8307 fi
8308
8309
8310 fi
8311 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8313 set dummy ${ncn_progname}; ac_word=$2
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315 $as_echo_n "checking for $ac_word... " >&6; }
8316 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 if test -n "$DLLTOOL"; then
8320 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8321 else
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 for as_dir in $PATH
8324 do
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8329 ac_cv_prog_DLLTOOL="${ncn_progname}"
8330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 break 2
8332 fi
8333 done
8334 done
8335 IFS=$as_save_IFS
8336
8337 fi
8338 fi
8339 DLLTOOL=$ac_cv_prog_DLLTOOL
8340 if test -n "$DLLTOOL"; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8342 $as_echo "$DLLTOOL" >&6; }
8343 else
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8346 fi
8347
8348
8349 fi
8350 test -n "$ac_cv_prog_DLLTOOL" && break
8351 done
8352
8353 if test -z "$ac_cv_prog_DLLTOOL" ; then
8354 set dummy dlltool
8355 if test $build = $host ; then
8356 DLLTOOL="$2"
8357 else
8358 DLLTOOL="${ncn_tool_prefix}$2"
8359 fi
8360 fi
8361
8362
8363
8364 if test -n "$LD"; then
8365 ac_cv_prog_LD=$LD
8366 elif test -n "$ac_cv_prog_LD"; then
8367 LD=$ac_cv_prog_LD
8368 fi
8369
8370 if test -n "$ac_cv_prog_LD"; then
8371 for ncn_progname in ld; do
8372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8373 set dummy ${ncn_progname}; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if test "${ac_cv_prog_LD+set}" = set; then :
8377 $as_echo_n "(cached) " >&6
8378 else
8379 if test -n "$LD"; then
8380 ac_cv_prog_LD="$LD" # Let the user override the test.
8381 else
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383 for as_dir in $PATH
8384 do
8385 IFS=$as_save_IFS
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8389 ac_cv_prog_LD="${ncn_progname}"
8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 break 2
8392 fi
8393 done
8394 done
8395 IFS=$as_save_IFS
8396
8397 fi
8398 fi
8399 LD=$ac_cv_prog_LD
8400 if test -n "$LD"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8402 $as_echo "$LD" >&6; }
8403 else
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8406 fi
8407
8408
8409 done
8410 fi
8411
8412 for ncn_progname in ld; do
8413 if test -n "$ncn_tool_prefix"; then
8414 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8415 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417 $as_echo_n "checking for $ac_word... " >&6; }
8418 if test "${ac_cv_prog_LD+set}" = set; then :
8419 $as_echo_n "(cached) " >&6
8420 else
8421 if test -n "$LD"; then
8422 ac_cv_prog_LD="$LD" # Let the user override the test.
8423 else
8424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425 for as_dir in $PATH
8426 do
8427 IFS=$as_save_IFS
8428 test -z "$as_dir" && as_dir=.
8429 for ac_exec_ext in '' $ac_executable_extensions; do
8430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8431 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 break 2
8434 fi
8435 done
8436 done
8437 IFS=$as_save_IFS
8438
8439 fi
8440 fi
8441 LD=$ac_cv_prog_LD
8442 if test -n "$LD"; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8444 $as_echo "$LD" >&6; }
8445 else
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8448 fi
8449
8450
8451 fi
8452 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8454 set dummy ${ncn_progname}; ac_word=$2
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456 $as_echo_n "checking for $ac_word... " >&6; }
8457 if test "${ac_cv_prog_LD+set}" = set; then :
8458 $as_echo_n "(cached) " >&6
8459 else
8460 if test -n "$LD"; then
8461 ac_cv_prog_LD="$LD" # Let the user override the test.
8462 else
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 for as_dir in $PATH
8465 do
8466 IFS=$as_save_IFS
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8470 ac_cv_prog_LD="${ncn_progname}"
8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8472 break 2
8473 fi
8474 done
8475 done
8476 IFS=$as_save_IFS
8477
8478 fi
8479 fi
8480 LD=$ac_cv_prog_LD
8481 if test -n "$LD"; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8483 $as_echo "$LD" >&6; }
8484 else
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8487 fi
8488
8489
8490 fi
8491 test -n "$ac_cv_prog_LD" && break
8492 done
8493
8494 if test -z "$ac_cv_prog_LD" ; then
8495 set dummy ld
8496 if test $build = $host ; then
8497 LD="$2"
8498 else
8499 LD="${ncn_tool_prefix}$2"
8500 fi
8501 fi
8502
8503
8504
8505 if test -n "$LIPO"; then
8506 ac_cv_prog_LIPO=$LIPO
8507 elif test -n "$ac_cv_prog_LIPO"; then
8508 LIPO=$ac_cv_prog_LIPO
8509 fi
8510
8511 if test -n "$ac_cv_prog_LIPO"; then
8512 for ncn_progname in lipo; do
8513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8514 set dummy ${ncn_progname}; ac_word=$2
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8516 $as_echo_n "checking for $ac_word... " >&6; }
8517 if test "${ac_cv_prog_LIPO+set}" = set; then :
8518 $as_echo_n "(cached) " >&6
8519 else
8520 if test -n "$LIPO"; then
8521 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8522 else
8523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524 for as_dir in $PATH
8525 do
8526 IFS=$as_save_IFS
8527 test -z "$as_dir" && as_dir=.
8528 for ac_exec_ext in '' $ac_executable_extensions; do
8529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8530 ac_cv_prog_LIPO="${ncn_progname}"
8531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8532 break 2
8533 fi
8534 done
8535 done
8536 IFS=$as_save_IFS
8537
8538 fi
8539 fi
8540 LIPO=$ac_cv_prog_LIPO
8541 if test -n "$LIPO"; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8543 $as_echo "$LIPO" >&6; }
8544 else
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8547 fi
8548
8549
8550 done
8551 fi
8552
8553 for ncn_progname in lipo; do
8554 if test -n "$ncn_tool_prefix"; then
8555 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8556 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if test "${ac_cv_prog_LIPO+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 if test -n "$LIPO"; then
8563 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8564 else
8565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566 for as_dir in $PATH
8567 do
8568 IFS=$as_save_IFS
8569 test -z "$as_dir" && as_dir=.
8570 for ac_exec_ext in '' $ac_executable_extensions; do
8571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8572 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8574 break 2
8575 fi
8576 done
8577 done
8578 IFS=$as_save_IFS
8579
8580 fi
8581 fi
8582 LIPO=$ac_cv_prog_LIPO
8583 if test -n "$LIPO"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8585 $as_echo "$LIPO" >&6; }
8586 else
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8589 fi
8590
8591
8592 fi
8593 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8595 set dummy ${ncn_progname}; ac_word=$2
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597 $as_echo_n "checking for $ac_word... " >&6; }
8598 if test "${ac_cv_prog_LIPO+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 if test -n "$LIPO"; then
8602 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8603 else
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 for as_dir in $PATH
8606 do
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8611 ac_cv_prog_LIPO="${ncn_progname}"
8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8613 break 2
8614 fi
8615 done
8616 done
8617 IFS=$as_save_IFS
8618
8619 fi
8620 fi
8621 LIPO=$ac_cv_prog_LIPO
8622 if test -n "$LIPO"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8624 $as_echo "$LIPO" >&6; }
8625 else
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8628 fi
8629
8630
8631 fi
8632 test -n "$ac_cv_prog_LIPO" && break
8633 done
8634
8635 if test -z "$ac_cv_prog_LIPO" ; then
8636 set dummy lipo
8637 if test $build = $host ; then
8638 LIPO="$2"
8639 else
8640 LIPO="${ncn_tool_prefix}$2"
8641 fi
8642 fi
8643
8644
8645
8646 if test -n "$NM"; then
8647 ac_cv_prog_NM=$NM
8648 elif test -n "$ac_cv_prog_NM"; then
8649 NM=$ac_cv_prog_NM
8650 fi
8651
8652 if test -n "$ac_cv_prog_NM"; then
8653 for ncn_progname in nm; do
8654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8655 set dummy ${ncn_progname}; ac_word=$2
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8657 $as_echo_n "checking for $ac_word... " >&6; }
8658 if test "${ac_cv_prog_NM+set}" = set; then :
8659 $as_echo_n "(cached) " >&6
8660 else
8661 if test -n "$NM"; then
8662 ac_cv_prog_NM="$NM" # Let the user override the test.
8663 else
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665 for as_dir in $PATH
8666 do
8667 IFS=$as_save_IFS
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8671 ac_cv_prog_NM="${ncn_progname}"
8672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8673 break 2
8674 fi
8675 done
8676 done
8677 IFS=$as_save_IFS
8678
8679 fi
8680 fi
8681 NM=$ac_cv_prog_NM
8682 if test -n "$NM"; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8684 $as_echo "$NM" >&6; }
8685 else
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687 $as_echo "no" >&6; }
8688 fi
8689
8690
8691 done
8692 fi
8693
8694 for ncn_progname in nm; do
8695 if test -n "$ncn_tool_prefix"; then
8696 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8697 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8699 $as_echo_n "checking for $ac_word... " >&6; }
8700 if test "${ac_cv_prog_NM+set}" = set; then :
8701 $as_echo_n "(cached) " >&6
8702 else
8703 if test -n "$NM"; then
8704 ac_cv_prog_NM="$NM" # Let the user override the test.
8705 else
8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707 for as_dir in $PATH
8708 do
8709 IFS=$as_save_IFS
8710 test -z "$as_dir" && as_dir=.
8711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8713 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 break 2
8716 fi
8717 done
8718 done
8719 IFS=$as_save_IFS
8720
8721 fi
8722 fi
8723 NM=$ac_cv_prog_NM
8724 if test -n "$NM"; then
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8726 $as_echo "$NM" >&6; }
8727 else
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729 $as_echo "no" >&6; }
8730 fi
8731
8732
8733 fi
8734 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8736 set dummy ${ncn_progname}; ac_word=$2
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738 $as_echo_n "checking for $ac_word... " >&6; }
8739 if test "${ac_cv_prog_NM+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 if test -n "$NM"; then
8743 ac_cv_prog_NM="$NM" # Let the user override the test.
8744 else
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746 for as_dir in $PATH
8747 do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8752 ac_cv_prog_NM="${ncn_progname}"
8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756 done
8757 done
8758 IFS=$as_save_IFS
8759
8760 fi
8761 fi
8762 NM=$ac_cv_prog_NM
8763 if test -n "$NM"; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8765 $as_echo "$NM" >&6; }
8766 else
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768 $as_echo "no" >&6; }
8769 fi
8770
8771
8772 fi
8773 test -n "$ac_cv_prog_NM" && break
8774 done
8775
8776 if test -z "$ac_cv_prog_NM" ; then
8777 set dummy nm
8778 if test $build = $host ; then
8779 NM="$2"
8780 else
8781 NM="${ncn_tool_prefix}$2"
8782 fi
8783 fi
8784
8785
8786
8787 if test -n "$RANLIB"; then
8788 ac_cv_prog_RANLIB=$RANLIB
8789 elif test -n "$ac_cv_prog_RANLIB"; then
8790 RANLIB=$ac_cv_prog_RANLIB
8791 fi
8792
8793 if test -n "$ac_cv_prog_RANLIB"; then
8794 for ncn_progname in ranlib; do
8795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8796 set dummy ${ncn_progname}; ac_word=$2
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8798 $as_echo_n "checking for $ac_word... " >&6; }
8799 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 if test -n "$RANLIB"; then
8803 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8804 else
8805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 for as_dir in $PATH
8807 do
8808 IFS=$as_save_IFS
8809 test -z "$as_dir" && as_dir=.
8810 for ac_exec_ext in '' $ac_executable_extensions; do
8811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8812 ac_cv_prog_RANLIB="${ncn_progname}"
8813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8814 break 2
8815 fi
8816 done
8817 done
8818 IFS=$as_save_IFS
8819
8820 fi
8821 fi
8822 RANLIB=$ac_cv_prog_RANLIB
8823 if test -n "$RANLIB"; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8825 $as_echo "$RANLIB" >&6; }
8826 else
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828 $as_echo "no" >&6; }
8829 fi
8830
8831
8832 done
8833 fi
8834
8835 for ncn_progname in ranlib; do
8836 if test -n "$ncn_tool_prefix"; then
8837 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8838 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8840 $as_echo_n "checking for $ac_word... " >&6; }
8841 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8842 $as_echo_n "(cached) " >&6
8843 else
8844 if test -n "$RANLIB"; then
8845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8846 else
8847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848 for as_dir in $PATH
8849 do
8850 IFS=$as_save_IFS
8851 test -z "$as_dir" && as_dir=.
8852 for ac_exec_ext in '' $ac_executable_extensions; do
8853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8854 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8856 break 2
8857 fi
8858 done
8859 done
8860 IFS=$as_save_IFS
8861
8862 fi
8863 fi
8864 RANLIB=$ac_cv_prog_RANLIB
8865 if test -n "$RANLIB"; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8867 $as_echo "$RANLIB" >&6; }
8868 else
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 $as_echo "no" >&6; }
8871 fi
8872
8873
8874 fi
8875 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8877 set dummy ${ncn_progname}; ac_word=$2
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879 $as_echo_n "checking for $ac_word... " >&6; }
8880 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 if test -n "$RANLIB"; then
8884 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8885 else
8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887 for as_dir in $PATH
8888 do
8889 IFS=$as_save_IFS
8890 test -z "$as_dir" && as_dir=.
8891 for ac_exec_ext in '' $ac_executable_extensions; do
8892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8893 ac_cv_prog_RANLIB="${ncn_progname}"
8894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8895 break 2
8896 fi
8897 done
8898 done
8899 IFS=$as_save_IFS
8900
8901 fi
8902 fi
8903 RANLIB=$ac_cv_prog_RANLIB
8904 if test -n "$RANLIB"; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8906 $as_echo "$RANLIB" >&6; }
8907 else
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8909 $as_echo "no" >&6; }
8910 fi
8911
8912
8913 fi
8914 test -n "$ac_cv_prog_RANLIB" && break
8915 done
8916
8917 if test -z "$ac_cv_prog_RANLIB" ; then
8918 RANLIB="true"
8919 fi
8920
8921
8922
8923 if test -n "$STRIP"; then
8924 ac_cv_prog_STRIP=$STRIP
8925 elif test -n "$ac_cv_prog_STRIP"; then
8926 STRIP=$ac_cv_prog_STRIP
8927 fi
8928
8929 if test -n "$ac_cv_prog_STRIP"; then
8930 for ncn_progname in strip; do
8931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8932 set dummy ${ncn_progname}; ac_word=$2
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934 $as_echo_n "checking for $ac_word... " >&6; }
8935 if test "${ac_cv_prog_STRIP+set}" = set; then :
8936 $as_echo_n "(cached) " >&6
8937 else
8938 if test -n "$STRIP"; then
8939 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8940 else
8941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942 for as_dir in $PATH
8943 do
8944 IFS=$as_save_IFS
8945 test -z "$as_dir" && as_dir=.
8946 for ac_exec_ext in '' $ac_executable_extensions; do
8947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8948 ac_cv_prog_STRIP="${ncn_progname}"
8949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8950 break 2
8951 fi
8952 done
8953 done
8954 IFS=$as_save_IFS
8955
8956 fi
8957 fi
8958 STRIP=$ac_cv_prog_STRIP
8959 if test -n "$STRIP"; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8961 $as_echo "$STRIP" >&6; }
8962 else
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 $as_echo "no" >&6; }
8965 fi
8966
8967
8968 done
8969 fi
8970
8971 for ncn_progname in strip; do
8972 if test -n "$ncn_tool_prefix"; then
8973 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8974 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8976 $as_echo_n "checking for $ac_word... " >&6; }
8977 if test "${ac_cv_prog_STRIP+set}" = set; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 if test -n "$STRIP"; then
8981 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8982 else
8983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984 for as_dir in $PATH
8985 do
8986 IFS=$as_save_IFS
8987 test -z "$as_dir" && as_dir=.
8988 for ac_exec_ext in '' $ac_executable_extensions; do
8989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8990 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8992 break 2
8993 fi
8994 done
8995 done
8996 IFS=$as_save_IFS
8997
8998 fi
8999 fi
9000 STRIP=$ac_cv_prog_STRIP
9001 if test -n "$STRIP"; then
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9003 $as_echo "$STRIP" >&6; }
9004 else
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006 $as_echo "no" >&6; }
9007 fi
9008
9009
9010 fi
9011 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9013 set dummy ${ncn_progname}; ac_word=$2
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9015 $as_echo_n "checking for $ac_word... " >&6; }
9016 if test "${ac_cv_prog_STRIP+set}" = set; then :
9017 $as_echo_n "(cached) " >&6
9018 else
9019 if test -n "$STRIP"; then
9020 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9021 else
9022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023 for as_dir in $PATH
9024 do
9025 IFS=$as_save_IFS
9026 test -z "$as_dir" && as_dir=.
9027 for ac_exec_ext in '' $ac_executable_extensions; do
9028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9029 ac_cv_prog_STRIP="${ncn_progname}"
9030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9031 break 2
9032 fi
9033 done
9034 done
9035 IFS=$as_save_IFS
9036
9037 fi
9038 fi
9039 STRIP=$ac_cv_prog_STRIP
9040 if test -n "$STRIP"; then
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9042 $as_echo "$STRIP" >&6; }
9043 else
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045 $as_echo "no" >&6; }
9046 fi
9047
9048
9049 fi
9050 test -n "$ac_cv_prog_STRIP" && break
9051 done
9052
9053 if test -z "$ac_cv_prog_STRIP" ; then
9054 STRIP="true"
9055 fi
9056
9057
9058
9059 if test -n "$WINDRES"; then
9060 ac_cv_prog_WINDRES=$WINDRES
9061 elif test -n "$ac_cv_prog_WINDRES"; then
9062 WINDRES=$ac_cv_prog_WINDRES
9063 fi
9064
9065 if test -n "$ac_cv_prog_WINDRES"; then
9066 for ncn_progname in windres; do
9067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9068 set dummy ${ncn_progname}; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 if test -n "$WINDRES"; then
9075 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9076 else
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078 for as_dir in $PATH
9079 do
9080 IFS=$as_save_IFS
9081 test -z "$as_dir" && as_dir=.
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9084 ac_cv_prog_WINDRES="${ncn_progname}"
9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9086 break 2
9087 fi
9088 done
9089 done
9090 IFS=$as_save_IFS
9091
9092 fi
9093 fi
9094 WINDRES=$ac_cv_prog_WINDRES
9095 if test -n "$WINDRES"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9097 $as_echo "$WINDRES" >&6; }
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9101 fi
9102
9103
9104 done
9105 fi
9106
9107 for ncn_progname in windres; do
9108 if test -n "$ncn_tool_prefix"; then
9109 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9110 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112 $as_echo_n "checking for $ac_word... " >&6; }
9113 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 if test -n "$WINDRES"; then
9117 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9118 else
9119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120 for as_dir in $PATH
9121 do
9122 IFS=$as_save_IFS
9123 test -z "$as_dir" && as_dir=.
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9126 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 break 2
9129 fi
9130 done
9131 done
9132 IFS=$as_save_IFS
9133
9134 fi
9135 fi
9136 WINDRES=$ac_cv_prog_WINDRES
9137 if test -n "$WINDRES"; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9139 $as_echo "$WINDRES" >&6; }
9140 else
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 $as_echo "no" >&6; }
9143 fi
9144
9145
9146 fi
9147 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9149 set dummy ${ncn_progname}; ac_word=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9153 $as_echo_n "(cached) " >&6
9154 else
9155 if test -n "$WINDRES"; then
9156 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9157 else
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159 for as_dir in $PATH
9160 do
9161 IFS=$as_save_IFS
9162 test -z "$as_dir" && as_dir=.
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9165 ac_cv_prog_WINDRES="${ncn_progname}"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9167 break 2
9168 fi
9169 done
9170 done
9171 IFS=$as_save_IFS
9172
9173 fi
9174 fi
9175 WINDRES=$ac_cv_prog_WINDRES
9176 if test -n "$WINDRES"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9178 $as_echo "$WINDRES" >&6; }
9179 else
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9182 fi
9183
9184
9185 fi
9186 test -n "$ac_cv_prog_WINDRES" && break
9187 done
9188
9189 if test -z "$ac_cv_prog_WINDRES" ; then
9190 set dummy windres
9191 if test $build = $host ; then
9192 WINDRES="$2"
9193 else
9194 WINDRES="${ncn_tool_prefix}$2"
9195 fi
9196 fi
9197
9198
9199
9200 if test -n "$WINDMC"; then
9201 ac_cv_prog_WINDMC=$WINDMC
9202 elif test -n "$ac_cv_prog_WINDMC"; then
9203 WINDMC=$ac_cv_prog_WINDMC
9204 fi
9205
9206 if test -n "$ac_cv_prog_WINDMC"; then
9207 for ncn_progname in windmc; do
9208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9209 set dummy ${ncn_progname}; ac_word=$2
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9211 $as_echo_n "checking for $ac_word... " >&6; }
9212 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9213 $as_echo_n "(cached) " >&6
9214 else
9215 if test -n "$WINDMC"; then
9216 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9217 else
9218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9219 for as_dir in $PATH
9220 do
9221 IFS=$as_save_IFS
9222 test -z "$as_dir" && as_dir=.
9223 for ac_exec_ext in '' $ac_executable_extensions; do
9224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9225 ac_cv_prog_WINDMC="${ncn_progname}"
9226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9227 break 2
9228 fi
9229 done
9230 done
9231 IFS=$as_save_IFS
9232
9233 fi
9234 fi
9235 WINDMC=$ac_cv_prog_WINDMC
9236 if test -n "$WINDMC"; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9238 $as_echo "$WINDMC" >&6; }
9239 else
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241 $as_echo "no" >&6; }
9242 fi
9243
9244
9245 done
9246 fi
9247
9248 for ncn_progname in windmc; do
9249 if test -n "$ncn_tool_prefix"; then
9250 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9251 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9253 $as_echo_n "checking for $ac_word... " >&6; }
9254 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9255 $as_echo_n "(cached) " >&6
9256 else
9257 if test -n "$WINDMC"; then
9258 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9259 else
9260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9261 for as_dir in $PATH
9262 do
9263 IFS=$as_save_IFS
9264 test -z "$as_dir" && as_dir=.
9265 for ac_exec_ext in '' $ac_executable_extensions; do
9266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9267 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9269 break 2
9270 fi
9271 done
9272 done
9273 IFS=$as_save_IFS
9274
9275 fi
9276 fi
9277 WINDMC=$ac_cv_prog_WINDMC
9278 if test -n "$WINDMC"; then
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9280 $as_echo "$WINDMC" >&6; }
9281 else
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283 $as_echo "no" >&6; }
9284 fi
9285
9286
9287 fi
9288 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9290 set dummy ${ncn_progname}; ac_word=$2
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9292 $as_echo_n "checking for $ac_word... " >&6; }
9293 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 if test -n "$WINDMC"; then
9297 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9298 else
9299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300 for as_dir in $PATH
9301 do
9302 IFS=$as_save_IFS
9303 test -z "$as_dir" && as_dir=.
9304 for ac_exec_ext in '' $ac_executable_extensions; do
9305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9306 ac_cv_prog_WINDMC="${ncn_progname}"
9307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9308 break 2
9309 fi
9310 done
9311 done
9312 IFS=$as_save_IFS
9313
9314 fi
9315 fi
9316 WINDMC=$ac_cv_prog_WINDMC
9317 if test -n "$WINDMC"; then
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9319 $as_echo "$WINDMC" >&6; }
9320 else
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9322 $as_echo "no" >&6; }
9323 fi
9324
9325
9326 fi
9327 test -n "$ac_cv_prog_WINDMC" && break
9328 done
9329
9330 if test -z "$ac_cv_prog_WINDMC" ; then
9331 set dummy windmc
9332 if test $build = $host ; then
9333 WINDMC="$2"
9334 else
9335 WINDMC="${ncn_tool_prefix}$2"
9336 fi
9337 fi
9338
9339
9340
9341 if test -n "$OBJCOPY"; then
9342 ac_cv_prog_OBJCOPY=$OBJCOPY
9343 elif test -n "$ac_cv_prog_OBJCOPY"; then
9344 OBJCOPY=$ac_cv_prog_OBJCOPY
9345 fi
9346
9347 if test -n "$ac_cv_prog_OBJCOPY"; then
9348 for ncn_progname in objcopy; do
9349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9350 set dummy ${ncn_progname}; ac_word=$2
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9352 $as_echo_n "checking for $ac_word... " >&6; }
9353 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356 if test -n "$OBJCOPY"; then
9357 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9358 else
9359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9360 for as_dir in $PATH
9361 do
9362 IFS=$as_save_IFS
9363 test -z "$as_dir" && as_dir=.
9364 for ac_exec_ext in '' $ac_executable_extensions; do
9365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9366 ac_cv_prog_OBJCOPY="${ncn_progname}"
9367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9368 break 2
9369 fi
9370 done
9371 done
9372 IFS=$as_save_IFS
9373
9374 fi
9375 fi
9376 OBJCOPY=$ac_cv_prog_OBJCOPY
9377 if test -n "$OBJCOPY"; then
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9379 $as_echo "$OBJCOPY" >&6; }
9380 else
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9382 $as_echo "no" >&6; }
9383 fi
9384
9385
9386 done
9387 fi
9388
9389 for ncn_progname in objcopy; do
9390 if test -n "$ncn_tool_prefix"; then
9391 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9392 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9394 $as_echo_n "checking for $ac_word... " >&6; }
9395 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9396 $as_echo_n "(cached) " >&6
9397 else
9398 if test -n "$OBJCOPY"; then
9399 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9400 else
9401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9402 for as_dir in $PATH
9403 do
9404 IFS=$as_save_IFS
9405 test -z "$as_dir" && as_dir=.
9406 for ac_exec_ext in '' $ac_executable_extensions; do
9407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9408 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9410 break 2
9411 fi
9412 done
9413 done
9414 IFS=$as_save_IFS
9415
9416 fi
9417 fi
9418 OBJCOPY=$ac_cv_prog_OBJCOPY
9419 if test -n "$OBJCOPY"; then
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9421 $as_echo "$OBJCOPY" >&6; }
9422 else
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9424 $as_echo "no" >&6; }
9425 fi
9426
9427
9428 fi
9429 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9431 set dummy ${ncn_progname}; ac_word=$2
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433 $as_echo_n "checking for $ac_word... " >&6; }
9434 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9435 $as_echo_n "(cached) " >&6
9436 else
9437 if test -n "$OBJCOPY"; then
9438 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9439 else
9440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441 for as_dir in $PATH
9442 do
9443 IFS=$as_save_IFS
9444 test -z "$as_dir" && as_dir=.
9445 for ac_exec_ext in '' $ac_executable_extensions; do
9446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9447 ac_cv_prog_OBJCOPY="${ncn_progname}"
9448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9449 break 2
9450 fi
9451 done
9452 done
9453 IFS=$as_save_IFS
9454
9455 fi
9456 fi
9457 OBJCOPY=$ac_cv_prog_OBJCOPY
9458 if test -n "$OBJCOPY"; then
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9460 $as_echo "$OBJCOPY" >&6; }
9461 else
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9463 $as_echo "no" >&6; }
9464 fi
9465
9466
9467 fi
9468 test -n "$ac_cv_prog_OBJCOPY" && break
9469 done
9470
9471 if test -z "$ac_cv_prog_OBJCOPY" ; then
9472 set dummy objcopy
9473 if test $build = $host ; then
9474 OBJCOPY="$2"
9475 else
9476 OBJCOPY="${ncn_tool_prefix}$2"
9477 fi
9478 fi
9479
9480
9481
9482 if test -n "$OBJDUMP"; then
9483 ac_cv_prog_OBJDUMP=$OBJDUMP
9484 elif test -n "$ac_cv_prog_OBJDUMP"; then
9485 OBJDUMP=$ac_cv_prog_OBJDUMP
9486 fi
9487
9488 if test -n "$ac_cv_prog_OBJDUMP"; then
9489 for ncn_progname in objdump; do
9490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9491 set dummy ${ncn_progname}; ac_word=$2
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9493 $as_echo_n "checking for $ac_word... " >&6; }
9494 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9497 if test -n "$OBJDUMP"; then
9498 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9499 else
9500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501 for as_dir in $PATH
9502 do
9503 IFS=$as_save_IFS
9504 test -z "$as_dir" && as_dir=.
9505 for ac_exec_ext in '' $ac_executable_extensions; do
9506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9507 ac_cv_prog_OBJDUMP="${ncn_progname}"
9508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9509 break 2
9510 fi
9511 done
9512 done
9513 IFS=$as_save_IFS
9514
9515 fi
9516 fi
9517 OBJDUMP=$ac_cv_prog_OBJDUMP
9518 if test -n "$OBJDUMP"; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9520 $as_echo "$OBJDUMP" >&6; }
9521 else
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9524 fi
9525
9526
9527 done
9528 fi
9529
9530 for ncn_progname in objdump; do
9531 if test -n "$ncn_tool_prefix"; then
9532 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9533 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9535 $as_echo_n "checking for $ac_word... " >&6; }
9536 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 if test -n "$OBJDUMP"; then
9540 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9541 else
9542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9543 for as_dir in $PATH
9544 do
9545 IFS=$as_save_IFS
9546 test -z "$as_dir" && as_dir=.
9547 for ac_exec_ext in '' $ac_executable_extensions; do
9548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9549 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9551 break 2
9552 fi
9553 done
9554 done
9555 IFS=$as_save_IFS
9556
9557 fi
9558 fi
9559 OBJDUMP=$ac_cv_prog_OBJDUMP
9560 if test -n "$OBJDUMP"; then
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9562 $as_echo "$OBJDUMP" >&6; }
9563 else
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9565 $as_echo "no" >&6; }
9566 fi
9567
9568
9569 fi
9570 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9572 set dummy ${ncn_progname}; ac_word=$2
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9574 $as_echo_n "checking for $ac_word... " >&6; }
9575 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9576 $as_echo_n "(cached) " >&6
9577 else
9578 if test -n "$OBJDUMP"; then
9579 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9580 else
9581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9582 for as_dir in $PATH
9583 do
9584 IFS=$as_save_IFS
9585 test -z "$as_dir" && as_dir=.
9586 for ac_exec_ext in '' $ac_executable_extensions; do
9587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9588 ac_cv_prog_OBJDUMP="${ncn_progname}"
9589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9590 break 2
9591 fi
9592 done
9593 done
9594 IFS=$as_save_IFS
9595
9596 fi
9597 fi
9598 OBJDUMP=$ac_cv_prog_OBJDUMP
9599 if test -n "$OBJDUMP"; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9601 $as_echo "$OBJDUMP" >&6; }
9602 else
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604 $as_echo "no" >&6; }
9605 fi
9606
9607
9608 fi
9609 test -n "$ac_cv_prog_OBJDUMP" && break
9610 done
9611
9612 if test -z "$ac_cv_prog_OBJDUMP" ; then
9613 set dummy objdump
9614 if test $build = $host ; then
9615 OBJDUMP="$2"
9616 else
9617 OBJDUMP="${ncn_tool_prefix}$2"
9618 fi
9619 fi
9620
9621
9622
9623 if test -n "$READELF"; then
9624 ac_cv_prog_READELF=$READELF
9625 elif test -n "$ac_cv_prog_READELF"; then
9626 READELF=$ac_cv_prog_READELF
9627 fi
9628
9629 if test -n "$ac_cv_prog_READELF"; then
9630 for ncn_progname in readelf; do
9631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9632 set dummy ${ncn_progname}; ac_word=$2
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634 $as_echo_n "checking for $ac_word... " >&6; }
9635 if test "${ac_cv_prog_READELF+set}" = set; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9638 if test -n "$READELF"; then
9639 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9640 else
9641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642 for as_dir in $PATH
9643 do
9644 IFS=$as_save_IFS
9645 test -z "$as_dir" && as_dir=.
9646 for ac_exec_ext in '' $ac_executable_extensions; do
9647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9648 ac_cv_prog_READELF="${ncn_progname}"
9649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9650 break 2
9651 fi
9652 done
9653 done
9654 IFS=$as_save_IFS
9655
9656 fi
9657 fi
9658 READELF=$ac_cv_prog_READELF
9659 if test -n "$READELF"; then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9661 $as_echo "$READELF" >&6; }
9662 else
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664 $as_echo "no" >&6; }
9665 fi
9666
9667
9668 done
9669 fi
9670
9671 for ncn_progname in readelf; do
9672 if test -n "$ncn_tool_prefix"; then
9673 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9674 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9676 $as_echo_n "checking for $ac_word... " >&6; }
9677 if test "${ac_cv_prog_READELF+set}" = set; then :
9678 $as_echo_n "(cached) " >&6
9679 else
9680 if test -n "$READELF"; then
9681 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9682 else
9683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9684 for as_dir in $PATH
9685 do
9686 IFS=$as_save_IFS
9687 test -z "$as_dir" && as_dir=.
9688 for ac_exec_ext in '' $ac_executable_extensions; do
9689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9690 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9692 break 2
9693 fi
9694 done
9695 done
9696 IFS=$as_save_IFS
9697
9698 fi
9699 fi
9700 READELF=$ac_cv_prog_READELF
9701 if test -n "$READELF"; then
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9703 $as_echo "$READELF" >&6; }
9704 else
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9706 $as_echo "no" >&6; }
9707 fi
9708
9709
9710 fi
9711 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9713 set dummy ${ncn_progname}; ac_word=$2
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9715 $as_echo_n "checking for $ac_word... " >&6; }
9716 if test "${ac_cv_prog_READELF+set}" = set; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 if test -n "$READELF"; then
9720 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9721 else
9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723 for as_dir in $PATH
9724 do
9725 IFS=$as_save_IFS
9726 test -z "$as_dir" && as_dir=.
9727 for ac_exec_ext in '' $ac_executable_extensions; do
9728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9729 ac_cv_prog_READELF="${ncn_progname}"
9730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9731 break 2
9732 fi
9733 done
9734 done
9735 IFS=$as_save_IFS
9736
9737 fi
9738 fi
9739 READELF=$ac_cv_prog_READELF
9740 if test -n "$READELF"; then
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9742 $as_echo "$READELF" >&6; }
9743 else
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 $as_echo "no" >&6; }
9746 fi
9747
9748
9749 fi
9750 test -n "$ac_cv_prog_READELF" && break
9751 done
9752
9753 if test -z "$ac_cv_prog_READELF" ; then
9754 set dummy readelf
9755 if test $build = $host ; then
9756 READELF="$2"
9757 else
9758 READELF="${ncn_tool_prefix}$2"
9759 fi
9760 fi
9761
9762
9763
9764
9765
9766
9767 # Target tools.
9768
9769 # Check whether --with-build-time-tools was given.
9770 if test "${with_build_time_tools+set}" = set; then :
9771 withval=$with_build_time_tools; case x"$withval" in
9772 x/*) ;;
9773 *)
9774 with_build_time_tools=
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9776 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9777 ;;
9778 esac
9779 else
9780 with_build_time_tools=
9781 fi
9782
9783
9784
9785
9786 if test -n "$CC_FOR_TARGET"; then
9787 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9788 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9789 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9790 fi
9791
9792 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9793 for ncn_progname in cc gcc; do
9794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9795 set dummy ${ncn_progname}; ac_word=$2
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9797 $as_echo_n "checking for $ac_word... " >&6; }
9798 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 if test -n "$CC_FOR_TARGET"; then
9802 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9803 else
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9806 do
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9811 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 break 2
9814 fi
9815 done
9816 done
9817 IFS=$as_save_IFS
9818
9819 fi
9820 fi
9821 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9822 if test -n "$CC_FOR_TARGET"; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9824 $as_echo "$CC_FOR_TARGET" >&6; }
9825 else
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9828 fi
9829
9830
9831 done
9832 fi
9833
9834 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9835 for ncn_progname in cc gcc; do
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9837 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9838 if test -x $with_build_time_tools/${ncn_progname}; then
9839 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9841 $as_echo "yes" >&6; }
9842 break
9843 else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845 $as_echo "no" >&6; }
9846 fi
9847 done
9848 fi
9849
9850 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9851 for ncn_progname in cc gcc; do
9852 if test -n "$ncn_target_tool_prefix"; then
9853 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9854 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9856 $as_echo_n "checking for $ac_word... " >&6; }
9857 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9858 $as_echo_n "(cached) " >&6
9859 else
9860 if test -n "$CC_FOR_TARGET"; then
9861 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9862 else
9863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9864 for as_dir in $PATH
9865 do
9866 IFS=$as_save_IFS
9867 test -z "$as_dir" && as_dir=.
9868 for ac_exec_ext in '' $ac_executable_extensions; do
9869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9870 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9872 break 2
9873 fi
9874 done
9875 done
9876 IFS=$as_save_IFS
9877
9878 fi
9879 fi
9880 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9881 if test -n "$CC_FOR_TARGET"; then
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9883 $as_echo "$CC_FOR_TARGET" >&6; }
9884 else
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886 $as_echo "no" >&6; }
9887 fi
9888
9889
9890 fi
9891 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9893 set dummy ${ncn_progname}; ac_word=$2
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9895 $as_echo_n "checking for $ac_word... " >&6; }
9896 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 if test -n "$CC_FOR_TARGET"; then
9900 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9901 else
9902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903 for as_dir in $PATH
9904 do
9905 IFS=$as_save_IFS
9906 test -z "$as_dir" && as_dir=.
9907 for ac_exec_ext in '' $ac_executable_extensions; do
9908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9909 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9911 break 2
9912 fi
9913 done
9914 done
9915 IFS=$as_save_IFS
9916
9917 fi
9918 fi
9919 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9920 if test -n "$CC_FOR_TARGET"; then
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9922 $as_echo "$CC_FOR_TARGET" >&6; }
9923 else
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925 $as_echo "no" >&6; }
9926 fi
9927
9928
9929 fi
9930 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9931 done
9932 fi
9933
9934 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9935 set dummy cc gcc
9936 if test $build = $target ; then
9937 CC_FOR_TARGET="$2"
9938 else
9939 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9940 fi
9941 else
9942 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9943 fi
9944
9945
9946
9947 if test -n "$CXX_FOR_TARGET"; then
9948 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9949 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9950 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9951 fi
9952
9953 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9954 for ncn_progname in c++ g++ cxx gxx; do
9955 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9956 set dummy ${ncn_progname}; ac_word=$2
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9958 $as_echo_n "checking for $ac_word... " >&6; }
9959 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9960 $as_echo_n "(cached) " >&6
9961 else
9962 if test -n "$CXX_FOR_TARGET"; then
9963 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9964 else
9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966 for as_dir in $PATH
9967 do
9968 IFS=$as_save_IFS
9969 test -z "$as_dir" && as_dir=.
9970 for ac_exec_ext in '' $ac_executable_extensions; do
9971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9972 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9974 break 2
9975 fi
9976 done
9977 done
9978 IFS=$as_save_IFS
9979
9980 fi
9981 fi
9982 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9983 if test -n "$CXX_FOR_TARGET"; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9985 $as_echo "$CXX_FOR_TARGET" >&6; }
9986 else
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988 $as_echo "no" >&6; }
9989 fi
9990
9991
9992 done
9993 fi
9994
9995 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9996 for ncn_progname in c++ g++ cxx gxx; do
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9998 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9999 if test -x $with_build_time_tools/${ncn_progname}; then
10000 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10002 $as_echo "yes" >&6; }
10003 break
10004 else
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10006 $as_echo "no" >&6; }
10007 fi
10008 done
10009 fi
10010
10011 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10012 for ncn_progname in c++ g++ cxx gxx; do
10013 if test -n "$ncn_target_tool_prefix"; then
10014 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10015 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10017 $as_echo_n "checking for $ac_word... " >&6; }
10018 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10019 $as_echo_n "(cached) " >&6
10020 else
10021 if test -n "$CXX_FOR_TARGET"; then
10022 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10023 else
10024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025 for as_dir in $PATH
10026 do
10027 IFS=$as_save_IFS
10028 test -z "$as_dir" && as_dir=.
10029 for ac_exec_ext in '' $ac_executable_extensions; do
10030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10031 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10033 break 2
10034 fi
10035 done
10036 done
10037 IFS=$as_save_IFS
10038
10039 fi
10040 fi
10041 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10042 if test -n "$CXX_FOR_TARGET"; then
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10044 $as_echo "$CXX_FOR_TARGET" >&6; }
10045 else
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047 $as_echo "no" >&6; }
10048 fi
10049
10050
10051 fi
10052 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10054 set dummy ${ncn_progname}; ac_word=$2
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056 $as_echo_n "checking for $ac_word... " >&6; }
10057 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10058 $as_echo_n "(cached) " >&6
10059 else
10060 if test -n "$CXX_FOR_TARGET"; then
10061 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10062 else
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10065 do
10066 IFS=$as_save_IFS
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10070 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 break 2
10073 fi
10074 done
10075 done
10076 IFS=$as_save_IFS
10077
10078 fi
10079 fi
10080 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10081 if test -n "$CXX_FOR_TARGET"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10083 $as_echo "$CXX_FOR_TARGET" >&6; }
10084 else
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10087 fi
10088
10089
10090 fi
10091 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10092 done
10093 fi
10094
10095 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10096 set dummy c++ g++ cxx gxx
10097 if test $build = $target ; then
10098 CXX_FOR_TARGET="$2"
10099 else
10100 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10101 fi
10102 else
10103 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10104 fi
10105
10106
10107
10108 if test -n "$GCC_FOR_TARGET"; then
10109 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10110 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10111 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10112 fi
10113
10114 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10115 for ncn_progname in gcc; do
10116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10117 set dummy ${ncn_progname}; ac_word=$2
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10119 $as_echo_n "checking for $ac_word... " >&6; }
10120 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10121 $as_echo_n "(cached) " >&6
10122 else
10123 if test -n "$GCC_FOR_TARGET"; then
10124 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10125 else
10126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10127 for as_dir in $PATH
10128 do
10129 IFS=$as_save_IFS
10130 test -z "$as_dir" && as_dir=.
10131 for ac_exec_ext in '' $ac_executable_extensions; do
10132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10133 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10135 break 2
10136 fi
10137 done
10138 done
10139 IFS=$as_save_IFS
10140
10141 fi
10142 fi
10143 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10144 if test -n "$GCC_FOR_TARGET"; then
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10146 $as_echo "$GCC_FOR_TARGET" >&6; }
10147 else
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10149 $as_echo "no" >&6; }
10150 fi
10151
10152
10153 done
10154 fi
10155
10156 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10157 for ncn_progname in gcc; do
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10159 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10160 if test -x $with_build_time_tools/${ncn_progname}; then
10161 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10163 $as_echo "yes" >&6; }
10164 break
10165 else
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10168 fi
10169 done
10170 fi
10171
10172 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10173 for ncn_progname in gcc; do
10174 if test -n "$ncn_target_tool_prefix"; then
10175 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10176 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178 $as_echo_n "checking for $ac_word... " >&6; }
10179 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 if test -n "$GCC_FOR_TARGET"; then
10183 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10184 else
10185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10186 for as_dir in $PATH
10187 do
10188 IFS=$as_save_IFS
10189 test -z "$as_dir" && as_dir=.
10190 for ac_exec_ext in '' $ac_executable_extensions; do
10191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10192 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10194 break 2
10195 fi
10196 done
10197 done
10198 IFS=$as_save_IFS
10199
10200 fi
10201 fi
10202 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10203 if test -n "$GCC_FOR_TARGET"; then
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10205 $as_echo "$GCC_FOR_TARGET" >&6; }
10206 else
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208 $as_echo "no" >&6; }
10209 fi
10210
10211
10212 fi
10213 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10215 set dummy ${ncn_progname}; ac_word=$2
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10217 $as_echo_n "checking for $ac_word... " >&6; }
10218 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10219 $as_echo_n "(cached) " >&6
10220 else
10221 if test -n "$GCC_FOR_TARGET"; then
10222 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10223 else
10224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225 for as_dir in $PATH
10226 do
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10231 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 break 2
10234 fi
10235 done
10236 done
10237 IFS=$as_save_IFS
10238
10239 fi
10240 fi
10241 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10242 if test -n "$GCC_FOR_TARGET"; then
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10244 $as_echo "$GCC_FOR_TARGET" >&6; }
10245 else
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247 $as_echo "no" >&6; }
10248 fi
10249
10250
10251 fi
10252 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10253 done
10254 fi
10255
10256 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10257 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10258 else
10259 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10260 fi
10261
10262
10263
10264 if test -n "$GCJ_FOR_TARGET"; then
10265 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10266 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10267 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10268 fi
10269
10270 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10271 for ncn_progname in gcj; do
10272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10273 set dummy ${ncn_progname}; ac_word=$2
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10275 $as_echo_n "checking for $ac_word... " >&6; }
10276 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10279 if test -n "$GCJ_FOR_TARGET"; then
10280 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10281 else
10282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283 for as_dir in $PATH
10284 do
10285 IFS=$as_save_IFS
10286 test -z "$as_dir" && as_dir=.
10287 for ac_exec_ext in '' $ac_executable_extensions; do
10288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10289 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10291 break 2
10292 fi
10293 done
10294 done
10295 IFS=$as_save_IFS
10296
10297 fi
10298 fi
10299 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10300 if test -n "$GCJ_FOR_TARGET"; then
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10302 $as_echo "$GCJ_FOR_TARGET" >&6; }
10303 else
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305 $as_echo "no" >&6; }
10306 fi
10307
10308
10309 done
10310 fi
10311
10312 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10313 for ncn_progname in gcj; do
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10315 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10316 if test -x $with_build_time_tools/${ncn_progname}; then
10317 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10319 $as_echo "yes" >&6; }
10320 break
10321 else
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10323 $as_echo "no" >&6; }
10324 fi
10325 done
10326 fi
10327
10328 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10329 for ncn_progname in gcj; do
10330 if test -n "$ncn_target_tool_prefix"; then
10331 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10332 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10334 $as_echo_n "checking for $ac_word... " >&6; }
10335 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 if test -n "$GCJ_FOR_TARGET"; then
10339 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10340 else
10341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342 for as_dir in $PATH
10343 do
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10348 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10350 break 2
10351 fi
10352 done
10353 done
10354 IFS=$as_save_IFS
10355
10356 fi
10357 fi
10358 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10359 if test -n "$GCJ_FOR_TARGET"; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10361 $as_echo "$GCJ_FOR_TARGET" >&6; }
10362 else
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 $as_echo "no" >&6; }
10365 fi
10366
10367
10368 fi
10369 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10371 set dummy ${ncn_progname}; ac_word=$2
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10373 $as_echo_n "checking for $ac_word... " >&6; }
10374 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 if test -n "$GCJ_FOR_TARGET"; then
10378 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10379 else
10380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381 for as_dir in $PATH
10382 do
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10387 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10389 break 2
10390 fi
10391 done
10392 done
10393 IFS=$as_save_IFS
10394
10395 fi
10396 fi
10397 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10398 if test -n "$GCJ_FOR_TARGET"; then
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10400 $as_echo "$GCJ_FOR_TARGET" >&6; }
10401 else
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403 $as_echo "no" >&6; }
10404 fi
10405
10406
10407 fi
10408 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10409 done
10410 fi
10411
10412 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10413 set dummy gcj
10414 if test $build = $target ; then
10415 GCJ_FOR_TARGET="$2"
10416 else
10417 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10418 fi
10419 else
10420 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10421 fi
10422
10423
10424
10425 if test -n "$GFORTRAN_FOR_TARGET"; then
10426 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10427 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10428 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10429 fi
10430
10431 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10432 for ncn_progname in gfortran; do
10433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10434 set dummy ${ncn_progname}; ac_word=$2
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10436 $as_echo_n "checking for $ac_word... " >&6; }
10437 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10438 $as_echo_n "(cached) " >&6
10439 else
10440 if test -n "$GFORTRAN_FOR_TARGET"; then
10441 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10442 else
10443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10444 for as_dir in $PATH
10445 do
10446 IFS=$as_save_IFS
10447 test -z "$as_dir" && as_dir=.
10448 for ac_exec_ext in '' $ac_executable_extensions; do
10449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10450 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10452 break 2
10453 fi
10454 done
10455 done
10456 IFS=$as_save_IFS
10457
10458 fi
10459 fi
10460 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10461 if test -n "$GFORTRAN_FOR_TARGET"; then
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10463 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10464 else
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10466 $as_echo "no" >&6; }
10467 fi
10468
10469
10470 done
10471 fi
10472
10473 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10474 for ncn_progname in gfortran; do
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10476 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10477 if test -x $with_build_time_tools/${ncn_progname}; then
10478 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10480 $as_echo "yes" >&6; }
10481 break
10482 else
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10484 $as_echo "no" >&6; }
10485 fi
10486 done
10487 fi
10488
10489 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10490 for ncn_progname in gfortran; do
10491 if test -n "$ncn_target_tool_prefix"; then
10492 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10493 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10495 $as_echo_n "checking for $ac_word... " >&6; }
10496 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10497 $as_echo_n "(cached) " >&6
10498 else
10499 if test -n "$GFORTRAN_FOR_TARGET"; then
10500 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10501 else
10502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503 for as_dir in $PATH
10504 do
10505 IFS=$as_save_IFS
10506 test -z "$as_dir" && as_dir=.
10507 for ac_exec_ext in '' $ac_executable_extensions; do
10508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10509 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10511 break 2
10512 fi
10513 done
10514 done
10515 IFS=$as_save_IFS
10516
10517 fi
10518 fi
10519 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10520 if test -n "$GFORTRAN_FOR_TARGET"; then
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10522 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10523 else
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525 $as_echo "no" >&6; }
10526 fi
10527
10528
10529 fi
10530 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10532 set dummy ${ncn_progname}; ac_word=$2
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10534 $as_echo_n "checking for $ac_word... " >&6; }
10535 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10536 $as_echo_n "(cached) " >&6
10537 else
10538 if test -n "$GFORTRAN_FOR_TARGET"; then
10539 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10540 else
10541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10542 for as_dir in $PATH
10543 do
10544 IFS=$as_save_IFS
10545 test -z "$as_dir" && as_dir=.
10546 for ac_exec_ext in '' $ac_executable_extensions; do
10547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10548 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10550 break 2
10551 fi
10552 done
10553 done
10554 IFS=$as_save_IFS
10555
10556 fi
10557 fi
10558 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10559 if test -n "$GFORTRAN_FOR_TARGET"; then
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10561 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10562 else
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10564 $as_echo "no" >&6; }
10565 fi
10566
10567
10568 fi
10569 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10570 done
10571 fi
10572
10573 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10574 set dummy gfortran
10575 if test $build = $target ; then
10576 GFORTRAN_FOR_TARGET="$2"
10577 else
10578 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10579 fi
10580 else
10581 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10582 fi
10583
10584
10585
10586 if test -n "$GOC_FOR_TARGET"; then
10587 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10588 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10589 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10590 fi
10591
10592 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10593 for ncn_progname in gccgo; do
10594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10595 set dummy ${ncn_progname}; ac_word=$2
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10597 $as_echo_n "checking for $ac_word... " >&6; }
10598 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10599 $as_echo_n "(cached) " >&6
10600 else
10601 if test -n "$GOC_FOR_TARGET"; then
10602 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10603 else
10604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10605 for as_dir in $PATH
10606 do
10607 IFS=$as_save_IFS
10608 test -z "$as_dir" && as_dir=.
10609 for ac_exec_ext in '' $ac_executable_extensions; do
10610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10611 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10613 break 2
10614 fi
10615 done
10616 done
10617 IFS=$as_save_IFS
10618
10619 fi
10620 fi
10621 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10622 if test -n "$GOC_FOR_TARGET"; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10624 $as_echo "$GOC_FOR_TARGET" >&6; }
10625 else
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; }
10628 fi
10629
10630
10631 done
10632 fi
10633
10634 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10635 for ncn_progname in gccgo; do
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10637 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10638 if test -x $with_build_time_tools/${ncn_progname}; then
10639 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10641 $as_echo "yes" >&6; }
10642 break
10643 else
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645 $as_echo "no" >&6; }
10646 fi
10647 done
10648 fi
10649
10650 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10651 for ncn_progname in gccgo; do
10652 if test -n "$ncn_target_tool_prefix"; then
10653 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10654 set dummy ${ncn_target_tool_prefix}${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_GOC_FOR_TARGET+set}" = set; then :
10658 $as_echo_n "(cached) " >&6
10659 else
10660 if test -n "$GOC_FOR_TARGET"; then
10661 ac_cv_prog_GOC_FOR_TARGET="$GOC_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_GOC_FOR_TARGET="${ncn_target_tool_prefix}${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 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10681 if test -n "$GOC_FOR_TARGET"; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10683 $as_echo "$GOC_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 fi
10691 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10692 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10693 set dummy ${ncn_progname}; ac_word=$2
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10695 $as_echo_n "checking for $ac_word... " >&6; }
10696 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10697 $as_echo_n "(cached) " >&6
10698 else
10699 if test -n "$GOC_FOR_TARGET"; then
10700 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10701 else
10702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703 for as_dir in $PATH
10704 do
10705 IFS=$as_save_IFS
10706 test -z "$as_dir" && as_dir=.
10707 for ac_exec_ext in '' $ac_executable_extensions; do
10708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10709 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10711 break 2
10712 fi
10713 done
10714 done
10715 IFS=$as_save_IFS
10716
10717 fi
10718 fi
10719 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10720 if test -n "$GOC_FOR_TARGET"; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10722 $as_echo "$GOC_FOR_TARGET" >&6; }
10723 else
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10726 fi
10727
10728
10729 fi
10730 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10731 done
10732 fi
10733
10734 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10735 set dummy gccgo
10736 if test $build = $target ; then
10737 GOC_FOR_TARGET="$2"
10738 else
10739 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10740 fi
10741 else
10742 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10743 fi
10744
10745
10746
10747 cat > conftest.c << \EOF
10748 #ifdef __GNUC__
10749 gcc_yay;
10750 #endif
10751 EOF
10752 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10753 have_gcc_for_target=yes
10754 else
10755 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10756 have_gcc_for_target=no
10757 fi
10758 rm conftest.c
10759
10760
10761
10762
10763 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10764 if test -n "$with_build_time_tools"; then
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10766 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10767 if test -x $with_build_time_tools/ar; then
10768 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10769 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10771 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10772 else
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10774 $as_echo "no" >&6; }
10775 fi
10776 elif test $build != $host && test $have_gcc_for_target = yes; then
10777 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10778 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10779 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10780 fi
10781 fi
10782 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10783 # Extract the first word of "ar", so it can be a program name with args.
10784 set dummy ar; ac_word=$2
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10786 $as_echo_n "checking for $ac_word... " >&6; }
10787 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 case $AR_FOR_TARGET in
10791 [\\/]* | ?:[\\/]*)
10792 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10793 ;;
10794 *)
10795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796 for as_dir in $gcc_cv_tool_dirs
10797 do
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10802 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 break 2
10805 fi
10806 done
10807 done
10808 IFS=$as_save_IFS
10809
10810 ;;
10811 esac
10812 fi
10813 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10814 if test -n "$AR_FOR_TARGET"; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10816 $as_echo "$AR_FOR_TARGET" >&6; }
10817 else
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10820 fi
10821
10822
10823 fi
10824 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10825
10826
10827 if test -n "$AR_FOR_TARGET"; then
10828 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10829 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10830 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10831 fi
10832
10833 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10834 for ncn_progname in ar; do
10835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10836 set dummy ${ncn_progname}; ac_word=$2
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10838 $as_echo_n "checking for $ac_word... " >&6; }
10839 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 if test -n "$AR_FOR_TARGET"; then
10843 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10844 else
10845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10846 for as_dir in $PATH
10847 do
10848 IFS=$as_save_IFS
10849 test -z "$as_dir" && as_dir=.
10850 for ac_exec_ext in '' $ac_executable_extensions; do
10851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10852 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10854 break 2
10855 fi
10856 done
10857 done
10858 IFS=$as_save_IFS
10859
10860 fi
10861 fi
10862 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10863 if test -n "$AR_FOR_TARGET"; then
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10865 $as_echo "$AR_FOR_TARGET" >&6; }
10866 else
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10868 $as_echo "no" >&6; }
10869 fi
10870
10871
10872 done
10873 fi
10874
10875 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10876 for ncn_progname in ar; do
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10878 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10879 if test -x $with_build_time_tools/${ncn_progname}; then
10880 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10882 $as_echo "yes" >&6; }
10883 break
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886 $as_echo "no" >&6; }
10887 fi
10888 done
10889 fi
10890
10891 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10892 for ncn_progname in ar; do
10893 if test -n "$ncn_target_tool_prefix"; then
10894 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10895 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10897 $as_echo_n "checking for $ac_word... " >&6; }
10898 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10899 $as_echo_n "(cached) " >&6
10900 else
10901 if test -n "$AR_FOR_TARGET"; then
10902 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10903 else
10904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10905 for as_dir in $PATH
10906 do
10907 IFS=$as_save_IFS
10908 test -z "$as_dir" && as_dir=.
10909 for ac_exec_ext in '' $ac_executable_extensions; do
10910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10911 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10913 break 2
10914 fi
10915 done
10916 done
10917 IFS=$as_save_IFS
10918
10919 fi
10920 fi
10921 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10922 if test -n "$AR_FOR_TARGET"; then
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10924 $as_echo "$AR_FOR_TARGET" >&6; }
10925 else
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10928 fi
10929
10930
10931 fi
10932 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10934 set dummy ${ncn_progname}; ac_word=$2
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936 $as_echo_n "checking for $ac_word... " >&6; }
10937 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 if test -n "$AR_FOR_TARGET"; then
10941 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10942 else
10943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944 for as_dir in $PATH
10945 do
10946 IFS=$as_save_IFS
10947 test -z "$as_dir" && as_dir=.
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10950 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10952 break 2
10953 fi
10954 done
10955 done
10956 IFS=$as_save_IFS
10957
10958 fi
10959 fi
10960 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10961 if test -n "$AR_FOR_TARGET"; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10963 $as_echo "$AR_FOR_TARGET" >&6; }
10964 else
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966 $as_echo "no" >&6; }
10967 fi
10968
10969
10970 fi
10971 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10972 done
10973 fi
10974
10975 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10976 set dummy ar
10977 if test $build = $target ; then
10978 AR_FOR_TARGET="$2"
10979 else
10980 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10981 fi
10982 else
10983 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10984 fi
10985
10986 else
10987 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10988 fi
10989
10990
10991
10992
10993 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10994 if test -n "$with_build_time_tools"; then
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10996 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10997 if test -x $with_build_time_tools/as; then
10998 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10999 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11001 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11002 else
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11005 fi
11006 elif test $build != $host && test $have_gcc_for_target = yes; then
11007 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11008 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11009 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11010 fi
11011 fi
11012 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11013 # Extract the first word of "as", so it can be a program name with args.
11014 set dummy as; ac_word=$2
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11016 $as_echo_n "checking for $ac_word... " >&6; }
11017 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11018 $as_echo_n "(cached) " >&6
11019 else
11020 case $AS_FOR_TARGET in
11021 [\\/]* | ?:[\\/]*)
11022 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11023 ;;
11024 *)
11025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11026 for as_dir in $gcc_cv_tool_dirs
11027 do
11028 IFS=$as_save_IFS
11029 test -z "$as_dir" && as_dir=.
11030 for ac_exec_ext in '' $ac_executable_extensions; do
11031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11032 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11034 break 2
11035 fi
11036 done
11037 done
11038 IFS=$as_save_IFS
11039
11040 ;;
11041 esac
11042 fi
11043 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11044 if test -n "$AS_FOR_TARGET"; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11046 $as_echo "$AS_FOR_TARGET" >&6; }
11047 else
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049 $as_echo "no" >&6; }
11050 fi
11051
11052
11053 fi
11054 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11055
11056
11057 if test -n "$AS_FOR_TARGET"; then
11058 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11059 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11060 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11061 fi
11062
11063 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11064 for ncn_progname in as; do
11065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11066 set dummy ${ncn_progname}; ac_word=$2
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068 $as_echo_n "checking for $ac_word... " >&6; }
11069 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11070 $as_echo_n "(cached) " >&6
11071 else
11072 if test -n "$AS_FOR_TARGET"; then
11073 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11074 else
11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in $PATH
11077 do
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11085 fi
11086 done
11087 done
11088 IFS=$as_save_IFS
11089
11090 fi
11091 fi
11092 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11093 if test -n "$AS_FOR_TARGET"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11095 $as_echo "$AS_FOR_TARGET" >&6; }
11096 else
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098 $as_echo "no" >&6; }
11099 fi
11100
11101
11102 done
11103 fi
11104
11105 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11106 for ncn_progname in as; do
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11108 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11109 if test -x $with_build_time_tools/${ncn_progname}; then
11110 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11112 $as_echo "yes" >&6; }
11113 break
11114 else
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11117 fi
11118 done
11119 fi
11120
11121 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11122 for ncn_progname in as; do
11123 if test -n "$ncn_target_tool_prefix"; then
11124 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11125 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11127 $as_echo_n "checking for $ac_word... " >&6; }
11128 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11129 $as_echo_n "(cached) " >&6
11130 else
11131 if test -n "$AS_FOR_TARGET"; then
11132 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11133 else
11134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11135 for as_dir in $PATH
11136 do
11137 IFS=$as_save_IFS
11138 test -z "$as_dir" && as_dir=.
11139 for ac_exec_ext in '' $ac_executable_extensions; do
11140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11141 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11143 break 2
11144 fi
11145 done
11146 done
11147 IFS=$as_save_IFS
11148
11149 fi
11150 fi
11151 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11152 if test -n "$AS_FOR_TARGET"; then
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11154 $as_echo "$AS_FOR_TARGET" >&6; }
11155 else
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157 $as_echo "no" >&6; }
11158 fi
11159
11160
11161 fi
11162 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11164 set dummy ${ncn_progname}; ac_word=$2
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11166 $as_echo_n "checking for $ac_word... " >&6; }
11167 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11168 $as_echo_n "(cached) " >&6
11169 else
11170 if test -n "$AS_FOR_TARGET"; then
11171 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11172 else
11173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174 for as_dir in $PATH
11175 do
11176 IFS=$as_save_IFS
11177 test -z "$as_dir" && as_dir=.
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11180 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11182 break 2
11183 fi
11184 done
11185 done
11186 IFS=$as_save_IFS
11187
11188 fi
11189 fi
11190 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11191 if test -n "$AS_FOR_TARGET"; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11193 $as_echo "$AS_FOR_TARGET" >&6; }
11194 else
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196 $as_echo "no" >&6; }
11197 fi
11198
11199
11200 fi
11201 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11202 done
11203 fi
11204
11205 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11206 set dummy as
11207 if test $build = $target ; then
11208 AS_FOR_TARGET="$2"
11209 else
11210 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11211 fi
11212 else
11213 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11214 fi
11215
11216 else
11217 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11218 fi
11219
11220
11221
11222
11223 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11224 if test -n "$with_build_time_tools"; then
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11226 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11227 if test -x $with_build_time_tools/dlltool; then
11228 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11229 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11231 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11232 else
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234 $as_echo "no" >&6; }
11235 fi
11236 elif test $build != $host && test $have_gcc_for_target = yes; then
11237 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11238 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11239 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11240 fi
11241 fi
11242 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11243 # Extract the first word of "dlltool", so it can be a program name with args.
11244 set dummy dlltool; ac_word=$2
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11246 $as_echo_n "checking for $ac_word... " >&6; }
11247 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11248 $as_echo_n "(cached) " >&6
11249 else
11250 case $DLLTOOL_FOR_TARGET in
11251 [\\/]* | ?:[\\/]*)
11252 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11253 ;;
11254 *)
11255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 for as_dir in $gcc_cv_tool_dirs
11257 do
11258 IFS=$as_save_IFS
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
11261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11262 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264 break 2
11265 fi
11266 done
11267 done
11268 IFS=$as_save_IFS
11269
11270 ;;
11271 esac
11272 fi
11273 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11274 if test -n "$DLLTOOL_FOR_TARGET"; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11276 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11277 else
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11280 fi
11281
11282
11283 fi
11284 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11285
11286
11287 if test -n "$DLLTOOL_FOR_TARGET"; then
11288 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11289 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11290 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11291 fi
11292
11293 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11294 for ncn_progname in dlltool; do
11295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11296 set dummy ${ncn_progname}; ac_word=$2
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11298 $as_echo_n "checking for $ac_word... " >&6; }
11299 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11300 $as_echo_n "(cached) " >&6
11301 else
11302 if test -n "$DLLTOOL_FOR_TARGET"; then
11303 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11304 else
11305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11306 for as_dir in $PATH
11307 do
11308 IFS=$as_save_IFS
11309 test -z "$as_dir" && as_dir=.
11310 for ac_exec_ext in '' $ac_executable_extensions; do
11311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11312 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11314 break 2
11315 fi
11316 done
11317 done
11318 IFS=$as_save_IFS
11319
11320 fi
11321 fi
11322 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11323 if test -n "$DLLTOOL_FOR_TARGET"; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11325 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11326 else
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11329 fi
11330
11331
11332 done
11333 fi
11334
11335 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11336 for ncn_progname in dlltool; do
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11338 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11339 if test -x $with_build_time_tools/${ncn_progname}; then
11340 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11342 $as_echo "yes" >&6; }
11343 break
11344 else
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11347 fi
11348 done
11349 fi
11350
11351 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11352 for ncn_progname in dlltool; do
11353 if test -n "$ncn_target_tool_prefix"; then
11354 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11355 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11357 $as_echo_n "checking for $ac_word... " >&6; }
11358 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11359 $as_echo_n "(cached) " >&6
11360 else
11361 if test -n "$DLLTOOL_FOR_TARGET"; then
11362 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11363 else
11364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365 for as_dir in $PATH
11366 do
11367 IFS=$as_save_IFS
11368 test -z "$as_dir" && as_dir=.
11369 for ac_exec_ext in '' $ac_executable_extensions; do
11370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11371 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11373 break 2
11374 fi
11375 done
11376 done
11377 IFS=$as_save_IFS
11378
11379 fi
11380 fi
11381 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11382 if test -n "$DLLTOOL_FOR_TARGET"; then
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11384 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11385 else
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11388 fi
11389
11390
11391 fi
11392 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11394 set dummy ${ncn_progname}; ac_word=$2
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396 $as_echo_n "checking for $ac_word... " >&6; }
11397 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 if test -n "$DLLTOOL_FOR_TARGET"; then
11401 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11402 else
11403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11404 for as_dir in $PATH
11405 do
11406 IFS=$as_save_IFS
11407 test -z "$as_dir" && as_dir=.
11408 for ac_exec_ext in '' $ac_executable_extensions; do
11409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11410 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11412 break 2
11413 fi
11414 done
11415 done
11416 IFS=$as_save_IFS
11417
11418 fi
11419 fi
11420 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11421 if test -n "$DLLTOOL_FOR_TARGET"; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11423 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11424 else
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426 $as_echo "no" >&6; }
11427 fi
11428
11429
11430 fi
11431 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11432 done
11433 fi
11434
11435 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11436 set dummy dlltool
11437 if test $build = $target ; then
11438 DLLTOOL_FOR_TARGET="$2"
11439 else
11440 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11441 fi
11442 else
11443 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11444 fi
11445
11446 else
11447 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11448 fi
11449
11450
11451
11452
11453 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11454 if test -n "$with_build_time_tools"; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11456 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11457 if test -x $with_build_time_tools/ld; then
11458 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11459 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11461 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11462 else
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11464 $as_echo "no" >&6; }
11465 fi
11466 elif test $build != $host && test $have_gcc_for_target = yes; then
11467 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11468 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11469 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11470 fi
11471 fi
11472 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11473 # Extract the first word of "ld", so it can be a program name with args.
11474 set dummy ld; ac_word=$2
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11476 $as_echo_n "checking for $ac_word... " >&6; }
11477 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11478 $as_echo_n "(cached) " >&6
11479 else
11480 case $LD_FOR_TARGET in
11481 [\\/]* | ?:[\\/]*)
11482 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11483 ;;
11484 *)
11485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486 for as_dir in $gcc_cv_tool_dirs
11487 do
11488 IFS=$as_save_IFS
11489 test -z "$as_dir" && as_dir=.
11490 for ac_exec_ext in '' $ac_executable_extensions; do
11491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11492 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11494 break 2
11495 fi
11496 done
11497 done
11498 IFS=$as_save_IFS
11499
11500 ;;
11501 esac
11502 fi
11503 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11504 if test -n "$LD_FOR_TARGET"; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11506 $as_echo "$LD_FOR_TARGET" >&6; }
11507 else
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 $as_echo "no" >&6; }
11510 fi
11511
11512
11513 fi
11514 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11515
11516
11517 if test -n "$LD_FOR_TARGET"; then
11518 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11519 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11520 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11521 fi
11522
11523 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11524 for ncn_progname in ld; do
11525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11526 set dummy ${ncn_progname}; ac_word=$2
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11528 $as_echo_n "checking for $ac_word... " >&6; }
11529 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11530 $as_echo_n "(cached) " >&6
11531 else
11532 if test -n "$LD_FOR_TARGET"; then
11533 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11534 else
11535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11536 for as_dir in $PATH
11537 do
11538 IFS=$as_save_IFS
11539 test -z "$as_dir" && as_dir=.
11540 for ac_exec_ext in '' $ac_executable_extensions; do
11541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11542 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11544 break 2
11545 fi
11546 done
11547 done
11548 IFS=$as_save_IFS
11549
11550 fi
11551 fi
11552 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11553 if test -n "$LD_FOR_TARGET"; then
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11555 $as_echo "$LD_FOR_TARGET" >&6; }
11556 else
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558 $as_echo "no" >&6; }
11559 fi
11560
11561
11562 done
11563 fi
11564
11565 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11566 for ncn_progname in ld; do
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11568 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11569 if test -x $with_build_time_tools/${ncn_progname}; then
11570 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11572 $as_echo "yes" >&6; }
11573 break
11574 else
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576 $as_echo "no" >&6; }
11577 fi
11578 done
11579 fi
11580
11581 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11582 for ncn_progname in ld; do
11583 if test -n "$ncn_target_tool_prefix"; then
11584 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11585 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11587 $as_echo_n "checking for $ac_word... " >&6; }
11588 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11589 $as_echo_n "(cached) " >&6
11590 else
11591 if test -n "$LD_FOR_TARGET"; then
11592 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11593 else
11594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595 for as_dir in $PATH
11596 do
11597 IFS=$as_save_IFS
11598 test -z "$as_dir" && as_dir=.
11599 for ac_exec_ext in '' $ac_executable_extensions; do
11600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11601 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11603 break 2
11604 fi
11605 done
11606 done
11607 IFS=$as_save_IFS
11608
11609 fi
11610 fi
11611 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11612 if test -n "$LD_FOR_TARGET"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11614 $as_echo "$LD_FOR_TARGET" >&6; }
11615 else
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11618 fi
11619
11620
11621 fi
11622 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11624 set dummy ${ncn_progname}; ac_word=$2
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11626 $as_echo_n "checking for $ac_word... " >&6; }
11627 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11628 $as_echo_n "(cached) " >&6
11629 else
11630 if test -n "$LD_FOR_TARGET"; then
11631 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11632 else
11633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634 for as_dir in $PATH
11635 do
11636 IFS=$as_save_IFS
11637 test -z "$as_dir" && as_dir=.
11638 for ac_exec_ext in '' $ac_executable_extensions; do
11639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11640 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11642 break 2
11643 fi
11644 done
11645 done
11646 IFS=$as_save_IFS
11647
11648 fi
11649 fi
11650 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11651 if test -n "$LD_FOR_TARGET"; then
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11653 $as_echo "$LD_FOR_TARGET" >&6; }
11654 else
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656 $as_echo "no" >&6; }
11657 fi
11658
11659
11660 fi
11661 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11662 done
11663 fi
11664
11665 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11666 set dummy ld
11667 if test $build = $target ; then
11668 LD_FOR_TARGET="$2"
11669 else
11670 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11671 fi
11672 else
11673 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11674 fi
11675
11676 else
11677 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11678 fi
11679
11680
11681
11682
11683 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11684 if test -n "$with_build_time_tools"; then
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11686 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11687 if test -x $with_build_time_tools/lipo; then
11688 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11689 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11691 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11692 else
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694 $as_echo "no" >&6; }
11695 fi
11696 elif test $build != $host && test $have_gcc_for_target = yes; then
11697 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11698 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11699 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11700 fi
11701 fi
11702 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11703 # Extract the first word of "lipo", so it can be a program name with args.
11704 set dummy lipo; ac_word=$2
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11706 $as_echo_n "checking for $ac_word... " >&6; }
11707 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 case $LIPO_FOR_TARGET in
11711 [\\/]* | ?:[\\/]*)
11712 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11713 ;;
11714 *)
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in $gcc_cv_tool_dirs
11717 do
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11722 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11725 fi
11726 done
11727 done
11728 IFS=$as_save_IFS
11729
11730 ;;
11731 esac
11732 fi
11733 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11734 if test -n "$LIPO_FOR_TARGET"; then
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11736 $as_echo "$LIPO_FOR_TARGET" >&6; }
11737 else
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 $as_echo "no" >&6; }
11740 fi
11741
11742
11743 fi
11744 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11745
11746
11747 if test -n "$LIPO_FOR_TARGET"; then
11748 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11749 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11750 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11751 fi
11752
11753 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11754 for ncn_progname in lipo; do
11755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11756 set dummy ${ncn_progname}; ac_word=$2
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11758 $as_echo_n "checking for $ac_word... " >&6; }
11759 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11760 $as_echo_n "(cached) " >&6
11761 else
11762 if test -n "$LIPO_FOR_TARGET"; then
11763 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11764 else
11765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766 for as_dir in $PATH
11767 do
11768 IFS=$as_save_IFS
11769 test -z "$as_dir" && as_dir=.
11770 for ac_exec_ext in '' $ac_executable_extensions; do
11771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11772 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11774 break 2
11775 fi
11776 done
11777 done
11778 IFS=$as_save_IFS
11779
11780 fi
11781 fi
11782 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11783 if test -n "$LIPO_FOR_TARGET"; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11785 $as_echo "$LIPO_FOR_TARGET" >&6; }
11786 else
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788 $as_echo "no" >&6; }
11789 fi
11790
11791
11792 done
11793 fi
11794
11795 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11796 for ncn_progname in lipo; do
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11798 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11799 if test -x $with_build_time_tools/${ncn_progname}; then
11800 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11802 $as_echo "yes" >&6; }
11803 break
11804 else
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11807 fi
11808 done
11809 fi
11810
11811 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11812 for ncn_progname in lipo; do
11813 if test -n "$ncn_target_tool_prefix"; then
11814 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11815 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11817 $as_echo_n "checking for $ac_word... " >&6; }
11818 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 if test -n "$LIPO_FOR_TARGET"; then
11822 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11823 else
11824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11825 for as_dir in $PATH
11826 do
11827 IFS=$as_save_IFS
11828 test -z "$as_dir" && as_dir=.
11829 for ac_exec_ext in '' $ac_executable_extensions; do
11830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11831 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11833 break 2
11834 fi
11835 done
11836 done
11837 IFS=$as_save_IFS
11838
11839 fi
11840 fi
11841 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11842 if test -n "$LIPO_FOR_TARGET"; then
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11844 $as_echo "$LIPO_FOR_TARGET" >&6; }
11845 else
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847 $as_echo "no" >&6; }
11848 fi
11849
11850
11851 fi
11852 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11854 set dummy ${ncn_progname}; ac_word=$2
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856 $as_echo_n "checking for $ac_word... " >&6; }
11857 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11858 $as_echo_n "(cached) " >&6
11859 else
11860 if test -n "$LIPO_FOR_TARGET"; then
11861 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11862 else
11863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864 for as_dir in $PATH
11865 do
11866 IFS=$as_save_IFS
11867 test -z "$as_dir" && as_dir=.
11868 for ac_exec_ext in '' $ac_executable_extensions; do
11869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11870 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11872 break 2
11873 fi
11874 done
11875 done
11876 IFS=$as_save_IFS
11877
11878 fi
11879 fi
11880 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11881 if test -n "$LIPO_FOR_TARGET"; then
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11883 $as_echo "$LIPO_FOR_TARGET" >&6; }
11884 else
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886 $as_echo "no" >&6; }
11887 fi
11888
11889
11890 fi
11891 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11892 done
11893 fi
11894
11895 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11896 set dummy lipo
11897 if test $build = $target ; then
11898 LIPO_FOR_TARGET="$2"
11899 else
11900 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11901 fi
11902 else
11903 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11904 fi
11905
11906 else
11907 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11908 fi
11909
11910
11911
11912
11913 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11914 if test -n "$with_build_time_tools"; then
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11916 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11917 if test -x $with_build_time_tools/nm; then
11918 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11919 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11921 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11922 else
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924 $as_echo "no" >&6; }
11925 fi
11926 elif test $build != $host && test $have_gcc_for_target = yes; then
11927 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11928 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11929 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11930 fi
11931 fi
11932 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11933 # Extract the first word of "nm", so it can be a program name with args.
11934 set dummy nm; ac_word=$2
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11936 $as_echo_n "checking for $ac_word... " >&6; }
11937 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11938 $as_echo_n "(cached) " >&6
11939 else
11940 case $NM_FOR_TARGET in
11941 [\\/]* | ?:[\\/]*)
11942 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11943 ;;
11944 *)
11945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946 for as_dir in $gcc_cv_tool_dirs
11947 do
11948 IFS=$as_save_IFS
11949 test -z "$as_dir" && as_dir=.
11950 for ac_exec_ext in '' $ac_executable_extensions; do
11951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11952 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11954 break 2
11955 fi
11956 done
11957 done
11958 IFS=$as_save_IFS
11959
11960 ;;
11961 esac
11962 fi
11963 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11964 if test -n "$NM_FOR_TARGET"; then
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11966 $as_echo "$NM_FOR_TARGET" >&6; }
11967 else
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969 $as_echo "no" >&6; }
11970 fi
11971
11972
11973 fi
11974 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11975
11976
11977 if test -n "$NM_FOR_TARGET"; then
11978 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11979 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11980 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11981 fi
11982
11983 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11984 for ncn_progname in nm; do
11985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11986 set dummy ${ncn_progname}; ac_word=$2
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11988 $as_echo_n "checking for $ac_word... " >&6; }
11989 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11990 $as_echo_n "(cached) " >&6
11991 else
11992 if test -n "$NM_FOR_TARGET"; then
11993 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11994 else
11995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11996 for as_dir in $PATH
11997 do
11998 IFS=$as_save_IFS
11999 test -z "$as_dir" && as_dir=.
12000 for ac_exec_ext in '' $ac_executable_extensions; do
12001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12002 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12004 break 2
12005 fi
12006 done
12007 done
12008 IFS=$as_save_IFS
12009
12010 fi
12011 fi
12012 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12013 if test -n "$NM_FOR_TARGET"; then
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12015 $as_echo "$NM_FOR_TARGET" >&6; }
12016 else
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12018 $as_echo "no" >&6; }
12019 fi
12020
12021
12022 done
12023 fi
12024
12025 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12026 for ncn_progname in nm; do
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12028 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12029 if test -x $with_build_time_tools/${ncn_progname}; then
12030 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12032 $as_echo "yes" >&6; }
12033 break
12034 else
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12037 fi
12038 done
12039 fi
12040
12041 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12042 for ncn_progname in nm; do
12043 if test -n "$ncn_target_tool_prefix"; then
12044 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12045 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12047 $as_echo_n "checking for $ac_word... " >&6; }
12048 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12049 $as_echo_n "(cached) " >&6
12050 else
12051 if test -n "$NM_FOR_TARGET"; then
12052 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12053 else
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in $PATH
12056 do
12057 IFS=$as_save_IFS
12058 test -z "$as_dir" && as_dir=.
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12061 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12063 break 2
12064 fi
12065 done
12066 done
12067 IFS=$as_save_IFS
12068
12069 fi
12070 fi
12071 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12072 if test -n "$NM_FOR_TARGET"; then
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12074 $as_echo "$NM_FOR_TARGET" >&6; }
12075 else
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077 $as_echo "no" >&6; }
12078 fi
12079
12080
12081 fi
12082 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12083 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12084 set dummy ${ncn_progname}; ac_word=$2
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12086 $as_echo_n "checking for $ac_word... " >&6; }
12087 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 if test -n "$NM_FOR_TARGET"; then
12091 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12092 else
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $PATH
12095 do
12096 IFS=$as_save_IFS
12097 test -z "$as_dir" && as_dir=.
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12100 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12102 break 2
12103 fi
12104 done
12105 done
12106 IFS=$as_save_IFS
12107
12108 fi
12109 fi
12110 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12111 if test -n "$NM_FOR_TARGET"; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12113 $as_echo "$NM_FOR_TARGET" >&6; }
12114 else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116 $as_echo "no" >&6; }
12117 fi
12118
12119
12120 fi
12121 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12122 done
12123 fi
12124
12125 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12126 set dummy nm
12127 if test $build = $target ; then
12128 NM_FOR_TARGET="$2"
12129 else
12130 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12131 fi
12132 else
12133 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12134 fi
12135
12136 else
12137 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12138 fi
12139
12140
12141
12142
12143 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12144 if test -n "$with_build_time_tools"; then
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12146 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12147 if test -x $with_build_time_tools/objdump; then
12148 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12149 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12151 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12152 else
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12155 fi
12156 elif test $build != $host && test $have_gcc_for_target = yes; then
12157 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12158 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12159 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12160 fi
12161 fi
12162 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12163 # Extract the first word of "objdump", so it can be a program name with args.
12164 set dummy objdump; ac_word=$2
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12166 $as_echo_n "checking for $ac_word... " >&6; }
12167 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12168 $as_echo_n "(cached) " >&6
12169 else
12170 case $OBJDUMP_FOR_TARGET in
12171 [\\/]* | ?:[\\/]*)
12172 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12173 ;;
12174 *)
12175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176 for as_dir in $gcc_cv_tool_dirs
12177 do
12178 IFS=$as_save_IFS
12179 test -z "$as_dir" && as_dir=.
12180 for ac_exec_ext in '' $ac_executable_extensions; do
12181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12182 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184 break 2
12185 fi
12186 done
12187 done
12188 IFS=$as_save_IFS
12189
12190 ;;
12191 esac
12192 fi
12193 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12194 if test -n "$OBJDUMP_FOR_TARGET"; then
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12196 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12197 else
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12199 $as_echo "no" >&6; }
12200 fi
12201
12202
12203 fi
12204 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12205
12206
12207 if test -n "$OBJDUMP_FOR_TARGET"; then
12208 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12209 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12210 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12211 fi
12212
12213 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12214 for ncn_progname in objdump; do
12215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12216 set dummy ${ncn_progname}; ac_word=$2
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12218 $as_echo_n "checking for $ac_word... " >&6; }
12219 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12220 $as_echo_n "(cached) " >&6
12221 else
12222 if test -n "$OBJDUMP_FOR_TARGET"; then
12223 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12224 else
12225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12226 for as_dir in $PATH
12227 do
12228 IFS=$as_save_IFS
12229 test -z "$as_dir" && as_dir=.
12230 for ac_exec_ext in '' $ac_executable_extensions; do
12231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12232 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12234 break 2
12235 fi
12236 done
12237 done
12238 IFS=$as_save_IFS
12239
12240 fi
12241 fi
12242 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12243 if test -n "$OBJDUMP_FOR_TARGET"; then
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12245 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12246 else
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12248 $as_echo "no" >&6; }
12249 fi
12250
12251
12252 done
12253 fi
12254
12255 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12256 for ncn_progname in objdump; do
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12258 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12259 if test -x $with_build_time_tools/${ncn_progname}; then
12260 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12262 $as_echo "yes" >&6; }
12263 break
12264 else
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12267 fi
12268 done
12269 fi
12270
12271 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12272 for ncn_progname in objdump; do
12273 if test -n "$ncn_target_tool_prefix"; then
12274 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12275 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12277 $as_echo_n "checking for $ac_word... " >&6; }
12278 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12279 $as_echo_n "(cached) " >&6
12280 else
12281 if test -n "$OBJDUMP_FOR_TARGET"; then
12282 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12283 else
12284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285 for as_dir in $PATH
12286 do
12287 IFS=$as_save_IFS
12288 test -z "$as_dir" && as_dir=.
12289 for ac_exec_ext in '' $ac_executable_extensions; do
12290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12291 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12293 break 2
12294 fi
12295 done
12296 done
12297 IFS=$as_save_IFS
12298
12299 fi
12300 fi
12301 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12302 if test -n "$OBJDUMP_FOR_TARGET"; then
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12304 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12305 else
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307 $as_echo "no" >&6; }
12308 fi
12309
12310
12311 fi
12312 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12314 set dummy ${ncn_progname}; ac_word=$2
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12316 $as_echo_n "checking for $ac_word... " >&6; }
12317 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12318 $as_echo_n "(cached) " >&6
12319 else
12320 if test -n "$OBJDUMP_FOR_TARGET"; then
12321 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12322 else
12323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324 for as_dir in $PATH
12325 do
12326 IFS=$as_save_IFS
12327 test -z "$as_dir" && as_dir=.
12328 for ac_exec_ext in '' $ac_executable_extensions; do
12329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12330 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12332 break 2
12333 fi
12334 done
12335 done
12336 IFS=$as_save_IFS
12337
12338 fi
12339 fi
12340 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12341 if test -n "$OBJDUMP_FOR_TARGET"; then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12343 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12344 else
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 $as_echo "no" >&6; }
12347 fi
12348
12349
12350 fi
12351 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12352 done
12353 fi
12354
12355 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12356 set dummy objdump
12357 if test $build = $target ; then
12358 OBJDUMP_FOR_TARGET="$2"
12359 else
12360 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12361 fi
12362 else
12363 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12364 fi
12365
12366 else
12367 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12368 fi
12369
12370
12371
12372
12373 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12374 if test -n "$with_build_time_tools"; then
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12376 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12377 if test -x $with_build_time_tools/ranlib; then
12378 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12379 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12381 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12382 else
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384 $as_echo "no" >&6; }
12385 fi
12386 elif test $build != $host && test $have_gcc_for_target = yes; then
12387 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12388 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12389 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12390 fi
12391 fi
12392 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12393 # Extract the first word of "ranlib", so it can be a program name with args.
12394 set dummy ranlib; ac_word=$2
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12396 $as_echo_n "checking for $ac_word... " >&6; }
12397 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12398 $as_echo_n "(cached) " >&6
12399 else
12400 case $RANLIB_FOR_TARGET in
12401 [\\/]* | ?:[\\/]*)
12402 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12403 ;;
12404 *)
12405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406 for as_dir in $gcc_cv_tool_dirs
12407 do
12408 IFS=$as_save_IFS
12409 test -z "$as_dir" && as_dir=.
12410 for ac_exec_ext in '' $ac_executable_extensions; do
12411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12412 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12414 break 2
12415 fi
12416 done
12417 done
12418 IFS=$as_save_IFS
12419
12420 ;;
12421 esac
12422 fi
12423 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12424 if test -n "$RANLIB_FOR_TARGET"; then
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12426 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12427 else
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429 $as_echo "no" >&6; }
12430 fi
12431
12432
12433 fi
12434 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12435
12436
12437 if test -n "$RANLIB_FOR_TARGET"; then
12438 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12439 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12440 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12441 fi
12442
12443 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12444 for ncn_progname in ranlib; do
12445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12446 set dummy ${ncn_progname}; ac_word=$2
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12448 $as_echo_n "checking for $ac_word... " >&6; }
12449 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12450 $as_echo_n "(cached) " >&6
12451 else
12452 if test -n "$RANLIB_FOR_TARGET"; then
12453 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12454 else
12455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12456 for as_dir in $PATH
12457 do
12458 IFS=$as_save_IFS
12459 test -z "$as_dir" && as_dir=.
12460 for ac_exec_ext in '' $ac_executable_extensions; do
12461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12462 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12464 break 2
12465 fi
12466 done
12467 done
12468 IFS=$as_save_IFS
12469
12470 fi
12471 fi
12472 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12473 if test -n "$RANLIB_FOR_TARGET"; then
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12475 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12476 else
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12478 $as_echo "no" >&6; }
12479 fi
12480
12481
12482 done
12483 fi
12484
12485 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12486 for ncn_progname in ranlib; do
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12488 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12489 if test -x $with_build_time_tools/${ncn_progname}; then
12490 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12492 $as_echo "yes" >&6; }
12493 break
12494 else
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496 $as_echo "no" >&6; }
12497 fi
12498 done
12499 fi
12500
12501 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12502 for ncn_progname in ranlib; do
12503 if test -n "$ncn_target_tool_prefix"; then
12504 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12505 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12507 $as_echo_n "checking for $ac_word... " >&6; }
12508 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12509 $as_echo_n "(cached) " >&6
12510 else
12511 if test -n "$RANLIB_FOR_TARGET"; then
12512 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12513 else
12514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515 for as_dir in $PATH
12516 do
12517 IFS=$as_save_IFS
12518 test -z "$as_dir" && as_dir=.
12519 for ac_exec_ext in '' $ac_executable_extensions; do
12520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12521 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12523 break 2
12524 fi
12525 done
12526 done
12527 IFS=$as_save_IFS
12528
12529 fi
12530 fi
12531 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12532 if test -n "$RANLIB_FOR_TARGET"; then
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12534 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12535 else
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537 $as_echo "no" >&6; }
12538 fi
12539
12540
12541 fi
12542 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12544 set dummy ${ncn_progname}; ac_word=$2
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546 $as_echo_n "checking for $ac_word... " >&6; }
12547 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12548 $as_echo_n "(cached) " >&6
12549 else
12550 if test -n "$RANLIB_FOR_TARGET"; then
12551 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12552 else
12553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554 for as_dir in $PATH
12555 do
12556 IFS=$as_save_IFS
12557 test -z "$as_dir" && as_dir=.
12558 for ac_exec_ext in '' $ac_executable_extensions; do
12559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12560 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12562 break 2
12563 fi
12564 done
12565 done
12566 IFS=$as_save_IFS
12567
12568 fi
12569 fi
12570 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12571 if test -n "$RANLIB_FOR_TARGET"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12573 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12574 else
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 $as_echo "no" >&6; }
12577 fi
12578
12579
12580 fi
12581 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12582 done
12583 fi
12584
12585 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12586 set dummy ranlib
12587 if test $build = $target ; then
12588 RANLIB_FOR_TARGET="$2"
12589 else
12590 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12591 fi
12592 else
12593 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12594 fi
12595
12596 else
12597 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12598 fi
12599
12600
12601
12602
12603 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12604 if test -n "$with_build_time_tools"; then
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12606 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12607 if test -x $with_build_time_tools/readelf; then
12608 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12609 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12611 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12612 else
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614 $as_echo "no" >&6; }
12615 fi
12616 elif test $build != $host && test $have_gcc_for_target = yes; then
12617 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12618 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12619 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12620 fi
12621 fi
12622 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12623 # Extract the first word of "readelf", so it can be a program name with args.
12624 set dummy readelf; ac_word=$2
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12626 $as_echo_n "checking for $ac_word... " >&6; }
12627 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12628 $as_echo_n "(cached) " >&6
12629 else
12630 case $READELF_FOR_TARGET in
12631 [\\/]* | ?:[\\/]*)
12632 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12633 ;;
12634 *)
12635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636 for as_dir in $gcc_cv_tool_dirs
12637 do
12638 IFS=$as_save_IFS
12639 test -z "$as_dir" && as_dir=.
12640 for ac_exec_ext in '' $ac_executable_extensions; do
12641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12642 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644 break 2
12645 fi
12646 done
12647 done
12648 IFS=$as_save_IFS
12649
12650 ;;
12651 esac
12652 fi
12653 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12654 if test -n "$READELF_FOR_TARGET"; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12656 $as_echo "$READELF_FOR_TARGET" >&6; }
12657 else
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 $as_echo "no" >&6; }
12660 fi
12661
12662
12663 fi
12664 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12665
12666
12667 if test -n "$READELF_FOR_TARGET"; then
12668 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12669 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12670 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12671 fi
12672
12673 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12674 for ncn_progname in readelf; do
12675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12676 set dummy ${ncn_progname}; ac_word=$2
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12678 $as_echo_n "checking for $ac_word... " >&6; }
12679 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 if test -n "$READELF_FOR_TARGET"; then
12683 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12684 else
12685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686 for as_dir in $PATH
12687 do
12688 IFS=$as_save_IFS
12689 test -z "$as_dir" && as_dir=.
12690 for ac_exec_ext in '' $ac_executable_extensions; do
12691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12692 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12694 break 2
12695 fi
12696 done
12697 done
12698 IFS=$as_save_IFS
12699
12700 fi
12701 fi
12702 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12703 if test -n "$READELF_FOR_TARGET"; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12705 $as_echo "$READELF_FOR_TARGET" >&6; }
12706 else
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708 $as_echo "no" >&6; }
12709 fi
12710
12711
12712 done
12713 fi
12714
12715 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12716 for ncn_progname in readelf; do
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12718 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12719 if test -x $with_build_time_tools/${ncn_progname}; then
12720 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12722 $as_echo "yes" >&6; }
12723 break
12724 else
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726 $as_echo "no" >&6; }
12727 fi
12728 done
12729 fi
12730
12731 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12732 for ncn_progname in readelf; do
12733 if test -n "$ncn_target_tool_prefix"; then
12734 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12735 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12737 $as_echo_n "checking for $ac_word... " >&6; }
12738 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 if test -n "$READELF_FOR_TARGET"; then
12742 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12743 else
12744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745 for as_dir in $PATH
12746 do
12747 IFS=$as_save_IFS
12748 test -z "$as_dir" && as_dir=.
12749 for ac_exec_ext in '' $ac_executable_extensions; do
12750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12751 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12753 break 2
12754 fi
12755 done
12756 done
12757 IFS=$as_save_IFS
12758
12759 fi
12760 fi
12761 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12762 if test -n "$READELF_FOR_TARGET"; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12764 $as_echo "$READELF_FOR_TARGET" >&6; }
12765 else
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767 $as_echo "no" >&6; }
12768 fi
12769
12770
12771 fi
12772 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12773 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12774 set dummy ${ncn_progname}; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776 $as_echo_n "checking for $ac_word... " >&6; }
12777 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12778 $as_echo_n "(cached) " >&6
12779 else
12780 if test -n "$READELF_FOR_TARGET"; then
12781 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12782 else
12783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in $PATH
12785 do
12786 IFS=$as_save_IFS
12787 test -z "$as_dir" && as_dir=.
12788 for ac_exec_ext in '' $ac_executable_extensions; do
12789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12790 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12792 break 2
12793 fi
12794 done
12795 done
12796 IFS=$as_save_IFS
12797
12798 fi
12799 fi
12800 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12801 if test -n "$READELF_FOR_TARGET"; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12803 $as_echo "$READELF_FOR_TARGET" >&6; }
12804 else
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806 $as_echo "no" >&6; }
12807 fi
12808
12809
12810 fi
12811 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12812 done
12813 fi
12814
12815 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12816 set dummy readelf
12817 if test $build = $target ; then
12818 READELF_FOR_TARGET="$2"
12819 else
12820 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12821 fi
12822 else
12823 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12824 fi
12825
12826 else
12827 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12828 fi
12829
12830
12831
12832
12833 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12834 if test -n "$with_build_time_tools"; then
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12836 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12837 if test -x $with_build_time_tools/strip; then
12838 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12839 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12841 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12842 else
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 $as_echo "no" >&6; }
12845 fi
12846 elif test $build != $host && test $have_gcc_for_target = yes; then
12847 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12848 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12849 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12850 fi
12851 fi
12852 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12853 # Extract the first word of "strip", so it can be a program name with args.
12854 set dummy strip; ac_word=$2
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12856 $as_echo_n "checking for $ac_word... " >&6; }
12857 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12858 $as_echo_n "(cached) " >&6
12859 else
12860 case $STRIP_FOR_TARGET in
12861 [\\/]* | ?:[\\/]*)
12862 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12863 ;;
12864 *)
12865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866 for as_dir in $gcc_cv_tool_dirs
12867 do
12868 IFS=$as_save_IFS
12869 test -z "$as_dir" && as_dir=.
12870 for ac_exec_ext in '' $ac_executable_extensions; do
12871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12872 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12874 break 2
12875 fi
12876 done
12877 done
12878 IFS=$as_save_IFS
12879
12880 ;;
12881 esac
12882 fi
12883 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12884 if test -n "$STRIP_FOR_TARGET"; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12886 $as_echo "$STRIP_FOR_TARGET" >&6; }
12887 else
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889 $as_echo "no" >&6; }
12890 fi
12891
12892
12893 fi
12894 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12895
12896
12897 if test -n "$STRIP_FOR_TARGET"; then
12898 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12899 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12900 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12901 fi
12902
12903 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12904 for ncn_progname in strip; do
12905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12906 set dummy ${ncn_progname}; ac_word=$2
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12908 $as_echo_n "checking for $ac_word... " >&6; }
12909 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12910 $as_echo_n "(cached) " >&6
12911 else
12912 if test -n "$STRIP_FOR_TARGET"; then
12913 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12914 else
12915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12916 for as_dir in $PATH
12917 do
12918 IFS=$as_save_IFS
12919 test -z "$as_dir" && as_dir=.
12920 for ac_exec_ext in '' $ac_executable_extensions; do
12921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12922 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12924 break 2
12925 fi
12926 done
12927 done
12928 IFS=$as_save_IFS
12929
12930 fi
12931 fi
12932 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12933 if test -n "$STRIP_FOR_TARGET"; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12935 $as_echo "$STRIP_FOR_TARGET" >&6; }
12936 else
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938 $as_echo "no" >&6; }
12939 fi
12940
12941
12942 done
12943 fi
12944
12945 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12946 for ncn_progname in strip; do
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12948 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12949 if test -x $with_build_time_tools/${ncn_progname}; then
12950 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12952 $as_echo "yes" >&6; }
12953 break
12954 else
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 $as_echo "no" >&6; }
12957 fi
12958 done
12959 fi
12960
12961 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12962 for ncn_progname in strip; do
12963 if test -n "$ncn_target_tool_prefix"; then
12964 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12965 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12967 $as_echo_n "checking for $ac_word... " >&6; }
12968 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12969 $as_echo_n "(cached) " >&6
12970 else
12971 if test -n "$STRIP_FOR_TARGET"; then
12972 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12973 else
12974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12975 for as_dir in $PATH
12976 do
12977 IFS=$as_save_IFS
12978 test -z "$as_dir" && as_dir=.
12979 for ac_exec_ext in '' $ac_executable_extensions; do
12980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12981 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12983 break 2
12984 fi
12985 done
12986 done
12987 IFS=$as_save_IFS
12988
12989 fi
12990 fi
12991 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12992 if test -n "$STRIP_FOR_TARGET"; then
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12994 $as_echo "$STRIP_FOR_TARGET" >&6; }
12995 else
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997 $as_echo "no" >&6; }
12998 fi
12999
13000
13001 fi
13002 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13004 set dummy ${ncn_progname}; ac_word=$2
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13006 $as_echo_n "checking for $ac_word... " >&6; }
13007 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13008 $as_echo_n "(cached) " >&6
13009 else
13010 if test -n "$STRIP_FOR_TARGET"; then
13011 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13012 else
13013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13014 for as_dir in $PATH
13015 do
13016 IFS=$as_save_IFS
13017 test -z "$as_dir" && as_dir=.
13018 for ac_exec_ext in '' $ac_executable_extensions; do
13019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13020 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13022 break 2
13023 fi
13024 done
13025 done
13026 IFS=$as_save_IFS
13027
13028 fi
13029 fi
13030 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13031 if test -n "$STRIP_FOR_TARGET"; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13033 $as_echo "$STRIP_FOR_TARGET" >&6; }
13034 else
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13036 $as_echo "no" >&6; }
13037 fi
13038
13039
13040 fi
13041 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13042 done
13043 fi
13044
13045 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13046 set dummy strip
13047 if test $build = $target ; then
13048 STRIP_FOR_TARGET="$2"
13049 else
13050 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13051 fi
13052 else
13053 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13054 fi
13055
13056 else
13057 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13058 fi
13059
13060
13061
13062
13063 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13064 if test -n "$with_build_time_tools"; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13066 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13067 if test -x $with_build_time_tools/windres; then
13068 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13069 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13071 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13072 else
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074 $as_echo "no" >&6; }
13075 fi
13076 elif test $build != $host && test $have_gcc_for_target = yes; then
13077 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13078 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13079 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13080 fi
13081 fi
13082 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13083 # Extract the first word of "windres", so it can be a program name with args.
13084 set dummy windres; ac_word=$2
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13086 $as_echo_n "checking for $ac_word... " >&6; }
13087 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13088 $as_echo_n "(cached) " >&6
13089 else
13090 case $WINDRES_FOR_TARGET in
13091 [\\/]* | ?:[\\/]*)
13092 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13093 ;;
13094 *)
13095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096 for as_dir in $gcc_cv_tool_dirs
13097 do
13098 IFS=$as_save_IFS
13099 test -z "$as_dir" && as_dir=.
13100 for ac_exec_ext in '' $ac_executable_extensions; do
13101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13102 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13104 break 2
13105 fi
13106 done
13107 done
13108 IFS=$as_save_IFS
13109
13110 ;;
13111 esac
13112 fi
13113 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13114 if test -n "$WINDRES_FOR_TARGET"; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13116 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13117 else
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119 $as_echo "no" >&6; }
13120 fi
13121
13122
13123 fi
13124 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13125
13126
13127 if test -n "$WINDRES_FOR_TARGET"; then
13128 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13129 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13130 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13131 fi
13132
13133 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13134 for ncn_progname in windres; do
13135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13136 set dummy ${ncn_progname}; ac_word=$2
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13138 $as_echo_n "checking for $ac_word... " >&6; }
13139 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13140 $as_echo_n "(cached) " >&6
13141 else
13142 if test -n "$WINDRES_FOR_TARGET"; then
13143 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13144 else
13145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13146 for as_dir in $PATH
13147 do
13148 IFS=$as_save_IFS
13149 test -z "$as_dir" && as_dir=.
13150 for ac_exec_ext in '' $ac_executable_extensions; do
13151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13152 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13154 break 2
13155 fi
13156 done
13157 done
13158 IFS=$as_save_IFS
13159
13160 fi
13161 fi
13162 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13163 if test -n "$WINDRES_FOR_TARGET"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13165 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13166 else
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13169 fi
13170
13171
13172 done
13173 fi
13174
13175 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13176 for ncn_progname in windres; do
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13178 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13179 if test -x $with_build_time_tools/${ncn_progname}; then
13180 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13182 $as_echo "yes" >&6; }
13183 break
13184 else
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186 $as_echo "no" >&6; }
13187 fi
13188 done
13189 fi
13190
13191 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13192 for ncn_progname in windres; do
13193 if test -n "$ncn_target_tool_prefix"; then
13194 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13195 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13197 $as_echo_n "checking for $ac_word... " >&6; }
13198 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13199 $as_echo_n "(cached) " >&6
13200 else
13201 if test -n "$WINDRES_FOR_TARGET"; then
13202 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13203 else
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in $PATH
13206 do
13207 IFS=$as_save_IFS
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
13210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13211 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13213 break 2
13214 fi
13215 done
13216 done
13217 IFS=$as_save_IFS
13218
13219 fi
13220 fi
13221 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13222 if test -n "$WINDRES_FOR_TARGET"; then
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13224 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13225 else
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227 $as_echo "no" >&6; }
13228 fi
13229
13230
13231 fi
13232 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13234 set dummy ${ncn_progname}; ac_word=$2
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13236 $as_echo_n "checking for $ac_word... " >&6; }
13237 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 if test -n "$WINDRES_FOR_TARGET"; then
13241 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13242 else
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in $PATH
13245 do
13246 IFS=$as_save_IFS
13247 test -z "$as_dir" && as_dir=.
13248 for ac_exec_ext in '' $ac_executable_extensions; do
13249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13250 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13252 break 2
13253 fi
13254 done
13255 done
13256 IFS=$as_save_IFS
13257
13258 fi
13259 fi
13260 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13261 if test -n "$WINDRES_FOR_TARGET"; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13263 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13264 else
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 $as_echo "no" >&6; }
13267 fi
13268
13269
13270 fi
13271 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13272 done
13273 fi
13274
13275 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13276 set dummy windres
13277 if test $build = $target ; then
13278 WINDRES_FOR_TARGET="$2"
13279 else
13280 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13281 fi
13282 else
13283 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13284 fi
13285
13286 else
13287 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13288 fi
13289
13290
13291
13292
13293 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13294 if test -n "$with_build_time_tools"; then
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13296 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13297 if test -x $with_build_time_tools/windmc; then
13298 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13299 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13301 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13302 else
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13305 fi
13306 elif test $build != $host && test $have_gcc_for_target = yes; then
13307 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13308 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13309 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13310 fi
13311 fi
13312 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13313 # Extract the first word of "windmc", so it can be a program name with args.
13314 set dummy windmc; ac_word=$2
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13316 $as_echo_n "checking for $ac_word... " >&6; }
13317 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13318 $as_echo_n "(cached) " >&6
13319 else
13320 case $WINDMC_FOR_TARGET in
13321 [\\/]* | ?:[\\/]*)
13322 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13323 ;;
13324 *)
13325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13326 for as_dir in $gcc_cv_tool_dirs
13327 do
13328 IFS=$as_save_IFS
13329 test -z "$as_dir" && as_dir=.
13330 for ac_exec_ext in '' $ac_executable_extensions; do
13331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13332 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13334 break 2
13335 fi
13336 done
13337 done
13338 IFS=$as_save_IFS
13339
13340 ;;
13341 esac
13342 fi
13343 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13344 if test -n "$WINDMC_FOR_TARGET"; then
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13346 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13347 else
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349 $as_echo "no" >&6; }
13350 fi
13351
13352
13353 fi
13354 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13355
13356
13357 if test -n "$WINDMC_FOR_TARGET"; then
13358 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13359 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13360 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13361 fi
13362
13363 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13364 for ncn_progname in windmc; do
13365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13366 set dummy ${ncn_progname}; ac_word=$2
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13368 $as_echo_n "checking for $ac_word... " >&6; }
13369 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13370 $as_echo_n "(cached) " >&6
13371 else
13372 if test -n "$WINDMC_FOR_TARGET"; then
13373 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13374 else
13375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376 for as_dir in $PATH
13377 do
13378 IFS=$as_save_IFS
13379 test -z "$as_dir" && as_dir=.
13380 for ac_exec_ext in '' $ac_executable_extensions; do
13381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13382 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13384 break 2
13385 fi
13386 done
13387 done
13388 IFS=$as_save_IFS
13389
13390 fi
13391 fi
13392 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13393 if test -n "$WINDMC_FOR_TARGET"; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13395 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13396 else
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398 $as_echo "no" >&6; }
13399 fi
13400
13401
13402 done
13403 fi
13404
13405 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13406 for ncn_progname in windmc; do
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13408 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13409 if test -x $with_build_time_tools/${ncn_progname}; then
13410 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13412 $as_echo "yes" >&6; }
13413 break
13414 else
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416 $as_echo "no" >&6; }
13417 fi
13418 done
13419 fi
13420
13421 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13422 for ncn_progname in windmc; do
13423 if test -n "$ncn_target_tool_prefix"; then
13424 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13425 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13427 $as_echo_n "checking for $ac_word... " >&6; }
13428 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13429 $as_echo_n "(cached) " >&6
13430 else
13431 if test -n "$WINDMC_FOR_TARGET"; then
13432 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13433 else
13434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13435 for as_dir in $PATH
13436 do
13437 IFS=$as_save_IFS
13438 test -z "$as_dir" && as_dir=.
13439 for ac_exec_ext in '' $ac_executable_extensions; do
13440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13441 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13443 break 2
13444 fi
13445 done
13446 done
13447 IFS=$as_save_IFS
13448
13449 fi
13450 fi
13451 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13452 if test -n "$WINDMC_FOR_TARGET"; then
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13454 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13455 else
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13458 fi
13459
13460
13461 fi
13462 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13464 set dummy ${ncn_progname}; ac_word=$2
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13466 $as_echo_n "checking for $ac_word... " >&6; }
13467 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13468 $as_echo_n "(cached) " >&6
13469 else
13470 if test -n "$WINDMC_FOR_TARGET"; then
13471 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13472 else
13473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13474 for as_dir in $PATH
13475 do
13476 IFS=$as_save_IFS
13477 test -z "$as_dir" && as_dir=.
13478 for ac_exec_ext in '' $ac_executable_extensions; do
13479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13480 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13482 break 2
13483 fi
13484 done
13485 done
13486 IFS=$as_save_IFS
13487
13488 fi
13489 fi
13490 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13491 if test -n "$WINDMC_FOR_TARGET"; then
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13493 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13494 else
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496 $as_echo "no" >&6; }
13497 fi
13498
13499
13500 fi
13501 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13502 done
13503 fi
13504
13505 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13506 set dummy windmc
13507 if test $build = $target ; then
13508 WINDMC_FOR_TARGET="$2"
13509 else
13510 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13511 fi
13512 else
13513 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13514 fi
13515
13516 else
13517 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13518 fi
13519
13520
13521 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13522
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13524 $as_echo_n "checking where to find the target ar... " >&6; }
13525 if test "x${build}" != "x${host}" ; then
13526 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13527 # We already found the complete path
13528 ac_dir=`dirname $AR_FOR_TARGET`
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13530 $as_echo "pre-installed in $ac_dir" >&6; }
13531 else
13532 # Canadian cross, just use what we found
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13534 $as_echo "pre-installed" >&6; }
13535 fi
13536 else
13537 ok=yes
13538 case " ${configdirs} " in
13539 *" binutils "*) ;;
13540 *) ok=no ;;
13541 esac
13542
13543 if test $ok = yes; then
13544 # An in-tree tool is available and we can use it
13545 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13547 $as_echo "just compiled" >&6; }
13548 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13549 # We already found the complete path
13550 ac_dir=`dirname $AR_FOR_TARGET`
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13552 $as_echo "pre-installed in $ac_dir" >&6; }
13553 elif test "x$target" = "x$host"; then
13554 # We can use an host tool
13555 AR_FOR_TARGET='$(AR)'
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13557 $as_echo "host tool" >&6; }
13558 else
13559 # We need a cross tool
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13561 $as_echo "pre-installed" >&6; }
13562 fi
13563 fi
13564
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13566 $as_echo_n "checking where to find the target as... " >&6; }
13567 if test "x${build}" != "x${host}" ; then
13568 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13569 # We already found the complete path
13570 ac_dir=`dirname $AS_FOR_TARGET`
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13572 $as_echo "pre-installed in $ac_dir" >&6; }
13573 else
13574 # Canadian cross, just use what we found
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13576 $as_echo "pre-installed" >&6; }
13577 fi
13578 else
13579 ok=yes
13580 case " ${configdirs} " in
13581 *" gas "*) ;;
13582 *) ok=no ;;
13583 esac
13584
13585 if test $ok = yes; then
13586 # An in-tree tool is available and we can use it
13587 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13589 $as_echo "just compiled" >&6; }
13590 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13591 # We already found the complete path
13592 ac_dir=`dirname $AS_FOR_TARGET`
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13594 $as_echo "pre-installed in $ac_dir" >&6; }
13595 elif test "x$target" = "x$host"; then
13596 # We can use an host tool
13597 AS_FOR_TARGET='$(AS)'
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13599 $as_echo "host tool" >&6; }
13600 else
13601 # We need a cross tool
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13603 $as_echo "pre-installed" >&6; }
13604 fi
13605 fi
13606
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13608 $as_echo_n "checking where to find the target cc... " >&6; }
13609 if test "x${build}" != "x${host}" ; then
13610 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13611 # We already found the complete path
13612 ac_dir=`dirname $CC_FOR_TARGET`
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13614 $as_echo "pre-installed in $ac_dir" >&6; }
13615 else
13616 # Canadian cross, just use what we found
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13618 $as_echo "pre-installed" >&6; }
13619 fi
13620 else
13621 ok=yes
13622 case " ${configdirs} " in
13623 *" gcc "*) ;;
13624 *) ok=no ;;
13625 esac
13626
13627 if test $ok = yes; then
13628 # An in-tree tool is available and we can use it
13629 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13631 $as_echo "just compiled" >&6; }
13632 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13633 # We already found the complete path
13634 ac_dir=`dirname $CC_FOR_TARGET`
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13636 $as_echo "pre-installed in $ac_dir" >&6; }
13637 elif test "x$target" = "x$host"; then
13638 # We can use an host tool
13639 CC_FOR_TARGET='$(CC)'
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13641 $as_echo "host tool" >&6; }
13642 else
13643 # We need a cross tool
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13645 $as_echo "pre-installed" >&6; }
13646 fi
13647 fi
13648
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13650 $as_echo_n "checking where to find the target c++... " >&6; }
13651 if test "x${build}" != "x${host}" ; then
13652 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13653 # We already found the complete path
13654 ac_dir=`dirname $CXX_FOR_TARGET`
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13656 $as_echo "pre-installed in $ac_dir" >&6; }
13657 else
13658 # Canadian cross, just use what we found
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13660 $as_echo "pre-installed" >&6; }
13661 fi
13662 else
13663 ok=yes
13664 case " ${configdirs} " in
13665 *" gcc "*) ;;
13666 *) ok=no ;;
13667 esac
13668 case ,${enable_languages}, in
13669 *,c++,*) ;;
13670 *) ok=no ;;
13671 esac
13672 if test $ok = yes; then
13673 # An in-tree tool is available and we can use it
13674 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'
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13676 $as_echo "just compiled" >&6; }
13677 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13678 # We already found the complete path
13679 ac_dir=`dirname $CXX_FOR_TARGET`
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13681 $as_echo "pre-installed in $ac_dir" >&6; }
13682 elif test "x$target" = "x$host"; then
13683 # We can use an host tool
13684 CXX_FOR_TARGET='$(CXX)'
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13686 $as_echo "host tool" >&6; }
13687 else
13688 # We need a cross tool
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13690 $as_echo "pre-installed" >&6; }
13691 fi
13692 fi
13693
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13695 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13696 if test "x${build}" != "x${host}" ; then
13697 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13698 # We already found the complete path
13699 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13701 $as_echo "pre-installed in $ac_dir" >&6; }
13702 else
13703 # Canadian cross, just use what we found
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13705 $as_echo "pre-installed" >&6; }
13706 fi
13707 else
13708 ok=yes
13709 case " ${configdirs} " in
13710 *" gcc "*) ;;
13711 *) ok=no ;;
13712 esac
13713 case ,${enable_languages}, in
13714 *,c++,*) ;;
13715 *) ok=no ;;
13716 esac
13717 if test $ok = yes; then
13718 # An in-tree tool is available and we can use it
13719 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'
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13721 $as_echo "just compiled" >&6; }
13722 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13723 # We already found the complete path
13724 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13726 $as_echo "pre-installed in $ac_dir" >&6; }
13727 elif test "x$target" = "x$host"; then
13728 # We can use an host tool
13729 RAW_CXX_FOR_TARGET='$(CXX)'
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13731 $as_echo "host tool" >&6; }
13732 else
13733 # We need a cross tool
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13735 $as_echo "pre-installed" >&6; }
13736 fi
13737 fi
13738
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13740 $as_echo_n "checking where to find the target dlltool... " >&6; }
13741 if test "x${build}" != "x${host}" ; then
13742 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13743 # We already found the complete path
13744 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13746 $as_echo "pre-installed in $ac_dir" >&6; }
13747 else
13748 # Canadian cross, just use what we found
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13750 $as_echo "pre-installed" >&6; }
13751 fi
13752 else
13753 ok=yes
13754 case " ${configdirs} " in
13755 *" binutils "*) ;;
13756 *) ok=no ;;
13757 esac
13758
13759 if test $ok = yes; then
13760 # An in-tree tool is available and we can use it
13761 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13763 $as_echo "just compiled" >&6; }
13764 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13765 # We already found the complete path
13766 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13768 $as_echo "pre-installed in $ac_dir" >&6; }
13769 elif test "x$target" = "x$host"; then
13770 # We can use an host tool
13771 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13773 $as_echo "host tool" >&6; }
13774 else
13775 # We need a cross tool
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13777 $as_echo "pre-installed" >&6; }
13778 fi
13779 fi
13780
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13782 $as_echo_n "checking where to find the target gcc... " >&6; }
13783 if test "x${build}" != "x${host}" ; then
13784 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13785 # We already found the complete path
13786 ac_dir=`dirname $GCC_FOR_TARGET`
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13788 $as_echo "pre-installed in $ac_dir" >&6; }
13789 else
13790 # Canadian cross, just use what we found
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13792 $as_echo "pre-installed" >&6; }
13793 fi
13794 else
13795 ok=yes
13796 case " ${configdirs} " in
13797 *" gcc "*) ;;
13798 *) ok=no ;;
13799 esac
13800
13801 if test $ok = yes; then
13802 # An in-tree tool is available and we can use it
13803 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13805 $as_echo "just compiled" >&6; }
13806 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13807 # We already found the complete path
13808 ac_dir=`dirname $GCC_FOR_TARGET`
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13810 $as_echo "pre-installed in $ac_dir" >&6; }
13811 elif test "x$target" = "x$host"; then
13812 # We can use an host tool
13813 GCC_FOR_TARGET='$()'
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13815 $as_echo "host tool" >&6; }
13816 else
13817 # We need a cross tool
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13819 $as_echo "pre-installed" >&6; }
13820 fi
13821 fi
13822
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13824 $as_echo_n "checking where to find the target gcj... " >&6; }
13825 if test "x${build}" != "x${host}" ; then
13826 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13827 # We already found the complete path
13828 ac_dir=`dirname $GCJ_FOR_TARGET`
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13830 $as_echo "pre-installed in $ac_dir" >&6; }
13831 else
13832 # Canadian cross, just use what we found
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13834 $as_echo "pre-installed" >&6; }
13835 fi
13836 else
13837 ok=yes
13838 case " ${configdirs} " in
13839 *" gcc "*) ;;
13840 *) ok=no ;;
13841 esac
13842 case ,${enable_languages}, in
13843 *,java,*) ;;
13844 *) ok=no ;;
13845 esac
13846 if test $ok = yes; then
13847 # An in-tree tool is available and we can use it
13848 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13850 $as_echo "just compiled" >&6; }
13851 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13852 # We already found the complete path
13853 ac_dir=`dirname $GCJ_FOR_TARGET`
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13855 $as_echo "pre-installed in $ac_dir" >&6; }
13856 elif test "x$target" = "x$host"; then
13857 # We can use an host tool
13858 GCJ_FOR_TARGET='$(GCJ)'
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13860 $as_echo "host tool" >&6; }
13861 else
13862 # We need a cross tool
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13864 $as_echo "pre-installed" >&6; }
13865 fi
13866 fi
13867
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13869 $as_echo_n "checking where to find the target gfortran... " >&6; }
13870 if test "x${build}" != "x${host}" ; then
13871 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13872 # We already found the complete path
13873 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13875 $as_echo "pre-installed in $ac_dir" >&6; }
13876 else
13877 # Canadian cross, just use what we found
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13879 $as_echo "pre-installed" >&6; }
13880 fi
13881 else
13882 ok=yes
13883 case " ${configdirs} " in
13884 *" gcc "*) ;;
13885 *) ok=no ;;
13886 esac
13887 case ,${enable_languages}, in
13888 *,fortran,*) ;;
13889 *) ok=no ;;
13890 esac
13891 if test $ok = yes; then
13892 # An in-tree tool is available and we can use it
13893 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13895 $as_echo "just compiled" >&6; }
13896 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13897 # We already found the complete path
13898 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13900 $as_echo "pre-installed in $ac_dir" >&6; }
13901 elif test "x$target" = "x$host"; then
13902 # We can use an host tool
13903 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13905 $as_echo "host tool" >&6; }
13906 else
13907 # We need a cross tool
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13909 $as_echo "pre-installed" >&6; }
13910 fi
13911 fi
13912
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13914 $as_echo_n "checking where to find the target gccgo... " >&6; }
13915 if test "x${build}" != "x${host}" ; then
13916 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13917 # We already found the complete path
13918 ac_dir=`dirname $GOC_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 else
13922 # Canadian cross, just use what we found
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13924 $as_echo "pre-installed" >&6; }
13925 fi
13926 else
13927 ok=yes
13928 case " ${configdirs} " in
13929 *" gcc "*) ;;
13930 *) ok=no ;;
13931 esac
13932 case ,${enable_languages}, in
13933 *,go,*) ;;
13934 *) ok=no ;;
13935 esac
13936 if test $ok = yes; then
13937 # An in-tree tool is available and we can use it
13938 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13940 $as_echo "just compiled" >&6; }
13941 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13942 # We already found the complete path
13943 ac_dir=`dirname $GOC_FOR_TARGET`
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13945 $as_echo "pre-installed in $ac_dir" >&6; }
13946 elif test "x$target" = "x$host"; then
13947 # We can use an host tool
13948 GOC_FOR_TARGET='$(GOC)'
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13950 $as_echo "host tool" >&6; }
13951 else
13952 # We need a cross tool
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13954 $as_echo "pre-installed" >&6; }
13955 fi
13956 fi
13957
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13959 $as_echo_n "checking where to find the target ld... " >&6; }
13960 if test "x${build}" != "x${host}" ; then
13961 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13962 # We already found the complete path
13963 ac_dir=`dirname $LD_FOR_TARGET`
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13965 $as_echo "pre-installed in $ac_dir" >&6; }
13966 else
13967 # Canadian cross, just use what we found
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13969 $as_echo "pre-installed" >&6; }
13970 fi
13971 else
13972 ok=yes
13973 case " ${configdirs} " in
13974 *" ld "*) ;;
13975 *) ok=no ;;
13976 esac
13977
13978 if test $ok = yes; then
13979 # An in-tree tool is available and we can use it
13980 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13982 $as_echo "just compiled" >&6; }
13983 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13984 # We already found the complete path
13985 ac_dir=`dirname $LD_FOR_TARGET`
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13987 $as_echo "pre-installed in $ac_dir" >&6; }
13988 elif test "x$target" = "x$host"; then
13989 # We can use an host tool
13990 LD_FOR_TARGET='$(LD)'
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13992 $as_echo "host tool" >&6; }
13993 else
13994 # We need a cross tool
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13996 $as_echo "pre-installed" >&6; }
13997 fi
13998 fi
13999
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14001 $as_echo_n "checking where to find the target lipo... " >&6; }
14002 if test "x${build}" != "x${host}" ; then
14003 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14004 # We already found the complete path
14005 ac_dir=`dirname $LIPO_FOR_TARGET`
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14007 $as_echo "pre-installed in $ac_dir" >&6; }
14008 else
14009 # Canadian cross, just use what we found
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14011 $as_echo "pre-installed" >&6; }
14012 fi
14013 else
14014 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14015 # We already found the complete path
14016 ac_dir=`dirname $LIPO_FOR_TARGET`
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14018 $as_echo "pre-installed in $ac_dir" >&6; }
14019 elif test "x$target" = "x$host"; then
14020 # We can use an host tool
14021 LIPO_FOR_TARGET='$(LIPO)'
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14023 $as_echo "host tool" >&6; }
14024 else
14025 # We need a cross tool
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14027 $as_echo "pre-installed" >&6; }
14028 fi
14029 fi
14030
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14032 $as_echo_n "checking where to find the target nm... " >&6; }
14033 if test "x${build}" != "x${host}" ; then
14034 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14035 # We already found the complete path
14036 ac_dir=`dirname $NM_FOR_TARGET`
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14038 $as_echo "pre-installed in $ac_dir" >&6; }
14039 else
14040 # Canadian cross, just use what we found
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14042 $as_echo "pre-installed" >&6; }
14043 fi
14044 else
14045 ok=yes
14046 case " ${configdirs} " in
14047 *" binutils "*) ;;
14048 *) ok=no ;;
14049 esac
14050
14051 if test $ok = yes; then
14052 # An in-tree tool is available and we can use it
14053 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14055 $as_echo "just compiled" >&6; }
14056 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14057 # We already found the complete path
14058 ac_dir=`dirname $NM_FOR_TARGET`
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14060 $as_echo "pre-installed in $ac_dir" >&6; }
14061 elif test "x$target" = "x$host"; then
14062 # We can use an host tool
14063 NM_FOR_TARGET='$(NM)'
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14065 $as_echo "host tool" >&6; }
14066 else
14067 # We need a cross tool
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14069 $as_echo "pre-installed" >&6; }
14070 fi
14071 fi
14072
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14074 $as_echo_n "checking where to find the target objdump... " >&6; }
14075 if test "x${build}" != "x${host}" ; then
14076 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14077 # We already found the complete path
14078 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14080 $as_echo "pre-installed in $ac_dir" >&6; }
14081 else
14082 # Canadian cross, just use what we found
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14084 $as_echo "pre-installed" >&6; }
14085 fi
14086 else
14087 ok=yes
14088 case " ${configdirs} " in
14089 *" binutils "*) ;;
14090 *) ok=no ;;
14091 esac
14092
14093 if test $ok = yes; then
14094 # An in-tree tool is available and we can use it
14095 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14097 $as_echo "just compiled" >&6; }
14098 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14099 # We already found the complete path
14100 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14102 $as_echo "pre-installed in $ac_dir" >&6; }
14103 elif test "x$target" = "x$host"; then
14104 # We can use an host tool
14105 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14107 $as_echo "host tool" >&6; }
14108 else
14109 # We need a cross tool
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14111 $as_echo "pre-installed" >&6; }
14112 fi
14113 fi
14114
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14116 $as_echo_n "checking where to find the target ranlib... " >&6; }
14117 if test "x${build}" != "x${host}" ; then
14118 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14119 # We already found the complete path
14120 ac_dir=`dirname $RANLIB_FOR_TARGET`
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14122 $as_echo "pre-installed in $ac_dir" >&6; }
14123 else
14124 # Canadian cross, just use what we found
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14126 $as_echo "pre-installed" >&6; }
14127 fi
14128 else
14129 ok=yes
14130 case " ${configdirs} " in
14131 *" binutils "*) ;;
14132 *) ok=no ;;
14133 esac
14134
14135 if test $ok = yes; then
14136 # An in-tree tool is available and we can use it
14137 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14139 $as_echo "just compiled" >&6; }
14140 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14141 # We already found the complete path
14142 ac_dir=`dirname $RANLIB_FOR_TARGET`
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14144 $as_echo "pre-installed in $ac_dir" >&6; }
14145 elif test "x$target" = "x$host"; then
14146 # We can use an host tool
14147 RANLIB_FOR_TARGET='$(RANLIB)'
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14149 $as_echo "host tool" >&6; }
14150 else
14151 # We need a cross tool
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14153 $as_echo "pre-installed" >&6; }
14154 fi
14155 fi
14156
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14158 $as_echo_n "checking where to find the target readelf... " >&6; }
14159 if test "x${build}" != "x${host}" ; then
14160 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14161 # We already found the complete path
14162 ac_dir=`dirname $READELF_FOR_TARGET`
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14164 $as_echo "pre-installed in $ac_dir" >&6; }
14165 else
14166 # Canadian cross, just use what we found
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14168 $as_echo "pre-installed" >&6; }
14169 fi
14170 else
14171 ok=yes
14172 case " ${configdirs} " in
14173 *" binutils "*) ;;
14174 *) ok=no ;;
14175 esac
14176
14177 if test $ok = yes; then
14178 # An in-tree tool is available and we can use it
14179 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14181 $as_echo "just compiled" >&6; }
14182 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14183 # We already found the complete path
14184 ac_dir=`dirname $READELF_FOR_TARGET`
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14186 $as_echo "pre-installed in $ac_dir" >&6; }
14187 elif test "x$target" = "x$host"; then
14188 # We can use an host tool
14189 READELF_FOR_TARGET='$(READELF)'
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14191 $as_echo "host tool" >&6; }
14192 else
14193 # We need a cross tool
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14195 $as_echo "pre-installed" >&6; }
14196 fi
14197 fi
14198
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14200 $as_echo_n "checking where to find the target strip... " >&6; }
14201 if test "x${build}" != "x${host}" ; then
14202 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14203 # We already found the complete path
14204 ac_dir=`dirname $STRIP_FOR_TARGET`
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14206 $as_echo "pre-installed in $ac_dir" >&6; }
14207 else
14208 # Canadian cross, just use what we found
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14210 $as_echo "pre-installed" >&6; }
14211 fi
14212 else
14213 ok=yes
14214 case " ${configdirs} " in
14215 *" binutils "*) ;;
14216 *) ok=no ;;
14217 esac
14218
14219 if test $ok = yes; then
14220 # An in-tree tool is available and we can use it
14221 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14223 $as_echo "just compiled" >&6; }
14224 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14225 # We already found the complete path
14226 ac_dir=`dirname $STRIP_FOR_TARGET`
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14228 $as_echo "pre-installed in $ac_dir" >&6; }
14229 elif test "x$target" = "x$host"; then
14230 # We can use an host tool
14231 STRIP_FOR_TARGET='$(STRIP)'
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14233 $as_echo "host tool" >&6; }
14234 else
14235 # We need a cross tool
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14237 $as_echo "pre-installed" >&6; }
14238 fi
14239 fi
14240
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14242 $as_echo_n "checking where to find the target windres... " >&6; }
14243 if test "x${build}" != "x${host}" ; then
14244 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14245 # We already found the complete path
14246 ac_dir=`dirname $WINDRES_FOR_TARGET`
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14248 $as_echo "pre-installed in $ac_dir" >&6; }
14249 else
14250 # Canadian cross, just use what we found
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14252 $as_echo "pre-installed" >&6; }
14253 fi
14254 else
14255 ok=yes
14256 case " ${configdirs} " in
14257 *" binutils "*) ;;
14258 *) ok=no ;;
14259 esac
14260
14261 if test $ok = yes; then
14262 # An in-tree tool is available and we can use it
14263 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14265 $as_echo "just compiled" >&6; }
14266 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14267 # We already found the complete path
14268 ac_dir=`dirname $WINDRES_FOR_TARGET`
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14270 $as_echo "pre-installed in $ac_dir" >&6; }
14271 elif test "x$target" = "x$host"; then
14272 # We can use an host tool
14273 WINDRES_FOR_TARGET='$(WINDRES)'
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14275 $as_echo "host tool" >&6; }
14276 else
14277 # We need a cross tool
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14279 $as_echo "pre-installed" >&6; }
14280 fi
14281 fi
14282
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14284 $as_echo_n "checking where to find the target windmc... " >&6; }
14285 if test "x${build}" != "x${host}" ; then
14286 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14287 # We already found the complete path
14288 ac_dir=`dirname $WINDMC_FOR_TARGET`
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14290 $as_echo "pre-installed in $ac_dir" >&6; }
14291 else
14292 # Canadian cross, just use what we found
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14294 $as_echo "pre-installed" >&6; }
14295 fi
14296 else
14297 ok=yes
14298 case " ${configdirs} " in
14299 *" binutils "*) ;;
14300 *) ok=no ;;
14301 esac
14302
14303 if test $ok = yes; then
14304 # An in-tree tool is available and we can use it
14305 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14307 $as_echo "just compiled" >&6; }
14308 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14309 # We already found the complete path
14310 ac_dir=`dirname $WINDMC_FOR_TARGET`
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14312 $as_echo "pre-installed in $ac_dir" >&6; }
14313 elif test "x$target" = "x$host"; then
14314 # We can use an host tool
14315 WINDMC_FOR_TARGET='$(WINDMC)'
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14317 $as_echo "host tool" >&6; }
14318 else
14319 # We need a cross tool
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14321 $as_echo "pre-installed" >&6; }
14322 fi
14323 fi
14324
14325
14326
14327
14328
14329 # Certain tools may need extra flags.
14330 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14331 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14332 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14333
14334 # When building target libraries, except in a Canadian cross, we use
14335 # the same toolchain as the compiler we just built.
14336 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14337 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14338 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14339 if test $host = $build; then
14340 case " $configdirs " in
14341 *" gcc "*)
14342 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14343 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14344 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14345 ;;
14346 esac
14347 fi
14348
14349
14350
14351
14352
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14354 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14355 # Check whether --enable-maintainer-mode was given.
14356 if test "${enable_maintainer_mode+set}" = set; then :
14357 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14358 else
14359 USE_MAINTAINER_MODE=no
14360 fi
14361
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14363 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14364
14365
14366 if test "$USE_MAINTAINER_MODE" = yes; then
14367 MAINTAINER_MODE_TRUE=
14368 MAINTAINER_MODE_FALSE='#'
14369 else
14370 MAINTAINER_MODE_TRUE='#'
14371 MAINTAINER_MODE_FALSE=
14372 fi
14373 MAINT=$MAINTAINER_MODE_TRUE
14374
14375 # ---------------------
14376 # GCC bootstrap support
14377 # ---------------------
14378
14379 # Stage specific cflags for build.
14380 stage1_cflags="-g"
14381 case $build in
14382 vax-*-*)
14383 case ${GCC} in
14384 yes) stage1_cflags="-g -Wa,-J" ;;
14385 *) stage1_cflags="-g -J" ;;
14386 esac ;;
14387 esac
14388
14389 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14390 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14391 saved_CFLAGS="$CFLAGS"
14392
14393 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14394 CFLAGS="$CFLAGS -fkeep-inline-functions"
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14396 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14399
14400 #if (__GNUC__ < 3) \
14401 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14402 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14403 #error http://gcc.gnu.org/PR29382
14404 #endif
14405
14406 int
14407 main ()
14408 {
14409
14410 ;
14411 return 0;
14412 }
14413 _ACEOF
14414 if ac_fn_c_try_compile "$LINENO"; then :
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14416 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14417 else
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419 $as_echo "no" >&6; }
14420 fi
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14422
14423 CFLAGS="$saved_CFLAGS"
14424 fi
14425
14426
14427
14428 # Enable --enable-checking in stage1 of the compiler.
14429 # Check whether --enable-stage1-checking was given.
14430 if test "${enable_stage1_checking+set}" = set; then :
14431 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14432 else
14433 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14434 stage1_checking=--enable-checking=yes,types
14435 else
14436 stage1_checking=--enable-checking=$enable_checking,types
14437 fi
14438 fi
14439
14440
14441
14442 # Enable -Werror in bootstrap stage2 and later.
14443 # Check whether --enable-werror was given.
14444 if test "${enable_werror+set}" = set; then :
14445 enableval=$enable_werror;
14446 else
14447 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14448 enable_werror=yes
14449 else
14450 enable_werror=no
14451 fi
14452 fi
14453
14454 case ${enable_werror} in
14455 yes) stage2_werror_flag="--enable-werror-always" ;;
14456 *) stage2_werror_flag="" ;;
14457 esac
14458
14459
14460 # If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass
14461 # --enable-build-with-cxx after stage1.
14462 if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
14463 POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx
14464 else
14465 POSTSTAGE1_CONFIGURE_FLAGS=
14466 fi
14467
14468
14469 # Specify what files to not compare during bootstrap.
14470
14471 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14472 case "$target" in
14473 hppa*64*-*-hpux*) ;;
14474 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14475 esac
14476 case " $configdirs " in
14477 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14478 esac
14479
14480
14481 ac_config_files="$ac_config_files Makefile"
14482
14483 cat >confcache <<\_ACEOF
14484 # This file is a shell script that caches the results of configure
14485 # tests run on this system so they can be shared between configure
14486 # scripts and configure runs, see configure's option --config-cache.
14487 # It is not useful on other systems. If it contains results you don't
14488 # want to keep, you may remove or edit it.
14489 #
14490 # config.status only pays attention to the cache file if you give it
14491 # the --recheck option to rerun configure.
14492 #
14493 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14494 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14495 # following values.
14496
14497 _ACEOF
14498
14499 # The following way of writing the cache mishandles newlines in values,
14500 # but we know of no workaround that is simple, portable, and efficient.
14501 # So, we kill variables containing newlines.
14502 # Ultrix sh set writes to stderr and can't be redirected directly,
14503 # and sets the high bit in the cache file unless we assign to the vars.
14504 (
14505 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14506 eval ac_val=\$$ac_var
14507 case $ac_val in #(
14508 *${as_nl}*)
14509 case $ac_var in #(
14510 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14511 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14512 esac
14513 case $ac_var in #(
14514 _ | IFS | as_nl) ;; #(
14515 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14516 *) { eval $ac_var=; unset $ac_var;} ;;
14517 esac ;;
14518 esac
14519 done
14520
14521 (set) 2>&1 |
14522 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14523 *${as_nl}ac_space=\ *)
14524 # `set' does not quote correctly, so add quotes: double-quote
14525 # substitution turns \\\\ into \\, and sed turns \\ into \.
14526 sed -n \
14527 "s/'/'\\\\''/g;
14528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14529 ;; #(
14530 *)
14531 # `set' quotes correctly as required by POSIX, so do not add quotes.
14532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14533 ;;
14534 esac |
14535 sort
14536 ) |
14537 sed '
14538 /^ac_cv_env_/b end
14539 t clear
14540 :clear
14541 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14542 t end
14543 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14544 :end' >>confcache
14545 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14546 if test -w "$cache_file"; then
14547 test "x$cache_file" != "x/dev/null" &&
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14549 $as_echo "$as_me: updating cache $cache_file" >&6;}
14550 cat confcache >$cache_file
14551 else
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14553 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14554 fi
14555 fi
14556 rm -f confcache
14557
14558 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14559 # Let make expand exec_prefix.
14560 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14561
14562 # Transform confdefs.h into DEFS.
14563 # Protect against shell expansion while executing Makefile rules.
14564 # Protect against Makefile macro expansion.
14565 #
14566 # If the first sed substitution is executed (which looks for macros that
14567 # take arguments), then branch to the quote section. Otherwise,
14568 # look for a macro that doesn't take arguments.
14569 ac_script='
14570 :mline
14571 /\\$/{
14572 N
14573 s,\\\n,,
14574 b mline
14575 }
14576 t clear
14577 :clear
14578 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14579 t quote
14580 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14581 t quote
14582 b any
14583 :quote
14584 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14585 s/\[/\\&/g
14586 s/\]/\\&/g
14587 s/\$/$$/g
14588 H
14589 :any
14590 ${
14591 g
14592 s/^\n//
14593 s/\n/ /g
14594 p
14595 }
14596 '
14597 DEFS=`sed -n "$ac_script" confdefs.h`
14598
14599
14600 ac_libobjs=
14601 ac_ltlibobjs=
14602 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14603 # 1. Remove the extension, and $U if already installed.
14604 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14605 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14606 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14607 # will be set to the directory where LIBOBJS objects are built.
14608 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14609 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14610 done
14611 LIBOBJS=$ac_libobjs
14612
14613 LTLIBOBJS=$ac_ltlibobjs
14614
14615
14616
14617 : ${CONFIG_STATUS=./config.status}
14618 ac_write_fail=0
14619 ac_clean_files_save=$ac_clean_files
14620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14622 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14623 as_write_fail=0
14624 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14625 #! $SHELL
14626 # Generated by $as_me.
14627 # Run this file to recreate the current configuration.
14628 # Compiler output produced by configure, useful for debugging
14629 # configure, is in config.log if it exists.
14630
14631 debug=false
14632 ac_cs_recheck=false
14633 ac_cs_silent=false
14634
14635 SHELL=\${CONFIG_SHELL-$SHELL}
14636 export SHELL
14637 _ASEOF
14638 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14639 ## -------------------- ##
14640 ## M4sh Initialization. ##
14641 ## -------------------- ##
14642
14643 # Be more Bourne compatible
14644 DUALCASE=1; export DUALCASE # for MKS sh
14645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14646 emulate sh
14647 NULLCMD=:
14648 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14649 # is contrary to our usage. Disable this feature.
14650 alias -g '${1+"$@"}'='"$@"'
14651 setopt NO_GLOB_SUBST
14652 else
14653 case `(set -o) 2>/dev/null` in #(
14654 *posix*) :
14655 set -o posix ;; #(
14656 *) :
14657 ;;
14658 esac
14659 fi
14660
14661
14662 as_nl='
14663 '
14664 export as_nl
14665 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14666 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14668 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14669 # Prefer a ksh shell builtin over an external printf program on Solaris,
14670 # but without wasting forks for bash or zsh.
14671 if test -z "$BASH_VERSION$ZSH_VERSION" \
14672 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14673 as_echo='print -r --'
14674 as_echo_n='print -rn --'
14675 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14676 as_echo='printf %s\n'
14677 as_echo_n='printf %s'
14678 else
14679 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14680 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14681 as_echo_n='/usr/ucb/echo -n'
14682 else
14683 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14684 as_echo_n_body='eval
14685 arg=$1;
14686 case $arg in #(
14687 *"$as_nl"*)
14688 expr "X$arg" : "X\\(.*\\)$as_nl";
14689 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14690 esac;
14691 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14692 '
14693 export as_echo_n_body
14694 as_echo_n='sh -c $as_echo_n_body as_echo'
14695 fi
14696 export as_echo_body
14697 as_echo='sh -c $as_echo_body as_echo'
14698 fi
14699
14700 # The user is always right.
14701 if test "${PATH_SEPARATOR+set}" != set; then
14702 PATH_SEPARATOR=:
14703 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14704 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14705 PATH_SEPARATOR=';'
14706 }
14707 fi
14708
14709
14710 # IFS
14711 # We need space, tab and new line, in precisely that order. Quoting is
14712 # there to prevent editors from complaining about space-tab.
14713 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14714 # splitting by setting IFS to empty value.)
14715 IFS=" "" $as_nl"
14716
14717 # Find who we are. Look in the path if we contain no directory separator.
14718 case $0 in #((
14719 *[\\/]* ) as_myself=$0 ;;
14720 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14721 for as_dir in $PATH
14722 do
14723 IFS=$as_save_IFS
14724 test -z "$as_dir" && as_dir=.
14725 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14726 done
14727 IFS=$as_save_IFS
14728
14729 ;;
14730 esac
14731 # We did not find ourselves, most probably we were run as `sh COMMAND'
14732 # in which case we are not to be found in the path.
14733 if test "x$as_myself" = x; then
14734 as_myself=$0
14735 fi
14736 if test ! -f "$as_myself"; then
14737 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14738 exit 1
14739 fi
14740
14741 # Unset variables that we do not need and which cause bugs (e.g. in
14742 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14743 # suppresses any "Segmentation fault" message there. '((' could
14744 # trigger a bug in pdksh 5.2.14.
14745 for as_var in BASH_ENV ENV MAIL MAILPATH
14746 do eval test x\${$as_var+set} = xset \
14747 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14748 done
14749 PS1='$ '
14750 PS2='> '
14751 PS4='+ '
14752
14753 # NLS nuisances.
14754 LC_ALL=C
14755 export LC_ALL
14756 LANGUAGE=C
14757 export LANGUAGE
14758
14759 # CDPATH.
14760 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14761
14762
14763 # as_fn_error ERROR [LINENO LOG_FD]
14764 # ---------------------------------
14765 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14766 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14767 # script with status $?, using 1 if that was 0.
14768 as_fn_error ()
14769 {
14770 as_status=$?; test $as_status -eq 0 && as_status=1
14771 if test "$3"; then
14772 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14773 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14774 fi
14775 $as_echo "$as_me: error: $1" >&2
14776 as_fn_exit $as_status
14777 } # as_fn_error
14778
14779
14780 # as_fn_set_status STATUS
14781 # -----------------------
14782 # Set $? to STATUS, without forking.
14783 as_fn_set_status ()
14784 {
14785 return $1
14786 } # as_fn_set_status
14787
14788 # as_fn_exit STATUS
14789 # -----------------
14790 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14791 as_fn_exit ()
14792 {
14793 set +e
14794 as_fn_set_status $1
14795 exit $1
14796 } # as_fn_exit
14797
14798 # as_fn_unset VAR
14799 # ---------------
14800 # Portably unset VAR.
14801 as_fn_unset ()
14802 {
14803 { eval $1=; unset $1;}
14804 }
14805 as_unset=as_fn_unset
14806 # as_fn_append VAR VALUE
14807 # ----------------------
14808 # Append the text in VALUE to the end of the definition contained in VAR. Take
14809 # advantage of any shell optimizations that allow amortized linear growth over
14810 # repeated appends, instead of the typical quadratic growth present in naive
14811 # implementations.
14812 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14813 eval 'as_fn_append ()
14814 {
14815 eval $1+=\$2
14816 }'
14817 else
14818 as_fn_append ()
14819 {
14820 eval $1=\$$1\$2
14821 }
14822 fi # as_fn_append
14823
14824 # as_fn_arith ARG...
14825 # ------------------
14826 # Perform arithmetic evaluation on the ARGs, and store the result in the
14827 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14828 # must be portable across $(()) and expr.
14829 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14830 eval 'as_fn_arith ()
14831 {
14832 as_val=$(( $* ))
14833 }'
14834 else
14835 as_fn_arith ()
14836 {
14837 as_val=`expr "$@" || test $? -eq 1`
14838 }
14839 fi # as_fn_arith
14840
14841
14842 if expr a : '\(a\)' >/dev/null 2>&1 &&
14843 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14844 as_expr=expr
14845 else
14846 as_expr=false
14847 fi
14848
14849 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14850 as_basename=basename
14851 else
14852 as_basename=false
14853 fi
14854
14855 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14856 as_dirname=dirname
14857 else
14858 as_dirname=false
14859 fi
14860
14861 as_me=`$as_basename -- "$0" ||
14862 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14863 X"$0" : 'X\(//\)$' \| \
14864 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14865 $as_echo X/"$0" |
14866 sed '/^.*\/\([^/][^/]*\)\/*$/{
14867 s//\1/
14868 q
14869 }
14870 /^X\/\(\/\/\)$/{
14871 s//\1/
14872 q
14873 }
14874 /^X\/\(\/\).*/{
14875 s//\1/
14876 q
14877 }
14878 s/.*/./; q'`
14879
14880 # Avoid depending upon Character Ranges.
14881 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14882 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14883 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14884 as_cr_digits='0123456789'
14885 as_cr_alnum=$as_cr_Letters$as_cr_digits
14886
14887 ECHO_C= ECHO_N= ECHO_T=
14888 case `echo -n x` in #(((((
14889 -n*)
14890 case `echo 'xy\c'` in
14891 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14892 xy) ECHO_C='\c';;
14893 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14894 ECHO_T=' ';;
14895 esac;;
14896 *)
14897 ECHO_N='-n';;
14898 esac
14899
14900 rm -f conf$$ conf$$.exe conf$$.file
14901 if test -d conf$$.dir; then
14902 rm -f conf$$.dir/conf$$.file
14903 else
14904 rm -f conf$$.dir
14905 mkdir conf$$.dir 2>/dev/null
14906 fi
14907 if (echo >conf$$.file) 2>/dev/null; then
14908 if ln -s conf$$.file conf$$ 2>/dev/null; then
14909 as_ln_s='ln -s'
14910 # ... but there are two gotchas:
14911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14913 # In both cases, we have to default to `cp -p'.
14914 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14915 as_ln_s='cp -p'
14916 elif ln conf$$.file conf$$ 2>/dev/null; then
14917 as_ln_s=ln
14918 else
14919 as_ln_s='cp -p'
14920 fi
14921 else
14922 as_ln_s='cp -p'
14923 fi
14924 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14925 rmdir conf$$.dir 2>/dev/null
14926
14927
14928 # as_fn_mkdir_p
14929 # -------------
14930 # Create "$as_dir" as a directory, including parents if necessary.
14931 as_fn_mkdir_p ()
14932 {
14933
14934 case $as_dir in #(
14935 -*) as_dir=./$as_dir;;
14936 esac
14937 test -d "$as_dir" || eval $as_mkdir_p || {
14938 as_dirs=
14939 while :; do
14940 case $as_dir in #(
14941 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14942 *) as_qdir=$as_dir;;
14943 esac
14944 as_dirs="'$as_qdir' $as_dirs"
14945 as_dir=`$as_dirname -- "$as_dir" ||
14946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14947 X"$as_dir" : 'X\(//\)[^/]' \| \
14948 X"$as_dir" : 'X\(//\)$' \| \
14949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14950 $as_echo X"$as_dir" |
14951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14952 s//\1/
14953 q
14954 }
14955 /^X\(\/\/\)[^/].*/{
14956 s//\1/
14957 q
14958 }
14959 /^X\(\/\/\)$/{
14960 s//\1/
14961 q
14962 }
14963 /^X\(\/\).*/{
14964 s//\1/
14965 q
14966 }
14967 s/.*/./; q'`
14968 test -d "$as_dir" && break
14969 done
14970 test -z "$as_dirs" || eval "mkdir $as_dirs"
14971 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14972
14973
14974 } # as_fn_mkdir_p
14975 if mkdir -p . 2>/dev/null; then
14976 as_mkdir_p='mkdir -p "$as_dir"'
14977 else
14978 test -d ./-p && rmdir ./-p
14979 as_mkdir_p=false
14980 fi
14981
14982 if test -x / >/dev/null 2>&1; then
14983 as_test_x='test -x'
14984 else
14985 if ls -dL / >/dev/null 2>&1; then
14986 as_ls_L_option=L
14987 else
14988 as_ls_L_option=
14989 fi
14990 as_test_x='
14991 eval sh -c '\''
14992 if test -d "$1"; then
14993 test -d "$1/.";
14994 else
14995 case $1 in #(
14996 -*)set "./$1";;
14997 esac;
14998 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14999 ???[sx]*):;;*)false;;esac;fi
15000 '\'' sh
15001 '
15002 fi
15003 as_executable_p=$as_test_x
15004
15005 # Sed expression to map a string onto a valid CPP name.
15006 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15007
15008 # Sed expression to map a string onto a valid variable name.
15009 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15010
15011
15012 exec 6>&1
15013 ## ----------------------------------- ##
15014 ## Main body of $CONFIG_STATUS script. ##
15015 ## ----------------------------------- ##
15016 _ASEOF
15017 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15018
15019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15020 # Save the log message, to keep $0 and so on meaningful, and to
15021 # report actual input values of CONFIG_FILES etc. instead of their
15022 # values after options handling.
15023 ac_log="
15024 This file was extended by $as_me, which was
15025 generated by GNU Autoconf 2.64. Invocation command line was
15026
15027 CONFIG_FILES = $CONFIG_FILES
15028 CONFIG_HEADERS = $CONFIG_HEADERS
15029 CONFIG_LINKS = $CONFIG_LINKS
15030 CONFIG_COMMANDS = $CONFIG_COMMANDS
15031 $ $0 $@
15032
15033 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15034 "
15035
15036 _ACEOF
15037
15038 case $ac_config_files in *"
15039 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15040 esac
15041
15042
15043
15044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15045 # Files that config.status was made for.
15046 config_files="$ac_config_files"
15047
15048 _ACEOF
15049
15050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15051 ac_cs_usage="\
15052 \`$as_me' instantiates files and other configuration actions
15053 from templates according to the current configuration. Unless the files
15054 and actions are specified as TAGs, all are instantiated by default.
15055
15056 Usage: $0 [OPTION]... [TAG]...
15057
15058 -h, --help print this help, then exit
15059 -V, --version print version number and configuration settings, then exit
15060 -q, --quiet, --silent
15061 do not print progress messages
15062 -d, --debug don't remove temporary files
15063 --recheck update $as_me by reconfiguring in the same conditions
15064 --file=FILE[:TEMPLATE]
15065 instantiate the configuration file FILE
15066
15067 Configuration files:
15068 $config_files
15069
15070 Report bugs to the package provider."
15071
15072 _ACEOF
15073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15074 ac_cs_version="\\
15075 config.status
15076 configured by $0, generated by GNU Autoconf 2.64,
15077 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15078
15079 Copyright (C) 2009 Free Software Foundation, Inc.
15080 This config.status script is free software; the Free Software Foundation
15081 gives unlimited permission to copy, distribute and modify it."
15082
15083 ac_pwd='$ac_pwd'
15084 srcdir='$srcdir'
15085 INSTALL='$INSTALL'
15086 AWK='$AWK'
15087 test -n "\$AWK" || AWK=awk
15088 _ACEOF
15089
15090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15091 # The default lists apply if the user does not specify any file.
15092 ac_need_defaults=:
15093 while test $# != 0
15094 do
15095 case $1 in
15096 --*=*)
15097 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15098 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15099 ac_shift=:
15100 ;;
15101 *)
15102 ac_option=$1
15103 ac_optarg=$2
15104 ac_shift=shift
15105 ;;
15106 esac
15107
15108 case $ac_option in
15109 # Handling of the options.
15110 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15111 ac_cs_recheck=: ;;
15112 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15113 $as_echo "$ac_cs_version"; exit ;;
15114 --debug | --debu | --deb | --de | --d | -d )
15115 debug=: ;;
15116 --file | --fil | --fi | --f )
15117 $ac_shift
15118 case $ac_optarg in
15119 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15120 esac
15121 as_fn_append CONFIG_FILES " '$ac_optarg'"
15122 ac_need_defaults=false;;
15123 --he | --h | --help | --hel | -h )
15124 $as_echo "$ac_cs_usage"; exit ;;
15125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15126 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15127 ac_cs_silent=: ;;
15128
15129 # This is an error.
15130 -*) as_fn_error "unrecognized option: \`$1'
15131 Try \`$0 --help' for more information." ;;
15132
15133 *) as_fn_append ac_config_targets " $1"
15134 ac_need_defaults=false ;;
15135
15136 esac
15137 shift
15138 done
15139
15140 ac_configure_extra_args=
15141
15142 if $ac_cs_silent; then
15143 exec 6>/dev/null
15144 ac_configure_extra_args="$ac_configure_extra_args --silent"
15145 fi
15146
15147 _ACEOF
15148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15149 if \$ac_cs_recheck; then
15150 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15151 shift
15152 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15153 CONFIG_SHELL='$SHELL'
15154 export CONFIG_SHELL
15155 exec "\$@"
15156 fi
15157
15158 _ACEOF
15159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15160 exec 5>>config.log
15161 {
15162 echo
15163 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15164 ## Running $as_me. ##
15165 _ASBOX
15166 $as_echo "$ac_log"
15167 } >&5
15168
15169 _ACEOF
15170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15171 #
15172 # INIT-COMMANDS
15173 #
15174 extrasub_build="$extrasub_build"
15175 extrasub_host="$extrasub_host"
15176 extrasub_target="$extrasub_target"
15177
15178 _ACEOF
15179
15180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15181
15182 # Handling of arguments.
15183 for ac_config_target in $ac_config_targets
15184 do
15185 case $ac_config_target in
15186 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15187
15188 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15189 esac
15190 done
15191
15192
15193 # If the user did not use the arguments to specify the items to instantiate,
15194 # then the envvar interface is used. Set only those that are not.
15195 # We use the long form for the default assignment because of an extremely
15196 # bizarre bug on SunOS 4.1.3.
15197 if $ac_need_defaults; then
15198 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15199 fi
15200
15201 # Have a temporary directory for convenience. Make it in the build tree
15202 # simply because there is no reason against having it here, and in addition,
15203 # creating and moving files from /tmp can sometimes cause problems.
15204 # Hook for its removal unless debugging.
15205 # Note that there is a small window in which the directory will not be cleaned:
15206 # after its creation but before its name has been assigned to `$tmp'.
15207 $debug ||
15208 {
15209 tmp=
15210 trap 'exit_status=$?
15211 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15212 ' 0
15213 trap 'as_fn_exit 1' 1 2 13 15
15214 }
15215 # Create a (secure) tmp directory for tmp files.
15216
15217 {
15218 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15219 test -n "$tmp" && test -d "$tmp"
15220 } ||
15221 {
15222 tmp=./conf$$-$RANDOM
15223 (umask 077 && mkdir "$tmp")
15224 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15225
15226 # Set up the scripts for CONFIG_FILES section.
15227 # No need to generate them if there are no CONFIG_FILES.
15228 # This happens for instance with `./config.status config.h'.
15229 if test -n "$CONFIG_FILES"; then
15230
15231 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15232 ac_cs_awk_getline=:
15233 ac_cs_awk_pipe_init=
15234 ac_cs_awk_read_file='
15235 while ((getline aline < (F[key])) > 0)
15236 print(aline)
15237 close(F[key])'
15238 ac_cs_awk_pipe_fini=
15239 else
15240 ac_cs_awk_getline=false
15241 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15242 ac_cs_awk_read_file='
15243 print "|#_!!_#|"
15244 print "cat " F[key] " &&"
15245 '$ac_cs_awk_pipe_init
15246 # The final `:' finishes the AND list.
15247 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15248 fi
15249 ac_cr=`echo X | tr X '\015'`
15250 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15251 # But we know of no other shell where ac_cr would be empty at this
15252 # point, so we can use a bashism as a fallback.
15253 if test "x$ac_cr" = x; then
15254 eval ac_cr=\$\'\\r\'
15255 fi
15256 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15257 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15258 ac_cs_awk_cr='\r'
15259 else
15260 ac_cs_awk_cr=$ac_cr
15261 fi
15262
15263 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15264 _ACEOF
15265
15266 # Create commands to substitute file output variables.
15267 {
15268 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15269 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15270 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15271 echo "_ACAWK" &&
15272 echo "_ACEOF"
15273 } >conf$$files.sh &&
15274 . ./conf$$files.sh ||
15275 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15276 rm -f conf$$files.sh
15277
15278 {
15279 echo "cat >conf$$subs.awk <<_ACEOF" &&
15280 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15281 echo "_ACEOF"
15282 } >conf$$subs.sh ||
15283 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15284 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15285 ac_delim='%!_!# '
15286 for ac_last_try in false false false false false :; do
15287 . ./conf$$subs.sh ||
15288 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15289
15290 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15291 if test $ac_delim_n = $ac_delim_num; then
15292 break
15293 elif $ac_last_try; then
15294 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15295 else
15296 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15297 fi
15298 done
15299 rm -f conf$$subs.sh
15300
15301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15302 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15303 _ACEOF
15304 sed -n '
15305 h
15306 s/^/S["/; s/!.*/"]=/
15307 p
15308 g
15309 s/^[^!]*!//
15310 :repl
15311 t repl
15312 s/'"$ac_delim"'$//
15313 t delim
15314 :nl
15315 h
15316 s/\(.\{148\}\).*/\1/
15317 t more1
15318 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15319 p
15320 n
15321 b repl
15322 :more1
15323 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15324 p
15325 g
15326 s/.\{148\}//
15327 t nl
15328 :delim
15329 h
15330 s/\(.\{148\}\).*/\1/
15331 t more2
15332 s/["\\]/\\&/g; s/^/"/; s/$/"/
15333 p
15334 b
15335 :more2
15336 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15337 p
15338 g
15339 s/.\{148\}//
15340 t delim
15341 ' <conf$$subs.awk | sed '
15342 /^[^""]/{
15343 N
15344 s/\n//
15345 }
15346 ' >>$CONFIG_STATUS || ac_write_fail=1
15347 rm -f conf$$subs.awk
15348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15349 _ACAWK
15350 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15351 for (key in S) S_is_set[key] = 1
15352 FS = "\a"
15353 \$ac_cs_awk_pipe_init
15354 }
15355 {
15356 line = $ 0
15357 nfields = split(line, field, "@")
15358 substed = 0
15359 len = length(field[1])
15360 for (i = 2; i < nfields; i++) {
15361 key = field[i]
15362 keylen = length(key)
15363 if (S_is_set[key]) {
15364 value = S[key]
15365 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15366 len += length(value) + length(field[++i])
15367 substed = 1
15368 } else
15369 len += 1 + keylen
15370 }
15371 if (nfields == 3 && !substed) {
15372 key = field[2]
15373 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15374 \$ac_cs_awk_read_file
15375 next
15376 }
15377 }
15378 print line
15379 }
15380 \$ac_cs_awk_pipe_fini
15381 _ACAWK
15382 _ACEOF
15383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15384 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15385 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15386 else
15387 cat
15388 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15389 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15390 _ACEOF
15391
15392 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15393 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15394 # trailing colons and then remove the whole line if VPATH becomes empty
15395 # (actually we leave an empty line to preserve line numbers).
15396 if test "x$srcdir" = x.; then
15397 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15398 s/:*\$(srcdir):*/:/
15399 s/:*\${srcdir}:*/:/
15400 s/:*@srcdir@:*/:/
15401 s/^\([^=]*=[ ]*\):*/\1/
15402 s/:*$//
15403 s/^[^=]*=[ ]*$//
15404 }'
15405 fi
15406
15407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15408 fi # test -n "$CONFIG_FILES"
15409
15410
15411 eval set X " :F $CONFIG_FILES "
15412 shift
15413 for ac_tag
15414 do
15415 case $ac_tag in
15416 :[FHLC]) ac_mode=$ac_tag; continue;;
15417 esac
15418 case $ac_mode$ac_tag in
15419 :[FHL]*:*);;
15420 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15421 :[FH]-) ac_tag=-:-;;
15422 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15423 esac
15424 ac_save_IFS=$IFS
15425 IFS=:
15426 set x $ac_tag
15427 IFS=$ac_save_IFS
15428 shift
15429 ac_file=$1
15430 shift
15431
15432 case $ac_mode in
15433 :L) ac_source=$1;;
15434 :[FH])
15435 ac_file_inputs=
15436 for ac_f
15437 do
15438 case $ac_f in
15439 -) ac_f="$tmp/stdin";;
15440 *) # Look for the file first in the build tree, then in the source tree
15441 # (if the path is not absolute). The absolute path cannot be DOS-style,
15442 # because $ac_f cannot contain `:'.
15443 test -f "$ac_f" ||
15444 case $ac_f in
15445 [\\/$]*) false;;
15446 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15447 esac ||
15448 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15449 esac
15450 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15451 as_fn_append ac_file_inputs " '$ac_f'"
15452 done
15453
15454 # Let's still pretend it is `configure' which instantiates (i.e., don't
15455 # use $as_me), people would be surprised to read:
15456 # /* config.h. Generated by config.status. */
15457 configure_input='Generated from '`
15458 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15459 `' by configure.'
15460 if test x"$ac_file" != x-; then
15461 configure_input="$ac_file. $configure_input"
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15463 $as_echo "$as_me: creating $ac_file" >&6;}
15464 fi
15465 # Neutralize special characters interpreted by sed in replacement strings.
15466 case $configure_input in #(
15467 *\&* | *\|* | *\\* )
15468 ac_sed_conf_input=`$as_echo "$configure_input" |
15469 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15470 *) ac_sed_conf_input=$configure_input;;
15471 esac
15472
15473 case $ac_tag in
15474 *:-:* | *:-) cat >"$tmp/stdin" \
15475 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15476 esac
15477 ;;
15478 esac
15479
15480 ac_dir=`$as_dirname -- "$ac_file" ||
15481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15482 X"$ac_file" : 'X\(//\)[^/]' \| \
15483 X"$ac_file" : 'X\(//\)$' \| \
15484 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15485 $as_echo X"$ac_file" |
15486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15487 s//\1/
15488 q
15489 }
15490 /^X\(\/\/\)[^/].*/{
15491 s//\1/
15492 q
15493 }
15494 /^X\(\/\/\)$/{
15495 s//\1/
15496 q
15497 }
15498 /^X\(\/\).*/{
15499 s//\1/
15500 q
15501 }
15502 s/.*/./; q'`
15503 as_dir="$ac_dir"; as_fn_mkdir_p
15504 ac_builddir=.
15505
15506 case "$ac_dir" in
15507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15508 *)
15509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15510 # A ".." for each directory in $ac_dir_suffix.
15511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15512 case $ac_top_builddir_sub in
15513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15515 esac ;;
15516 esac
15517 ac_abs_top_builddir=$ac_pwd
15518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15519 # for backward compatibility:
15520 ac_top_builddir=$ac_top_build_prefix
15521
15522 case $srcdir in
15523 .) # We are building in place.
15524 ac_srcdir=.
15525 ac_top_srcdir=$ac_top_builddir_sub
15526 ac_abs_top_srcdir=$ac_pwd ;;
15527 [\\/]* | ?:[\\/]* ) # Absolute name.
15528 ac_srcdir=$srcdir$ac_dir_suffix;
15529 ac_top_srcdir=$srcdir
15530 ac_abs_top_srcdir=$srcdir ;;
15531 *) # Relative name.
15532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15533 ac_top_srcdir=$ac_top_build_prefix$srcdir
15534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15535 esac
15536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15537
15538
15539 case $ac_mode in
15540 :F)
15541 #
15542 # CONFIG_FILE
15543 #
15544
15545 case $INSTALL in
15546 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15547 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15548 esac
15549 _ACEOF
15550
15551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15552 # If the template does not know about datarootdir, expand it.
15553 # FIXME: This hack should be removed a few years after 2.60.
15554 ac_datarootdir_hack=; ac_datarootdir_seen=
15555 ac_sed_dataroot='
15556 /datarootdir/ {
15557 p
15558 q
15559 }
15560 /@datadir@/p
15561 /@docdir@/p
15562 /@infodir@/p
15563 /@localedir@/p
15564 /@mandir@/p'
15565 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15566 *datarootdir*) ac_datarootdir_seen=yes;;
15567 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15569 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15570 _ACEOF
15571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15572 ac_datarootdir_hack='
15573 s&@datadir@&$datadir&g
15574 s&@docdir@&$docdir&g
15575 s&@infodir@&$infodir&g
15576 s&@localedir@&$localedir&g
15577 s&@mandir@&$mandir&g
15578 s&\\\${datarootdir}&$datarootdir&g' ;;
15579 esac
15580 _ACEOF
15581
15582 # Neutralize VPATH when `$srcdir' = `.'.
15583 # Shell code in configure.ac might set extrasub.
15584 # FIXME: do we really want to maintain this feature?
15585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15586 ac_sed_extra="$ac_vpsub
15587 $extrasub
15588 _ACEOF
15589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15590 :t
15591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15592 s|@configure_input@|$ac_sed_conf_input|;t t
15593 s&@top_builddir@&$ac_top_builddir_sub&;t t
15594 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15595 s&@srcdir@&$ac_srcdir&;t t
15596 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15597 s&@top_srcdir@&$ac_top_srcdir&;t t
15598 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15599 s&@builddir@&$ac_builddir&;t t
15600 s&@abs_builddir@&$ac_abs_builddir&;t t
15601 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15602 s&@INSTALL@&$ac_INSTALL&;t t
15603 $ac_datarootdir_hack
15604 "
15605 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15606 if $ac_cs_awk_getline; then
15607 $AWK -f "$tmp/subs.awk"
15608 else
15609 $AWK -f "$tmp/subs.awk" | $SHELL
15610 fi >$tmp/out \
15611 || as_fn_error "could not create $ac_file" "$LINENO" 5
15612
15613 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15614 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15615 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15617 which seems to be undefined. Please make sure it is defined." >&5
15618 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15619 which seems to be undefined. Please make sure it is defined." >&2;}
15620
15621 rm -f "$tmp/stdin"
15622 case $ac_file in
15623 -) cat "$tmp/out" && rm -f "$tmp/out";;
15624 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15625 esac \
15626 || as_fn_error "could not create $ac_file" "$LINENO" 5
15627 ;;
15628
15629
15630
15631 esac
15632
15633
15634 case $ac_file$ac_mode in
15635 "Makefile":F) sed "$extrasub_build" Makefile |
15636 sed "$extrasub_host" |
15637 sed "$extrasub_target" > mf$$
15638 mv -f mf$$ Makefile ;;
15639
15640 esac
15641 done # for ac_tag
15642
15643
15644 as_fn_exit 0
15645 _ACEOF
15646 ac_clean_files=$ac_clean_files_save
15647
15648 test $ac_write_fail = 0 ||
15649 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15650
15651
15652 # configure is writing to config.log, and then calls config.status.
15653 # config.status does its own redirection, appending to config.log.
15654 # Unfortunately, on DOS this fails, as config.log is still kept open
15655 # by configure, so config.status won't be able to write to it; its
15656 # output is simply discarded. So we exec the FD to /dev/null,
15657 # effectively closing config.log, so it can be properly (re)opened and
15658 # appended to by config.status. When coming back to configure, we
15659 # need to make the FD available again.
15660 if test "$no_create" != yes; then
15661 ac_cs_success=:
15662 ac_config_status_args=
15663 test "$silent" = yes &&
15664 ac_config_status_args="$ac_config_status_args --quiet"
15665 exec 5>/dev/null
15666 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15667 exec 5>>config.log
15668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15669 # would make configure fail if this is the last instruction.
15670 $ac_cs_success || as_fn_exit $?
15671 fi
15672 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15674 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15675 fi
15676