PR other/46202: implement install-strip.
[deliverable/binutils-gdb.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 stage2_werror_flag
560 stage1_checking
561 stage1_cflags
562 MAINT
563 MAINTAINER_MODE_FALSE
564 MAINTAINER_MODE_TRUE
565 COMPILER_NM_FOR_TARGET
566 COMPILER_LD_FOR_TARGET
567 COMPILER_AS_FOR_TARGET
568 FLAGS_FOR_TARGET
569 RAW_CXX_FOR_TARGET
570 WINDMC_FOR_TARGET
571 WINDRES_FOR_TARGET
572 STRIP_FOR_TARGET
573 RANLIB_FOR_TARGET
574 OBJDUMP_FOR_TARGET
575 NM_FOR_TARGET
576 LIPO_FOR_TARGET
577 LD_FOR_TARGET
578 DLLTOOL_FOR_TARGET
579 AS_FOR_TARGET
580 AR_FOR_TARGET
581 GOC_FOR_TARGET
582 GFORTRAN_FOR_TARGET
583 GCJ_FOR_TARGET
584 GCC_FOR_TARGET
585 CXX_FOR_TARGET
586 CC_FOR_TARGET
587 OBJDUMP
588 OBJCOPY
589 WINDMC
590 WINDRES
591 STRIP
592 RANLIB
593 NM
594 LIPO
595 LD
596 DLLTOOL
597 AS
598 AR
599 RUNTEST
600 EXPECT
601 MAKEINFO
602 FLEX
603 LEX
604 M4
605 BISON
606 YACC
607 config_shell
608 WINDRES_FOR_BUILD
609 WINDMC_FOR_BUILD
610 RANLIB_FOR_BUILD
611 NM_FOR_BUILD
612 LD_FOR_BUILD
613 LDFLAGS_FOR_BUILD
614 GOC_FOR_BUILD
615 GFORTRAN_FOR_BUILD
616 GCJ_FOR_BUILD
617 DLLTOOL_FOR_BUILD
618 CXX_FOR_BUILD
619 CXXFLAGS_FOR_BUILD
620 CFLAGS_FOR_BUILD
621 CC_FOR_BUILD
622 AS_FOR_BUILD
623 AR_FOR_BUILD
624 target_configdirs
625 configdirs
626 build_configdirs
627 INSTALL_GDB_TK
628 GDB_TK
629 CONFIGURE_GDB_TK
630 build_tooldir
631 tooldir
632 GCC_SHLIB_SUBDIR
633 RPATH_ENVVAR
634 target_configargs
635 host_configargs
636 build_configargs
637 BUILD_CONFIG
638 CXXFLAGS_FOR_TARGET
639 CFLAGS_FOR_TARGET
640 DEBUG_PREFIX_CFLAGS_FOR_TARGET
641 SYSROOT_CFLAGS_FOR_TARGET
642 stage1_languages
643 extra_host_libiberty_configure_flags
644 clooginc
645 clooglibs
646 pplinc
647 ppllibs
648 poststage1_ldflags
649 poststage1_libs
650 stage1_libs
651 stage1_ldflags
652 extra_mpc_mpfr_configure_flags
653 extra_mpc_gmp_configure_flags
654 extra_mpfr_configure_flags
655 gmpinc
656 gmplibs
657 do_compare
658 GNATMAKE
659 GNATBIND
660 ac_ct_CXX
661 CXXFLAGS
662 CXX
663 OBJEXT
664 EXEEXT
665 ac_ct_CC
666 CPPFLAGS
667 LDFLAGS
668 CFLAGS
669 CC
670 target_subdir
671 host_subdir
672 build_subdir
673 build_libsubdir
674 AWK
675 SED
676 LN_S
677 LN
678 INSTALL_DATA
679 INSTALL_SCRIPT
680 INSTALL_PROGRAM
681 target_os
682 target_vendor
683 target_cpu
684 target
685 host_os
686 host_vendor
687 host_cpu
688 host
689 target_noncanonical
690 host_noncanonical
691 build_noncanonical
692 build_os
693 build_vendor
694 build_cpu
695 build
696 TOPLEVEL_CONFIGURE_ARGUMENTS
697 target_alias
698 host_alias
699 build_alias
700 LIBS
701 ECHO_T
702 ECHO_N
703 ECHO_C
704 DEFS
705 mandir
706 localedir
707 libdir
708 psdir
709 pdfdir
710 dvidir
711 htmldir
712 infodir
713 docdir
714 oldincludedir
715 includedir
716 localstatedir
717 sharedstatedir
718 sysconfdir
719 datadir
720 datarootdir
721 libexecdir
722 sbindir
723 bindir
724 program_transform_name
725 prefix
726 exec_prefix
727 PACKAGE_URL
728 PACKAGE_BUGREPORT
729 PACKAGE_STRING
730 PACKAGE_VERSION
731 PACKAGE_TARNAME
732 PACKAGE_NAME
733 PATH_SEPARATOR
734 SHELL'
735 ac_subst_files='serialization_dependencies
736 host_makefile_frag
737 target_makefile_frag
738 alphaieee_frag
739 ospace_frag'
740 ac_user_opts='
741 enable_option_checking
742 with_build_libsubdir
743 enable_gold
744 enable_libada
745 enable_libssp
746 enable_build_with_cxx
747 with_mpc
748 with_mpc_include
749 with_mpc_lib
750 with_mpfr_dir
751 with_mpfr
752 with_mpfr_include
753 with_mpfr_lib
754 with_gmp_dir
755 with_gmp
756 with_gmp_include
757 with_gmp_lib
758 with_host_libstdcxx
759 with_stage1_ldflags
760 with_stage1_libs
761 with_boot_libs
762 with_boot_ldflags
763 with_ppl
764 with_ppl_include
765 with_ppl_lib
766 enable_ppl_version_check
767 with_cloog
768 with_cloog_include
769 with_cloog_lib
770 enable_cloog_backend
771 enable_cloog_version_check
772 enable_lto
773 enable_stage1_languages
774 enable_objc_gc
775 with_build_sysroot
776 with_debug_prefix_map
777 enable_bootstrap
778 with_build_config
779 enable_serial_configure
780 with_build_time_tools
781 enable_maintainer_mode
782 enable_stage1_checking
783 enable_werror
784 '
785 ac_precious_vars='build_alias
786 host_alias
787 target_alias
788 CC
789 CFLAGS
790 LDFLAGS
791 LIBS
792 CPPFLAGS
793 CXX
794 CXXFLAGS
795 CCC
796 build_configargs
797 host_configargs
798 target_configargs
799 AR
800 AS
801 DLLTOOL
802 LD
803 LIPO
804 NM
805 RANLIB
806 STRIP
807 WINDRES
808 WINDMC
809 OBJCOPY
810 OBJDUMP
811 CC_FOR_TARGET
812 CXX_FOR_TARGET
813 GCC_FOR_TARGET
814 GCJ_FOR_TARGET
815 GFORTRAN_FOR_TARGET
816 GOC_FOR_TARGET
817 AR_FOR_TARGET
818 AS_FOR_TARGET
819 DLLTOOL_FOR_TARGET
820 LD_FOR_TARGET
821 LIPO_FOR_TARGET
822 NM_FOR_TARGET
823 OBJDUMP_FOR_TARGET
824 RANLIB_FOR_TARGET
825 STRIP_FOR_TARGET
826 WINDRES_FOR_TARGET
827 WINDMC_FOR_TARGET'
828
829
830 # Initialize some variables set by options.
831 ac_init_help=
832 ac_init_version=false
833 ac_unrecognized_opts=
834 ac_unrecognized_sep=
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
851
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
877
878 ac_prev=
879 ac_dashdash=
880 for ac_option
881 do
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
885 ac_prev=
886 continue
887 fi
888
889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
893
894 # Accept the important Cygnus configure options, so we can diagnose typos.
895
896 case $ac_dashdash$ac_option in
897 --)
898 ac_dashdash=yes ;;
899
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
904
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
909
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
916
917 --config-cache | -C)
918 cache_file=config.cache ;;
919
920 -datadir | --datadir | --datadi | --datad)
921 ac_prev=datadir ;;
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
924
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
931
932 -disable-* | --disable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=no ;;
947
948 -docdir | --docdir | --docdi | --doc | --do)
949 ac_prev=docdir ;;
950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 docdir=$ac_optarg ;;
952
953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 ac_prev=dvidir ;;
955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 dvidir=$ac_optarg ;;
957
958 -enable-* | --enable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=\$ac_optarg ;;
973
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
981 exec_prefix=$ac_optarg ;;
982
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
985 with_gas=yes ;;
986
987 -help | --help | --hel | --he | -h)
988 ac_init_help=long ;;
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
993
994 -host | --host | --hos | --ho)
995 ac_prev=host_alias ;;
996 -host=* | --host=* | --hos=* | --ho=*)
997 host_alias=$ac_optarg ;;
998
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000 ac_prev=htmldir ;;
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002 | --ht=*)
1003 htmldir=$ac_optarg ;;
1004
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
1010 includedir=$ac_optarg ;;
1011
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1013 ac_prev=infodir ;;
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015 infodir=$ac_optarg ;;
1016
1017 -libdir | --libdir | --libdi | --libd)
1018 ac_prev=libdir ;;
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020 libdir=$ac_optarg ;;
1021
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
1027 libexecdir=$ac_optarg ;;
1028
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1033
1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
1035 | --localstate | --localstat | --localsta | --localst | --locals)
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039 localstatedir=$ac_optarg ;;
1040
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042 ac_prev=mandir ;;
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044 mandir=$ac_optarg ;;
1045
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1048 with_fp=no ;;
1049
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051 | --no-cr | --no-c | -n)
1052 no_create=yes ;;
1053
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056 no_recursion=yes ;;
1057
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065 oldincludedir=$ac_optarg ;;
1066
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068 ac_prev=prefix ;;
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070 prefix=$ac_optarg ;;
1071
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077 program_prefix=$ac_optarg ;;
1078
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084 program_suffix=$ac_optarg ;;
1085
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
1101 program_transform_name=$ac_optarg ;;
1102
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104 ac_prev=pdfdir ;;
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1107
1108 -psdir | --psdir | --psdi | --psd | --ps)
1109 ac_prev=psdir ;;
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111 psdir=$ac_optarg ;;
1112
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1115 silent=yes ;;
1116
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118 ac_prev=sbindir ;;
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120 | --sbi=* | --sb=*)
1121 sbindir=$ac_optarg ;;
1122
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1126 | --sha | --sh)
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131 | --sha=* | --sh=*)
1132 sharedstatedir=$ac_optarg ;;
1133
1134 -site | --site | --sit)
1135 ac_prev=site ;;
1136 -site=* | --site=* | --sit=*)
1137 site=$ac_optarg ;;
1138
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140 ac_prev=srcdir ;;
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142 srcdir=$ac_optarg ;;
1143
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149 sysconfdir=$ac_optarg ;;
1150
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
1152 ac_prev=target_alias ;;
1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154 target_alias=$ac_optarg ;;
1155
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157 verbose=yes ;;
1158
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
1161
1162 -with-* | --with-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171 "with_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=\$ac_optarg ;;
1177
1178 -without-* | --without-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=no ;;
1193
1194 --x)
1195 # Obsolete; use --with-x.
1196 with_x=yes ;;
1197
1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199 | --x-incl | --x-inc | --x-in | --x-i)
1200 ac_prev=x_includes ;;
1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203 x_includes=$ac_optarg ;;
1204
1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207 ac_prev=x_libraries ;;
1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210 x_libraries=$ac_optarg ;;
1211
1212 -*) as_fn_error "unrecognized option: \`$ac_option'
1213 Try \`$0 --help' for more information."
1214 ;;
1215
1216 *=*)
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
1219 case $ac_envvar in #(
1220 '' | [0-9]* | *[!_$as_cr_alnum]* )
1221 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1222 esac
1223 eval $ac_envvar=\$ac_optarg
1224 export $ac_envvar ;;
1225
1226 *)
1227 # FIXME: should be removed in autoconf 3.0.
1228 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1231 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1232 ;;
1233
1234 esac
1235 done
1236
1237 if test -n "$ac_prev"; then
1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239 as_fn_error "missing argument to $ac_option"
1240 fi
1241
1242 if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in
1244 no) ;;
1245 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1246 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247 esac
1248 fi
1249
1250 # Check all directory arguments for consistency.
1251 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
1255 do
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1258 case $ac_val in
1259 */ )
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1262 esac
1263 # Be sure to have absolute directory names.
1264 case $ac_val in
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 esac
1268 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1269 done
1270
1271 # There might be people who depend on the old broken behavior: `$host'
1272 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day.
1274 build=$build_alias
1275 host=$host_alias
1276 target=$target_alias
1277
1278 # FIXME: To remove some day.
1279 if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
1282 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1283 If a cross compiler is detected then cross compile mode will be used." >&2
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1286 fi
1287 fi
1288
1289 ac_tool_prefix=
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292 test "$silent" = yes && exec 6>/dev/null
1293
1294
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error "pwd does not report name of working directory"
1301
1302
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\).*/{
1326 s//\1/
1327 q
1328 }
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1333 fi
1334 else
1335 ac_srcdir_defaulted=no
1336 fi
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1340 fi
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1344 pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1348 fi
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 case $srcdir in
1356 *" "*)
1357 as_fn_error "path to source, $srcdir, contains spaces"
1358 ;;
1359 esac
1360 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1361
1362 for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1368
1369 #
1370 # Report the --help message.
1371 #
1372 if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376 \`configure' configures this package to adapt to many kinds of systems.
1377
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE. See below for descriptions of some of the useful variables.
1382
1383 Defaults for the options are specified in brackets.
1384
1385 Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395
1396 Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 [PREFIX]
1401
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1406
1407 For better control, use the options below.
1408
1409 Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1429 _ACEOF
1430
1431 cat <<\_ACEOF
1432
1433 Program names:
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437
1438 System types:
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 --target=TARGET configure for building compilers for TARGET [HOST]
1442 _ACEOF
1443 fi
1444
1445 if test -n "$ac_init_help"; then
1446
1447 cat <<\_ACEOF
1448
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
1454 --enable-libada build libada directory
1455 --enable-libssp build libssp directory
1456 --enable-build-with-cxx build with C++ compiler instead of C compiler
1457 --disable-ppl-version-check disable check for PPL version
1458 --enable-cloog-backend=backend
1459 isl: The cloog.org isl backend
1460 ppl-legacy: The legacy ppl backend - default
1461 ppl: The cloog.org ppl backend
1462 --disable-cloog-version-check
1463 disable check for CLooG version
1464 --enable-lto enable link time optimization support
1465 --enable-stage1-languages[=all] choose additional languages to build during
1466 stage1. Mostly useful for compiler development.
1467 --enable-objc-gc enable use of Boehm's garbage collector with the
1468 GNU Objective-C runtime
1469 --enable-bootstrap enable bootstrapping [yes if native build]
1470 --enable-serial-[{host,target,build}-]configure
1471 force sequential configuration of
1472 sub-packages for the host, target or build
1473 machine, or all sub-packages
1474 --enable-maintainer-mode enable make rules and dependencies not useful
1475 (and sometimes confusing) to the casual installer
1476 --enable-stage1-checking[=all] choose additional checking for stage1
1477 of the compiler
1478 --enable-werror enable -Werror in bootstrap stage2 and later
1479
1480 Optional Packages:
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483 --with-build-libsubdir=DIR Directory where to find libraries for build system
1484 --with-mpc=PATH specify prefix directory for installed MPC package.
1485 Equivalent to --with-mpc-include=PATH/include
1486 plus --with-mpc-lib=PATH/lib
1487 --with-mpc-include=PATH
1488 specify directory for installed MPC include files
1489 --with-mpc-lib=PATH specify directory for the installed MPC library
1490 --with-mpfr-dir=PATH this option has been REMOVED
1491 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1492 Equivalent to --with-mpfr-include=PATH/include
1493 plus --with-mpfr-lib=PATH/lib
1494 --with-mpfr-include=PATH
1495 specify directory for installed MPFR include files
1496 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1497 --with-gmp-dir=PATH this option has been REMOVED
1498 --with-gmp=PATH specify prefix directory for the installed GMP package.
1499 Equivalent to --with-gmp-include=PATH/include
1500 plus --with-gmp-lib=PATH/lib
1501 --with-gmp-include=PATH specify directory for installed GMP include files
1502 --with-gmp-lib=PATH specify directory for the installed GMP library
1503 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1504 when linking with PPL
1505 --with-stage1-ldflags=FLAGS Linker flags for stage1
1506 -with-stage1-libs=LIBS Libraries for stage1
1507 --with-boot-libs=LIBS Libraries for stage2 and later
1508 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1509 --with-ppl=PATH Specify prefix directory for the installed PPL package
1510 Equivalent to --with-ppl-include=PATH/include
1511 plus --with-ppl-lib=PATH/lib
1512 --with-ppl-include=PATH Specify directory for installed PPL include files
1513 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1514 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1515 package. Equivalent to
1516 --with-cloog-include=PATH/include plus
1517 --with-cloog-lib=PATH/lib
1518 --with-cloog-include=PATH
1519 Specify directory for installed CLooG include files
1520 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1521 library
1522 --with-build-sysroot=SYSROOT
1523 use sysroot as the system root during the build
1524 --with-debug-prefix-map='A=B C=D ...'
1525 map A to B, C to D ... in debug information
1526 --with-build-config='NAME NAME2...'
1527 Use config/NAME.mk build configuration
1528 --with-build-time-tools=PATH
1529 use given path to find target tools during the build
1530
1531 Some influential environment variables:
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1539 CXX C++ compiler command
1540 CXXFLAGS C++ compiler flags
1541 build_configargs
1542 additional configure arguments for build directories
1543 host_configargs
1544 additional configure arguments for host directories
1545 target_configargs
1546 additional configure arguments for target directories
1547 AR AR for the host
1548 AS AS for the host
1549 DLLTOOL DLLTOOL for the host
1550 LD LD for the host
1551 LIPO LIPO for the host
1552 NM NM for the host
1553 RANLIB RANLIB for the host
1554 STRIP STRIP for the host
1555 WINDRES WINDRES for the host
1556 WINDMC WINDMC for the host
1557 OBJCOPY OBJCOPY for the host
1558 OBJDUMP OBJDUMP for the host
1559 CC_FOR_TARGET
1560 CC for the target
1561 CXX_FOR_TARGET
1562 CXX for the target
1563 GCC_FOR_TARGET
1564 GCC for the target
1565 GCJ_FOR_TARGET
1566 GCJ for the target
1567 GFORTRAN_FOR_TARGET
1568 GFORTRAN for the target
1569 GOC_FOR_TARGET
1570 GOC for the target
1571 AR_FOR_TARGET
1572 AR for the target
1573 AS_FOR_TARGET
1574 AS for the target
1575 DLLTOOL_FOR_TARGET
1576 DLLTOOL for the target
1577 LD_FOR_TARGET
1578 LD for the target
1579 LIPO_FOR_TARGET
1580 LIPO for the target
1581 NM_FOR_TARGET
1582 NM for the target
1583 OBJDUMP_FOR_TARGET
1584 OBJDUMP for the target
1585 RANLIB_FOR_TARGET
1586 RANLIB for the target
1587 STRIP_FOR_TARGET
1588 STRIP for the target
1589 WINDRES_FOR_TARGET
1590 WINDRES for the target
1591 WINDMC_FOR_TARGET
1592 WINDMC for the target
1593
1594 Use these variables to override the choices made by `configure' or to help
1595 it to find libraries and programs with nonstandard names/locations.
1596
1597 Report bugs to the package provider.
1598 _ACEOF
1599 ac_status=$?
1600 fi
1601
1602 if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
1604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1605 test -d "$ac_dir" ||
1606 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1607 continue
1608 ac_builddir=.
1609
1610 case "$ac_dir" in
1611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *)
1613 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1614 # A ".." for each directory in $ac_dir_suffix.
1615 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1616 case $ac_top_builddir_sub in
1617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1619 esac ;;
1620 esac
1621 ac_abs_top_builddir=$ac_pwd
1622 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1623 # for backward compatibility:
1624 ac_top_builddir=$ac_top_build_prefix
1625
1626 case $srcdir in
1627 .) # We are building in place.
1628 ac_srcdir=.
1629 ac_top_srcdir=$ac_top_builddir_sub
1630 ac_abs_top_srcdir=$ac_pwd ;;
1631 [\\/]* | ?:[\\/]* ) # Absolute name.
1632 ac_srcdir=$srcdir$ac_dir_suffix;
1633 ac_top_srcdir=$srcdir
1634 ac_abs_top_srcdir=$srcdir ;;
1635 *) # Relative name.
1636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1637 ac_top_srcdir=$ac_top_build_prefix$srcdir
1638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1639 esac
1640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1641
1642 cd "$ac_dir" || { ac_status=$?; continue; }
1643 # Check for guested configure.
1644 if test -f "$ac_srcdir/configure.gnu"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1647 elif test -f "$ac_srcdir/configure"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure" --help=recursive
1650 else
1651 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1652 fi || ac_status=$?
1653 cd "$ac_pwd" || { ac_status=$?; break; }
1654 done
1655 fi
1656
1657 test -n "$ac_init_help" && exit $ac_status
1658 if $ac_init_version; then
1659 cat <<\_ACEOF
1660 configure
1661 generated by GNU Autoconf 2.64
1662
1663 Copyright (C) 2009 Free Software Foundation, Inc.
1664 This configure script is free software; the Free Software Foundation
1665 gives unlimited permission to copy, distribute and modify it.
1666 _ACEOF
1667 exit
1668 fi
1669
1670 ## ------------------------ ##
1671 ## Autoconf initialization. ##
1672 ## ------------------------ ##
1673
1674 # ac_fn_c_try_compile LINENO
1675 # --------------------------
1676 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_compile ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext
1681 if { { ac_try="$ac_compile"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_compile") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest.$ac_objext; then :
1700 ac_retval=0
1701 else
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706 fi
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708 return $ac_retval
1709
1710 } # ac_fn_c_try_compile
1711
1712 # ac_fn_cxx_try_compile LINENO
1713 # ----------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_cxx_try_compile ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_cxx_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.$ac_objext; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744 fi
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 return $ac_retval
1747
1748 } # ac_fn_cxx_try_compile
1749
1750 # ac_fn_c_try_link LINENO
1751 # -----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_c_try_link ()
1754 {
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext conftest$ac_exeext
1757 if { { ac_try="$ac_link"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_link") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1770 fi
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest$ac_exeext && {
1776 test "$cross_compiling" = yes ||
1777 $as_test_x conftest$ac_exeext
1778 }; then :
1779 ac_retval=0
1780 else
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=1
1785 fi
1786 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1787 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1788 # interfere with the next link command; also delete a directory that is
1789 # left behind by Apple's compiler. We do this before executing the actions.
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 return $ac_retval
1793
1794 } # ac_fn_c_try_link
1795 cat >config.log <<_ACEOF
1796 This file contains any messages produced by compilers while
1797 running configure, to aid debugging if configure makes a mistake.
1798
1799 It was created by $as_me, which was
1800 generated by GNU Autoconf 2.64. Invocation command line was
1801
1802 $ $0 $@
1803
1804 _ACEOF
1805 exec 5>>config.log
1806 {
1807 cat <<_ASUNAME
1808 ## --------- ##
1809 ## Platform. ##
1810 ## --------- ##
1811
1812 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1813 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1814 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1815 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1816 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1817
1818 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1819 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1820
1821 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1822 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1823 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1824 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1825 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1826 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1827 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1828
1829 _ASUNAME
1830
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 for as_dir in $PATH
1833 do
1834 IFS=$as_save_IFS
1835 test -z "$as_dir" && as_dir=.
1836 $as_echo "PATH: $as_dir"
1837 done
1838 IFS=$as_save_IFS
1839
1840 } >&5
1841
1842 cat >&5 <<_ACEOF
1843
1844
1845 ## ----------- ##
1846 ## Core tests. ##
1847 ## ----------- ##
1848
1849 _ACEOF
1850
1851
1852 # Keep a trace of the command line.
1853 # Strip out --no-create and --no-recursion so they do not pile up.
1854 # Strip out --silent because we don't want to record it for future runs.
1855 # Also quote any args containing shell meta-characters.
1856 # Make two passes to allow for proper duplicate-argument suppression.
1857 ac_configure_args=
1858 ac_configure_args0=
1859 ac_configure_args1=
1860 ac_must_keep_next=false
1861 for ac_pass in 1 2
1862 do
1863 for ac_arg
1864 do
1865 case $ac_arg in
1866 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1867 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1868 | -silent | --silent | --silen | --sile | --sil)
1869 continue ;;
1870 *\'*)
1871 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1872 esac
1873 case $ac_pass in
1874 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1875 2)
1876 as_fn_append ac_configure_args1 " '$ac_arg'"
1877 if test $ac_must_keep_next = true; then
1878 ac_must_keep_next=false # Got value, back to normal.
1879 else
1880 case $ac_arg in
1881 *=* | --config-cache | -C | -disable-* | --disable-* \
1882 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1883 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1884 | -with-* | --with-* | -without-* | --without-* | --x)
1885 case "$ac_configure_args0 " in
1886 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1887 esac
1888 ;;
1889 -* ) ac_must_keep_next=true ;;
1890 esac
1891 fi
1892 as_fn_append ac_configure_args " '$ac_arg'"
1893 ;;
1894 esac
1895 done
1896 done
1897 { ac_configure_args0=; unset ac_configure_args0;}
1898 { ac_configure_args1=; unset ac_configure_args1;}
1899
1900 # When interrupted or exit'd, cleanup temporary files, and complete
1901 # config.log. We remove comments because anyway the quotes in there
1902 # would cause problems or look ugly.
1903 # WARNING: Use '\'' to represent an apostrophe within the trap.
1904 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1905 trap 'exit_status=$?
1906 # Save into config.log some information that might help in debugging.
1907 {
1908 echo
1909
1910 cat <<\_ASBOX
1911 ## ---------------- ##
1912 ## Cache variables. ##
1913 ## ---------------- ##
1914 _ASBOX
1915 echo
1916 # The following way of writing the cache mishandles newlines in values,
1917 (
1918 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1919 eval ac_val=\$$ac_var
1920 case $ac_val in #(
1921 *${as_nl}*)
1922 case $ac_var in #(
1923 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1924 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1925 esac
1926 case $ac_var in #(
1927 _ | IFS | as_nl) ;; #(
1928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1929 *) { eval $ac_var=; unset $ac_var;} ;;
1930 esac ;;
1931 esac
1932 done
1933 (set) 2>&1 |
1934 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1935 *${as_nl}ac_space=\ *)
1936 sed -n \
1937 "s/'\''/'\''\\\\'\'''\''/g;
1938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1939 ;; #(
1940 *)
1941 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1942 ;;
1943 esac |
1944 sort
1945 )
1946 echo
1947
1948 cat <<\_ASBOX
1949 ## ----------------- ##
1950 ## Output variables. ##
1951 ## ----------------- ##
1952 _ASBOX
1953 echo
1954 for ac_var in $ac_subst_vars
1955 do
1956 eval ac_val=\$$ac_var
1957 case $ac_val in
1958 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1959 esac
1960 $as_echo "$ac_var='\''$ac_val'\''"
1961 done | sort
1962 echo
1963
1964 if test -n "$ac_subst_files"; then
1965 cat <<\_ASBOX
1966 ## ------------------- ##
1967 ## File substitutions. ##
1968 ## ------------------- ##
1969 _ASBOX
1970 echo
1971 for ac_var in $ac_subst_files
1972 do
1973 eval ac_val=\$$ac_var
1974 case $ac_val in
1975 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1976 esac
1977 $as_echo "$ac_var='\''$ac_val'\''"
1978 done | sort
1979 echo
1980 fi
1981
1982 if test -s confdefs.h; then
1983 cat <<\_ASBOX
1984 ## ----------- ##
1985 ## confdefs.h. ##
1986 ## ----------- ##
1987 _ASBOX
1988 echo
1989 cat confdefs.h
1990 echo
1991 fi
1992 test "$ac_signal" != 0 &&
1993 $as_echo "$as_me: caught signal $ac_signal"
1994 $as_echo "$as_me: exit $exit_status"
1995 } >&5
1996 rm -f core *.core core.conftest.* &&
1997 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1998 exit $exit_status
1999 ' 0
2000 for ac_signal in 1 2 13 15; do
2001 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2002 done
2003 ac_signal=0
2004
2005 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2006 rm -f -r conftest* confdefs.h
2007
2008 $as_echo "/* confdefs.h */" > confdefs.h
2009
2010 # Predefined preprocessor variables.
2011
2012 cat >>confdefs.h <<_ACEOF
2013 #define PACKAGE_NAME "$PACKAGE_NAME"
2014 _ACEOF
2015
2016 cat >>confdefs.h <<_ACEOF
2017 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2018 _ACEOF
2019
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2022 _ACEOF
2023
2024 cat >>confdefs.h <<_ACEOF
2025 #define PACKAGE_STRING "$PACKAGE_STRING"
2026 _ACEOF
2027
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2030 _ACEOF
2031
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_URL "$PACKAGE_URL"
2034 _ACEOF
2035
2036
2037 # Let the site file select an alternate cache file if it wants to.
2038 # Prefer an explicitly selected file to automatically selected ones.
2039 ac_site_file1=NONE
2040 ac_site_file2=NONE
2041 if test -n "$CONFIG_SITE"; then
2042 ac_site_file1=$CONFIG_SITE
2043 elif test "x$prefix" != xNONE; then
2044 ac_site_file1=$prefix/share/config.site
2045 ac_site_file2=$prefix/etc/config.site
2046 else
2047 ac_site_file1=$ac_default_prefix/share/config.site
2048 ac_site_file2=$ac_default_prefix/etc/config.site
2049 fi
2050 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2051 do
2052 test "x$ac_site_file" = xNONE && continue
2053 if test -r "$ac_site_file"; then
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2055 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2056 sed 's/^/| /' "$ac_site_file" >&5
2057 . "$ac_site_file"
2058 fi
2059 done
2060
2061 if test -r "$cache_file"; then
2062 # Some versions of bash will fail to source /dev/null (special
2063 # files actually), so we avoid doing that.
2064 if test -f "$cache_file"; then
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2066 $as_echo "$as_me: loading cache $cache_file" >&6;}
2067 case $cache_file in
2068 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2069 *) . "./$cache_file";;
2070 esac
2071 fi
2072 else
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2074 $as_echo "$as_me: creating cache $cache_file" >&6;}
2075 >$cache_file
2076 fi
2077
2078 # Check that the precious variables saved in the cache have kept the same
2079 # value.
2080 ac_cache_corrupted=false
2081 for ac_var in $ac_precious_vars; do
2082 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2083 eval ac_new_set=\$ac_env_${ac_var}_set
2084 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2085 eval ac_new_val=\$ac_env_${ac_var}_value
2086 case $ac_old_set,$ac_new_set in
2087 set,)
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2089 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2090 ac_cache_corrupted=: ;;
2091 ,set)
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2093 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2094 ac_cache_corrupted=: ;;
2095 ,);;
2096 *)
2097 if test "x$ac_old_val" != "x$ac_new_val"; then
2098 # differences in whitespace do not lead to failure.
2099 ac_old_val_w=`echo x $ac_old_val`
2100 ac_new_val_w=`echo x $ac_new_val`
2101 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2103 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2104 ac_cache_corrupted=:
2105 else
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2107 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2108 eval $ac_var=\$ac_old_val
2109 fi
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2111 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2113 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2114 fi;;
2115 esac
2116 # Pass precious variables to config.status.
2117 if test "$ac_new_set" = set; then
2118 case $ac_new_val in
2119 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2120 *) ac_arg=$ac_var=$ac_new_val ;;
2121 esac
2122 case " $ac_configure_args " in
2123 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2124 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2125 esac
2126 fi
2127 done
2128 if $ac_cache_corrupted; then
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2132 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2133 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2134 fi
2135 ## -------------------- ##
2136 ## Main body of script. ##
2137 ## -------------------- ##
2138
2139 ac_ext=c
2140 ac_cpp='$CPP $CPPFLAGS'
2141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153 progname=$0
2154 # if PWD already has a value, it is probably wrong.
2155 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2156
2157 # Export original configure arguments for use by sub-configures.
2158 # Quote arguments with shell meta charatcers.
2159 TOPLEVEL_CONFIGURE_ARGUMENTS=
2160 set -- "$progname" "$@"
2161 for ac_arg
2162 do
2163 case "$ac_arg" in
2164 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2165 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2166 # if the argument is of the form -foo=baz, quote the baz part only
2167 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2168 *) ;;
2169 esac
2170 # Add the quoted argument to the list.
2171 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2172 done
2173 if test "$silent" = yes; then
2174 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2175 fi
2176 # Remove the initial space we just introduced and, as these will be
2177 # expanded by make, quote '$'.
2178 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2179
2180
2181 # Find the build, host, and target systems.
2182 ac_aux_dir=
2183 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2184 for ac_t in install-sh install.sh shtool; do
2185 if test -f "$ac_dir/$ac_t"; then
2186 ac_aux_dir=$ac_dir
2187 ac_install_sh="$ac_aux_dir/$ac_t -c"
2188 break 2
2189 fi
2190 done
2191 done
2192 if test -z "$ac_aux_dir"; then
2193 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2194 fi
2195
2196 # These three variables are undocumented and unsupported,
2197 # and are intended to be withdrawn in a future Autoconf release.
2198 # They can cause serious problems if a builder's source tree is in a directory
2199 # whose full name contains unusual characters.
2200 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2201 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2202 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2203
2204
2205 # Make sure we can run config.sub.
2206 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2207 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2208
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2210 $as_echo_n "checking build system type... " >&6; }
2211 if test "${ac_cv_build+set}" = set; then :
2212 $as_echo_n "(cached) " >&6
2213 else
2214 ac_build_alias=$build_alias
2215 test "x$ac_build_alias" = x &&
2216 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2217 test "x$ac_build_alias" = x &&
2218 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2219 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2220 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2221
2222 fi
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2224 $as_echo "$ac_cv_build" >&6; }
2225 case $ac_cv_build in
2226 *-*-*) ;;
2227 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2228 esac
2229 build=$ac_cv_build
2230 ac_save_IFS=$IFS; IFS='-'
2231 set x $ac_cv_build
2232 shift
2233 build_cpu=$1
2234 build_vendor=$2
2235 shift; shift
2236 # Remember, the first character of IFS is used to create $*,
2237 # except with old shells:
2238 build_os=$*
2239 IFS=$ac_save_IFS
2240 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2241
2242
2243 case ${build_alias} in
2244 "") build_noncanonical=${build} ;;
2245 *) build_noncanonical=${build_alias} ;;
2246 esac
2247
2248
2249
2250 case ${host_alias} in
2251 "") host_noncanonical=${build_noncanonical} ;;
2252 *) host_noncanonical=${host_alias} ;;
2253 esac
2254
2255
2256
2257 case ${target_alias} in
2258 "") target_noncanonical=${host_noncanonical} ;;
2259 *) target_noncanonical=${target_alias} ;;
2260 esac
2261
2262
2263
2264
2265 test "$host_noncanonical" = "$target_noncanonical" &&
2266 test "$program_prefix$program_suffix$program_transform_name" = \
2267 NONENONEs,x,x, &&
2268 program_transform_name=s,y,y,
2269
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2271 $as_echo_n "checking host system type... " >&6; }
2272 if test "${ac_cv_host+set}" = set; then :
2273 $as_echo_n "(cached) " >&6
2274 else
2275 if test "x$host_alias" = x; then
2276 ac_cv_host=$ac_cv_build
2277 else
2278 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2279 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2280 fi
2281
2282 fi
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2284 $as_echo "$ac_cv_host" >&6; }
2285 case $ac_cv_host in
2286 *-*-*) ;;
2287 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2288 esac
2289 host=$ac_cv_host
2290 ac_save_IFS=$IFS; IFS='-'
2291 set x $ac_cv_host
2292 shift
2293 host_cpu=$1
2294 host_vendor=$2
2295 shift; shift
2296 # Remember, the first character of IFS is used to create $*,
2297 # except with old shells:
2298 host_os=$*
2299 IFS=$ac_save_IFS
2300 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2301
2302
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2304 $as_echo_n "checking target system type... " >&6; }
2305 if test "${ac_cv_target+set}" = set; then :
2306 $as_echo_n "(cached) " >&6
2307 else
2308 if test "x$target_alias" = x; then
2309 ac_cv_target=$ac_cv_host
2310 else
2311 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2312 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2313 fi
2314
2315 fi
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2317 $as_echo "$ac_cv_target" >&6; }
2318 case $ac_cv_target in
2319 *-*-*) ;;
2320 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2321 esac
2322 target=$ac_cv_target
2323 ac_save_IFS=$IFS; IFS='-'
2324 set x $ac_cv_target
2325 shift
2326 target_cpu=$1
2327 target_vendor=$2
2328 shift; shift
2329 # Remember, the first character of IFS is used to create $*,
2330 # except with old shells:
2331 target_os=$*
2332 IFS=$ac_save_IFS
2333 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2334
2335
2336 # The aliases save the names the user supplied, while $host etc.
2337 # will get canonicalized.
2338 test -n "$target_alias" &&
2339 test "$program_prefix$program_suffix$program_transform_name" = \
2340 NONENONEs,x,x, &&
2341 program_prefix=${target_alias}-
2342
2343 test "$program_prefix" != NONE &&
2344 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2345 # Use a double $ so make ignores it.
2346 test "$program_suffix" != NONE &&
2347 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2348 # Double any \ or $.
2349 # By default was `s,x,x', remove it if useless.
2350 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2351 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2352
2353
2354
2355 # Get 'install' or 'install-sh' and its variants.
2356 # Find a good install program. We prefer a C program (faster),
2357 # so one script is as good as another. But avoid the broken or
2358 # incompatible versions:
2359 # SysV /etc/install, /usr/sbin/install
2360 # SunOS /usr/etc/install
2361 # IRIX /sbin/install
2362 # AIX /bin/install
2363 # AmigaOS /C/install, which installs bootblocks on floppy discs
2364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2367 # OS/2's system install, which has a completely different semantic
2368 # ./install, which can be erroneously created by make from ./install.sh.
2369 # Reject install programs that cannot install multiple files.
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2371 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2372 if test -z "$INSTALL"; then
2373 if test "${ac_cv_path_install+set}" = set; then :
2374 $as_echo_n "(cached) " >&6
2375 else
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 for as_dir in $PATH
2378 do
2379 IFS=$as_save_IFS
2380 test -z "$as_dir" && as_dir=.
2381 # Account for people who put trailing slashes in PATH elements.
2382 case $as_dir/ in #((
2383 ./ | .// | /[cC]/* | \
2384 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2385 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2386 /usr/ucb/* ) ;;
2387 *)
2388 # OSF1 and SCO ODT 3.0 have their own names for install.
2389 # Don't use installbsd from OSF since it installs stuff as root
2390 # by default.
2391 for ac_prog in ginstall scoinst install; do
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2394 if test $ac_prog = install &&
2395 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2396 # AIX install. It has an incompatible calling convention.
2397 :
2398 elif test $ac_prog = install &&
2399 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2400 # program-specific install script used by HP pwplus--don't use.
2401 :
2402 else
2403 rm -rf conftest.one conftest.two conftest.dir
2404 echo one > conftest.one
2405 echo two > conftest.two
2406 mkdir conftest.dir
2407 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2408 test -s conftest.one && test -s conftest.two &&
2409 test -s conftest.dir/conftest.one &&
2410 test -s conftest.dir/conftest.two
2411 then
2412 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2413 break 3
2414 fi
2415 fi
2416 fi
2417 done
2418 done
2419 ;;
2420 esac
2421
2422 done
2423 IFS=$as_save_IFS
2424
2425 rm -rf conftest.one conftest.two conftest.dir
2426
2427 fi
2428 if test "${ac_cv_path_install+set}" = set; then
2429 INSTALL=$ac_cv_path_install
2430 else
2431 # As a last resort, use the slow shell script. Don't cache a
2432 # value for INSTALL within a source directory, because that will
2433 # break other packages using the cache if that directory is
2434 # removed, or if the value is a relative name.
2435 INSTALL=$ac_install_sh
2436 fi
2437 fi
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2439 $as_echo "$INSTALL" >&6; }
2440
2441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2442 # It thinks the first close brace ends the variable substitution.
2443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2444
2445 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2446
2447 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2448
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2450 $as_echo_n "checking whether ln works... " >&6; }
2451 if test "${acx_cv_prog_LN+set}" = set; then :
2452 $as_echo_n "(cached) " >&6
2453 else
2454 rm -f conftestdata_t
2455 echo >conftestdata_f
2456 if ln conftestdata_f conftestdata_t 2>/dev/null
2457 then
2458 acx_cv_prog_LN=ln
2459 else
2460 acx_cv_prog_LN=no
2461 fi
2462 rm -f conftestdata_f conftestdata_t
2463
2464 fi
2465 if test $acx_cv_prog_LN = no; then
2466 LN="cp"
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2468 $as_echo "no, using $LN" >&6; }
2469 else
2470 LN="$acx_cv_prog_LN"
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2472 $as_echo "yes" >&6; }
2473 fi
2474
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2476 $as_echo_n "checking whether ln -s works... " >&6; }
2477 LN_S=$as_ln_s
2478 if test "$LN_S" = "ln -s"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2480 $as_echo "yes" >&6; }
2481 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2483 $as_echo "no, using $LN_S" >&6; }
2484 fi
2485
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2487 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2488 if test "${ac_cv_path_SED+set}" = set; then :
2489 $as_echo_n "(cached) " >&6
2490 else
2491 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2492 for ac_i in 1 2 3 4 5 6 7; do
2493 ac_script="$ac_script$as_nl$ac_script"
2494 done
2495 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2496 { ac_script=; unset ac_script;}
2497 if test -z "$SED"; then
2498 ac_path_SED_found=false
2499 # Loop through the user's path and test for each of PROGNAME-LIST
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_prog in sed gsed; do
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2508 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2509 # Check for GNU ac_path_SED and select it if it is found.
2510 # Check for GNU $ac_path_SED
2511 case `"$ac_path_SED" --version 2>&1` in
2512 *GNU*)
2513 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2514 *)
2515 ac_count=0
2516 $as_echo_n 0123456789 >"conftest.in"
2517 while :
2518 do
2519 cat "conftest.in" "conftest.in" >"conftest.tmp"
2520 mv "conftest.tmp" "conftest.in"
2521 cp "conftest.in" "conftest.nl"
2522 $as_echo '' >> "conftest.nl"
2523 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2525 as_fn_arith $ac_count + 1 && ac_count=$as_val
2526 if test $ac_count -gt ${ac_path_SED_max-0}; then
2527 # Best one so far, save it but keep looking for a better one
2528 ac_cv_path_SED="$ac_path_SED"
2529 ac_path_SED_max=$ac_count
2530 fi
2531 # 10*(2^10) chars as input seems more than enough
2532 test $ac_count -gt 10 && break
2533 done
2534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2535 esac
2536
2537 $ac_path_SED_found && break 3
2538 done
2539 done
2540 done
2541 IFS=$as_save_IFS
2542 if test -z "$ac_cv_path_SED"; then
2543 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2544 fi
2545 else
2546 ac_cv_path_SED=$SED
2547 fi
2548
2549 fi
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2551 $as_echo "$ac_cv_path_SED" >&6; }
2552 SED="$ac_cv_path_SED"
2553 rm -f conftest.sed
2554
2555 for ac_prog in gawk mawk nawk awk
2556 do
2557 # Extract the first word of "$ac_prog", so it can be a program name with args.
2558 set dummy $ac_prog; ac_word=$2
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560 $as_echo_n "checking for $ac_word... " >&6; }
2561 if test "${ac_cv_prog_AWK+set}" = set; then :
2562 $as_echo_n "(cached) " >&6
2563 else
2564 if test -n "$AWK"; then
2565 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2569 do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_AWK="$ac_prog"
2575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2577 fi
2578 done
2579 done
2580 IFS=$as_save_IFS
2581
2582 fi
2583 fi
2584 AWK=$ac_cv_prog_AWK
2585 if test -n "$AWK"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2587 $as_echo "$AWK" >&6; }
2588 else
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590 $as_echo "no" >&6; }
2591 fi
2592
2593
2594 test -n "$AWK" && break
2595 done
2596
2597
2598 ### we might need to use some other shell than /bin/sh for running subshells
2599 ### If we are on Windows, search for the shell. This will permit people
2600 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2601 ### without also having to set CONFIG_SHELL. This code will work when
2602 ### using bash, which sets OSTYPE.
2603 case "${OSTYPE}" in
2604 *win32*)
2605 if test x${CONFIG_SHELL} = x ; then
2606 if test ! -f /bin/sh ; then
2607 if test x${SHELL} != x && test -f ${SHELL} ; then
2608 CONFIG_SHELL=${SHELL}
2609 export CONFIG_SHELL
2610 else
2611 for prog in sh sh.exe bash bash.exe; do
2612 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2613 for dir in $PATH; do
2614 test -z "$dir" && dir=.
2615 if test -f $dir/$prog; then
2616 CONFIG_SHELL=$dir/$prog
2617 export CONFIG_SHELL
2618 break
2619 fi
2620 done
2621 IFS="$save_ifs"
2622 test -n "${CONFIG_SHELL}" && break
2623 done
2624 fi
2625 fi
2626 fi
2627 ;;
2628 esac
2629
2630 config_shell=${CONFIG_SHELL-/bin/sh}
2631
2632 moveifchange=${srcdir}/move-if-change
2633
2634 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2635
2636 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2637 # a relative path.
2638 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2639 INSTALL="${srcpwd}/install-sh -c"
2640 fi
2641
2642 # Set srcdir to "." if that's what it is.
2643 # This is important for multilib support.
2644 pwd=`${PWDCMD-pwd}`
2645 if test "${pwd}" = "${srcpwd}" ; then
2646 srcdir=.
2647 fi
2648
2649 topsrcdir=$srcpwd
2650
2651 extra_host_args=
2652
2653 ### To add a new directory to the tree, first choose whether it is a target
2654 ### or a host dependent tool. Then put it into the appropriate list
2655 ### (library or tools, host or target), doing a dependency sort.
2656
2657 # Subdirs will be configured in the order listed in build_configdirs,
2658 # configdirs, or target_configdirs; see the serialization section below.
2659
2660 # Dependency sorting is only needed when *configuration* must be done in
2661 # a particular order. In all cases a dependency should be specified in
2662 # the Makefile, whether or not it's implicitly specified here.
2663
2664 # Double entries in build_configdirs, configdirs, or target_configdirs may
2665 # cause circular dependencies and break everything horribly.
2666
2667 # these library is used by various programs built for the build
2668 # environment
2669 #
2670 build_libs="build-libiberty"
2671
2672 # these tools are built for the build environment
2673 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2674
2675 # these libraries are used by various programs built for the host environment
2676 #
2677 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2678
2679 # these tools are built for the host environment
2680 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2681 # know that we are building the simulator.
2682 # binutils, gas and ld appear in that order because it makes sense to run
2683 # "make check" in that particular order.
2684 # If --enable-gold is used, "gold" may replace "ld".
2685 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2686
2687 # libgcj represents the runtime libraries only used by gcj.
2688 libgcj="target-libffi \
2689 target-zlib \
2690 target-qthreads \
2691 target-libjava"
2692
2693 # these libraries are built for the target environment, and are built after
2694 # the host libraries and the host tools (which may be a cross compiler)
2695 #
2696 target_libraries="target-libgcc \
2697 target-libiberty \
2698 target-libgloss \
2699 target-newlib \
2700 target-libgomp \
2701 target-libstdc++-v3 \
2702 target-libmudflap \
2703 target-libssp \
2704 target-libquadmath \
2705 target-libgfortran \
2706 target-boehm-gc \
2707 ${libgcj} \
2708 target-libobjc \
2709 target-libada \
2710 target-libgo"
2711
2712 # these tools are built using the target libraries, and are intended to
2713 # run only in the target environment
2714 #
2715 # note: any program that *uses* libraries that are in the "target_libraries"
2716 # list belongs in this list. those programs are also very likely
2717 # candidates for the "native_only" list which follows
2718 #
2719 target_tools="target-examples target-groff target-gperf target-rda"
2720
2721 ################################################################################
2722
2723 ## All tools belong in one of the four categories, and are assigned above
2724 ## We assign ${configdirs} this way to remove all embedded newlines. This
2725 ## is important because configure will choke if they ever get through.
2726 ## ${configdirs} is directories we build using the host tools.
2727 ## ${target_configdirs} is directories we build using the target tools.
2728 configdirs=`echo ${host_libs} ${host_tools}`
2729 target_configdirs=`echo ${target_libraries} ${target_tools}`
2730 build_configdirs=`echo ${build_libs} ${build_tools}`
2731
2732
2733
2734 ################################################################################
2735
2736 srcname="gnu development package"
2737
2738 # This gets set non-empty for some net releases of packages.
2739 appdirs=""
2740
2741 # Define is_cross_compiler to save on calls to 'test'.
2742 is_cross_compiler=
2743 if test x"${host}" = x"${target}" ; then
2744 is_cross_compiler=no
2745 else
2746 is_cross_compiler=yes
2747 fi
2748
2749 # Find the build and target subdir names.
2750
2751 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2752 # have matching libraries, they should use host libraries: Makefile.tpl
2753 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2754 # However, they still use the build modules, because the corresponding
2755 # host modules (e.g. bison) are only built for the host when bootstrap
2756 # finishes. So:
2757 # - build_subdir is where we find build modules, and never changes.
2758 # - build_libsubdir is where we find build libraries, and can be overridden.
2759
2760 # Prefix 'build-' so this never conflicts with target_subdir.
2761 build_subdir="build-${build_noncanonical}"
2762
2763 # Check whether --with-build-libsubdir was given.
2764 if test "${with_build_libsubdir+set}" = set; then :
2765 withval=$with_build_libsubdir; build_libsubdir="$withval"
2766 else
2767 build_libsubdir="$build_subdir"
2768 fi
2769
2770 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2771 if ( test $srcdir = . && test -d gcc ) \
2772 || test -d $srcdir/../host-${host_noncanonical}; then
2773 host_subdir="host-${host_noncanonical}"
2774 else
2775 host_subdir=.
2776 fi
2777 # No prefix.
2778 target_subdir=${target_noncanonical}
2779
2780 # Be sure to cover against remnants of an in-tree build.
2781 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2782 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2783 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2784 fi
2785
2786 # Skipdirs are removed silently.
2787 skipdirs=
2788 # Noconfigdirs are removed loudly.
2789 noconfigdirs=""
2790
2791 use_gnu_ld=
2792 # Make sure we don't let GNU ld be added if we didn't want it.
2793 if test x$with_gnu_ld = xno ; then
2794 use_gnu_ld=no
2795 noconfigdirs="$noconfigdirs ld gold"
2796 fi
2797
2798 use_gnu_as=
2799 # Make sure we don't let GNU as be added if we didn't want it.
2800 if test x$with_gnu_as = xno ; then
2801 use_gnu_as=no
2802 noconfigdirs="$noconfigdirs gas"
2803 fi
2804
2805 use_included_zlib=
2806 # Make sure we don't let ZLIB be added if we didn't want it.
2807 if test x$with_system_zlib = xyes ; then
2808 use_included_zlib=no
2809 noconfigdirs="$noconfigdirs zlib"
2810 fi
2811
2812 # some tools are so dependent upon X11 that if we're not building with X,
2813 # it's not even worth trying to configure, much less build, that tool.
2814
2815 case ${with_x} in
2816 yes | "") ;; # the default value for this tree is that X11 is available
2817 no)
2818 skipdirs="${skipdirs} tk itcl libgui"
2819 # We won't be able to build gdbtk without X.
2820 enable_gdbtk=no
2821 ;;
2822 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2823 esac
2824
2825 # Some tools are only suitable for building in a "native" situation.
2826 # Remove these if host!=target.
2827 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
2828
2829 # Similarly, some are only suitable for cross toolchains.
2830 # Remove these if host=target.
2831 cross_only="target-libgloss target-newlib target-opcodes"
2832
2833 case $is_cross_compiler in
2834 no) skipdirs="${skipdirs} ${cross_only}" ;;
2835 yes) skipdirs="${skipdirs} ${native_only}" ;;
2836 esac
2837
2838 # If both --with-headers and --with-libs are specified, default to
2839 # --without-newlib.
2840 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2841 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2842 if test x"${with_newlib}" = x ; then
2843 with_newlib=no
2844 fi
2845 fi
2846
2847 # Recognize --with-newlib/--without-newlib.
2848 case ${with_newlib} in
2849 no) skipdirs="${skipdirs} target-newlib" ;;
2850 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2851 esac
2852
2853 # Handle --enable-gold.
2854 # --enable-gold Build only gold
2855 # --disable-gold [default] Build only ld
2856 # --enable-gold=both Build both gold and ld, ld is default
2857 # --enable-gold=both/ld Same
2858 # --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd
2859
2860 # Check whether --enable-gold was given.
2861 if test "${enable_gold+set}" = set; then :
2862 enableval=$enable_gold; ENABLE_GOLD=$enableval
2863 else
2864 ENABLE_GOLD=no
2865 fi
2866
2867 case "${ENABLE_GOLD}" in
2868 yes|both|both/gold|both/ld)
2869 # Check for ELF target.
2870 is_elf=no
2871 case "${target}" in
2872 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2873 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2874 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2875 case "${target}" in
2876 *-*-linux*aout* | *-*-linux*oldld*)
2877 ;;
2878 *)
2879 is_elf=yes
2880 ;;
2881 esac
2882 esac
2883
2884 if test "$is_elf" = "yes"; then
2885 # Check for target supported by gold.
2886 case "${target}" in
2887 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2888 case "${ENABLE_GOLD}" in
2889 both*)
2890 configdirs="$configdirs gold"
2891 ;;
2892 *)
2893 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
2894 ;;
2895 esac
2896 ENABLE_GOLD=yes
2897 ;;
2898 esac
2899 fi
2900 ;;
2901 no)
2902 ;;
2903 *)
2904 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2905 ;;
2906 esac
2907
2908 # Configure extra directories which are host specific
2909
2910 case "${host}" in
2911 *-cygwin*)
2912 configdirs="$configdirs libtermcap" ;;
2913 esac
2914
2915 # A target can indicate whether a language isn't supported for some reason.
2916 # Only spaces may be used in this macro; not newlines or tabs.
2917 unsupported_languages=
2918
2919 # Remove more programs from consideration, based on the host or
2920 # target this usually means that a port of the program doesn't
2921 # exist yet.
2922
2923 case "${host}" in
2924 hppa*64*-*-*)
2925 noconfigdirs="$noconfigdirs byacc"
2926 ;;
2927 i[3456789]86-*-vsta)
2928 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2929 ;;
2930 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2931 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2932 ;;
2933 x86_64-*-mingw*)
2934 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2935 ;;
2936 i[3456789]86-*-mingw32*)
2937 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2938 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2939 ;;
2940 i[3456789]86-*-beos*)
2941 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2942 ;;
2943 *-*-cygwin*)
2944 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2945 ;;
2946 *-*-netbsd*)
2947 noconfigdirs="$noconfigdirs rcs"
2948 ;;
2949 ppc*-*-pe)
2950 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2951 ;;
2952 powerpc-*-beos*)
2953 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2954 ;;
2955 esac
2956
2957
2958 # Check whether --enable-libada was given.
2959 if test "${enable_libada+set}" = set; then :
2960 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2961 else
2962 ENABLE_LIBADA=yes
2963 fi
2964
2965 if test "${ENABLE_LIBADA}" != "yes" ; then
2966 noconfigdirs="$noconfigdirs gnattools"
2967 fi
2968
2969 # Check whether --enable-libssp was given.
2970 if test "${enable_libssp+set}" = set; then :
2971 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2972 else
2973 ENABLE_LIBSSP=yes
2974 fi
2975
2976
2977 # Save it here so that, even in case of --enable-libgcj, if the Java
2978 # front-end isn't enabled, we still get libgcj disabled.
2979 libgcj_saved=$libgcj
2980 case $enable_libgcj in
2981 yes)
2982 # If we reset it here, it won't get added to noconfigdirs in the
2983 # target-specific build rules, so it will be forcibly enabled
2984 # (unless the Java language itself isn't enabled).
2985 libgcj=
2986 ;;
2987 no)
2988 # Make sure we get it printed in the list of not supported target libs.
2989 noconfigdirs="$noconfigdirs ${libgcj}"
2990 ;;
2991 esac
2992
2993
2994 # Disable libmudflap on some systems.
2995 if test x$enable_libmudflap = x ; then
2996 case "${target}" in
2997 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2998 # Enable libmudflap by default in GNU and friends.
2999 ;;
3000 *-*-freebsd*)
3001 # Enable libmudflap by default in FreeBSD.
3002 ;;
3003 *)
3004 # Disable it by default everywhere else.
3005 noconfigdirs="$noconfigdirs target-libmudflap"
3006 ;;
3007 esac
3008 fi
3009
3010 # Disable libgomp on non POSIX hosted systems.
3011 if test x$enable_libgomp = x ; then
3012 # Enable libgomp by default on hosted POSIX systems.
3013 case "${target}" in
3014 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3015 ;;
3016 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3017 ;;
3018 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3019 ;;
3020 *-*-darwin* | *-*-aix*)
3021 ;;
3022 *)
3023 noconfigdirs="$noconfigdirs target-libgomp"
3024 ;;
3025 esac
3026 fi
3027
3028 # Default libgloss CPU subdirectory.
3029 libgloss_dir="$target_cpu"
3030
3031 case "${target}" in
3032 *-*-chorusos)
3033 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3034 ;;
3035 powerpc-*-darwin*)
3036 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3037 noconfigdirs="$noconfigdirs sim target-rda"
3038 ;;
3039 i[3456789]86-*-darwin*)
3040 noconfigdirs="$noconfigdirs ld gprof"
3041 noconfigdirs="$noconfigdirs sim target-rda"
3042 ;;
3043 x86_64-*-darwin[912]*)
3044 noconfigdirs="$noconfigdirs ld gas gprof"
3045 noconfigdirs="$noconfigdirs sim target-rda"
3046 ;;
3047 *-*-darwin*)
3048 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3049 noconfigdirs="$noconfigdirs sim target-rda"
3050 noconfigdirs="$noconfigdirs ${libgcj}"
3051 ;;
3052 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3053 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3054 ;;
3055 *-*-freebsd*)
3056 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3057 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3058 && test -f /usr/local/include/gmp.h; then
3059 with_gmp=/usr/local
3060 fi
3061
3062 # Skip some stuff that's unsupported on some FreeBSD configurations.
3063 case "${target}" in
3064 i*86-*-*) ;;
3065 alpha*-*-*) ;;
3066 x86_64-*-*) ;;
3067 *)
3068 noconfigdirs="$noconfigdirs ${libgcj}"
3069 ;;
3070 esac
3071 ;;
3072 *-*-kaos*)
3073 # Remove unsupported stuff on all kaOS configurations.
3074 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3075 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3076 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3077 noconfigdirs="$noconfigdirs target-libgloss"
3078 ;;
3079 *-*-netbsd*)
3080 # Skip some stuff on all NetBSD configurations.
3081 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3082
3083 # Skip some stuff that's unsupported on some NetBSD configurations.
3084 case "${target}" in
3085 i*86-*-netbsdelf*) ;;
3086 arm*-*-netbsdelf*) ;;
3087 *)
3088 noconfigdirs="$noconfigdirs ${libgcj}"
3089 ;;
3090 esac
3091 ;;
3092 *-*-netware*)
3093 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3094 ;;
3095 *-*-rtems*)
3096 skipdirs="${skipdirs} target-libiberty"
3097 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3098 ;;
3099 # The tpf target doesn't support gdb yet.
3100 *-*-tpf*)
3101 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3102 ;;
3103 *-*-uclinux*)
3104 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3105 ;;
3106 *-*-vxworks*)
3107 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3108 ;;
3109 alpha*-dec-osf*)
3110 # ld works, but does not support shared libraries.
3111 # newlib is not 64 bit ready. I'm not sure about fileutils.
3112 # gas doesn't generate exception information.
3113 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3114 ;;
3115 alpha*-*-*vms*)
3116 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3117 ;;
3118 alpha*-*-linux*)
3119 # newlib is not 64 bit ready
3120 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3121 ;;
3122 alpha*-*-*)
3123 # newlib is not 64 bit ready
3124 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3125 ;;
3126 am33_2.0-*-linux*)
3127 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3128 ;;
3129 sh-*-linux*)
3130 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3131 ;;
3132 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3133 noconfigdirs="$noconfigdirs ${libgcj}"
3134 noconfigdirs="$noconfigdirs target-examples"
3135 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3136 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3137 noconfigdirs="$noconfigdirs expect dejagnu"
3138 # the C++ libraries don't build on top of CE's C libraries
3139 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3140 noconfigdirs="$noconfigdirs target-newlib"
3141 case "${host}" in
3142 *-*-cygwin*) ;; # keep gdb and readline
3143 *) noconfigdirs="$noconfigdirs gdb readline"
3144 ;;
3145 esac
3146 libgloss_dir=wince
3147 ;;
3148 arc-*-*)
3149 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3150 ;;
3151 arm-semi-aof )
3152 ;;
3153 arm-*-coff | strongarm-*-coff | xscale-*-coff)
3154 noconfigdirs="$noconfigdirs ${libgcj}"
3155 libgloss_dir=arm
3156 ;;
3157 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3158 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3159 libgloss_dir=arm
3160 ;;
3161 arm*-*-linux-gnueabi)
3162 noconfigdirs="$noconfigdirs target-qthreads"
3163 case ${with_newlib} in
3164 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3165 esac
3166 libgloss_dir=arm
3167 ;;
3168 arm*-*-symbianelf*)
3169 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3170 libgloss_dir=arm
3171 ;;
3172 arm-*-pe*)
3173 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3174 ;;
3175 thumb-*-coff)
3176 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3177 ;;
3178 thumb-*-elf)
3179 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3180 ;;
3181 thumb-*-pe)
3182 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3183 ;;
3184 arm-*-riscix*)
3185 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3186 ;;
3187 avr-*-*)
3188 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3189 ;;
3190 bfin-*-*)
3191 unsupported_languages="$unsupported_languages java"
3192 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3193 if test x${is_cross_compiler} != xno ; then
3194 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3195 fi
3196 ;;
3197 c4x-*-* | tic4x-*-*)
3198 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3199 ;;
3200 c54x*-*-* | tic54x-*-*)
3201 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3202 ;;
3203 cr16-*-*)
3204 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3205 ;;
3206 cris-*-* | crisv32-*-*)
3207 unsupported_languages="$unsupported_languages java"
3208 case "${target}" in
3209 *-*-aout)
3210 unsupported_languages="$unsupported_languages fortran"
3211 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3212 *-*-elf)
3213 noconfigdirs="$noconfigdirs target-boehm-gc";;
3214 *-*-linux*)
3215 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3216 *)
3217 unsupported_languages="$unsupported_languages fortran"
3218 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3219 esac
3220 libgloss_dir=cris
3221 ;;
3222 crx-*-*)
3223 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3224 ;;
3225 d10v-*-*)
3226 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3227 ;;
3228 d30v-*-*)
3229 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3230 ;;
3231 ep9312-*-elf | ep9312-*-coff)
3232 libgloss_dir=arm
3233 ;;
3234 fr30-*-elf*)
3235 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3236 ;;
3237 frv-*-*)
3238 noconfigdirs="$noconfigdirs ${libgcj}"
3239 ;;
3240 moxie-*-*)
3241 noconfigdirs="$noconfigdirs ${libgcj}"
3242 noconfigdirs="$noconfigdirs gprof"
3243 ;;
3244 h8300*-*-*)
3245 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3246 ;;
3247 h8500-*-*)
3248 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3249 ;;
3250 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3251 ;;
3252 hppa*64*-*-linux* | parisc*64*-*-linux*)
3253 # In this case, it's because the hppa64-linux target is for
3254 # the kernel only at this point and has no libc, and thus no
3255 # headers, crt*.o, etc., all of which are needed by these.
3256 noconfigdirs="$noconfigdirs target-zlib"
3257 ;;
3258 parisc*-*-linux* | hppa*-*-linux*)
3259 ;;
3260 hppa*-*-*elf* | \
3261 hppa*-*-lites* | \
3262 hppa*-*-openbsd* | \
3263 hppa*64*-*-*)
3264 noconfigdirs="$noconfigdirs ${libgcj}"
3265 ;;
3266 hppa*-hp-hpux11*)
3267 noconfigdirs="$noconfigdirs ld shellutils"
3268 ;;
3269 hppa*-*-pro*)
3270 libgloss_dir=pa
3271 ;;
3272 hppa*-*-*)
3273 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3274 # build on HP-UX 10.20.
3275 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3276 ;;
3277 i960-*-*)
3278 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3279 ;;
3280 ia64*-*-elf*)
3281 # No gdb support yet.
3282 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3283 ;;
3284 ia64*-**-hpux*)
3285 # No gdb or ld support yet.
3286 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3287 ;;
3288 ia64*-*-*vms*)
3289 # No gdb or ld support yet.
3290 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3291 ;;
3292 i370-*-opened*)
3293 ;;
3294 i[3456789]86-*-coff | i[3456789]86-*-elf)
3295 noconfigdirs="$noconfigdirs ${libgcj}"
3296 libgloss_dir=i386
3297 ;;
3298 i[3456789]86-*-linux*)
3299 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3300 # not build java stuff by default.
3301 case "${target}" in
3302 *-*-*libc1*)
3303 noconfigdirs="$noconfigdirs ${libgcj}";;
3304 esac
3305
3306 # This section makes it possible to build newlib natively on linux.
3307 # If we are using a cross compiler then don't configure newlib.
3308 if test x${is_cross_compiler} != xno ; then
3309 noconfigdirs="$noconfigdirs target-newlib"
3310 fi
3311 noconfigdirs="$noconfigdirs target-libgloss"
3312 # If we are not using a cross compiler, do configure newlib.
3313 # Note however, that newlib will only be configured in this situation
3314 # if the --with-newlib option has been given, because otherwise
3315 # 'target-newlib' will appear in skipdirs.
3316 ;;
3317 i[3456789]86-w64-mingw*)
3318 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3319 ;;
3320 i[3456789]86-*-mingw*)
3321 target_configdirs="$target_configdirs target-winsup"
3322 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3323 ;;
3324 x86_64-*-mingw*)
3325 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3326 ;;
3327 *-*-cygwin*)
3328 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3329 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3330 # always build newlib if winsup directory is present.
3331 if test -d "$srcdir/winsup/cygwin"; then
3332 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3333 elif test -d "$srcdir/newlib"; then
3334 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3335 fi
3336 ;;
3337 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3338 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3339 ;;
3340 i[3456789]86-*-pe)
3341 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3342 ;;
3343 i[3456789]86-*-sco3.2v5*)
3344 # The linker does not yet know about weak symbols in COFF,
3345 # and is not configured to handle mixed ELF and COFF.
3346 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3347 ;;
3348 i[3456789]86-*-sco*)
3349 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3350 ;;
3351 i[3456789]86-*-solaris2*)
3352 noconfigdirs="$noconfigdirs target-libgloss"
3353 ;;
3354 i[3456789]86-*-sysv4*)
3355 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3356 ;;
3357 i[3456789]86-*-beos*)
3358 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3359 ;;
3360 i[3456789]86-*-rdos*)
3361 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3362 ;;
3363 m32r-*-*)
3364 noconfigdirs="$noconfigdirs ${libgcj}"
3365 ;;
3366 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3367 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3368 libgloss_dir=m68hc11
3369 ;;
3370 m68k-*-elf*)
3371 noconfigdirs="$noconfigdirs ${libgcj}"
3372 ;;
3373 m68k-*-coff*)
3374 noconfigdirs="$noconfigdirs ${libgcj}"
3375 ;;
3376 m68*-*-* | fido-*-*)
3377 libgloss_dir=m68k
3378 ;;
3379 mcore-*-pe*)
3380 # The EPOC C++ environment does not support exceptions or rtti,
3381 # and so building libstdc++-v3 tends not to always work.
3382 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3383 ;;
3384 mmix-*-*)
3385 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3386 unsupported_languages="$unsupported_languages fortran java"
3387 ;;
3388 mn10200-*-*)
3389 noconfigdirs="$noconfigdirs ${libgcj}"
3390 ;;
3391 mn10300-*-*)
3392 noconfigdirs="$noconfigdirs ${libgcj}"
3393 ;;
3394 mt-*-*)
3395 noconfigdirs="$noconfigdirs sim"
3396 ;;
3397 powerpc-*-aix*)
3398 # copied from rs6000-*-* entry
3399 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3400 ;;
3401 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3402 target_configdirs="$target_configdirs target-winsup"
3403 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3404 # always build newlib.
3405 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3406 ;;
3407 # This is temporary until we can link against shared libraries
3408 powerpcle-*-solaris*)
3409 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3410 libgloss_dir=rs6000
3411 ;;
3412 powerpc-*-beos*)
3413 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3414 ;;
3415 powerpc-*-eabi)
3416 noconfigdirs="$noconfigdirs ${libgcj}"
3417 libgloss_dir=rs6000
3418 ;;
3419 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3420 libgloss_dir=rs6000
3421 ;;
3422 rs6000-*-lynxos*)
3423 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3424 ;;
3425 rs6000-*-aix*)
3426 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3427 ;;
3428 rs6000-*-*)
3429 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3430 ;;
3431 m68k-apollo-*)
3432 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3433 ;;
3434 microblaze*)
3435 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3436 ;;
3437 mips*-sde-elf*)
3438 skipdirs="$skipdirs target-libiberty"
3439 noconfigdirs="$noconfigdirs ${libgcj}"
3440 if test x$with_newlib = xyes; then
3441 noconfigdirs="$noconfigdirs gprof"
3442 fi
3443 libgloss_dir=mips
3444 ;;
3445 mips*-*-irix5*)
3446 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3447 ;;
3448 mips*-*-irix6*)
3449 # Linking libjava exceeds command-line length limits on at least
3450 # IRIX 6.2, but not on IRIX 6.5.
3451 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3452 # <oldham@codesourcery.com>
3453 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3454 ;;
3455 mips*-*-bsd*)
3456 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3457 ;;
3458 mips*-*-linux*)
3459 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3460 ;;
3461 mips*-*-*)
3462 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3463 libgloss_dir=mips
3464 ;;
3465 romp-*-*)
3466 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3467 ;;
3468 sh-*-* | sh64-*-*)
3469 case "${host}" in
3470 i[3456789]86-*-vsta) ;; # don't add gprof back in
3471 i[3456789]86-*-go32*) ;; # don't add gprof back in
3472 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3473 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3474 esac
3475 case "${target}" in
3476 sh*-*-elf)
3477 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3478 *)
3479 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3480 esac
3481 ;;
3482 sparclet-*-aout* | sparc86x-*-*)
3483 libgloss_dir=sparc
3484 ;;
3485 sparc-*-elf*)
3486 noconfigdirs="$noconfigdirs ${libgcj}"
3487 ;;
3488 sparc64-*-elf*)
3489 noconfigdirs="$noconfigdirs ${libgcj}"
3490 libgloss_dir=sparc
3491 ;;
3492 sparclite-*-*)
3493 noconfigdirs="$noconfigdirs ${libgcj}"
3494 libgloss_dir=sparc
3495 ;;
3496 sparc-*-sunos4*)
3497 noconfigdirs="$noconfigdirs ${libgcj}"
3498 if test x${is_cross_compiler} != xno ; then
3499 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3500 else
3501 use_gnu_ld=no
3502 fi
3503 ;;
3504 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3505 noconfigdirs="$noconfigdirs ${libgcj}"
3506 ;;
3507 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3508 ;;
3509 tic6x-*-*)
3510 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3511 ;;
3512 v810-*-*)
3513 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3514 ;;
3515 v850*-*-*)
3516 noconfigdirs="$noconfigdirs ${libgcj}"
3517 ;;
3518 vax-*-vms)
3519 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3520 ;;
3521 vax-*-*)
3522 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3523 ;;
3524 xtensa*-*-*)
3525 noconfigdirs="$noconfigdirs ${libgcj}"
3526 ;;
3527 ip2k-*-*)
3528 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3529 ;;
3530 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3532 ;;
3533 *-*-lynxos*)
3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3535 ;;
3536 *-*-*)
3537 noconfigdirs="$noconfigdirs ${libgcj}"
3538 ;;
3539 esac
3540
3541 # If we aren't building newlib, then don't build libgloss, since libgloss
3542 # depends upon some newlib header files.
3543 case "${noconfigdirs}" in
3544 *target-libgloss*) ;;
3545 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3546 esac
3547
3548 # Work in distributions that contain no compiler tools, like Autoconf.
3549 tentative_cc=""
3550 host_makefile_frag=/dev/null
3551 if test -d ${srcdir}/config ; then
3552 case "${host}" in
3553 m68k-hp-hpux*)
3554 # Avoid "too much defining" errors from HPUX compiler.
3555 tentative_cc="cc -Wp,-H256000"
3556 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3557 # If it's HP/UX ar, this should be harmless.
3558 RANLIB="ar ts"
3559 ;;
3560 m68k-apollo-sysv*)
3561 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3562 ;;
3563 m68k-apollo-bsd*)
3564 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3565 # chokes on bfd, the compiler won't let you assign integers to enums, and
3566 # other problems. Defining CC to gcc is a questionable way to say "don't use
3567 # the apollo compiler" (the preferred version of GCC could be called cc,
3568 # or whatever), but I'm not sure leaving CC as cc is any better...
3569 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3570 # Used to have BISON=yacc.
3571 tentative_cc=gcc
3572 ;;
3573 m88k-dg-dgux*)
3574 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3575 ;;
3576 m88k-harris-cxux*)
3577 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3578 tentative_cc="cc -Xa"
3579 host_makefile_frag="config/mh-cxux"
3580 ;;
3581 m88k-motorola-sysv*)
3582 ;;
3583 mips*-dec-ultrix*)
3584 tentative_cc="cc -Wf,-XNg1000"
3585 host_makefile_frag="config/mh-decstation"
3586 ;;
3587 mips*-nec-sysv4*)
3588 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3589 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3590 host_makefile_frag="config/mh-necv4"
3591 ;;
3592 mips*-sgi-irix4*)
3593 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3594 # environment. Also bump switch table size so that cp-parse will
3595 # compile. Bump string length limit so linker builds.
3596 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3597 ;;
3598 mips*-*-sysv4*)
3599 host_makefile_frag="config/mh-sysv4"
3600 ;;
3601 mips*-*-sysv*)
3602 # This is for a MIPS running RISC/os 4.52C.
3603
3604 # This is needed for GDB, but needs to be in the top-level make because
3605 # if a library is compiled with the bsd headers and gets linked with the
3606 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3607 # a different size).
3608 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3609 # known except to select the sysv environment. Could we use /proc instead?
3610 # These "sysv environments" and "bsd environments" often end up being a pain.
3611 #
3612 # This is not part of CFLAGS because perhaps not all C compilers have this
3613 # option.
3614 tentative_cc="cc -systype sysv"
3615 ;;
3616 i370-ibm-opened*)
3617 tentative_cc="c89"
3618 ;;
3619 i[3456789]86-*-sysv5*)
3620 host_makefile_frag="config/mh-sysv5"
3621 ;;
3622 i[3456789]86-*-dgux*)
3623 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3624 host_makefile_frag="config/mh-dgux386"
3625 ;;
3626 i[3456789]86-ncr-sysv4.3*)
3627 # The MetaWare compiler will generate a copyright message unless you
3628 # turn it off by adding the -Hnocopyr flag.
3629 tentative_cc="cc -Hnocopyr"
3630 ;;
3631 i[3456789]86-ncr-sysv4*)
3632 # for an NCR 3000 (i486/SVR4) system.
3633 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3634 # This compiler not only emits obnoxious copyright messages every time
3635 # you run it, but it chokes and dies on a whole bunch of GNU source
3636 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3637 tentative_cc="/usr/ccs/ATT/cc"
3638 host_makefile_frag="config/mh-ncr3000"
3639 ;;
3640 i[3456789]86-*-sco3.2v5*)
3641 ;;
3642 i[3456789]86-*-sco*)
3643 # The native C compiler botches some simple uses of const. Unfortunately,
3644 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3645 tentative_cc="cc -Dconst="
3646 host_makefile_frag="config/mh-sco"
3647 ;;
3648 i[3456789]86-*-udk*)
3649 host_makefile_frag="config/mh-sysv5"
3650 ;;
3651 i[3456789]86-*-solaris2*)
3652 host_makefile_frag="config/mh-sysv4"
3653 ;;
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 *-interix*)
3684 host_makefile_frag="config/mh-interix"
3685 ;;
3686 vax-*-ultrix2*)
3687 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3688 tentative_cc=gcc
3689 ;;
3690 *-*-solaris2*)
3691 host_makefile_frag="config/mh-solaris"
3692 ;;
3693 m68k-sun-sunos*)
3694 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3695 # without overflowing the jump tables (-J says to use a 32 bit table)
3696 tentative_cc="cc -J"
3697 ;;
3698 hppa*-hp-hpux10*)
3699 tentative_cc="cc -Wp,-H256000"
3700 host_makefile_frag="config/mh-pa-hpux10"
3701 ;;
3702 hppa*-hp-hpux* | hppa*-*-hiux*)
3703 tentative_cc="cc -Wp,-H256000"
3704 host_makefile_frag="config/mh-pa"
3705 ;;
3706 hppa*-*)
3707 host_makefile_frag="config/mh-pa"
3708 ;;
3709 *-hp-hpux* | *-*-hiux*)
3710 tentative_cc="cc -Wp,-H256000"
3711 ;;
3712 rs6000-*-lynxos*)
3713 # /bin/cc is less than useful for our purposes. Always use GCC
3714 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3715 host_makefile_frag="config/mh-lynxrs6k"
3716 ;;
3717 *-*-darwin*)
3718 host_makefile_frag="config/mh-darwin"
3719 ;;
3720 powerpc-*-aix*)
3721 host_makefile_frag="config/mh-ppc-aix"
3722 ;;
3723 rs6000-*-aix*)
3724 host_makefile_frag="config/mh-ppc-aix"
3725 ;;
3726 *-*-lynxos*)
3727 # /bin/cc is less than useful for our purposes. Always use GCC
3728 tentative_cc="/bin/gcc"
3729 ;;
3730 *-*-sysv4*)
3731 host_makefile_frag="config/mh-sysv4"
3732 ;;
3733 # This is placed last to prevent interfering with the cases above.
3734 i[3456789]86-*-*)
3735 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3736 host_makefile_frag="config/mh-x86omitfp"
3737 ;;
3738 esac
3739 fi
3740
3741 # If we aren't going to be using gcc, see if we can extract a definition
3742 # of CC from the fragment.
3743 # Actually, use the 'pre-extracted' version above.
3744 if test -z "${CC}" && test "${build}" = "${host}" ; then
3745 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3746 found=
3747 for dir in $PATH; do
3748 test -z "$dir" && dir=.
3749 if test -f $dir/gcc; then
3750 found=yes
3751 break
3752 fi
3753 done
3754 IFS="$save_ifs"
3755 if test -z "${found}" && test -n "${tentative_cc}" ; then
3756 CC=$tentative_cc
3757 fi
3758 fi
3759
3760 if test "${build}" != "${host}" ; then
3761 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3762 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3763 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3764 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3765 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3766 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3767 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3768 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3769 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3770 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3771 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3772 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3773 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3774 else
3775 AR_FOR_BUILD="\$(AR)"
3776 AS_FOR_BUILD="\$(AS)"
3777 CC_FOR_BUILD="\$(CC)"
3778 CXX_FOR_BUILD="\$(CXX)"
3779 GCJ_FOR_BUILD="\$(GCJ)"
3780 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3781 GOC_FOR_BUILD="\$(GOC)"
3782 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3783 LD_FOR_BUILD="\$(LD)"
3784 NM_FOR_BUILD="\$(NM)"
3785 RANLIB_FOR_BUILD="\$(RANLIB)"
3786 WINDRES_FOR_BUILD="\$(WINDRES)"
3787 WINDMC_FOR_BUILD="\$(WINDMC)"
3788 fi
3789
3790 ac_ext=c
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795 if test -n "$ac_tool_prefix"; then
3796 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3797 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799 $as_echo_n "checking for $ac_word... " >&6; }
3800 if test "${ac_cv_prog_CC+set}" = set; then :
3801 $as_echo_n "(cached) " >&6
3802 else
3803 if test -n "$CC"; then
3804 ac_cv_prog_CC="$CC" # Let the user override the test.
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3808 do
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3813 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 break 2
3816 fi
3817 done
3818 done
3819 IFS=$as_save_IFS
3820
3821 fi
3822 fi
3823 CC=$ac_cv_prog_CC
3824 if test -n "$CC"; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3826 $as_echo "$CC" >&6; }
3827 else
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3830 fi
3831
3832
3833 fi
3834 if test -z "$ac_cv_prog_CC"; then
3835 ac_ct_CC=$CC
3836 # Extract the first word of "gcc", so it can be a program name with args.
3837 set dummy gcc; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 if test -n "$ac_ct_CC"; then
3844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3848 do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3853 ac_cv_prog_ac_ct_CC="gcc"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3856 fi
3857 done
3858 done
3859 IFS=$as_save_IFS
3860
3861 fi
3862 fi
3863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3864 if test -n "$ac_ct_CC"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3866 $as_echo "$ac_ct_CC" >&6; }
3867 else
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3870 fi
3871
3872 if test "x$ac_ct_CC" = x; then
3873 CC=""
3874 else
3875 case $cross_compiling:$ac_tool_warned in
3876 yes:)
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3879 ac_tool_warned=yes ;;
3880 esac
3881 CC=$ac_ct_CC
3882 fi
3883 else
3884 CC="$ac_cv_prog_CC"
3885 fi
3886
3887 if test -z "$CC"; then
3888 if test -n "$ac_tool_prefix"; then
3889 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3890 set dummy ${ac_tool_prefix}cc; ac_word=$2
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 $as_echo_n "checking for $ac_word... " >&6; }
3893 if test "${ac_cv_prog_CC+set}" = set; then :
3894 $as_echo_n "(cached) " >&6
3895 else
3896 if test -n "$CC"; then
3897 ac_cv_prog_CC="$CC" # Let the user override the test.
3898 else
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3901 do
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906 ac_cv_prog_CC="${ac_tool_prefix}cc"
3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 break 2
3909 fi
3910 done
3911 done
3912 IFS=$as_save_IFS
3913
3914 fi
3915 fi
3916 CC=$ac_cv_prog_CC
3917 if test -n "$CC"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919 $as_echo "$CC" >&6; }
3920 else
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3923 fi
3924
3925
3926 fi
3927 fi
3928 if test -z "$CC"; then
3929 # Extract the first word of "cc", so it can be a program name with args.
3930 set dummy cc; ac_word=$2
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932 $as_echo_n "checking for $ac_word... " >&6; }
3933 if test "${ac_cv_prog_CC+set}" = set; then :
3934 $as_echo_n "(cached) " >&6
3935 else
3936 if test -n "$CC"; then
3937 ac_cv_prog_CC="$CC" # Let the user override the test.
3938 else
3939 ac_prog_rejected=no
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH
3942 do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3948 ac_prog_rejected=yes
3949 continue
3950 fi
3951 ac_cv_prog_CC="cc"
3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 break 2
3954 fi
3955 done
3956 done
3957 IFS=$as_save_IFS
3958
3959 if test $ac_prog_rejected = yes; then
3960 # We found a bogon in the path, so make sure we never use it.
3961 set dummy $ac_cv_prog_CC
3962 shift
3963 if test $# != 0; then
3964 # We chose a different compiler from the bogus one.
3965 # However, it has the same basename, so the bogon will be chosen
3966 # first if we set CC to just the basename; use the full file name.
3967 shift
3968 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3969 fi
3970 fi
3971 fi
3972 fi
3973 CC=$ac_cv_prog_CC
3974 if test -n "$CC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976 $as_echo "$CC" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3980 fi
3981
3982
3983 fi
3984 if test -z "$CC"; then
3985 if test -n "$ac_tool_prefix"; then
3986 for ac_prog in cl.exe
3987 do
3988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991 $as_echo_n "checking for $ac_word... " >&6; }
3992 if test "${ac_cv_prog_CC+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 if test -n "$CC"; then
3996 ac_cv_prog_CC="$CC" # Let the user override the test.
3997 else
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH
4000 do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 break 2
4008 fi
4009 done
4010 done
4011 IFS=$as_save_IFS
4012
4013 fi
4014 fi
4015 CC=$ac_cv_prog_CC
4016 if test -n "$CC"; then
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4018 $as_echo "$CC" >&6; }
4019 else
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 $as_echo "no" >&6; }
4022 fi
4023
4024
4025 test -n "$CC" && break
4026 done
4027 fi
4028 if test -z "$CC"; then
4029 ac_ct_CC=$CC
4030 for ac_prog in cl.exe
4031 do
4032 # Extract the first word of "$ac_prog", so it can be a program name with args.
4033 set dummy $ac_prog; ac_word=$2
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 if test -n "$ac_ct_CC"; then
4040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4041 else
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045 IFS=$as_save_IFS
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049 ac_cv_prog_ac_ct_CC="$ac_prog"
4050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4051 break 2
4052 fi
4053 done
4054 done
4055 IFS=$as_save_IFS
4056
4057 fi
4058 fi
4059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4060 if test -n "$ac_ct_CC"; then
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4062 $as_echo "$ac_ct_CC" >&6; }
4063 else
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065 $as_echo "no" >&6; }
4066 fi
4067
4068
4069 test -n "$ac_ct_CC" && break
4070 done
4071
4072 if test "x$ac_ct_CC" = x; then
4073 CC=""
4074 else
4075 case $cross_compiling:$ac_tool_warned in
4076 yes:)
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079 ac_tool_warned=yes ;;
4080 esac
4081 CC=$ac_ct_CC
4082 fi
4083 fi
4084
4085 fi
4086
4087
4088 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4090 as_fn_error "no acceptable C compiler found in \$PATH
4091 See \`config.log' for more details." "$LINENO" 5; }
4092
4093 # Provide some information about the compiler.
4094 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4095 set X $ac_compile
4096 ac_compiler=$2
4097 for ac_option in --version -v -V -qversion; do
4098 { { ac_try="$ac_compiler $ac_option >&5"
4099 case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102 esac
4103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104 $as_echo "$ac_try_echo"; } >&5
4105 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4106 ac_status=$?
4107 if test -s conftest.err; then
4108 sed '10a\
4109 ... rest of stderr output deleted ...
4110 10q' conftest.err >conftest.er1
4111 cat conftest.er1 >&5
4112 rm -f conftest.er1 conftest.err
4113 fi
4114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4115 test $ac_status = 0; }
4116 done
4117
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120
4121 int
4122 main ()
4123 {
4124
4125 ;
4126 return 0;
4127 }
4128 _ACEOF
4129 ac_clean_files_save=$ac_clean_files
4130 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4131 # Try to create an executable without -o first, disregard a.out.
4132 # It will help us diagnose broken compilers, and finding out an intuition
4133 # of exeext.
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4135 $as_echo_n "checking for C compiler default output file name... " >&6; }
4136 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4137
4138 # The possible output files:
4139 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4140
4141 ac_rmfiles=
4142 for ac_file in $ac_files
4143 do
4144 case $ac_file in
4145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4146 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4147 esac
4148 done
4149 rm -f $ac_rmfiles
4150
4151 if { { ac_try="$ac_link_default"
4152 case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155 esac
4156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4157 $as_echo "$ac_try_echo"; } >&5
4158 (eval "$ac_link_default") 2>&5
4159 ac_status=$?
4160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161 test $ac_status = 0; }; then :
4162 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4163 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4164 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4165 # so that the user can short-circuit this test for compilers unknown to
4166 # Autoconf.
4167 for ac_file in $ac_files ''
4168 do
4169 test -f "$ac_file" || continue
4170 case $ac_file in
4171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4172 ;;
4173 [ab].out )
4174 # We found the default executable, but exeext='' is most
4175 # certainly right.
4176 break;;
4177 *.* )
4178 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4179 then :; else
4180 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4181 fi
4182 # We set ac_cv_exeext here because the later test for it is not
4183 # safe: cross compilers may not add the suffix if given an `-o'
4184 # argument, so we may need to know it at that point already.
4185 # Even if this section looks crufty: it has the advantage of
4186 # actually working.
4187 break;;
4188 * )
4189 break;;
4190 esac
4191 done
4192 test "$ac_cv_exeext" = no && ac_cv_exeext=
4193
4194 else
4195 ac_file=''
4196 fi
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4198 $as_echo "$ac_file" >&6; }
4199 if test -z "$ac_file"; then :
4200 $as_echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4202
4203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205 { as_fn_set_status 77
4206 as_fn_error "C compiler cannot create executables
4207 See \`config.log' for more details." "$LINENO" 5; }; }
4208 fi
4209 ac_exeext=$ac_cv_exeext
4210
4211 # Check that the compiler produces executables we can run. If not, either
4212 # the compiler is broken, or we cross compile.
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4214 $as_echo_n "checking whether the C compiler works... " >&6; }
4215 # If not cross compiling, check that we can run a simple program.
4216 if test "$cross_compiling" != yes; then
4217 if { ac_try='./$ac_file'
4218 { { case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221 esac
4222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223 $as_echo "$ac_try_echo"; } >&5
4224 (eval "$ac_try") 2>&5
4225 ac_status=$?
4226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4227 test $ac_status = 0; }; }; then
4228 cross_compiling=no
4229 else
4230 if test "$cross_compiling" = maybe; then
4231 cross_compiling=yes
4232 else
4233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4235 as_fn_error "cannot run C compiled programs.
4236 If you meant to cross compile, use \`--host'.
4237 See \`config.log' for more details." "$LINENO" 5; }
4238 fi
4239 fi
4240 fi
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4242 $as_echo "yes" >&6; }
4243
4244 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4245 ac_clean_files=$ac_clean_files_save
4246 # Check that the compiler produces executables we can run. If not, either
4247 # the compiler is broken, or we cross compile.
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4249 $as_echo_n "checking whether we are cross compiling... " >&6; }
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4251 $as_echo "$cross_compiling" >&6; }
4252
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4254 $as_echo_n "checking for suffix of executables... " >&6; }
4255 if { { ac_try="$ac_link"
4256 case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259 esac
4260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261 $as_echo "$ac_try_echo"; } >&5
4262 (eval "$ac_link") 2>&5
4263 ac_status=$?
4264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265 test $ac_status = 0; }; then :
4266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4267 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4268 # work properly (i.e., refer to `conftest.exe'), while it won't with
4269 # `rm'.
4270 for ac_file in conftest.exe conftest conftest.*; do
4271 test -f "$ac_file" || continue
4272 case $ac_file in
4273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4275 break;;
4276 * ) break;;
4277 esac
4278 done
4279 else
4280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4282 as_fn_error "cannot compute suffix of executables: cannot compile and link
4283 See \`config.log' for more details." "$LINENO" 5; }
4284 fi
4285 rm -f conftest$ac_cv_exeext
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4287 $as_echo "$ac_cv_exeext" >&6; }
4288
4289 rm -f conftest.$ac_ext
4290 EXEEXT=$ac_cv_exeext
4291 ac_exeext=$EXEEXT
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4293 $as_echo_n "checking for suffix of object files... " >&6; }
4294 if test "${ac_cv_objext+set}" = set; then :
4295 $as_echo_n "(cached) " >&6
4296 else
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4299
4300 int
4301 main ()
4302 {
4303
4304 ;
4305 return 0;
4306 }
4307 _ACEOF
4308 rm -f conftest.o conftest.obj
4309 if { { ac_try="$ac_compile"
4310 case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_compile") 2>&5
4317 ac_status=$?
4318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }; then :
4320 for ac_file in conftest.o conftest.obj conftest.*; do
4321 test -f "$ac_file" || continue;
4322 case $ac_file in
4323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4324 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4325 break;;
4326 esac
4327 done
4328 else
4329 $as_echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4331
4332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4334 as_fn_error "cannot compute suffix of object files: cannot compile
4335 See \`config.log' for more details." "$LINENO" 5; }
4336 fi
4337 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4338 fi
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4340 $as_echo "$ac_cv_objext" >&6; }
4341 OBJEXT=$ac_cv_objext
4342 ac_objext=$OBJEXT
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4344 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4345 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350
4351 int
4352 main ()
4353 {
4354 #ifndef __GNUC__
4355 choke me
4356 #endif
4357
4358 ;
4359 return 0;
4360 }
4361 _ACEOF
4362 if ac_fn_c_try_compile "$LINENO"; then :
4363 ac_compiler_gnu=yes
4364 else
4365 ac_compiler_gnu=no
4366 fi
4367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4369
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4372 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4373 if test $ac_compiler_gnu = yes; then
4374 GCC=yes
4375 else
4376 GCC=
4377 fi
4378 ac_test_CFLAGS=${CFLAGS+set}
4379 ac_save_CFLAGS=$CFLAGS
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4381 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4382 if test "${ac_cv_prog_cc_g+set}" = set; then :
4383 $as_echo_n "(cached) " >&6
4384 else
4385 ac_save_c_werror_flag=$ac_c_werror_flag
4386 ac_c_werror_flag=yes
4387 ac_cv_prog_cc_g=no
4388 CFLAGS="-g"
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4391
4392 int
4393 main ()
4394 {
4395
4396 ;
4397 return 0;
4398 }
4399 _ACEOF
4400 if ac_fn_c_try_compile "$LINENO"; then :
4401 ac_cv_prog_cc_g=yes
4402 else
4403 CFLAGS=""
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4406
4407 int
4408 main ()
4409 {
4410
4411 ;
4412 return 0;
4413 }
4414 _ACEOF
4415 if ac_fn_c_try_compile "$LINENO"; then :
4416
4417 else
4418 ac_c_werror_flag=$ac_save_c_werror_flag
4419 CFLAGS="-g"
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4422
4423 int
4424 main ()
4425 {
4426
4427 ;
4428 return 0;
4429 }
4430 _ACEOF
4431 if ac_fn_c_try_compile "$LINENO"; then :
4432 ac_cv_prog_cc_g=yes
4433 fi
4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 fi
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 fi
4438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 ac_c_werror_flag=$ac_save_c_werror_flag
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4442 $as_echo "$ac_cv_prog_cc_g" >&6; }
4443 if test "$ac_test_CFLAGS" = set; then
4444 CFLAGS=$ac_save_CFLAGS
4445 elif test $ac_cv_prog_cc_g = yes; then
4446 if test "$GCC" = yes; then
4447 CFLAGS="-g -O2"
4448 else
4449 CFLAGS="-g"
4450 fi
4451 else
4452 if test "$GCC" = yes; then
4453 CFLAGS="-O2"
4454 else
4455 CFLAGS=
4456 fi
4457 fi
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4459 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4460 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 ac_cv_prog_cc_c89=no
4464 ac_save_CC=$CC
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467 #include <stdarg.h>
4468 #include <stdio.h>
4469 #include <sys/types.h>
4470 #include <sys/stat.h>
4471 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4472 struct buf { int x; };
4473 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4474 static char *e (p, i)
4475 char **p;
4476 int i;
4477 {
4478 return p[i];
4479 }
4480 static char *f (char * (*g) (char **, int), char **p, ...)
4481 {
4482 char *s;
4483 va_list v;
4484 va_start (v,p);
4485 s = g (p, va_arg (v,int));
4486 va_end (v);
4487 return s;
4488 }
4489
4490 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4491 function prototypes and stuff, but not '\xHH' hex character constants.
4492 These don't provoke an error unfortunately, instead are silently treated
4493 as 'x'. The following induces an error, until -std is added to get
4494 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4495 array size at least. It's necessary to write '\x00'==0 to get something
4496 that's true only with -std. */
4497 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4498
4499 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4500 inside strings and character constants. */
4501 #define FOO(x) 'x'
4502 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4503
4504 int test (int i, double x);
4505 struct s1 {int (*f) (int a);};
4506 struct s2 {int (*f) (double a);};
4507 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4508 int argc;
4509 char **argv;
4510 int
4511 main ()
4512 {
4513 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4514 ;
4515 return 0;
4516 }
4517 _ACEOF
4518 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4519 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4520 do
4521 CC="$ac_save_CC $ac_arg"
4522 if ac_fn_c_try_compile "$LINENO"; then :
4523 ac_cv_prog_cc_c89=$ac_arg
4524 fi
4525 rm -f core conftest.err conftest.$ac_objext
4526 test "x$ac_cv_prog_cc_c89" != "xno" && break
4527 done
4528 rm -f conftest.$ac_ext
4529 CC=$ac_save_CC
4530
4531 fi
4532 # AC_CACHE_VAL
4533 case "x$ac_cv_prog_cc_c89" in
4534 x)
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4536 $as_echo "none needed" >&6; } ;;
4537 xno)
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4539 $as_echo "unsupported" >&6; } ;;
4540 *)
4541 CC="$CC $ac_cv_prog_cc_c89"
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4543 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4544 esac
4545 if test "x$ac_cv_prog_cc_c89" != xno; then :
4546
4547 fi
4548
4549 ac_ext=c
4550 ac_cpp='$CPP $CPPFLAGS'
4551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4554
4555 ac_ext=cpp
4556 ac_cpp='$CXXCPP $CPPFLAGS'
4557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4560 if test -z "$CXX"; then
4561 if test -n "$CCC"; then
4562 CXX=$CCC
4563 else
4564 if test -n "$ac_tool_prefix"; then
4565 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4566 do
4567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if test "${ac_cv_prog_CXX+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 if test -n "$CXX"; then
4575 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4576 else
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 break 2
4587 fi
4588 done
4589 done
4590 IFS=$as_save_IFS
4591
4592 fi
4593 fi
4594 CXX=$ac_cv_prog_CXX
4595 if test -n "$CXX"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4597 $as_echo "$CXX" >&6; }
4598 else
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4601 fi
4602
4603
4604 test -n "$CXX" && break
4605 done
4606 fi
4607 if test -z "$CXX"; then
4608 ac_ct_CXX=$CXX
4609 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4610 do
4611 # Extract the first word of "$ac_prog", so it can be a program name with args.
4612 set dummy $ac_prog; ac_word=$2
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614 $as_echo_n "checking for $ac_word... " >&6; }
4615 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 if test -n "$ac_ct_CXX"; then
4619 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4620 else
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4623 do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628 ac_cv_prog_ac_ct_CXX="$ac_prog"
4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 break 2
4631 fi
4632 done
4633 done
4634 IFS=$as_save_IFS
4635
4636 fi
4637 fi
4638 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4639 if test -n "$ac_ct_CXX"; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4641 $as_echo "$ac_ct_CXX" >&6; }
4642 else
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4645 fi
4646
4647
4648 test -n "$ac_ct_CXX" && break
4649 done
4650
4651 if test "x$ac_ct_CXX" = x; then
4652 CXX="g++"
4653 else
4654 case $cross_compiling:$ac_tool_warned in
4655 yes:)
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4658 ac_tool_warned=yes ;;
4659 esac
4660 CXX=$ac_ct_CXX
4661 fi
4662 fi
4663
4664 fi
4665 fi
4666 # Provide some information about the compiler.
4667 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4668 set X $ac_compile
4669 ac_compiler=$2
4670 for ac_option in --version -v -V -qversion; do
4671 { { ac_try="$ac_compiler $ac_option >&5"
4672 case "(($ac_try" in
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4675 esac
4676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4677 $as_echo "$ac_try_echo"; } >&5
4678 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4679 ac_status=$?
4680 if test -s conftest.err; then
4681 sed '10a\
4682 ... rest of stderr output deleted ...
4683 10q' conftest.err >conftest.er1
4684 cat conftest.er1 >&5
4685 rm -f conftest.er1 conftest.err
4686 fi
4687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4688 test $ac_status = 0; }
4689 done
4690
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4692 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4693 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698
4699 int
4700 main ()
4701 {
4702 #ifndef __GNUC__
4703 choke me
4704 #endif
4705
4706 ;
4707 return 0;
4708 }
4709 _ACEOF
4710 if ac_fn_cxx_try_compile "$LINENO"; then :
4711 ac_compiler_gnu=yes
4712 else
4713 ac_compiler_gnu=no
4714 fi
4715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4717
4718 fi
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4720 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4721 if test $ac_compiler_gnu = yes; then
4722 GXX=yes
4723 else
4724 GXX=
4725 fi
4726 ac_test_CXXFLAGS=${CXXFLAGS+set}
4727 ac_save_CXXFLAGS=$CXXFLAGS
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4729 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4730 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4734 ac_cxx_werror_flag=yes
4735 ac_cv_prog_cxx_g=no
4736 CXXFLAGS="-g"
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4739
4740 int
4741 main ()
4742 {
4743
4744 ;
4745 return 0;
4746 }
4747 _ACEOF
4748 if ac_fn_cxx_try_compile "$LINENO"; then :
4749 ac_cv_prog_cxx_g=yes
4750 else
4751 CXXFLAGS=""
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754
4755 int
4756 main ()
4757 {
4758
4759 ;
4760 return 0;
4761 }
4762 _ACEOF
4763 if ac_fn_cxx_try_compile "$LINENO"; then :
4764
4765 else
4766 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4767 CXXFLAGS="-g"
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770
4771 int
4772 main ()
4773 {
4774
4775 ;
4776 return 0;
4777 }
4778 _ACEOF
4779 if ac_fn_cxx_try_compile "$LINENO"; then :
4780 ac_cv_prog_cxx_g=yes
4781 fi
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 fi
4784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785 fi
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4788 fi
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4790 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4791 if test "$ac_test_CXXFLAGS" = set; then
4792 CXXFLAGS=$ac_save_CXXFLAGS
4793 elif test $ac_cv_prog_cxx_g = yes; then
4794 if test "$GXX" = yes; then
4795 CXXFLAGS="-g -O2"
4796 else
4797 CXXFLAGS="-g"
4798 fi
4799 else
4800 if test "$GXX" = yes; then
4801 CXXFLAGS="-O2"
4802 else
4803 CXXFLAGS=
4804 fi
4805 fi
4806 ac_ext=c
4807 ac_cpp='$CPP $CPPFLAGS'
4808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811
4812
4813 # We must set the default linker to the linker used by gcc for the correct
4814 # operation of libtool. If LD is not defined and we are using gcc, try to
4815 # set the LD default to the ld used by gcc.
4816 if test -z "$LD"; then
4817 if test "$GCC" = yes; then
4818 case $build in
4819 *-*-mingw*)
4820 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4821 *)
4822 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4823 esac
4824 case $gcc_prog_ld in
4825 # Accept absolute paths.
4826 [\\/]* | [A-Za-z]:[\\/]*)
4827 LD="$gcc_prog_ld" ;;
4828 esac
4829 fi
4830 fi
4831
4832
4833
4834
4835 if test -n "$ac_tool_prefix"; then
4836 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4837 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4839 $as_echo_n "checking for $ac_word... " >&6; }
4840 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 if test -n "$GNATBIND"; then
4844 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4845 else
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4848 do
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4853 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 break 2
4856 fi
4857 done
4858 done
4859 IFS=$as_save_IFS
4860
4861 fi
4862 fi
4863 GNATBIND=$ac_cv_prog_GNATBIND
4864 if test -n "$GNATBIND"; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4866 $as_echo "$GNATBIND" >&6; }
4867 else
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869 $as_echo "no" >&6; }
4870 fi
4871
4872
4873 fi
4874 if test -z "$ac_cv_prog_GNATBIND"; then
4875 ac_ct_GNATBIND=$GNATBIND
4876 # Extract the first word of "gnatbind", so it can be a program name with args.
4877 set dummy gnatbind; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 if test -n "$ac_ct_GNATBIND"; then
4884 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4885 else
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4888 do
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 break 2
4896 fi
4897 done
4898 done
4899 IFS=$as_save_IFS
4900
4901 fi
4902 fi
4903 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4904 if test -n "$ac_ct_GNATBIND"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4906 $as_echo "$ac_ct_GNATBIND" >&6; }
4907 else
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4910 fi
4911
4912 if test "x$ac_ct_GNATBIND" = x; then
4913 GNATBIND="no"
4914 else
4915 case $cross_compiling:$ac_tool_warned in
4916 yes:)
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4919 ac_tool_warned=yes ;;
4920 esac
4921 GNATBIND=$ac_ct_GNATBIND
4922 fi
4923 else
4924 GNATBIND="$ac_cv_prog_GNATBIND"
4925 fi
4926
4927 if test -n "$ac_tool_prefix"; then
4928 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4929 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 if test -n "$GNATMAKE"; then
4936 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 break 2
4948 fi
4949 done
4950 done
4951 IFS=$as_save_IFS
4952
4953 fi
4954 fi
4955 GNATMAKE=$ac_cv_prog_GNATMAKE
4956 if test -n "$GNATMAKE"; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4958 $as_echo "$GNATMAKE" >&6; }
4959 else
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4962 fi
4963
4964
4965 fi
4966 if test -z "$ac_cv_prog_GNATMAKE"; then
4967 ac_ct_GNATMAKE=$GNATMAKE
4968 # Extract the first word of "gnatmake", so it can be a program name with args.
4969 set dummy gnatmake; ac_word=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 if test -n "$ac_ct_GNATMAKE"; then
4976 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4988 fi
4989 done
4990 done
4991 IFS=$as_save_IFS
4992
4993 fi
4994 fi
4995 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4996 if test -n "$ac_ct_GNATMAKE"; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4998 $as_echo "$ac_ct_GNATMAKE" >&6; }
4999 else
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5002 fi
5003
5004 if test "x$ac_ct_GNATMAKE" = x; then
5005 GNATMAKE="no"
5006 else
5007 case $cross_compiling:$ac_tool_warned in
5008 yes:)
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5011 ac_tool_warned=yes ;;
5012 esac
5013 GNATMAKE=$ac_ct_GNATMAKE
5014 fi
5015 else
5016 GNATMAKE="$ac_cv_prog_GNATMAKE"
5017 fi
5018
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5020 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5021 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 cat >conftest.adb <<EOF
5025 procedure conftest is begin null; end conftest;
5026 EOF
5027 acx_cv_cc_gcc_supports_ada=no
5028 # There is a bug in old released versions of GCC which causes the
5029 # driver to exit successfully when the appropriate language module
5030 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5031 # Therefore we must check for the error message as well as an
5032 # unsuccessful exit.
5033 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5034 # given a .adb file, but produce no object file. So we must check
5035 # if an object file was really produced to guard against this.
5036 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5037 if test x"$errors" = x && test -f conftest.$ac_objext; then
5038 acx_cv_cc_gcc_supports_ada=yes
5039 fi
5040 rm -f conftest.*
5041 fi
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5043 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5044
5045 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5046 have_gnat=yes
5047 else
5048 have_gnat=no
5049 fi
5050
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5052 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5053 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 echo abfoo >t1
5057 echo cdfoo >t2
5058 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5059 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5060 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5061 :
5062 else
5063 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5064 fi
5065 fi
5066 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5067 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5068 :
5069 else
5070 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5071 fi
5072 fi
5073 rm t1 t2
5074
5075 fi
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5077 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5078 do_compare="$gcc_cv_prog_cmp_skip"
5079
5080
5081
5082 # See if we are building gcc with C++.
5083 # Check whether --enable-build-with-cxx was given.
5084 if test "${enable_build_with_cxx+set}" = set; then :
5085 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5086 else
5087 ENABLE_BUILD_WITH_CXX=no
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 # With --enable-build-with-cxx, default to linking libstdc++ and
5572 # libgcc statically. But if the user explicitly specified the
5573 # libraries to use, trust that they are doing what they want.
5574 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5575 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5576 fi
5577 fi
5578
5579
5580
5581 # Check for PPL
5582 ppllibs=" -lppl_c -lppl -lgmpxx"
5583 pplinc=
5584
5585
5586 # Check whether --with-ppl was given.
5587 if test "${with_ppl+set}" = set; then :
5588 withval=$with_ppl;
5589 fi
5590
5591
5592 # Check whether --with-ppl-include was given.
5593 if test "${with_ppl_include+set}" = set; then :
5594 withval=$with_ppl_include;
5595 fi
5596
5597
5598 # Check whether --with-ppl-lib was given.
5599 if test "${with_ppl_lib+set}" = set; then :
5600 withval=$with_ppl_lib;
5601 fi
5602
5603
5604 case $with_ppl in
5605 no)
5606 ppllibs=
5607 ;;
5608 "" | yes)
5609 ;;
5610 *)
5611 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5612 pplinc="-I$with_ppl/include $pplinc"
5613 ;;
5614 esac
5615 if test "x$with_ppl_include" != x; then
5616 pplinc="-I$with_ppl_include $pplinc"
5617 fi
5618 if test "x$with_ppl_lib" != x; then
5619 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5620 fi
5621 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5622 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5623 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5624 enable_ppl_version_check=no
5625 fi
5626
5627 # Check whether --enable-ppl-version-check was given.
5628 if test "${enable_ppl_version_check+set}" = set; then :
5629 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5630 else
5631 ENABLE_PPL_CHECK=yes
5632 fi
5633
5634
5635 if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5636 saved_CFLAGS="$CFLAGS"
5637 CFLAGS="$CFLAGS $pplinc $gmpinc"
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5639 $as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642 #include "ppl_c.h"
5643 int
5644 main ()
5645 {
5646
5647 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5648 choke me
5649 #endif
5650
5651 ;
5652 return 0;
5653 }
5654 _ACEOF
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5657 $as_echo "yes" >&6; }
5658 else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5661 fi
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 CFLAGS="$saved_CFLAGS"
5664 fi
5665
5666 # Flags needed for PPL
5667
5668
5669
5670
5671 # Check for CLOOG
5672
5673
5674
5675 # Check whether --with-cloog was given.
5676 if test "${with_cloog+set}" = set; then :
5677 withval=$with_cloog;
5678 fi
5679
5680
5681 # Check whether --with-cloog-include was given.
5682 if test "${with_cloog_include+set}" = set; then :
5683 withval=$with_cloog_include;
5684 fi
5685
5686
5687 # Check whether --with-cloog-lib was given.
5688 if test "${with_cloog_lib+set}" = set; then :
5689 withval=$with_cloog_lib;
5690 fi
5691
5692
5693 # Check whether --enable-cloog-backend was given.
5694 if test "${enable_cloog_backend+set}" = set; then :
5695 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5696 cloog_backend=isl
5697 elif test "x${enableval}" = "xppl"; then
5698 cloog_backend=ppl
5699 else
5700 cloog_backend=ppl-legacy
5701 fi
5702 else
5703 cloog_backend=ppl-legacy
5704 fi
5705
5706 # Check whether --enable-cloog-version-check was given.
5707 if test "${enable_cloog_version_check+set}" = set; then :
5708 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5709 else
5710 ENABLE_CLOOG_CHECK=yes
5711 fi
5712
5713
5714 # Initialize clooglibs and clooginc.
5715 case $with_cloog in
5716 no)
5717 clooglibs=
5718 clooginc=
5719 ;;
5720 "" | yes)
5721 ;;
5722 *)
5723 clooglibs="-L$with_cloog/lib"
5724 clooginc="-I$with_cloog/include"
5725 ;;
5726 esac
5727 if test "x${with_cloog_include}" != x ; then
5728 clooginc="-I$with_cloog_include"
5729 fi
5730 if test "x${with_cloog_lib}" != x; then
5731 clooglibs="-L$with_cloog_lib"
5732 fi
5733
5734
5735
5736
5737
5738 if test "x$with_ppl" = "xno"; then
5739 with_cloog=no
5740 fi
5741 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5742 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5743 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5744 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5745 fi
5746 if test "x$with_cloog" != "xno"; then
5747
5748
5749
5750 _cloog_saved_CFLAGS=$CFLAGS
5751 _cloog_saved_CPPFLAGS=$CPPFLAGS
5752 _cloog_saved_LDFLAGS=$LDFLAGS
5753 _cloog_saved_LIBS=$LIBS
5754
5755 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5756
5757 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5758 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5759 LDFLAGS="${LDFLAGS} ${clooglibs}"
5760
5761 case $cloog_backend in
5762 "ppl-legacy")
5763 CFLAGS="${CFLAGS} ${pplinc}"
5764 LDFLAGS="${LDFLAGS} ${ppllibs}"
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5766 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5767 if test "${gcc_cv_cloog_type+set}" = set; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 LIBS="-lcloog ${_cloog_saved_LIBS}"
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #include "cloog/cloog.h"
5774 int
5775 main ()
5776 {
5777 #ifndef CLOOG_PPL_BACKEND
5778 choke me
5779 #endif
5780 ;
5781 return 0;
5782 }
5783 _ACEOF
5784 if ac_fn_c_try_link "$LINENO"; then :
5785 gcc_cv_cloog_type="PPL Legacy"
5786 else
5787 gcc_cv_cloog_type=no
5788 fi
5789 rm -f core conftest.err conftest.$ac_objext \
5790 conftest$ac_exeext conftest.$ac_ext
5791 fi
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5793 $as_echo "$gcc_cv_cloog_type" >&6; }
5794 ;;
5795 "isl")
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5797 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5798 if test "${gcc_cv_cloog_type+set}" = set; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5801 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5804 #include "cloog/cloog.h"
5805 int
5806 main ()
5807 {
5808 cloog_version ()
5809 ;
5810 return 0;
5811 }
5812 _ACEOF
5813 if ac_fn_c_try_link "$LINENO"; then :
5814 gcc_cv_cloog_type="ISL"
5815 else
5816 gcc_cv_cloog_type=no
5817 fi
5818 rm -f core conftest.err conftest.$ac_objext \
5819 conftest$ac_exeext conftest.$ac_ext
5820 fi
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5822 $as_echo "$gcc_cv_cloog_type" >&6; }
5823 ;;
5824 "ppl")
5825 CFLAGS="${CFLAGS} ${pplinc}"
5826 LDFLAGS="${LDFLAGS} ${ppllibs}"
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5828 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5829 if test "${gcc_cv_cloog_type+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835 #include "cloog/cloog.h"
5836 #include "cloog/ppl/cloog.h"
5837 int
5838 main ()
5839 {
5840 cloog_version ()
5841 ;
5842 return 0;
5843 }
5844 _ACEOF
5845 if ac_fn_c_try_link "$LINENO"; then :
5846 gcc_cv_cloog_type="PPL"
5847 else
5848 gcc_cv_cloog_type=no
5849 fi
5850 rm -f core conftest.err conftest.$ac_objext \
5851 conftest$ac_exeext conftest.$ac_ext
5852 fi
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5854 $as_echo "$gcc_cv_cloog_type" >&6; }
5855 ;;
5856 *)
5857 gcc_cv_cloog_type=""
5858 esac
5859
5860 case $gcc_cv_cloog_type in
5861 "PPL Legacy")
5862 clooginc="${clooginc}"
5863 clooglibs="${clooglibs} -lcloog"
5864 cloog_org=no
5865 ;;
5866 "ISL")
5867 clooginc="${clooginc} ${_cloogorginc}"
5868 clooglibs="${clooglibs} -lcloog-isl"
5869 cloog_org=yes
5870 ;;
5871 "PPL")
5872 clooginc="${clooginc} ${_cloogorginc}"
5873 clooglibs="${clooglibs} -lcloog-ppl"
5874 cloog_org=yes
5875 ;;
5876 *)
5877 clooglibs=
5878 clooginc=
5879 cloog_org=
5880 ;;
5881 esac
5882
5883 LIBS=$_cloog_saved_LIBS
5884 CFLAGS=$_cloog_saved_CFLAGS
5885 CPPFLAGS=$_cloog_saved_CPPFLAGS
5886 LDFLAGS=$_cloog_saved_LDFLAGS
5887
5888
5889
5890
5891
5892 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5893 _cloog_saved_CFLAGS=$CFLAGS
5894 _cloog_saved_LDFLAGS=$LDFLAGS
5895
5896 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5897 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5898
5899 if test "${cloog_org}" = yes ; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5901 $as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5902 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5907 #include "cloog/cloog.h"
5908 int
5909 main ()
5910 {
5911 #if CLOOG_VERSION_MAJOR != 0 \
5912 || CLOOG_VERSION_MINOR != 14 \
5913 || CLOOG_VERSION_REVISION < 0
5914 choke me
5915 #endif
5916 ;
5917 return 0;
5918 }
5919 _ACEOF
5920 if ac_fn_c_try_compile "$LINENO"; then :
5921 gcc_cv_cloog_ct_0_14_0=yes
5922 else
5923 gcc_cv_cloog_ct_0_14_0=no
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926 fi
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5928 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5929 elif test "${cloog_org}" = no ; then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5931 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5932 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5934 else
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937 #include "cloog/cloog.h"
5938 int
5939 main ()
5940 {
5941 #if CLOOG_VERSION_MAJOR != 0 \
5942 || CLOOG_VERSION_MINOR != 15 \
5943 || CLOOG_VERSION_REVISION < 5
5944 choke me
5945 #endif
5946 ;
5947 return 0;
5948 }
5949 _ACEOF
5950 if ac_fn_c_try_compile "$LINENO"; then :
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953 #include "cloog/cloog.h"
5954 int
5955 main ()
5956 {
5957 #if CLOOG_VERSION_MAJOR != 0 \
5958 || CLOOG_VERSION_MINOR != 15 \
5959 || CLOOG_VERSION_REVISION < 9
5960 choke me
5961 #endif
5962 ;
5963 return 0;
5964 }
5965 _ACEOF
5966 if ac_fn_c_try_compile "$LINENO"; then :
5967 gcc_cv_cloog_ct_0_15_5=yes
5968 else
5969 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
5970 fi
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 else
5973 gcc_cv_cloog_ct_0_15_5=no
5974 fi
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 fi
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5978 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5979 fi
5980
5981 CFLAGS=$_cloog_saved_CFLAGS
5982 LDFLAGS=$_cloog_saved_LDFLAGS
5983 fi
5984
5985
5986
5987
5988
5989
5990
5991 if test "x${with_cloog}" != x \
5992 || test "x${with_cloog_include}" != x \
5993 || test "x${with_cloog_lib}" != x ; then
5994 graphite_requested=yes
5995 else
5996 graphite_requested=no
5997 fi
5998
5999
6000
6001 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6002 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6003 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6004 clooglibs=
6005 clooginc=
6006 fi
6007
6008 if test "${graphite_requested}" = yes \
6009 && test "x${clooglibs}" = x \
6010 && test "x${clooginc}" = x ; then
6011
6012 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6013 fi
6014
6015
6016 fi
6017
6018 # Check for LTO support.
6019 # Check whether --enable-lto was given.
6020 if test "${enable_lto+set}" = set; then :
6021 enableval=$enable_lto; enable_lto=$enableval
6022 else
6023 enable_lto=yes; default_enable_lto=yes
6024 fi
6025
6026
6027
6028
6029
6030 target_elf=no
6031 case $target in
6032 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6033 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6034 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6035 target_elf=no
6036 ;;
6037 *)
6038 target_elf=yes
6039 ;;
6040 esac
6041
6042 if test $target_elf = yes; then :
6043 # ELF platforms build the lto-plugin always.
6044 build_lto_plugin=yes
6045
6046 else
6047 if test x"$default_enable_lto" = x"yes" ; then
6048 case $target in
6049 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
6050 # On other non-ELF platforms, LTO has yet to be validated.
6051 *) enable_lto=no ;;
6052 esac
6053 else
6054 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6055 # It would also be nice to check the binutils support, but we don't
6056 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6057 # warn during gcc/ subconfigure; unless you're bootstrapping with
6058 # -flto it won't be needed until after installation anyway.
6059 case $target in
6060 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6061 *) if test x"$enable_lto" = x"yes"; then
6062 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6063 fi
6064 ;;
6065 esac
6066 fi
6067 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6068 # Build it unless LTO was explicitly disabled.
6069 case $target in
6070 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6071 *) ;;
6072 esac
6073
6074 fi
6075
6076
6077
6078 # By default, C is the only stage 1 language.
6079 stage1_languages=,c,
6080
6081 # Target libraries that we bootstrap.
6082 bootstrap_target_libs=,target-libgcc,
6083
6084 # Figure out what language subdirectories are present.
6085 # Look if the user specified --enable-languages="..."; if not, use
6086 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6087 # go away some day.
6088 # NB: embedded tabs in this IF block -- do not untabify
6089 if test -d ${srcdir}/gcc; then
6090 if test x"${enable_languages+set}" != xset; then
6091 if test x"${LANGUAGES+set}" = xset; then
6092 enable_languages="${LANGUAGES}"
6093 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6094 else
6095 enable_languages=all
6096 fi
6097 else
6098 if test x"${enable_languages}" = x ||
6099 test x"${enable_languages}" = xyes;
6100 then
6101 echo configure.in: --enable-languages needs at least one language argument 1>&2
6102 exit 1
6103 fi
6104 fi
6105 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6106
6107 # 'f95' is the old name for the 'fortran' language. We issue a warning
6108 # and make the substitution.
6109 case ,${enable_languages}, in
6110 *,f95,*)
6111 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6112 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6113 ;;
6114 esac
6115
6116 # First scan to see if an enabled language requires some other language.
6117 # We assume that a given config-lang.in will list all the language
6118 # front ends it requires, even if some are required indirectly.
6119 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6120 case ${lang_frag} in
6121 ..) ;;
6122 # The odd quoting in the next line works around
6123 # an apparent bug in bash 1.12 on linux.
6124 ${srcdir}/gcc/[*]/config-lang.in) ;;
6125 *)
6126 # From the config-lang.in, get $language, $lang_requires, and
6127 # $lang_requires_boot_languages.
6128 language=
6129 lang_requires=
6130 lang_requires_boot_languages=
6131 . ${lang_frag}
6132 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6133 case ,${enable_languages}, in
6134 *,$other,*) ;;
6135 *,all,*) ;;
6136 *,$language,*)
6137 echo " \`$other' language required by \`$language'; enabling" 1>&2
6138 enable_languages="${enable_languages},${other}"
6139 ;;
6140 esac
6141 done
6142 for other in ${lang_requires_boot_languages} ; do
6143 if test "$other" != "c"; then
6144 case ,${enable_stage1_languages}, in
6145 *,$other,*) ;;
6146 *,all,*) ;;
6147 *)
6148 case ,${enable_languages}, in
6149 *,$language,*)
6150 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6151 enable_stage1_languages="$enable_stage1_languages,${other}"
6152 ;;
6153 esac
6154 ;;
6155 esac
6156 fi
6157 done
6158 ;;
6159 esac
6160 done
6161
6162 new_enable_languages=,c,
6163
6164 # If LTO is enabled, add the LTO front end.
6165 extra_host_libiberty_configure_flags=
6166 if test "$enable_lto" = "yes" ; then
6167 case ,${enable_languages}, in
6168 *,lto,*) ;;
6169 *) enable_languages="${enable_languages},lto" ;;
6170 esac
6171 if test "${build_lto_plugin}" = "yes" ; then
6172 configdirs="$configdirs lto-plugin"
6173 extra_host_libiberty_configure_flags=--enable-shared
6174 fi
6175 fi
6176
6177
6178 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6179 potential_languages=,c,
6180
6181 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6182 case ${lang_frag} in
6183 ..) ;;
6184 # The odd quoting in the next line works around
6185 # an apparent bug in bash 1.12 on linux.
6186 ${srcdir}/gcc/[*]/config-lang.in) ;;
6187 *)
6188 # From the config-lang.in, get $language, $target_libs,
6189 # $lang_dirs, $boot_language, and $build_by_default
6190 language=
6191 target_libs=
6192 lang_dirs=
6193 subdir_requires=
6194 boot_language=no
6195 build_by_default=yes
6196 . ${lang_frag}
6197 if test x${language} = x; then
6198 echo "${lang_frag} doesn't set \$language." 1>&2
6199 exit 1
6200 fi
6201
6202 if test "$language" = "c++" \
6203 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6204 boot_language=yes
6205 fi
6206
6207 case ,${enable_languages}, in
6208 *,${language},*)
6209 # Language was explicitly selected; include it.
6210 add_this_lang=yes
6211 ;;
6212 *,all,*)
6213 # 'all' was selected, select it if it is a default language
6214 add_this_lang=${build_by_default}
6215 ;;
6216 *)
6217 add_this_lang=no
6218 ;;
6219 esac
6220
6221 # Disable languages that need other directories if these aren't available.
6222 for i in $subdir_requires; do
6223 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6224 case ,${enable_languages}, in
6225 *,${language},*)
6226 # Specifically requested language; tell them.
6227 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6228 ;;
6229 *)
6230 # Silently disable.
6231 add_this_lang=unsupported
6232 ;;
6233 esac
6234 done
6235
6236 # Disable Ada if no preexisting GNAT is available.
6237 case ,${enable_languages},:${language}:${have_gnat} in
6238 *,${language},*:ada:no)
6239 # Specifically requested language; tell them.
6240 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6241 ;;
6242 *:ada:no)
6243 # Silently disable.
6244 add_this_lang=unsupported
6245 ;;
6246 esac
6247
6248 # Disable a language that is unsupported by the target.
6249 case " $unsupported_languages " in
6250 *" $language "*)
6251 add_this_lang=unsupported
6252 ;;
6253 esac
6254
6255 case $add_this_lang in
6256 unsupported)
6257 # Remove language-dependent dirs.
6258 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6259 ;;
6260 no)
6261 # Remove language-dependent dirs; still show language as supported.
6262 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6263 potential_languages="${potential_languages}${language},"
6264 ;;
6265 yes)
6266 new_enable_languages="${new_enable_languages}${language},"
6267 potential_languages="${potential_languages}${language},"
6268 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6269 case "${boot_language}:,$enable_stage1_languages," in
6270 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6271 # Add to (comma-separated) list of stage 1 languages.
6272 case ",$stage1_languages," in
6273 *,$language,* | ,yes, | ,all,) ;;
6274 *) stage1_languages="${stage1_languages}${language}," ;;
6275 esac
6276 # We need to bootstrap any supporting libraries.
6277 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6278 ;;
6279 esac
6280 ;;
6281 esac
6282 ;;
6283 esac
6284 done
6285
6286 # Check whether --enable-stage1-languages was given.
6287 if test "${enable_stage1_languages+set}" = set; then :
6288 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6289 ,no,|,,)
6290 # Set it to something that will have no effect in the loop below
6291 enable_stage1_languages=c ;;
6292 ,yes,)
6293 enable_stage1_languages=`echo $new_enable_languages | \
6294 sed -e "s/^,//" -e "s/,$//" ` ;;
6295 *,all,*)
6296 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6297 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6298 esac
6299
6300 # Add "good" languages from enable_stage1_languages to stage1_languages,
6301 # while "bad" languages go in missing_languages. Leave no duplicates.
6302 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6303 case $potential_languages in
6304 *,$i,*)
6305 case $stage1_languages in
6306 *,$i,*) ;;
6307 *) stage1_languages="$stage1_languages$i," ;;
6308 esac ;;
6309 *)
6310 case $missing_languages in
6311 *,$i,*) ;;
6312 *) missing_languages="$missing_languages$i," ;;
6313 esac ;;
6314 esac
6315 done
6316 fi
6317
6318
6319 # Remove leading/trailing commas that were added for simplicity
6320 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6321 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6322 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6323 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6324
6325 if test "x$missing_languages" != x; then
6326 as_fn_error "
6327 The following requested languages could not be built: ${missing_languages}
6328 Supported languages are: ${potential_languages}" "$LINENO" 5
6329 fi
6330 if test "x$new_enable_languages" != "x$enable_languages"; then
6331 echo The following languages will be built: ${new_enable_languages}
6332 enable_languages="$new_enable_languages"
6333 fi
6334
6335
6336 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6337 fi
6338
6339 # Handle --disable-<component> generically.
6340 for dir in $configdirs $build_configdirs $target_configdirs ; do
6341 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6342 varname=`echo $dirname | sed -e s/+/_/g`
6343 if eval test x\${enable_${varname}} "=" xno ; then
6344 noconfigdirs="$noconfigdirs $dir"
6345 fi
6346 done
6347
6348 # Check for Boehm's garbage collector
6349 # Check whether --enable-objc-gc was given.
6350 if test "${enable_objc_gc+set}" = set; then :
6351 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6352 *,objc,*:*:yes:*target-boehm-gc*)
6353 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6354 ;;
6355 esac
6356 fi
6357
6358
6359 # Make sure we only build Boehm's garbage collector if required.
6360 case ,${enable_languages},:${enable_objc_gc} in
6361 *,objc,*:yes)
6362 # Keep target-boehm-gc if requested for Objective-C.
6363 ;;
6364 *)
6365 # Otherwise remove target-boehm-gc depending on target-libjava.
6366 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6367 noconfigdirs="$noconfigdirs target-boehm-gc"
6368 fi
6369 ;;
6370 esac
6371
6372 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6373 # $build_configdirs and $target_configdirs.
6374 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6375
6376 notsupp=""
6377 for dir in . $skipdirs $noconfigdirs ; do
6378 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6379 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6380 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6381 if test -r $srcdir/$dirname/configure ; then
6382 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6383 true
6384 else
6385 notsupp="$notsupp $dir"
6386 fi
6387 fi
6388 fi
6389 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6390 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6391 if test -r $srcdir/$dirname/configure ; then
6392 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6393 true
6394 else
6395 notsupp="$notsupp $dir"
6396 fi
6397 fi
6398 fi
6399 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6400 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6401 if test -r $srcdir/$dirname/configure ; then
6402 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6403 true
6404 else
6405 notsupp="$notsupp $dir"
6406 fi
6407 fi
6408 fi
6409 done
6410
6411 # Sometimes the tools are distributed with libiberty but with no other
6412 # libraries. In that case, we don't want to build target-libiberty.
6413 # Don't let libgcc imply libiberty either.
6414 if test -n "${target_configdirs}" ; then
6415 libgcc=
6416 others=
6417 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6418 if test "$i" = "libgcc"; then
6419 libgcc=target-libgcc
6420 elif test "$i" != "libiberty" ; then
6421 if test -r $srcdir/$i/configure ; then
6422 others=yes;
6423 break;
6424 fi
6425 fi
6426 done
6427 if test -z "${others}" ; then
6428 target_configdirs=$libgcc
6429 fi
6430 fi
6431
6432 # Quietly strip out all directories which aren't configurable in this tree.
6433 # This relies on all configurable subdirectories being autoconfiscated, which
6434 # is now the case.
6435 build_configdirs_all="$build_configdirs"
6436 build_configdirs=
6437 for i in ${build_configdirs_all} ; do
6438 j=`echo $i | sed -e s/build-//g`
6439 if test -f ${srcdir}/$j/configure ; then
6440 build_configdirs="${build_configdirs} $i"
6441 fi
6442 done
6443
6444 configdirs_all="$configdirs"
6445 configdirs=
6446 for i in ${configdirs_all} ; do
6447 if test -f ${srcdir}/$i/configure ; then
6448 configdirs="${configdirs} $i"
6449 fi
6450 done
6451
6452 target_configdirs_all="$target_configdirs"
6453 target_configdirs=
6454 for i in ${target_configdirs_all} ; do
6455 j=`echo $i | sed -e s/target-//g`
6456 if test -f ${srcdir}/$j/configure ; then
6457 target_configdirs="${target_configdirs} $i"
6458 fi
6459 done
6460
6461 # Produce a warning message for the subdirs we can't configure.
6462 # This isn't especially interesting in the Cygnus tree, but in the individual
6463 # FSF releases, it's important to let people know when their machine isn't
6464 # supported by the one or two programs in a package.
6465
6466 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6467 # If $appdirs is non-empty, at least one of those directories must still
6468 # be configured, or we error out. (E.g., if the gas release supports a
6469 # specified target in some subdirs but not the gas subdir, we shouldn't
6470 # pretend that all is well.)
6471 if test -n "$appdirs" ; then
6472 for dir in $appdirs ; do
6473 if test -r $dir/Makefile.in ; then
6474 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6475 appdirs=""
6476 break
6477 fi
6478 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6479 appdirs=""
6480 break
6481 fi
6482 fi
6483 done
6484 if test -n "$appdirs" ; then
6485 echo "*** This configuration is not supported by this package." 1>&2
6486 exit 1
6487 fi
6488 fi
6489 # Okay, some application will build, or we don't care to check. Still
6490 # notify of subdirs not getting built.
6491 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6492 echo " ${notsupp}" 1>&2
6493 echo " (Any other directories should still work fine.)" 1>&2
6494 fi
6495
6496 case "$host" in
6497 *msdosdjgpp*)
6498 enable_gdbtk=no ;;
6499 esac
6500
6501 # To find our prefix, in gcc_cv_tool_prefix.
6502
6503 # The user is always right.
6504 if test "${PATH_SEPARATOR+set}" != set; then
6505 echo "#! /bin/sh" >conf$$.sh
6506 echo "exit 0" >>conf$$.sh
6507 chmod +x conf$$.sh
6508 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6509 PATH_SEPARATOR=';'
6510 else
6511 PATH_SEPARATOR=:
6512 fi
6513 rm -f conf$$.sh
6514 fi
6515
6516
6517
6518 if test "x$exec_prefix" = xNONE; then
6519 if test "x$prefix" = xNONE; then
6520 gcc_cv_tool_prefix=$ac_default_prefix
6521 else
6522 gcc_cv_tool_prefix=$prefix
6523 fi
6524 else
6525 gcc_cv_tool_prefix=$exec_prefix
6526 fi
6527
6528 # If there is no compiler in the tree, use the PATH only. In any
6529 # case, if there is no compiler in the tree nobody should use
6530 # AS_FOR_TARGET and LD_FOR_TARGET.
6531 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6532 gcc_version=`cat $srcdir/gcc/BASE-VER`
6533 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6534 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6535 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6536 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6537 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6538 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6539 else
6540 gcc_cv_tool_dirs=
6541 fi
6542
6543 if test x$build = x$target && test -n "$md_exec_prefix"; then
6544 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6545 fi
6546
6547
6548
6549 copy_dirs=
6550
6551
6552 # Check whether --with-build-sysroot was given.
6553 if test "${with_build_sysroot+set}" = set; then :
6554 withval=$with_build_sysroot; if test x"$withval" != x ; then
6555 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6556 fi
6557 else
6558 SYSROOT_CFLAGS_FOR_TARGET=
6559 fi
6560
6561
6562
6563
6564 # Check whether --with-debug-prefix-map was given.
6565 if test "${with_debug_prefix_map+set}" = set; then :
6566 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6567 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6568 for debug_map in $withval; do
6569 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6570 done
6571 fi
6572 else
6573 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6574 fi
6575
6576
6577
6578 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6579 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6580 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6581 # We want to ensure that TARGET libraries (which we know are built with
6582 # gcc) are built with "-O2 -g", so include those options when setting
6583 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6584 if test "x$CFLAGS_FOR_TARGET" = x; then
6585 CFLAGS_FOR_TARGET=$CFLAGS
6586 case " $CFLAGS " in
6587 *" -O2 "*) ;;
6588 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6589 esac
6590 case " $CFLAGS " in
6591 *" -g "* | *" -g3 "*) ;;
6592 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6593 esac
6594 fi
6595
6596
6597 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6598 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6599 case " $CXXFLAGS " in
6600 *" -O2 "*) ;;
6601 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6602 esac
6603 case " $CXXFLAGS " in
6604 *" -g "* | *" -g3 "*) ;;
6605 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6606 esac
6607 fi
6608
6609
6610 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6611 # the named directory are copied to $(tooldir)/sys-include.
6612 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6613 if test x${is_cross_compiler} = xno ; then
6614 echo 1>&2 '***' --with-headers is only supported when cross compiling
6615 exit 1
6616 fi
6617 if test x"${with_headers}" != xyes ; then
6618 x=${gcc_cv_tool_prefix}
6619 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6620 fi
6621 fi
6622
6623 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6624 # the name directories are copied to $(tooldir)/lib. Multiple directories
6625 # are permitted.
6626 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6627 if test x${is_cross_compiler} = xno ; then
6628 echo 1>&2 '***' --with-libs is only supported when cross compiling
6629 exit 1
6630 fi
6631 if test x"${with_libs}" != xyes ; then
6632 # Copy the libraries in reverse order, so that files in the first named
6633 # library override files in subsequent libraries.
6634 x=${gcc_cv_tool_prefix}
6635 for l in ${with_libs}; do
6636 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6637 done
6638 fi
6639 fi
6640
6641 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6642 #
6643 # This is done by determining whether or not the appropriate directory
6644 # is available, and by checking whether or not specific configurations
6645 # have requested that this magic not happen.
6646 #
6647 # The command line options always override the explicit settings in
6648 # configure.in, and the settings in configure.in override this magic.
6649 #
6650 # If the default for a toolchain is to use GNU as and ld, and you don't
6651 # want to do that, then you should use the --without-gnu-as and
6652 # --without-gnu-ld options for the configure script. Similarly, if
6653 # the default is to use the included zlib and you don't want to do that,
6654 # you should use the --with-system-zlib option for the configure script.
6655
6656 if test x${use_gnu_as} = x &&
6657 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6658 with_gnu_as=yes
6659 extra_host_args="$extra_host_args --with-gnu-as"
6660 fi
6661
6662 if test x${use_gnu_ld} = x &&
6663 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6664 with_gnu_ld=yes
6665 extra_host_args="$extra_host_args --with-gnu-ld"
6666 fi
6667
6668 if test x${use_included_zlib} = x &&
6669 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6670 :
6671 else
6672 with_system_zlib=yes
6673 extra_host_args="$extra_host_args --with-system-zlib"
6674 fi
6675
6676 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6677 # can detect this case.
6678
6679 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6680 with_newlib=yes
6681 extra_host_args="$extra_host_args --with-newlib"
6682 fi
6683
6684 # Handle ${copy_dirs}
6685 set fnord ${copy_dirs}
6686 shift
6687 while test $# != 0 ; do
6688 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6689 :
6690 else
6691 echo Copying $1 to $2
6692
6693 # Use the install script to create the directory and all required
6694 # parent directories.
6695 if test -d $2 ; then
6696 :
6697 else
6698 echo >config.temp
6699 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6700 fi
6701
6702 # Copy the directory, assuming we have tar.
6703 # FIXME: Should we use B in the second tar? Not all systems support it.
6704 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6705
6706 # It is the responsibility of the user to correctly adjust all
6707 # symlinks. If somebody can figure out how to handle them correctly
6708 # here, feel free to add the code.
6709
6710 echo $1 > $2/COPIED
6711 fi
6712 shift; shift
6713 done
6714
6715 # Determine a target-dependent exec_prefix that the installed
6716 # gcc will search in. Keep this list sorted by triplet, with
6717 # the *-*-osname triplets last.
6718 md_exec_prefix=
6719 case "${target}" in
6720 alpha*-*-*vms*)
6721 md_exec_prefix=/gnu/lib/gcc-lib
6722 ;;
6723 i[34567]86-pc-msdosdjgpp*)
6724 md_exec_prefix=/dev/env/DJDIR/bin
6725 ;;
6726 i[34567]86-*-sco3.2v5*)
6727 if test $with_gnu_as = yes; then
6728 md_exec_prefix=/usr/gnu/bin
6729 else
6730 md_exec_prefix=/usr/ccs/bin/elf
6731 fi
6732 ;;
6733
6734 mn10300-*-* | \
6735 powerpc-*-chorusos* | \
6736 powerpc*-*-eabi* | \
6737 powerpc*-*-sysv* | \
6738 powerpc*-*-kaos* | \
6739 s390x-ibm-tpf*)
6740 md_exec_prefix=/usr/ccs/bin
6741 ;;
6742 sparc64-*-elf*)
6743 ;;
6744 v850*-*-*)
6745 md_exec_prefix=/usr/ccs/bin
6746 ;;
6747 xtensa*-*-elf*)
6748 ;;
6749
6750 *-*-beos* | \
6751 *-*-elf* | \
6752 *-*-hpux* | \
6753 *-*-netware* | \
6754 *-*-nto-qnx* | \
6755 *-*-rtems* | \
6756 *-*-solaris2* | \
6757 *-*-sysv[45]* | \
6758 *-*-vxworks* | \
6759 *-wrs-windiss)
6760 md_exec_prefix=/usr/ccs/bin
6761 ;;
6762 esac
6763
6764 extra_arflags_for_target=
6765 extra_nmflags_for_target=
6766 extra_ranlibflags_for_target=
6767 target_makefile_frag=/dev/null
6768 case "${target}" in
6769 mep*-*-*)
6770 target_makefile_frag="config/mt-mep"
6771 ;;
6772 spu-*-*)
6773 target_makefile_frag="config/mt-spu"
6774 ;;
6775 mips*-sde-elf*)
6776 target_makefile_frag="config/mt-sde"
6777 ;;
6778 mipsisa*-*-elfoabi*)
6779 target_makefile_frag="config/mt-mips-elfoabi"
6780 ;;
6781 mips*-*-*linux* | mips*-*-gnu*)
6782 target_makefile_frag="config/mt-mips-gnu"
6783 ;;
6784 *-*-netware*)
6785 target_makefile_frag="config/mt-netware"
6786 ;;
6787 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6788 target_makefile_frag="config/mt-gnu"
6789 ;;
6790 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6791 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6792 # commands to handle both 32-bit and 64-bit objects. These flags are
6793 # harmless if we're using GNU nm or ar.
6794 extra_arflags_for_target=" -X32_64"
6795 extra_nmflags_for_target=" -B -X32_64"
6796 ;;
6797 *-*-darwin[3-9]*)
6798 # ranlib before Darwin10 requires the -c flag to look at common symbols.
6799 extra_ranlibflags_for_target=" -c"
6800 ;;
6801 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6802 target_makefile_frag="config/mt-wince"
6803 ;;
6804 esac
6805
6806 alphaieee_frag=/dev/null
6807 case $target in
6808 alpha*-*-*)
6809 # This just makes sure to use the -mieee option to build target libs.
6810 # This should probably be set individually by each library.
6811 alphaieee_frag="config/mt-alphaieee"
6812 ;;
6813 esac
6814
6815 # If --enable-target-optspace always use -Os instead of -O2 to build
6816 # the target libraries, similarly if it is not specified, use -Os
6817 # on selected platforms.
6818 ospace_frag=/dev/null
6819 case "${enable_target_optspace}:${target}" in
6820 yes:*)
6821 ospace_frag="config/mt-ospace"
6822 ;;
6823 :d30v-*)
6824 ospace_frag="config/mt-d30v"
6825 ;;
6826 :m32r-* | :d10v-* | :fr30-*)
6827 ospace_frag="config/mt-ospace"
6828 ;;
6829 no:* | :*)
6830 ;;
6831 *)
6832 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6833 ;;
6834 esac
6835
6836 # Default to using --with-stabs for certain targets.
6837 if test x${with_stabs} = x ; then
6838 case "${target}" in
6839 mips*-*-irix[56]*)
6840 ;;
6841 mips*-*-* | alpha*-*-osf*)
6842 with_stabs=yes;
6843 extra_host_args="${extra_host_args} --with-stabs"
6844 ;;
6845 esac
6846 fi
6847
6848 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6849 # them automatically.
6850 case "${host}" in
6851 hppa*64*-*-hpux11*)
6852 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6853 ;;
6854 esac
6855
6856 # Some systems (e.g., one of the i386-aix systems the gas testers are
6857 # using) don't handle "\$" correctly, so don't use it here.
6858 tooldir='${exec_prefix}'/${target_noncanonical}
6859 build_tooldir=${tooldir}
6860
6861 # Create a .gdbinit file which runs the one in srcdir
6862 # and tells GDB to look there for source files.
6863
6864 if test -r ${srcdir}/.gdbinit ; then
6865 case ${srcdir} in
6866 .) ;;
6867 *) cat > ./.gdbinit <<EOF
6868 # ${NO_EDIT}
6869 dir ${srcdir}
6870 dir .
6871 source ${srcdir}/.gdbinit
6872 EOF
6873 ;;
6874 esac
6875 fi
6876
6877 # Make sure that the compiler is able to generate an executable. If it
6878 # can't, we are probably in trouble. We don't care whether we can run the
6879 # executable--we might be using a cross compiler--we only care whether it
6880 # can be created. At this point the main configure script has set CC.
6881 we_are_ok=no
6882 echo "int main () { return 0; }" > conftest.c
6883 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6884 if test $? = 0 ; then
6885 if test -s conftest || test -s conftest.exe ; then
6886 we_are_ok=yes
6887 fi
6888 fi
6889 case $we_are_ok in
6890 no)
6891 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6892 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6893 rm -f conftest*
6894 exit 1
6895 ;;
6896 esac
6897 rm -f conftest*
6898
6899 # The Solaris /usr/ucb/cc compiler does not appear to work.
6900 case "${host}" in
6901 sparc-sun-solaris2*)
6902 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6903 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6904 could_use=
6905 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6906 if test -d /opt/cygnus/bin ; then
6907 if test "$could_use" = "" ; then
6908 could_use="/opt/cygnus/bin"
6909 else
6910 could_use="$could_use or /opt/cygnus/bin"
6911 fi
6912 fi
6913 if test "$could_use" = "" ; then
6914 echo "Warning: compilation may fail because you're using"
6915 echo "/usr/ucb/cc. You should change your PATH or CC "
6916 echo "variable and rerun configure."
6917 else
6918 echo "Warning: compilation may fail because you're using"
6919 echo "/usr/ucb/cc, when you should use the C compiler from"
6920 echo "$could_use. You should change your"
6921 echo "PATH or CC variable and rerun configure."
6922 fi
6923 fi
6924 ;;
6925 esac
6926
6927 # Decide which environment variable is used to find dynamic libraries.
6928 case "${host}" in
6929 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6930 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6931 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6932 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6933 esac
6934
6935 # On systems where the dynamic library environment variable is PATH,
6936 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6937 # built executables to PATH.
6938 if test "$RPATH_ENVVAR" = PATH; then
6939 GCC_SHLIB_SUBDIR=/shlib
6940 else
6941 GCC_SHLIB_SUBDIR=
6942 fi
6943
6944 # Record target_configdirs and the configure arguments for target and
6945 # build configuration in Makefile.
6946 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6947 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6948
6949 # If we are building libgomp, bootstrap it.
6950 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6951 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6952 fi
6953
6954 # Determine whether gdb needs tk/tcl or not.
6955 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6956 # and in that case we want gdb to be built without tk. Ugh!
6957 # In fact I believe gdb is the *only* package directly dependent on tk,
6958 # so we should be able to put the 'maybe's in unconditionally and
6959 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6960 # 100% sure that that's safe though.
6961
6962 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6963 case "$enable_gdbtk" in
6964 no)
6965 GDB_TK="" ;;
6966 yes)
6967 GDB_TK="${gdb_tk}" ;;
6968 *)
6969 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6970 # distro. Eventually someone will fix this and move Insight, nee
6971 # gdbtk to a separate directory.
6972 if test -d ${srcdir}/gdb/gdbtk ; then
6973 GDB_TK="${gdb_tk}"
6974 else
6975 GDB_TK=""
6976 fi
6977 ;;
6978 esac
6979 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6980 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6981
6982 # Strip out unwanted targets.
6983
6984 # While at that, we remove Makefiles if we were started for recursive
6985 # configuration, so that the top-level Makefile reconfigures them,
6986 # like we used to do when configure itself was recursive.
6987
6988 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6989 # but now we're fixing up the Makefile ourselves with the additional
6990 # commands passed to AC_CONFIG_FILES. Use separate variables
6991 # extrasub-{build,host,target} not because there is any reason to split
6992 # the substitutions up that way, but only to remain below the limit of
6993 # 99 commands in a script, for HP-UX sed.
6994 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6995
6996 # Check whether --enable-bootstrap was given.
6997 if test "${enable_bootstrap+set}" = set; then :
6998 enableval=$enable_bootstrap;
6999 else
7000 enable_bootstrap=default
7001 fi
7002
7003
7004 # Issue errors and warnings for invalid/strange bootstrap combinations.
7005 case "$configdirs" in
7006 *gcc*) have_compiler=yes ;;
7007 *) have_compiler=no ;;
7008 esac
7009
7010 case "$have_compiler:$host:$target:$enable_bootstrap" in
7011 *:*:*:no) ;;
7012
7013 # Default behavior. Enable bootstrap if we have a compiler
7014 # and we are in a native configuration.
7015 yes:$build:$build:default)
7016 enable_bootstrap=yes ;;
7017
7018 *:*:*:default)
7019 enable_bootstrap=no ;;
7020
7021 # We have a compiler and we are in a native configuration, bootstrap is ok
7022 yes:$build:$build:yes)
7023 ;;
7024
7025 # Other configurations, but we have a compiler. Assume the user knows
7026 # what he's doing.
7027 yes:*:*:yes)
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7029 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
7030 ;;
7031
7032 # No compiler: if they passed --enable-bootstrap explicitly, fail
7033 no:*:*:yes)
7034 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
7035
7036 # Fail if wrong command line
7037 *)
7038 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
7039 ;;
7040 esac
7041
7042 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7043 *,c++,*:yes:yes) ;;
7044 *:yes:yes)
7045 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7046 ;;
7047 esac
7048
7049 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7050 yes:yes:*\ gold\ *:*,c++,*) ;;
7051 yes:yes:*\ gold\ *:*)
7052 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7053 ;;
7054 esac
7055
7056 # Adjust the toplevel makefile according to whether bootstrap was selected.
7057 case $enable_bootstrap in
7058 yes)
7059 bootstrap_suffix=bootstrap
7060 BUILD_CONFIG=bootstrap-debug
7061 ;;
7062 no)
7063 bootstrap_suffix=no-bootstrap
7064 BUILD_CONFIG=
7065 ;;
7066 esac
7067
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7069 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7070
7071
7072 # Check whether --with-build-config was given.
7073 if test "${with_build_config+set}" = set; then :
7074 withval=$with_build_config; case $with_build_config in
7075 yes) with_build_config= ;;
7076 no) with_build_config= BUILD_CONFIG= ;;
7077 esac
7078 fi
7079
7080
7081 if test "x${with_build_config}" != x; then
7082 BUILD_CONFIG=$with_build_config
7083 else
7084 case $BUILD_CONFIG in
7085 bootstrap-debug)
7086 if echo "int f (void) { return 0; }" > conftest.c &&
7087 ${CC} -c conftest.c &&
7088 mv conftest.o conftest.o.g0 &&
7089 ${CC} -c -g conftest.c &&
7090 mv conftest.o conftest.o.g &&
7091 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7092 :
7093 else
7094 BUILD_CONFIG=
7095 fi
7096 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7097 ;;
7098 esac
7099 fi
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7101 $as_echo "$BUILD_CONFIG" >&6; }
7102
7103
7104 extrasub_build=
7105 for module in ${build_configdirs} ; do
7106 if test -z "${no_recursion}" \
7107 && test -f ${build_subdir}/${module}/Makefile; then
7108 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7109 rm -f ${build_subdir}/${module}/Makefile
7110 fi
7111 extrasub_build="$extrasub_build
7112 /^@if build-$module\$/d
7113 /^@endif build-$module\$/d
7114 /^@if build-$module-$bootstrap_suffix\$/d
7115 /^@endif build-$module-$bootstrap_suffix\$/d"
7116 done
7117 extrasub_host=
7118 for module in ${configdirs} ; do
7119 if test -z "${no_recursion}"; then
7120 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7121 if test -f ${file}; then
7122 echo 1>&2 "*** removing ${file} to force reconfigure"
7123 rm -f ${file}
7124 fi
7125 done
7126 fi
7127 extrasub_host="$extrasub_host
7128 /^@if $module\$/d
7129 /^@endif $module\$/d
7130 /^@if $module-$bootstrap_suffix\$/d
7131 /^@endif $module-$bootstrap_suffix\$/d"
7132 done
7133 extrasub_target=
7134 for module in ${target_configdirs} ; do
7135 if test -z "${no_recursion}" \
7136 && test -f ${target_subdir}/${module}/Makefile; then
7137 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7138 rm -f ${target_subdir}/${module}/Makefile
7139 fi
7140
7141 # We only bootstrap target libraries listed in bootstrap_target_libs.
7142 case $bootstrap_target_libs in
7143 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7144 *) target_bootstrap_suffix=no-bootstrap ;;
7145 esac
7146
7147 extrasub_target="$extrasub_target
7148 /^@if target-$module\$/d
7149 /^@endif target-$module\$/d
7150 /^@if target-$module-$target_bootstrap_suffix\$/d
7151 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7152 done
7153
7154 # Do the final fixup along with target modules.
7155 extrasub_target="$extrasub_target
7156 /^@if /,/^@endif /d"
7157
7158 # Create the serialization dependencies. This uses a temporary file.
7159
7160 # Check whether --enable-serial-configure was given.
7161 if test "${enable_serial_configure+set}" = set; then :
7162 enableval=$enable_serial_configure;
7163 fi
7164
7165
7166 case ${enable_serial_configure} in
7167 yes)
7168 enable_serial_build_configure=yes
7169 enable_serial_host_configure=yes
7170 enable_serial_target_configure=yes
7171 ;;
7172 esac
7173
7174 # These force 'configure's to be done one at a time, to avoid problems
7175 # with contention over a shared config.cache.
7176 rm -f serdep.tmp
7177 echo '# serdep.tmp' > serdep.tmp
7178 olditem=
7179 test "x${enable_serial_build_configure}" = xyes &&
7180 for item in ${build_configdirs} ; do
7181 case ${olditem} in
7182 "") ;;
7183 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7184 esac
7185 olditem=${item}
7186 done
7187 olditem=
7188 test "x${enable_serial_host_configure}" = xyes &&
7189 for item in ${configdirs} ; do
7190 case ${olditem} in
7191 "") ;;
7192 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7193 esac
7194 olditem=${item}
7195 done
7196 olditem=
7197 test "x${enable_serial_target_configure}" = xyes &&
7198 for item in ${target_configdirs} ; do
7199 case ${olditem} in
7200 "") ;;
7201 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7202 esac
7203 olditem=${item}
7204 done
7205 serialization_dependencies=serdep.tmp
7206
7207
7208 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7209 # target, nonopt, and variable assignments. These are the ones we
7210 # might not want to pass down to subconfigures. The exception being
7211 # --cache-file=/dev/null, which is used to turn off the use of cache
7212 # files altogether, and which should be passed on to subconfigures.
7213 # Also strip program-prefix, program-suffix, and program-transform-name,
7214 # so that we can pass down a consistent program-transform-name.
7215 baseargs=
7216 keep_next=no
7217 skip_next=no
7218 eval "set -- $ac_configure_args"
7219 for ac_arg
7220 do
7221 if test X"$skip_next" = X"yes"; then
7222 skip_next=no
7223 continue
7224 fi
7225 if test X"$keep_next" = X"yes"; then
7226 case $ac_arg in
7227 *\'*)
7228 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7229 esac
7230 baseargs="$baseargs '$ac_arg'"
7231 keep_next=no
7232 continue
7233 fi
7234
7235 # Handle separated arguments. Based on the logic generated by
7236 # autoconf 2.59.
7237 case $ac_arg in
7238 *=* | --config-cache | -C | -disable-* | --disable-* \
7239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7241 | -with-* | --with-* | -without-* | --without-* | --x)
7242 separate_arg=no
7243 ;;
7244 -*)
7245 separate_arg=yes
7246 ;;
7247 *)
7248 separate_arg=no
7249 ;;
7250 esac
7251
7252 case "$ac_arg" in
7253 --cache-file=/dev/null | \
7254 -cache-file=/dev/null )
7255 # Handled here to avoid the test to skip args below.
7256 baseargs="$baseargs '$ac_arg'"
7257 # Assert: $separate_arg should always be no.
7258 keep_next=$separate_arg
7259 ;;
7260 --no*)
7261 continue
7262 ;;
7263 --c* | \
7264 --sr* | \
7265 --ho* | \
7266 --bu* | \
7267 --t* | \
7268 --program-* | \
7269 -cache_file* | \
7270 -srcdir* | \
7271 -host* | \
7272 -build* | \
7273 -target* | \
7274 -program-prefix* | \
7275 -program-suffix* | \
7276 -program-transform-name* )
7277 skip_next=$separate_arg
7278 continue
7279 ;;
7280 -*)
7281 # An option. Add it.
7282 case $ac_arg in
7283 *\'*)
7284 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7285 esac
7286 baseargs="$baseargs '$ac_arg'"
7287 keep_next=$separate_arg
7288 ;;
7289 *)
7290 # Either a variable assignment, or a nonopt (triplet). Don't
7291 # pass it down; let the Makefile handle this.
7292 continue
7293 ;;
7294 esac
7295 done
7296 # Remove the initial space we just introduced and, as these will be
7297 # expanded by make, quote '$'.
7298 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7299
7300 # Add in --program-transform-name, after --program-prefix and
7301 # --program-suffix have been applied to it. Autoconf has already
7302 # doubled dollar signs and backslashes in program_transform_name; we want
7303 # the backslashes un-doubled, and then the entire thing wrapped in single
7304 # quotes, because this will be expanded first by make and then by the shell.
7305 # Also, because we want to override the logic in subdir configure scripts to
7306 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7307 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7308 ${program_transform_name}
7309 EOF_SED
7310 gcc_transform_name=`cat conftestsed.out`
7311 rm -f conftestsed.out
7312 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7313 if test "$silent" = yes; then
7314 baseargs="$baseargs --silent"
7315 fi
7316 baseargs="$baseargs --disable-option-checking"
7317
7318 # Record and document user additions to sub configure arguments.
7319
7320
7321
7322
7323 # For the build-side libraries, we just need to pretend we're native,
7324 # and not use the same cache file. Multilibs are neither needed nor
7325 # desired.
7326 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7327
7328 # For host modules, accept cache file option, or specification as blank.
7329 case "${cache_file}" in
7330 "") # empty
7331 cache_file_option="" ;;
7332 /* | [A-Za-z]:[\\/]* ) # absolute path
7333 cache_file_option="--cache-file=${cache_file}" ;;
7334 *) # relative path
7335 cache_file_option="--cache-file=../${cache_file}" ;;
7336 esac
7337
7338 # Host dirs don't like to share a cache file either, horribly enough.
7339 # This seems to be due to autoconf 2.5x stupidity.
7340 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7341
7342 target_configargs="$target_configargs ${baseargs}"
7343
7344 # Passing a --with-cross-host argument lets the target libraries know
7345 # whether they are being built with a cross-compiler or being built
7346 # native. However, it would be better to use other mechanisms to make the
7347 # sorts of decisions they want to make on this basis. Please consider
7348 # this option to be deprecated. FIXME.
7349 if test x${is_cross_compiler} = xyes ; then
7350 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7351 fi
7352
7353 # Default to --enable-multilib.
7354 if test x${enable_multilib} = x ; then
7355 target_configargs="--enable-multilib ${target_configargs}"
7356 fi
7357
7358 # Pass --with-newlib if appropriate. Note that target_configdirs has
7359 # changed from the earlier setting of with_newlib.
7360 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7361 target_configargs="--with-newlib ${target_configargs}"
7362 fi
7363
7364 # Different target subdirs use different values of certain variables
7365 # (notably CXX). Worse, multilibs use *lots* of different values.
7366 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7367 # it doesn't automatically accept command-line overrides of them.
7368 # This means it's not safe for target subdirs to share a cache file,
7369 # which is disgusting, but there you have it. Hopefully this can be
7370 # fixed in future. It's still worthwhile to use a cache file for each
7371 # directory. I think.
7372
7373 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7374 # We need to pass --target, as newer autoconf's requires consistency
7375 # for target_alias and gcc doesn't manage it consistently.
7376 target_configargs="--cache-file=./config.cache ${target_configargs}"
7377
7378 FLAGS_FOR_TARGET=
7379 case " $target_configdirs " in
7380 *" newlib "*)
7381 case " $target_configargs " in
7382 *" --with-newlib "*)
7383 case "$target" in
7384 *-cygwin*)
7385 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'
7386 ;;
7387 esac
7388
7389 # If we're not building GCC, don't discard standard headers.
7390 if test -d ${srcdir}/gcc; then
7391 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7392
7393 if test "${build}" != "${host}"; then
7394 # On Canadian crosses, CC_FOR_TARGET will have already been set
7395 # by `configure', so we won't have an opportunity to add -Bgcc/
7396 # to it. This is right: we don't want to search that directory
7397 # for binaries, but we want the header files in there, so add
7398 # them explicitly.
7399 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7400
7401 # Someone might think of using the pre-installed headers on
7402 # Canadian crosses, in case the installed compiler is not fully
7403 # compatible with the compiler being built. In this case, it
7404 # would be better to flag an error than risking having
7405 # incompatible object files being constructed. We can't
7406 # guarantee that an error will be flagged, but let's hope the
7407 # compiler will do it, when presented with incompatible header
7408 # files.
7409 fi
7410 fi
7411
7412 case "${target}-${is_cross_compiler}" in
7413 i[3456789]86-*-linux*-no)
7414 # Here host == target, so we don't need to build gcc,
7415 # so we don't want to discard standard headers.
7416 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7417 ;;
7418 *)
7419 # If we're building newlib, use its generic headers last, but search
7420 # for any libc-related directories first (so make it the last -B
7421 # switch).
7422 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7423
7424 # If we're building libgloss, find the startup file, simulator library
7425 # and linker script.
7426 case " $target_configdirs " in
7427 *" libgloss "*)
7428 # Look for startup file, simulator library and maybe linker script.
7429 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7430 # Look for libnosys.a in case the target needs it.
7431 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7432 # Most targets have the linker script in the source directory.
7433 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7434 ;;
7435 esac
7436 ;;
7437 esac
7438 ;;
7439 esac
7440 ;;
7441 esac
7442
7443 case "$target" in
7444 x86_64-*mingw* | *-w64-mingw*)
7445 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7446 # however, use a symlink named 'mingw' in ${prefix} .
7447 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7448 ;;
7449 *-mingw*)
7450 # MinGW can't be handled as Cygwin above since it does not use newlib.
7451 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'
7452 ;;
7453 esac
7454
7455 # Allow the user to override the flags for
7456 # our build compiler if desired.
7457 if test x"${build}" = x"${host}" ; then
7458 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7459 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7460 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7461 fi
7462
7463 # On Canadian crosses, we'll be searching the right directories for
7464 # the previously-installed cross compiler, so don't bother to add
7465 # flags for directories within the install tree of the compiler
7466 # being built; programs in there won't even run.
7467 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7468 # Search for pre-installed headers if nothing else fits.
7469 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7470 fi
7471
7472 if test "x${use_gnu_ld}" = x &&
7473 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7474 # Arrange for us to find uninstalled linker scripts.
7475 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7476 fi
7477
7478 # Search for other target-specific linker scripts and such.
7479 case "${target}" in
7480 mep*)
7481 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7482 ;;
7483 esac
7484
7485 # Makefile fragments.
7486 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7487 do
7488 eval fragval=\$$frag
7489 if test $fragval != /dev/null; then
7490 eval $frag=${srcdir}/$fragval
7491 fi
7492 done
7493
7494
7495
7496
7497
7498 # Miscellanea: directories, flags, etc.
7499
7500
7501
7502
7503
7504
7505
7506
7507 # Build module lists & subconfigure args.
7508
7509
7510
7511 # Host module lists & subconfigure args.
7512
7513
7514
7515
7516 # Target module lists & subconfigure args.
7517
7518
7519
7520 # Build tools.
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539 # Generate default definitions for YACC, M4, LEX and other programs that run
7540 # on the build machine. These are used if the Makefile can't locate these
7541 # programs in objdir.
7542 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7543
7544 for ac_prog in 'bison -y' byacc yacc
7545 do
7546 # Extract the first word of "$ac_prog", so it can be a program name with args.
7547 set dummy $ac_prog; ac_word=$2
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549 $as_echo_n "checking for $ac_word... " >&6; }
7550 if test "${ac_cv_prog_YACC+set}" = set; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 if test -n "$YACC"; then
7554 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_prog_YACC="$ac_prog"
7564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567 done
7568 done
7569 IFS=$as_save_IFS
7570
7571 fi
7572 fi
7573 YACC=$ac_cv_prog_YACC
7574 if test -n "$YACC"; then
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7576 $as_echo "$YACC" >&6; }
7577 else
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7580 fi
7581
7582
7583 test -n "$YACC" && break
7584 done
7585 test -n "$YACC" || YACC="$MISSING bison -y"
7586
7587 case " $build_configdirs " in
7588 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7589 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7590 esac
7591
7592 for ac_prog in bison
7593 do
7594 # Extract the first word of "$ac_prog", so it can be a program name with args.
7595 set dummy $ac_prog; ac_word=$2
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597 $as_echo_n "checking for $ac_word... " >&6; }
7598 if test "${ac_cv_prog_BISON+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 if test -n "$BISON"; then
7602 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7603 else
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7606 do
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_prog_BISON="$ac_prog"
7612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 break 2
7614 fi
7615 done
7616 done
7617 IFS=$as_save_IFS
7618
7619 fi
7620 fi
7621 BISON=$ac_cv_prog_BISON
7622 if test -n "$BISON"; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7624 $as_echo "$BISON" >&6; }
7625 else
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627 $as_echo "no" >&6; }
7628 fi
7629
7630
7631 test -n "$BISON" && break
7632 done
7633 test -n "$BISON" || BISON="$MISSING bison"
7634
7635 case " $build_configdirs " in
7636 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7637 esac
7638
7639 for ac_prog in gm4 gnum4 m4
7640 do
7641 # Extract the first word of "$ac_prog", so it can be a program name with args.
7642 set dummy $ac_prog; ac_word=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if test "${ac_cv_prog_M4+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 if test -n "$M4"; then
7649 ac_cv_prog_M4="$M4" # Let the user override the test.
7650 else
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7653 do
7654 IFS=$as_save_IFS
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7658 ac_cv_prog_M4="$ac_prog"
7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 break 2
7661 fi
7662 done
7663 done
7664 IFS=$as_save_IFS
7665
7666 fi
7667 fi
7668 M4=$ac_cv_prog_M4
7669 if test -n "$M4"; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7671 $as_echo "$M4" >&6; }
7672 else
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674 $as_echo "no" >&6; }
7675 fi
7676
7677
7678 test -n "$M4" && break
7679 done
7680 test -n "$M4" || M4="$MISSING m4"
7681
7682 case " $build_configdirs " in
7683 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7684 esac
7685
7686 for ac_prog in flex lex
7687 do
7688 # Extract the first word of "$ac_prog", so it can be a program name with args.
7689 set dummy $ac_prog; ac_word=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if test "${ac_cv_prog_LEX+set}" = set; then :
7693 $as_echo_n "(cached) " >&6
7694 else
7695 if test -n "$LEX"; then
7696 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7697 else
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7705 ac_cv_prog_LEX="$ac_prog"
7706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 break 2
7708 fi
7709 done
7710 done
7711 IFS=$as_save_IFS
7712
7713 fi
7714 fi
7715 LEX=$ac_cv_prog_LEX
7716 if test -n "$LEX"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7718 $as_echo "$LEX" >&6; }
7719 else
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7722 fi
7723
7724
7725 test -n "$LEX" && break
7726 done
7727 test -n "$LEX" || LEX="$MISSING flex"
7728
7729 case " $build_configdirs " in
7730 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7731 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7732 esac
7733
7734 for ac_prog in flex
7735 do
7736 # Extract the first word of "$ac_prog", so it can be a program name with args.
7737 set dummy $ac_prog; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if test "${ac_cv_prog_FLEX+set}" = set; then :
7741 $as_echo_n "(cached) " >&6
7742 else
7743 if test -n "$FLEX"; then
7744 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7745 else
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 for as_dir in $PATH
7748 do
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7753 ac_cv_prog_FLEX="$ac_prog"
7754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 break 2
7756 fi
7757 done
7758 done
7759 IFS=$as_save_IFS
7760
7761 fi
7762 fi
7763 FLEX=$ac_cv_prog_FLEX
7764 if test -n "$FLEX"; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7766 $as_echo "$FLEX" >&6; }
7767 else
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7770 fi
7771
7772
7773 test -n "$FLEX" && break
7774 done
7775 test -n "$FLEX" || FLEX="$MISSING flex"
7776
7777 case " $build_configdirs " in
7778 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7779 esac
7780
7781 for ac_prog in makeinfo
7782 do
7783 # Extract the first word of "$ac_prog", so it can be a program name with args.
7784 set dummy $ac_prog; ac_word=$2
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786 $as_echo_n "checking for $ac_word... " >&6; }
7787 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 if test -n "$MAKEINFO"; then
7791 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7792 else
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7795 do
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7800 ac_cv_prog_MAKEINFO="$ac_prog"
7801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7803 fi
7804 done
7805 done
7806 IFS=$as_save_IFS
7807
7808 fi
7809 fi
7810 MAKEINFO=$ac_cv_prog_MAKEINFO
7811 if test -n "$MAKEINFO"; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7813 $as_echo "$MAKEINFO" >&6; }
7814 else
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7817 fi
7818
7819
7820 test -n "$MAKEINFO" && break
7821 done
7822 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7823
7824 case " $build_configdirs " in
7825 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7826 *)
7827
7828 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7829 # higher, else we use the "missing" dummy.
7830 if ${MAKEINFO} --version \
7831 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7832 :
7833 else
7834 MAKEINFO="$MISSING makeinfo"
7835 fi
7836 ;;
7837
7838 esac
7839
7840 # FIXME: expect and dejagnu may become build tools?
7841
7842 for ac_prog in expect
7843 do
7844 # Extract the first word of "$ac_prog", so it can be a program name with args.
7845 set dummy $ac_prog; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 if test -n "$EXPECT"; then
7852 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7853 else
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7856 do
7857 IFS=$as_save_IFS
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7861 ac_cv_prog_EXPECT="$ac_prog"
7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 break 2
7864 fi
7865 done
7866 done
7867 IFS=$as_save_IFS
7868
7869 fi
7870 fi
7871 EXPECT=$ac_cv_prog_EXPECT
7872 if test -n "$EXPECT"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7874 $as_echo "$EXPECT" >&6; }
7875 else
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7878 fi
7879
7880
7881 test -n "$EXPECT" && break
7882 done
7883 test -n "$EXPECT" || EXPECT="expect"
7884
7885 case " $configdirs " in
7886 *" expect "*)
7887 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7888 ;;
7889 esac
7890
7891 for ac_prog in runtest
7892 do
7893 # Extract the first word of "$ac_prog", so it can be a program name with args.
7894 set dummy $ac_prog; ac_word=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900 if test -n "$RUNTEST"; then
7901 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7902 else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7905 do
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7910 ac_cv_prog_RUNTEST="$ac_prog"
7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 break 2
7913 fi
7914 done
7915 done
7916 IFS=$as_save_IFS
7917
7918 fi
7919 fi
7920 RUNTEST=$ac_cv_prog_RUNTEST
7921 if test -n "$RUNTEST"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7923 $as_echo "$RUNTEST" >&6; }
7924 else
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7927 fi
7928
7929
7930 test -n "$RUNTEST" && break
7931 done
7932 test -n "$RUNTEST" || RUNTEST="runtest"
7933
7934 case " $configdirs " in
7935 *" dejagnu "*)
7936 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7937 ;;
7938 esac
7939
7940
7941 # Host tools.
7942 ncn_tool_prefix=
7943 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7944 ncn_target_tool_prefix=
7945 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7946
7947
7948
7949 if test -n "$AR"; then
7950 ac_cv_prog_AR=$AR
7951 elif test -n "$ac_cv_prog_AR"; then
7952 AR=$ac_cv_prog_AR
7953 fi
7954
7955 if test -n "$ac_cv_prog_AR"; then
7956 for ncn_progname in ar; do
7957 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7958 set dummy ${ncn_progname}; ac_word=$2
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960 $as_echo_n "checking for $ac_word... " >&6; }
7961 if test "${ac_cv_prog_AR+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 if test -n "$AR"; then
7965 ac_cv_prog_AR="$AR" # Let the user override the test.
7966 else
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 for as_dir in $PATH
7969 do
7970 IFS=$as_save_IFS
7971 test -z "$as_dir" && as_dir=.
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7974 ac_cv_prog_AR="${ncn_progname}"
7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 break 2
7977 fi
7978 done
7979 done
7980 IFS=$as_save_IFS
7981
7982 fi
7983 fi
7984 AR=$ac_cv_prog_AR
7985 if test -n "$AR"; then
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7987 $as_echo "$AR" >&6; }
7988 else
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 $as_echo "no" >&6; }
7991 fi
7992
7993
7994 done
7995 fi
7996
7997 for ncn_progname in ar; do
7998 if test -n "$ncn_tool_prefix"; then
7999 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8000 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002 $as_echo_n "checking for $ac_word... " >&6; }
8003 if test "${ac_cv_prog_AR+set}" = set; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 if test -n "$AR"; then
8007 ac_cv_prog_AR="$AR" # Let the user override the test.
8008 else
8009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010 for as_dir in $PATH
8011 do
8012 IFS=$as_save_IFS
8013 test -z "$as_dir" && as_dir=.
8014 for ac_exec_ext in '' $ac_executable_extensions; do
8015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8016 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8018 break 2
8019 fi
8020 done
8021 done
8022 IFS=$as_save_IFS
8023
8024 fi
8025 fi
8026 AR=$ac_cv_prog_AR
8027 if test -n "$AR"; then
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8029 $as_echo "$AR" >&6; }
8030 else
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032 $as_echo "no" >&6; }
8033 fi
8034
8035
8036 fi
8037 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8039 set dummy ${ncn_progname}; ac_word=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if test "${ac_cv_prog_AR+set}" = set; then :
8043 $as_echo_n "(cached) " >&6
8044 else
8045 if test -n "$AR"; then
8046 ac_cv_prog_AR="$AR" # Let the user override the test.
8047 else
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 for as_dir in $PATH
8050 do
8051 IFS=$as_save_IFS
8052 test -z "$as_dir" && as_dir=.
8053 for ac_exec_ext in '' $ac_executable_extensions; do
8054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8055 ac_cv_prog_AR="${ncn_progname}"
8056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8057 break 2
8058 fi
8059 done
8060 done
8061 IFS=$as_save_IFS
8062
8063 fi
8064 fi
8065 AR=$ac_cv_prog_AR
8066 if test -n "$AR"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8068 $as_echo "$AR" >&6; }
8069 else
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8072 fi
8073
8074
8075 fi
8076 test -n "$ac_cv_prog_AR" && break
8077 done
8078
8079 if test -z "$ac_cv_prog_AR" ; then
8080 set dummy ar
8081 if test $build = $host ; then
8082 AR="$2"
8083 else
8084 AR="${ncn_tool_prefix}$2"
8085 fi
8086 fi
8087
8088
8089
8090 if test -n "$AS"; then
8091 ac_cv_prog_AS=$AS
8092 elif test -n "$ac_cv_prog_AS"; then
8093 AS=$ac_cv_prog_AS
8094 fi
8095
8096 if test -n "$ac_cv_prog_AS"; then
8097 for ncn_progname in as; do
8098 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8099 set dummy ${ncn_progname}; ac_word=$2
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101 $as_echo_n "checking for $ac_word... " >&6; }
8102 if test "${ac_cv_prog_AS+set}" = set; then :
8103 $as_echo_n "(cached) " >&6
8104 else
8105 if test -n "$AS"; then
8106 ac_cv_prog_AS="$AS" # Let the user override the test.
8107 else
8108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 for as_dir in $PATH
8110 do
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8115 ac_cv_prog_AS="${ncn_progname}"
8116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 break 2
8118 fi
8119 done
8120 done
8121 IFS=$as_save_IFS
8122
8123 fi
8124 fi
8125 AS=$ac_cv_prog_AS
8126 if test -n "$AS"; then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8128 $as_echo "$AS" >&6; }
8129 else
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131 $as_echo "no" >&6; }
8132 fi
8133
8134
8135 done
8136 fi
8137
8138 for ncn_progname in as; do
8139 if test -n "$ncn_tool_prefix"; then
8140 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8141 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143 $as_echo_n "checking for $ac_word... " >&6; }
8144 if test "${ac_cv_prog_AS+set}" = set; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 if test -n "$AS"; then
8148 ac_cv_prog_AS="$AS" # Let the user override the test.
8149 else
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 for as_dir in $PATH
8152 do
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8157 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8159 break 2
8160 fi
8161 done
8162 done
8163 IFS=$as_save_IFS
8164
8165 fi
8166 fi
8167 AS=$ac_cv_prog_AS
8168 if test -n "$AS"; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8170 $as_echo "$AS" >&6; }
8171 else
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8174 fi
8175
8176
8177 fi
8178 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8180 set dummy ${ncn_progname}; ac_word=$2
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182 $as_echo_n "checking for $ac_word... " >&6; }
8183 if test "${ac_cv_prog_AS+set}" = set; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 if test -n "$AS"; then
8187 ac_cv_prog_AS="$AS" # Let the user override the test.
8188 else
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8191 do
8192 IFS=$as_save_IFS
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8196 ac_cv_prog_AS="${ncn_progname}"
8197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 break 2
8199 fi
8200 done
8201 done
8202 IFS=$as_save_IFS
8203
8204 fi
8205 fi
8206 AS=$ac_cv_prog_AS
8207 if test -n "$AS"; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8209 $as_echo "$AS" >&6; }
8210 else
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 $as_echo "no" >&6; }
8213 fi
8214
8215
8216 fi
8217 test -n "$ac_cv_prog_AS" && break
8218 done
8219
8220 if test -z "$ac_cv_prog_AS" ; then
8221 set dummy as
8222 if test $build = $host ; then
8223 AS="$2"
8224 else
8225 AS="${ncn_tool_prefix}$2"
8226 fi
8227 fi
8228
8229
8230
8231 if test -n "$DLLTOOL"; then
8232 ac_cv_prog_DLLTOOL=$DLLTOOL
8233 elif test -n "$ac_cv_prog_DLLTOOL"; then
8234 DLLTOOL=$ac_cv_prog_DLLTOOL
8235 fi
8236
8237 if test -n "$ac_cv_prog_DLLTOOL"; then
8238 for ncn_progname in dlltool; do
8239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8240 set dummy ${ncn_progname}; ac_word=$2
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8242 $as_echo_n "checking for $ac_word... " >&6; }
8243 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8244 $as_echo_n "(cached) " >&6
8245 else
8246 if test -n "$DLLTOOL"; then
8247 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8248 else
8249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 for as_dir in $PATH
8251 do
8252 IFS=$as_save_IFS
8253 test -z "$as_dir" && as_dir=.
8254 for ac_exec_ext in '' $ac_executable_extensions; do
8255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8256 ac_cv_prog_DLLTOOL="${ncn_progname}"
8257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8258 break 2
8259 fi
8260 done
8261 done
8262 IFS=$as_save_IFS
8263
8264 fi
8265 fi
8266 DLLTOOL=$ac_cv_prog_DLLTOOL
8267 if test -n "$DLLTOOL"; then
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8269 $as_echo "$DLLTOOL" >&6; }
8270 else
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272 $as_echo "no" >&6; }
8273 fi
8274
8275
8276 done
8277 fi
8278
8279 for ncn_progname in dlltool; do
8280 if test -n "$ncn_tool_prefix"; then
8281 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8282 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284 $as_echo_n "checking for $ac_word... " >&6; }
8285 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8286 $as_echo_n "(cached) " >&6
8287 else
8288 if test -n "$DLLTOOL"; then
8289 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8290 else
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292 for as_dir in $PATH
8293 do
8294 IFS=$as_save_IFS
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8298 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 break 2
8301 fi
8302 done
8303 done
8304 IFS=$as_save_IFS
8305
8306 fi
8307 fi
8308 DLLTOOL=$ac_cv_prog_DLLTOOL
8309 if test -n "$DLLTOOL"; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8311 $as_echo "$DLLTOOL" >&6; }
8312 else
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8315 fi
8316
8317
8318 fi
8319 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8321 set dummy ${ncn_progname}; ac_word=$2
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323 $as_echo_n "checking for $ac_word... " >&6; }
8324 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8327 if test -n "$DLLTOOL"; then
8328 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8329 else
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 for as_dir in $PATH
8332 do
8333 IFS=$as_save_IFS
8334 test -z "$as_dir" && as_dir=.
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8337 ac_cv_prog_DLLTOOL="${ncn_progname}"
8338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 break 2
8340 fi
8341 done
8342 done
8343 IFS=$as_save_IFS
8344
8345 fi
8346 fi
8347 DLLTOOL=$ac_cv_prog_DLLTOOL
8348 if test -n "$DLLTOOL"; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8350 $as_echo "$DLLTOOL" >&6; }
8351 else
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 $as_echo "no" >&6; }
8354 fi
8355
8356
8357 fi
8358 test -n "$ac_cv_prog_DLLTOOL" && break
8359 done
8360
8361 if test -z "$ac_cv_prog_DLLTOOL" ; then
8362 set dummy dlltool
8363 if test $build = $host ; then
8364 DLLTOOL="$2"
8365 else
8366 DLLTOOL="${ncn_tool_prefix}$2"
8367 fi
8368 fi
8369
8370
8371
8372 if test -n "$LD"; then
8373 ac_cv_prog_LD=$LD
8374 elif test -n "$ac_cv_prog_LD"; then
8375 LD=$ac_cv_prog_LD
8376 fi
8377
8378 if test -n "$ac_cv_prog_LD"; then
8379 for ncn_progname in ld; do
8380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8381 set dummy ${ncn_progname}; ac_word=$2
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if test "${ac_cv_prog_LD+set}" = set; then :
8385 $as_echo_n "(cached) " >&6
8386 else
8387 if test -n "$LD"; then
8388 ac_cv_prog_LD="$LD" # Let the user override the test.
8389 else
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 for as_dir in $PATH
8392 do
8393 IFS=$as_save_IFS
8394 test -z "$as_dir" && as_dir=.
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8397 ac_cv_prog_LD="${ncn_progname}"
8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8399 break 2
8400 fi
8401 done
8402 done
8403 IFS=$as_save_IFS
8404
8405 fi
8406 fi
8407 LD=$ac_cv_prog_LD
8408 if test -n "$LD"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8410 $as_echo "$LD" >&6; }
8411 else
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8414 fi
8415
8416
8417 done
8418 fi
8419
8420 for ncn_progname in ld; do
8421 if test -n "$ncn_tool_prefix"; then
8422 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8423 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 $as_echo_n "checking for $ac_word... " >&6; }
8426 if test "${ac_cv_prog_LD+set}" = set; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 if test -n "$LD"; then
8430 ac_cv_prog_LD="$LD" # Let the user override the test.
8431 else
8432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433 for as_dir in $PATH
8434 do
8435 IFS=$as_save_IFS
8436 test -z "$as_dir" && as_dir=.
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8439 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 break 2
8442 fi
8443 done
8444 done
8445 IFS=$as_save_IFS
8446
8447 fi
8448 fi
8449 LD=$ac_cv_prog_LD
8450 if test -n "$LD"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8452 $as_echo "$LD" >&6; }
8453 else
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8456 fi
8457
8458
8459 fi
8460 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8461 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8462 set dummy ${ncn_progname}; ac_word=$2
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8464 $as_echo_n "checking for $ac_word... " >&6; }
8465 if test "${ac_cv_prog_LD+set}" = set; then :
8466 $as_echo_n "(cached) " >&6
8467 else
8468 if test -n "$LD"; then
8469 ac_cv_prog_LD="$LD" # Let the user override the test.
8470 else
8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472 for as_dir in $PATH
8473 do
8474 IFS=$as_save_IFS
8475 test -z "$as_dir" && as_dir=.
8476 for ac_exec_ext in '' $ac_executable_extensions; do
8477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8478 ac_cv_prog_LD="${ncn_progname}"
8479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8480 break 2
8481 fi
8482 done
8483 done
8484 IFS=$as_save_IFS
8485
8486 fi
8487 fi
8488 LD=$ac_cv_prog_LD
8489 if test -n "$LD"; then
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8491 $as_echo "$LD" >&6; }
8492 else
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8494 $as_echo "no" >&6; }
8495 fi
8496
8497
8498 fi
8499 test -n "$ac_cv_prog_LD" && break
8500 done
8501
8502 if test -z "$ac_cv_prog_LD" ; then
8503 set dummy ld
8504 if test $build = $host ; then
8505 LD="$2"
8506 else
8507 LD="${ncn_tool_prefix}$2"
8508 fi
8509 fi
8510
8511
8512
8513 if test -n "$LIPO"; then
8514 ac_cv_prog_LIPO=$LIPO
8515 elif test -n "$ac_cv_prog_LIPO"; then
8516 LIPO=$ac_cv_prog_LIPO
8517 fi
8518
8519 if test -n "$ac_cv_prog_LIPO"; then
8520 for ncn_progname in lipo; do
8521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8522 set dummy ${ncn_progname}; ac_word=$2
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524 $as_echo_n "checking for $ac_word... " >&6; }
8525 if test "${ac_cv_prog_LIPO+set}" = set; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 if test -n "$LIPO"; then
8529 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8530 else
8531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532 for as_dir in $PATH
8533 do
8534 IFS=$as_save_IFS
8535 test -z "$as_dir" && as_dir=.
8536 for ac_exec_ext in '' $ac_executable_extensions; do
8537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8538 ac_cv_prog_LIPO="${ncn_progname}"
8539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540 break 2
8541 fi
8542 done
8543 done
8544 IFS=$as_save_IFS
8545
8546 fi
8547 fi
8548 LIPO=$ac_cv_prog_LIPO
8549 if test -n "$LIPO"; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8551 $as_echo "$LIPO" >&6; }
8552 else
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 $as_echo "no" >&6; }
8555 fi
8556
8557
8558 done
8559 fi
8560
8561 for ncn_progname in lipo; do
8562 if test -n "$ncn_tool_prefix"; then
8563 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8564 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8566 $as_echo_n "checking for $ac_word... " >&6; }
8567 if test "${ac_cv_prog_LIPO+set}" = set; then :
8568 $as_echo_n "(cached) " >&6
8569 else
8570 if test -n "$LIPO"; then
8571 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8572 else
8573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574 for as_dir in $PATH
8575 do
8576 IFS=$as_save_IFS
8577 test -z "$as_dir" && as_dir=.
8578 for ac_exec_ext in '' $ac_executable_extensions; do
8579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8580 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 break 2
8583 fi
8584 done
8585 done
8586 IFS=$as_save_IFS
8587
8588 fi
8589 fi
8590 LIPO=$ac_cv_prog_LIPO
8591 if test -n "$LIPO"; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8593 $as_echo "$LIPO" >&6; }
8594 else
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596 $as_echo "no" >&6; }
8597 fi
8598
8599
8600 fi
8601 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8603 set dummy ${ncn_progname}; ac_word=$2
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8605 $as_echo_n "checking for $ac_word... " >&6; }
8606 if test "${ac_cv_prog_LIPO+set}" = set; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 if test -n "$LIPO"; then
8610 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8611 else
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613 for as_dir in $PATH
8614 do
8615 IFS=$as_save_IFS
8616 test -z "$as_dir" && as_dir=.
8617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8619 ac_cv_prog_LIPO="${ncn_progname}"
8620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621 break 2
8622 fi
8623 done
8624 done
8625 IFS=$as_save_IFS
8626
8627 fi
8628 fi
8629 LIPO=$ac_cv_prog_LIPO
8630 if test -n "$LIPO"; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8632 $as_echo "$LIPO" >&6; }
8633 else
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635 $as_echo "no" >&6; }
8636 fi
8637
8638
8639 fi
8640 test -n "$ac_cv_prog_LIPO" && break
8641 done
8642
8643 if test -z "$ac_cv_prog_LIPO" ; then
8644 set dummy lipo
8645 if test $build = $host ; then
8646 LIPO="$2"
8647 else
8648 LIPO="${ncn_tool_prefix}$2"
8649 fi
8650 fi
8651
8652
8653
8654 if test -n "$NM"; then
8655 ac_cv_prog_NM=$NM
8656 elif test -n "$ac_cv_prog_NM"; then
8657 NM=$ac_cv_prog_NM
8658 fi
8659
8660 if test -n "$ac_cv_prog_NM"; then
8661 for ncn_progname in nm; do
8662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8663 set dummy ${ncn_progname}; ac_word=$2
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665 $as_echo_n "checking for $ac_word... " >&6; }
8666 if test "${ac_cv_prog_NM+set}" = set; then :
8667 $as_echo_n "(cached) " >&6
8668 else
8669 if test -n "$NM"; then
8670 ac_cv_prog_NM="$NM" # Let the user override the test.
8671 else
8672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673 for as_dir in $PATH
8674 do
8675 IFS=$as_save_IFS
8676 test -z "$as_dir" && as_dir=.
8677 for ac_exec_ext in '' $ac_executable_extensions; do
8678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8679 ac_cv_prog_NM="${ncn_progname}"
8680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 break 2
8682 fi
8683 done
8684 done
8685 IFS=$as_save_IFS
8686
8687 fi
8688 fi
8689 NM=$ac_cv_prog_NM
8690 if test -n "$NM"; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8692 $as_echo "$NM" >&6; }
8693 else
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695 $as_echo "no" >&6; }
8696 fi
8697
8698
8699 done
8700 fi
8701
8702 for ncn_progname in nm; do
8703 if test -n "$ncn_tool_prefix"; then
8704 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8705 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707 $as_echo_n "checking for $ac_word... " >&6; }
8708 if test "${ac_cv_prog_NM+set}" = set; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 if test -n "$NM"; then
8712 ac_cv_prog_NM="$NM" # Let the user override the test.
8713 else
8714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715 for as_dir in $PATH
8716 do
8717 IFS=$as_save_IFS
8718 test -z "$as_dir" && as_dir=.
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8721 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8723 break 2
8724 fi
8725 done
8726 done
8727 IFS=$as_save_IFS
8728
8729 fi
8730 fi
8731 NM=$ac_cv_prog_NM
8732 if test -n "$NM"; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8734 $as_echo "$NM" >&6; }
8735 else
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737 $as_echo "no" >&6; }
8738 fi
8739
8740
8741 fi
8742 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8744 set dummy ${ncn_progname}; ac_word=$2
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8746 $as_echo_n "checking for $ac_word... " >&6; }
8747 if test "${ac_cv_prog_NM+set}" = set; then :
8748 $as_echo_n "(cached) " >&6
8749 else
8750 if test -n "$NM"; then
8751 ac_cv_prog_NM="$NM" # Let the user override the test.
8752 else
8753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 for as_dir in $PATH
8755 do
8756 IFS=$as_save_IFS
8757 test -z "$as_dir" && as_dir=.
8758 for ac_exec_ext in '' $ac_executable_extensions; do
8759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8760 ac_cv_prog_NM="${ncn_progname}"
8761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8762 break 2
8763 fi
8764 done
8765 done
8766 IFS=$as_save_IFS
8767
8768 fi
8769 fi
8770 NM=$ac_cv_prog_NM
8771 if test -n "$NM"; then
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8773 $as_echo "$NM" >&6; }
8774 else
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776 $as_echo "no" >&6; }
8777 fi
8778
8779
8780 fi
8781 test -n "$ac_cv_prog_NM" && break
8782 done
8783
8784 if test -z "$ac_cv_prog_NM" ; then
8785 set dummy nm
8786 if test $build = $host ; then
8787 NM="$2"
8788 else
8789 NM="${ncn_tool_prefix}$2"
8790 fi
8791 fi
8792
8793
8794
8795 if test -n "$RANLIB"; then
8796 ac_cv_prog_RANLIB=$RANLIB
8797 elif test -n "$ac_cv_prog_RANLIB"; then
8798 RANLIB=$ac_cv_prog_RANLIB
8799 fi
8800
8801 if test -n "$ac_cv_prog_RANLIB"; then
8802 for ncn_progname in ranlib; do
8803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8804 set dummy ${ncn_progname}; ac_word=$2
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8806 $as_echo_n "checking for $ac_word... " >&6; }
8807 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 if test -n "$RANLIB"; then
8811 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8812 else
8813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814 for as_dir in $PATH
8815 do
8816 IFS=$as_save_IFS
8817 test -z "$as_dir" && as_dir=.
8818 for ac_exec_ext in '' $ac_executable_extensions; do
8819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8820 ac_cv_prog_RANLIB="${ncn_progname}"
8821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8822 break 2
8823 fi
8824 done
8825 done
8826 IFS=$as_save_IFS
8827
8828 fi
8829 fi
8830 RANLIB=$ac_cv_prog_RANLIB
8831 if test -n "$RANLIB"; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8833 $as_echo "$RANLIB" >&6; }
8834 else
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836 $as_echo "no" >&6; }
8837 fi
8838
8839
8840 done
8841 fi
8842
8843 for ncn_progname in ranlib; do
8844 if test -n "$ncn_tool_prefix"; then
8845 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8846 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8848 $as_echo_n "checking for $ac_word... " >&6; }
8849 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 if test -n "$RANLIB"; then
8853 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8854 else
8855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8856 for as_dir in $PATH
8857 do
8858 IFS=$as_save_IFS
8859 test -z "$as_dir" && as_dir=.
8860 for ac_exec_ext in '' $ac_executable_extensions; do
8861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8862 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8864 break 2
8865 fi
8866 done
8867 done
8868 IFS=$as_save_IFS
8869
8870 fi
8871 fi
8872 RANLIB=$ac_cv_prog_RANLIB
8873 if test -n "$RANLIB"; then
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8875 $as_echo "$RANLIB" >&6; }
8876 else
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878 $as_echo "no" >&6; }
8879 fi
8880
8881
8882 fi
8883 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8885 set dummy ${ncn_progname}; ac_word=$2
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8887 $as_echo_n "checking for $ac_word... " >&6; }
8888 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8889 $as_echo_n "(cached) " >&6
8890 else
8891 if test -n "$RANLIB"; then
8892 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8893 else
8894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895 for as_dir in $PATH
8896 do
8897 IFS=$as_save_IFS
8898 test -z "$as_dir" && as_dir=.
8899 for ac_exec_ext in '' $ac_executable_extensions; do
8900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8901 ac_cv_prog_RANLIB="${ncn_progname}"
8902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8903 break 2
8904 fi
8905 done
8906 done
8907 IFS=$as_save_IFS
8908
8909 fi
8910 fi
8911 RANLIB=$ac_cv_prog_RANLIB
8912 if test -n "$RANLIB"; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8914 $as_echo "$RANLIB" >&6; }
8915 else
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8917 $as_echo "no" >&6; }
8918 fi
8919
8920
8921 fi
8922 test -n "$ac_cv_prog_RANLIB" && break
8923 done
8924
8925 if test -z "$ac_cv_prog_RANLIB" ; then
8926 RANLIB="true"
8927 fi
8928
8929
8930
8931 if test -n "$STRIP"; then
8932 ac_cv_prog_STRIP=$STRIP
8933 elif test -n "$ac_cv_prog_STRIP"; then
8934 STRIP=$ac_cv_prog_STRIP
8935 fi
8936
8937 if test -n "$ac_cv_prog_STRIP"; then
8938 for ncn_progname in strip; do
8939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8940 set dummy ${ncn_progname}; ac_word=$2
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8942 $as_echo_n "checking for $ac_word... " >&6; }
8943 if test "${ac_cv_prog_STRIP+set}" = set; then :
8944 $as_echo_n "(cached) " >&6
8945 else
8946 if test -n "$STRIP"; then
8947 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8948 else
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 for as_dir in $PATH
8951 do
8952 IFS=$as_save_IFS
8953 test -z "$as_dir" && as_dir=.
8954 for ac_exec_ext in '' $ac_executable_extensions; do
8955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8956 ac_cv_prog_STRIP="${ncn_progname}"
8957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8958 break 2
8959 fi
8960 done
8961 done
8962 IFS=$as_save_IFS
8963
8964 fi
8965 fi
8966 STRIP=$ac_cv_prog_STRIP
8967 if test -n "$STRIP"; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8969 $as_echo "$STRIP" >&6; }
8970 else
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972 $as_echo "no" >&6; }
8973 fi
8974
8975
8976 done
8977 fi
8978
8979 for ncn_progname in strip; do
8980 if test -n "$ncn_tool_prefix"; then
8981 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8982 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984 $as_echo_n "checking for $ac_word... " >&6; }
8985 if test "${ac_cv_prog_STRIP+set}" = set; then :
8986 $as_echo_n "(cached) " >&6
8987 else
8988 if test -n "$STRIP"; then
8989 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8990 else
8991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992 for as_dir in $PATH
8993 do
8994 IFS=$as_save_IFS
8995 test -z "$as_dir" && as_dir=.
8996 for ac_exec_ext in '' $ac_executable_extensions; do
8997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8998 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9000 break 2
9001 fi
9002 done
9003 done
9004 IFS=$as_save_IFS
9005
9006 fi
9007 fi
9008 STRIP=$ac_cv_prog_STRIP
9009 if test -n "$STRIP"; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9011 $as_echo "$STRIP" >&6; }
9012 else
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014 $as_echo "no" >&6; }
9015 fi
9016
9017
9018 fi
9019 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9021 set dummy ${ncn_progname}; ac_word=$2
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9023 $as_echo_n "checking for $ac_word... " >&6; }
9024 if test "${ac_cv_prog_STRIP+set}" = set; then :
9025 $as_echo_n "(cached) " >&6
9026 else
9027 if test -n "$STRIP"; then
9028 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9029 else
9030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031 for as_dir in $PATH
9032 do
9033 IFS=$as_save_IFS
9034 test -z "$as_dir" && as_dir=.
9035 for ac_exec_ext in '' $ac_executable_extensions; do
9036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9037 ac_cv_prog_STRIP="${ncn_progname}"
9038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9039 break 2
9040 fi
9041 done
9042 done
9043 IFS=$as_save_IFS
9044
9045 fi
9046 fi
9047 STRIP=$ac_cv_prog_STRIP
9048 if test -n "$STRIP"; then
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9050 $as_echo "$STRIP" >&6; }
9051 else
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053 $as_echo "no" >&6; }
9054 fi
9055
9056
9057 fi
9058 test -n "$ac_cv_prog_STRIP" && break
9059 done
9060
9061 if test -z "$ac_cv_prog_STRIP" ; then
9062 STRIP="true"
9063 fi
9064
9065
9066
9067 if test -n "$WINDRES"; then
9068 ac_cv_prog_WINDRES=$WINDRES
9069 elif test -n "$ac_cv_prog_WINDRES"; then
9070 WINDRES=$ac_cv_prog_WINDRES
9071 fi
9072
9073 if test -n "$ac_cv_prog_WINDRES"; then
9074 for ncn_progname in windres; do
9075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9076 set dummy ${ncn_progname}; ac_word=$2
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9078 $as_echo_n "checking for $ac_word... " >&6; }
9079 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 if test -n "$WINDRES"; then
9083 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9084 else
9085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086 for as_dir in $PATH
9087 do
9088 IFS=$as_save_IFS
9089 test -z "$as_dir" && as_dir=.
9090 for ac_exec_ext in '' $ac_executable_extensions; do
9091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9092 ac_cv_prog_WINDRES="${ncn_progname}"
9093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 break 2
9095 fi
9096 done
9097 done
9098 IFS=$as_save_IFS
9099
9100 fi
9101 fi
9102 WINDRES=$ac_cv_prog_WINDRES
9103 if test -n "$WINDRES"; then
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9105 $as_echo "$WINDRES" >&6; }
9106 else
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9108 $as_echo "no" >&6; }
9109 fi
9110
9111
9112 done
9113 fi
9114
9115 for ncn_progname in windres; do
9116 if test -n "$ncn_tool_prefix"; then
9117 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9118 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9120 $as_echo_n "checking for $ac_word... " >&6; }
9121 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9122 $as_echo_n "(cached) " >&6
9123 else
9124 if test -n "$WINDRES"; then
9125 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9126 else
9127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128 for as_dir in $PATH
9129 do
9130 IFS=$as_save_IFS
9131 test -z "$as_dir" && as_dir=.
9132 for ac_exec_ext in '' $ac_executable_extensions; do
9133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9134 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9136 break 2
9137 fi
9138 done
9139 done
9140 IFS=$as_save_IFS
9141
9142 fi
9143 fi
9144 WINDRES=$ac_cv_prog_WINDRES
9145 if test -n "$WINDRES"; then
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9147 $as_echo "$WINDRES" >&6; }
9148 else
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 $as_echo "no" >&6; }
9151 fi
9152
9153
9154 fi
9155 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9157 set dummy ${ncn_progname}; ac_word=$2
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9159 $as_echo_n "checking for $ac_word... " >&6; }
9160 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9161 $as_echo_n "(cached) " >&6
9162 else
9163 if test -n "$WINDRES"; then
9164 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9165 else
9166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167 for as_dir in $PATH
9168 do
9169 IFS=$as_save_IFS
9170 test -z "$as_dir" && as_dir=.
9171 for ac_exec_ext in '' $ac_executable_extensions; do
9172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9173 ac_cv_prog_WINDRES="${ncn_progname}"
9174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9175 break 2
9176 fi
9177 done
9178 done
9179 IFS=$as_save_IFS
9180
9181 fi
9182 fi
9183 WINDRES=$ac_cv_prog_WINDRES
9184 if test -n "$WINDRES"; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9186 $as_echo "$WINDRES" >&6; }
9187 else
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9190 fi
9191
9192
9193 fi
9194 test -n "$ac_cv_prog_WINDRES" && break
9195 done
9196
9197 if test -z "$ac_cv_prog_WINDRES" ; then
9198 set dummy windres
9199 if test $build = $host ; then
9200 WINDRES="$2"
9201 else
9202 WINDRES="${ncn_tool_prefix}$2"
9203 fi
9204 fi
9205
9206
9207
9208 if test -n "$WINDMC"; then
9209 ac_cv_prog_WINDMC=$WINDMC
9210 elif test -n "$ac_cv_prog_WINDMC"; then
9211 WINDMC=$ac_cv_prog_WINDMC
9212 fi
9213
9214 if test -n "$ac_cv_prog_WINDMC"; then
9215 for ncn_progname in windmc; do
9216 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9217 set dummy ${ncn_progname}; ac_word=$2
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9219 $as_echo_n "checking for $ac_word... " >&6; }
9220 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9221 $as_echo_n "(cached) " >&6
9222 else
9223 if test -n "$WINDMC"; then
9224 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9225 else
9226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9227 for as_dir in $PATH
9228 do
9229 IFS=$as_save_IFS
9230 test -z "$as_dir" && as_dir=.
9231 for ac_exec_ext in '' $ac_executable_extensions; do
9232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9233 ac_cv_prog_WINDMC="${ncn_progname}"
9234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9235 break 2
9236 fi
9237 done
9238 done
9239 IFS=$as_save_IFS
9240
9241 fi
9242 fi
9243 WINDMC=$ac_cv_prog_WINDMC
9244 if test -n "$WINDMC"; then
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9246 $as_echo "$WINDMC" >&6; }
9247 else
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9249 $as_echo "no" >&6; }
9250 fi
9251
9252
9253 done
9254 fi
9255
9256 for ncn_progname in windmc; do
9257 if test -n "$ncn_tool_prefix"; then
9258 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9259 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9261 $as_echo_n "checking for $ac_word... " >&6; }
9262 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9263 $as_echo_n "(cached) " >&6
9264 else
9265 if test -n "$WINDMC"; then
9266 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9267 else
9268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 for as_dir in $PATH
9270 do
9271 IFS=$as_save_IFS
9272 test -z "$as_dir" && as_dir=.
9273 for ac_exec_ext in '' $ac_executable_extensions; do
9274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9275 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9277 break 2
9278 fi
9279 done
9280 done
9281 IFS=$as_save_IFS
9282
9283 fi
9284 fi
9285 WINDMC=$ac_cv_prog_WINDMC
9286 if test -n "$WINDMC"; then
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9288 $as_echo "$WINDMC" >&6; }
9289 else
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291 $as_echo "no" >&6; }
9292 fi
9293
9294
9295 fi
9296 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9298 set dummy ${ncn_progname}; ac_word=$2
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9300 $as_echo_n "checking for $ac_word... " >&6; }
9301 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9302 $as_echo_n "(cached) " >&6
9303 else
9304 if test -n "$WINDMC"; then
9305 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9306 else
9307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9308 for as_dir in $PATH
9309 do
9310 IFS=$as_save_IFS
9311 test -z "$as_dir" && as_dir=.
9312 for ac_exec_ext in '' $ac_executable_extensions; do
9313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9314 ac_cv_prog_WINDMC="${ncn_progname}"
9315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9316 break 2
9317 fi
9318 done
9319 done
9320 IFS=$as_save_IFS
9321
9322 fi
9323 fi
9324 WINDMC=$ac_cv_prog_WINDMC
9325 if test -n "$WINDMC"; then
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9327 $as_echo "$WINDMC" >&6; }
9328 else
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9330 $as_echo "no" >&6; }
9331 fi
9332
9333
9334 fi
9335 test -n "$ac_cv_prog_WINDMC" && break
9336 done
9337
9338 if test -z "$ac_cv_prog_WINDMC" ; then
9339 set dummy windmc
9340 if test $build = $host ; then
9341 WINDMC="$2"
9342 else
9343 WINDMC="${ncn_tool_prefix}$2"
9344 fi
9345 fi
9346
9347
9348
9349 if test -n "$OBJCOPY"; then
9350 ac_cv_prog_OBJCOPY=$OBJCOPY
9351 elif test -n "$ac_cv_prog_OBJCOPY"; then
9352 OBJCOPY=$ac_cv_prog_OBJCOPY
9353 fi
9354
9355 if test -n "$ac_cv_prog_OBJCOPY"; then
9356 for ncn_progname in objcopy; do
9357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9358 set dummy ${ncn_progname}; ac_word=$2
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9360 $as_echo_n "checking for $ac_word... " >&6; }
9361 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 if test -n "$OBJCOPY"; then
9365 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9366 else
9367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9368 for as_dir in $PATH
9369 do
9370 IFS=$as_save_IFS
9371 test -z "$as_dir" && as_dir=.
9372 for ac_exec_ext in '' $ac_executable_extensions; do
9373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9374 ac_cv_prog_OBJCOPY="${ncn_progname}"
9375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9376 break 2
9377 fi
9378 done
9379 done
9380 IFS=$as_save_IFS
9381
9382 fi
9383 fi
9384 OBJCOPY=$ac_cv_prog_OBJCOPY
9385 if test -n "$OBJCOPY"; then
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9387 $as_echo "$OBJCOPY" >&6; }
9388 else
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9390 $as_echo "no" >&6; }
9391 fi
9392
9393
9394 done
9395 fi
9396
9397 for ncn_progname in objcopy; do
9398 if test -n "$ncn_tool_prefix"; then
9399 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9400 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9402 $as_echo_n "checking for $ac_word... " >&6; }
9403 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9404 $as_echo_n "(cached) " >&6
9405 else
9406 if test -n "$OBJCOPY"; then
9407 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9408 else
9409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9410 for as_dir in $PATH
9411 do
9412 IFS=$as_save_IFS
9413 test -z "$as_dir" && as_dir=.
9414 for ac_exec_ext in '' $ac_executable_extensions; do
9415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9416 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9418 break 2
9419 fi
9420 done
9421 done
9422 IFS=$as_save_IFS
9423
9424 fi
9425 fi
9426 OBJCOPY=$ac_cv_prog_OBJCOPY
9427 if test -n "$OBJCOPY"; then
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9429 $as_echo "$OBJCOPY" >&6; }
9430 else
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432 $as_echo "no" >&6; }
9433 fi
9434
9435
9436 fi
9437 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9439 set dummy ${ncn_progname}; ac_word=$2
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9441 $as_echo_n "checking for $ac_word... " >&6; }
9442 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9443 $as_echo_n "(cached) " >&6
9444 else
9445 if test -n "$OBJCOPY"; then
9446 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9447 else
9448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9449 for as_dir in $PATH
9450 do
9451 IFS=$as_save_IFS
9452 test -z "$as_dir" && as_dir=.
9453 for ac_exec_ext in '' $ac_executable_extensions; do
9454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9455 ac_cv_prog_OBJCOPY="${ncn_progname}"
9456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9457 break 2
9458 fi
9459 done
9460 done
9461 IFS=$as_save_IFS
9462
9463 fi
9464 fi
9465 OBJCOPY=$ac_cv_prog_OBJCOPY
9466 if test -n "$OBJCOPY"; then
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9468 $as_echo "$OBJCOPY" >&6; }
9469 else
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9471 $as_echo "no" >&6; }
9472 fi
9473
9474
9475 fi
9476 test -n "$ac_cv_prog_OBJCOPY" && break
9477 done
9478
9479 if test -z "$ac_cv_prog_OBJCOPY" ; then
9480 set dummy objcopy
9481 if test $build = $host ; then
9482 OBJCOPY="$2"
9483 else
9484 OBJCOPY="${ncn_tool_prefix}$2"
9485 fi
9486 fi
9487
9488
9489
9490 if test -n "$OBJDUMP"; then
9491 ac_cv_prog_OBJDUMP=$OBJDUMP
9492 elif test -n "$ac_cv_prog_OBJDUMP"; then
9493 OBJDUMP=$ac_cv_prog_OBJDUMP
9494 fi
9495
9496 if test -n "$ac_cv_prog_OBJDUMP"; then
9497 for ncn_progname in objdump; do
9498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9499 set dummy ${ncn_progname}; ac_word=$2
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9501 $as_echo_n "checking for $ac_word... " >&6; }
9502 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9503 $as_echo_n "(cached) " >&6
9504 else
9505 if test -n "$OBJDUMP"; then
9506 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9507 else
9508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9509 for as_dir in $PATH
9510 do
9511 IFS=$as_save_IFS
9512 test -z "$as_dir" && as_dir=.
9513 for ac_exec_ext in '' $ac_executable_extensions; do
9514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9515 ac_cv_prog_OBJDUMP="${ncn_progname}"
9516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9517 break 2
9518 fi
9519 done
9520 done
9521 IFS=$as_save_IFS
9522
9523 fi
9524 fi
9525 OBJDUMP=$ac_cv_prog_OBJDUMP
9526 if test -n "$OBJDUMP"; then
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9528 $as_echo "$OBJDUMP" >&6; }
9529 else
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9531 $as_echo "no" >&6; }
9532 fi
9533
9534
9535 done
9536 fi
9537
9538 for ncn_progname in objdump; do
9539 if test -n "$ncn_tool_prefix"; then
9540 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9541 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9543 $as_echo_n "checking for $ac_word... " >&6; }
9544 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 if test -n "$OBJDUMP"; then
9548 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9549 else
9550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551 for as_dir in $PATH
9552 do
9553 IFS=$as_save_IFS
9554 test -z "$as_dir" && as_dir=.
9555 for ac_exec_ext in '' $ac_executable_extensions; do
9556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9557 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9559 break 2
9560 fi
9561 done
9562 done
9563 IFS=$as_save_IFS
9564
9565 fi
9566 fi
9567 OBJDUMP=$ac_cv_prog_OBJDUMP
9568 if test -n "$OBJDUMP"; then
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9570 $as_echo "$OBJDUMP" >&6; }
9571 else
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9573 $as_echo "no" >&6; }
9574 fi
9575
9576
9577 fi
9578 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9580 set dummy ${ncn_progname}; ac_word=$2
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9582 $as_echo_n "checking for $ac_word... " >&6; }
9583 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 if test -n "$OBJDUMP"; then
9587 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9588 else
9589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9590 for as_dir in $PATH
9591 do
9592 IFS=$as_save_IFS
9593 test -z "$as_dir" && as_dir=.
9594 for ac_exec_ext in '' $ac_executable_extensions; do
9595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9596 ac_cv_prog_OBJDUMP="${ncn_progname}"
9597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9598 break 2
9599 fi
9600 done
9601 done
9602 IFS=$as_save_IFS
9603
9604 fi
9605 fi
9606 OBJDUMP=$ac_cv_prog_OBJDUMP
9607 if test -n "$OBJDUMP"; then
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9609 $as_echo "$OBJDUMP" >&6; }
9610 else
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9612 $as_echo "no" >&6; }
9613 fi
9614
9615
9616 fi
9617 test -n "$ac_cv_prog_OBJDUMP" && break
9618 done
9619
9620 if test -z "$ac_cv_prog_OBJDUMP" ; then
9621 set dummy objdump
9622 if test $build = $host ; then
9623 OBJDUMP="$2"
9624 else
9625 OBJDUMP="${ncn_tool_prefix}$2"
9626 fi
9627 fi
9628
9629
9630
9631
9632
9633
9634 # Target tools.
9635
9636 # Check whether --with-build-time-tools was given.
9637 if test "${with_build_time_tools+set}" = set; then :
9638 withval=$with_build_time_tools; case x"$withval" in
9639 x/*) ;;
9640 *)
9641 with_build_time_tools=
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9643 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9644 ;;
9645 esac
9646 else
9647 with_build_time_tools=
9648 fi
9649
9650
9651
9652
9653 if test -n "$CC_FOR_TARGET"; then
9654 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9655 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9656 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9657 fi
9658
9659 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9660 for ncn_progname in cc gcc; do
9661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9662 set dummy ${ncn_progname}; ac_word=$2
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9664 $as_echo_n "checking for $ac_word... " >&6; }
9665 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9666 $as_echo_n "(cached) " >&6
9667 else
9668 if test -n "$CC_FOR_TARGET"; then
9669 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9670 else
9671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672 for as_dir in $PATH
9673 do
9674 IFS=$as_save_IFS
9675 test -z "$as_dir" && as_dir=.
9676 for ac_exec_ext in '' $ac_executable_extensions; do
9677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9678 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9680 break 2
9681 fi
9682 done
9683 done
9684 IFS=$as_save_IFS
9685
9686 fi
9687 fi
9688 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9689 if test -n "$CC_FOR_TARGET"; then
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9691 $as_echo "$CC_FOR_TARGET" >&6; }
9692 else
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694 $as_echo "no" >&6; }
9695 fi
9696
9697
9698 done
9699 fi
9700
9701 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9702 for ncn_progname in cc gcc; do
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9704 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9705 if test -x $with_build_time_tools/${ncn_progname}; then
9706 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9708 $as_echo "yes" >&6; }
9709 break
9710 else
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9712 $as_echo "no" >&6; }
9713 fi
9714 done
9715 fi
9716
9717 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9718 for ncn_progname in cc gcc; do
9719 if test -n "$ncn_target_tool_prefix"; then
9720 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9721 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9723 $as_echo_n "checking for $ac_word... " >&6; }
9724 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9725 $as_echo_n "(cached) " >&6
9726 else
9727 if test -n "$CC_FOR_TARGET"; then
9728 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9729 else
9730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9731 for as_dir in $PATH
9732 do
9733 IFS=$as_save_IFS
9734 test -z "$as_dir" && as_dir=.
9735 for ac_exec_ext in '' $ac_executable_extensions; do
9736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9737 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9739 break 2
9740 fi
9741 done
9742 done
9743 IFS=$as_save_IFS
9744
9745 fi
9746 fi
9747 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9748 if test -n "$CC_FOR_TARGET"; then
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9750 $as_echo "$CC_FOR_TARGET" >&6; }
9751 else
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9753 $as_echo "no" >&6; }
9754 fi
9755
9756
9757 fi
9758 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9760 set dummy ${ncn_progname}; ac_word=$2
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762 $as_echo_n "checking for $ac_word... " >&6; }
9763 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9764 $as_echo_n "(cached) " >&6
9765 else
9766 if test -n "$CC_FOR_TARGET"; then
9767 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9768 else
9769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770 for as_dir in $PATH
9771 do
9772 IFS=$as_save_IFS
9773 test -z "$as_dir" && as_dir=.
9774 for ac_exec_ext in '' $ac_executable_extensions; do
9775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9776 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9778 break 2
9779 fi
9780 done
9781 done
9782 IFS=$as_save_IFS
9783
9784 fi
9785 fi
9786 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9787 if test -n "$CC_FOR_TARGET"; then
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9789 $as_echo "$CC_FOR_TARGET" >&6; }
9790 else
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792 $as_echo "no" >&6; }
9793 fi
9794
9795
9796 fi
9797 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9798 done
9799 fi
9800
9801 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9802 set dummy cc gcc
9803 if test $build = $target ; then
9804 CC_FOR_TARGET="$2"
9805 else
9806 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9807 fi
9808 else
9809 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9810 fi
9811
9812
9813
9814 if test -n "$CXX_FOR_TARGET"; then
9815 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9816 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9817 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9818 fi
9819
9820 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9821 for ncn_progname in c++ g++ cxx gxx; do
9822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9823 set dummy ${ncn_progname}; ac_word=$2
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9825 $as_echo_n "checking for $ac_word... " >&6; }
9826 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9827 $as_echo_n "(cached) " >&6
9828 else
9829 if test -n "$CXX_FOR_TARGET"; then
9830 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9831 else
9832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833 for as_dir in $PATH
9834 do
9835 IFS=$as_save_IFS
9836 test -z "$as_dir" && as_dir=.
9837 for ac_exec_ext in '' $ac_executable_extensions; do
9838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9839 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9841 break 2
9842 fi
9843 done
9844 done
9845 IFS=$as_save_IFS
9846
9847 fi
9848 fi
9849 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9850 if test -n "$CXX_FOR_TARGET"; then
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9852 $as_echo "$CXX_FOR_TARGET" >&6; }
9853 else
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9855 $as_echo "no" >&6; }
9856 fi
9857
9858
9859 done
9860 fi
9861
9862 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9863 for ncn_progname in c++ g++ cxx gxx; do
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9865 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9866 if test -x $with_build_time_tools/${ncn_progname}; then
9867 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9869 $as_echo "yes" >&6; }
9870 break
9871 else
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873 $as_echo "no" >&6; }
9874 fi
9875 done
9876 fi
9877
9878 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9879 for ncn_progname in c++ g++ cxx gxx; do
9880 if test -n "$ncn_target_tool_prefix"; then
9881 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9882 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9884 $as_echo_n "checking for $ac_word... " >&6; }
9885 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 if test -n "$CXX_FOR_TARGET"; then
9889 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9890 else
9891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9892 for as_dir in $PATH
9893 do
9894 IFS=$as_save_IFS
9895 test -z "$as_dir" && as_dir=.
9896 for ac_exec_ext in '' $ac_executable_extensions; do
9897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9898 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9900 break 2
9901 fi
9902 done
9903 done
9904 IFS=$as_save_IFS
9905
9906 fi
9907 fi
9908 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9909 if test -n "$CXX_FOR_TARGET"; then
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9911 $as_echo "$CXX_FOR_TARGET" >&6; }
9912 else
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9914 $as_echo "no" >&6; }
9915 fi
9916
9917
9918 fi
9919 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9921 set dummy ${ncn_progname}; ac_word=$2
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9923 $as_echo_n "checking for $ac_word... " >&6; }
9924 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9925 $as_echo_n "(cached) " >&6
9926 else
9927 if test -n "$CXX_FOR_TARGET"; then
9928 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9929 else
9930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931 for as_dir in $PATH
9932 do
9933 IFS=$as_save_IFS
9934 test -z "$as_dir" && as_dir=.
9935 for ac_exec_ext in '' $ac_executable_extensions; do
9936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9937 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9939 break 2
9940 fi
9941 done
9942 done
9943 IFS=$as_save_IFS
9944
9945 fi
9946 fi
9947 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9948 if test -n "$CXX_FOR_TARGET"; then
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9950 $as_echo "$CXX_FOR_TARGET" >&6; }
9951 else
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953 $as_echo "no" >&6; }
9954 fi
9955
9956
9957 fi
9958 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9959 done
9960 fi
9961
9962 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9963 set dummy c++ g++ cxx gxx
9964 if test $build = $target ; then
9965 CXX_FOR_TARGET="$2"
9966 else
9967 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9968 fi
9969 else
9970 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9971 fi
9972
9973
9974
9975 if test -n "$GCC_FOR_TARGET"; then
9976 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9977 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9978 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9979 fi
9980
9981 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9982 for ncn_progname in gcc; do
9983 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9984 set dummy ${ncn_progname}; ac_word=$2
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9986 $as_echo_n "checking for $ac_word... " >&6; }
9987 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 if test -n "$GCC_FOR_TARGET"; then
9991 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9992 else
9993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994 for as_dir in $PATH
9995 do
9996 IFS=$as_save_IFS
9997 test -z "$as_dir" && as_dir=.
9998 for ac_exec_ext in '' $ac_executable_extensions; do
9999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10000 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10002 break 2
10003 fi
10004 done
10005 done
10006 IFS=$as_save_IFS
10007
10008 fi
10009 fi
10010 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10011 if test -n "$GCC_FOR_TARGET"; then
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10013 $as_echo "$GCC_FOR_TARGET" >&6; }
10014 else
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10016 $as_echo "no" >&6; }
10017 fi
10018
10019
10020 done
10021 fi
10022
10023 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10024 for ncn_progname in gcc; do
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10026 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10027 if test -x $with_build_time_tools/${ncn_progname}; then
10028 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10030 $as_echo "yes" >&6; }
10031 break
10032 else
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034 $as_echo "no" >&6; }
10035 fi
10036 done
10037 fi
10038
10039 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10040 for ncn_progname in gcc; do
10041 if test -n "$ncn_target_tool_prefix"; then
10042 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10043 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10045 $as_echo_n "checking for $ac_word... " >&6; }
10046 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10047 $as_echo_n "(cached) " >&6
10048 else
10049 if test -n "$GCC_FOR_TARGET"; then
10050 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10051 else
10052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053 for as_dir in $PATH
10054 do
10055 IFS=$as_save_IFS
10056 test -z "$as_dir" && as_dir=.
10057 for ac_exec_ext in '' $ac_executable_extensions; do
10058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10059 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10061 break 2
10062 fi
10063 done
10064 done
10065 IFS=$as_save_IFS
10066
10067 fi
10068 fi
10069 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10070 if test -n "$GCC_FOR_TARGET"; then
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10072 $as_echo "$GCC_FOR_TARGET" >&6; }
10073 else
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10075 $as_echo "no" >&6; }
10076 fi
10077
10078
10079 fi
10080 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10082 set dummy ${ncn_progname}; ac_word=$2
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10084 $as_echo_n "checking for $ac_word... " >&6; }
10085 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10086 $as_echo_n "(cached) " >&6
10087 else
10088 if test -n "$GCC_FOR_TARGET"; then
10089 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10090 else
10091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10092 for as_dir in $PATH
10093 do
10094 IFS=$as_save_IFS
10095 test -z "$as_dir" && as_dir=.
10096 for ac_exec_ext in '' $ac_executable_extensions; do
10097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10098 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10100 break 2
10101 fi
10102 done
10103 done
10104 IFS=$as_save_IFS
10105
10106 fi
10107 fi
10108 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10109 if test -n "$GCC_FOR_TARGET"; then
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10111 $as_echo "$GCC_FOR_TARGET" >&6; }
10112 else
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114 $as_echo "no" >&6; }
10115 fi
10116
10117
10118 fi
10119 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10120 done
10121 fi
10122
10123 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10124 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10125 else
10126 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10127 fi
10128
10129
10130
10131 if test -n "$GCJ_FOR_TARGET"; then
10132 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10133 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10134 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10135 fi
10136
10137 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10138 for ncn_progname in gcj; do
10139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10140 set dummy ${ncn_progname}; ac_word=$2
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10142 $as_echo_n "checking for $ac_word... " >&6; }
10143 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10144 $as_echo_n "(cached) " >&6
10145 else
10146 if test -n "$GCJ_FOR_TARGET"; then
10147 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10148 else
10149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10150 for as_dir in $PATH
10151 do
10152 IFS=$as_save_IFS
10153 test -z "$as_dir" && as_dir=.
10154 for ac_exec_ext in '' $ac_executable_extensions; do
10155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10156 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10158 break 2
10159 fi
10160 done
10161 done
10162 IFS=$as_save_IFS
10163
10164 fi
10165 fi
10166 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10167 if test -n "$GCJ_FOR_TARGET"; then
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10169 $as_echo "$GCJ_FOR_TARGET" >&6; }
10170 else
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10172 $as_echo "no" >&6; }
10173 fi
10174
10175
10176 done
10177 fi
10178
10179 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10180 for ncn_progname in gcj; do
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10182 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10183 if test -x $with_build_time_tools/${ncn_progname}; then
10184 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10186 $as_echo "yes" >&6; }
10187 break
10188 else
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10190 $as_echo "no" >&6; }
10191 fi
10192 done
10193 fi
10194
10195 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10196 for ncn_progname in gcj; do
10197 if test -n "$ncn_target_tool_prefix"; then
10198 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10199 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10201 $as_echo_n "checking for $ac_word... " >&6; }
10202 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 if test -n "$GCJ_FOR_TARGET"; then
10206 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10207 else
10208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209 for as_dir in $PATH
10210 do
10211 IFS=$as_save_IFS
10212 test -z "$as_dir" && as_dir=.
10213 for ac_exec_ext in '' $ac_executable_extensions; do
10214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10215 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 break 2
10218 fi
10219 done
10220 done
10221 IFS=$as_save_IFS
10222
10223 fi
10224 fi
10225 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10226 if test -n "$GCJ_FOR_TARGET"; then
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10228 $as_echo "$GCJ_FOR_TARGET" >&6; }
10229 else
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10231 $as_echo "no" >&6; }
10232 fi
10233
10234
10235 fi
10236 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10238 set dummy ${ncn_progname}; ac_word=$2
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10240 $as_echo_n "checking for $ac_word... " >&6; }
10241 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10243 else
10244 if test -n "$GCJ_FOR_TARGET"; then
10245 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10246 else
10247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248 for as_dir in $PATH
10249 do
10250 IFS=$as_save_IFS
10251 test -z "$as_dir" && as_dir=.
10252 for ac_exec_ext in '' $ac_executable_extensions; do
10253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10254 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10256 break 2
10257 fi
10258 done
10259 done
10260 IFS=$as_save_IFS
10261
10262 fi
10263 fi
10264 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10265 if test -n "$GCJ_FOR_TARGET"; then
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10267 $as_echo "$GCJ_FOR_TARGET" >&6; }
10268 else
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270 $as_echo "no" >&6; }
10271 fi
10272
10273
10274 fi
10275 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10276 done
10277 fi
10278
10279 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10280 set dummy gcj
10281 if test $build = $target ; then
10282 GCJ_FOR_TARGET="$2"
10283 else
10284 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10285 fi
10286 else
10287 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10288 fi
10289
10290
10291
10292 if test -n "$GFORTRAN_FOR_TARGET"; then
10293 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10294 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10295 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10296 fi
10297
10298 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10299 for ncn_progname in gfortran; do
10300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10301 set dummy ${ncn_progname}; ac_word=$2
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10303 $as_echo_n "checking for $ac_word... " >&6; }
10304 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10305 $as_echo_n "(cached) " >&6
10306 else
10307 if test -n "$GFORTRAN_FOR_TARGET"; then
10308 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10309 else
10310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10311 for as_dir in $PATH
10312 do
10313 IFS=$as_save_IFS
10314 test -z "$as_dir" && as_dir=.
10315 for ac_exec_ext in '' $ac_executable_extensions; do
10316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10317 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10319 break 2
10320 fi
10321 done
10322 done
10323 IFS=$as_save_IFS
10324
10325 fi
10326 fi
10327 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10328 if test -n "$GFORTRAN_FOR_TARGET"; then
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10330 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10331 else
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333 $as_echo "no" >&6; }
10334 fi
10335
10336
10337 done
10338 fi
10339
10340 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10341 for ncn_progname in gfortran; do
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10343 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10344 if test -x $with_build_time_tools/${ncn_progname}; then
10345 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10347 $as_echo "yes" >&6; }
10348 break
10349 else
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10351 $as_echo "no" >&6; }
10352 fi
10353 done
10354 fi
10355
10356 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10357 for ncn_progname in gfortran; do
10358 if test -n "$ncn_target_tool_prefix"; then
10359 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10360 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10362 $as_echo_n "checking for $ac_word... " >&6; }
10363 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10364 $as_echo_n "(cached) " >&6
10365 else
10366 if test -n "$GFORTRAN_FOR_TARGET"; then
10367 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10368 else
10369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370 for as_dir in $PATH
10371 do
10372 IFS=$as_save_IFS
10373 test -z "$as_dir" && as_dir=.
10374 for ac_exec_ext in '' $ac_executable_extensions; do
10375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10376 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10378 break 2
10379 fi
10380 done
10381 done
10382 IFS=$as_save_IFS
10383
10384 fi
10385 fi
10386 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10387 if test -n "$GFORTRAN_FOR_TARGET"; then
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10389 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10390 else
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392 $as_echo "no" >&6; }
10393 fi
10394
10395
10396 fi
10397 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10399 set dummy ${ncn_progname}; ac_word=$2
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401 $as_echo_n "checking for $ac_word... " >&6; }
10402 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10403 $as_echo_n "(cached) " >&6
10404 else
10405 if test -n "$GFORTRAN_FOR_TARGET"; then
10406 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10407 else
10408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409 for as_dir in $PATH
10410 do
10411 IFS=$as_save_IFS
10412 test -z "$as_dir" && as_dir=.
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10415 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10417 break 2
10418 fi
10419 done
10420 done
10421 IFS=$as_save_IFS
10422
10423 fi
10424 fi
10425 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10426 if test -n "$GFORTRAN_FOR_TARGET"; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10428 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10429 else
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431 $as_echo "no" >&6; }
10432 fi
10433
10434
10435 fi
10436 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10437 done
10438 fi
10439
10440 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10441 set dummy gfortran
10442 if test $build = $target ; then
10443 GFORTRAN_FOR_TARGET="$2"
10444 else
10445 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10446 fi
10447 else
10448 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10449 fi
10450
10451
10452
10453 if test -n "$GOC_FOR_TARGET"; then
10454 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10455 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10456 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10457 fi
10458
10459 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10460 for ncn_progname in gccgo; do
10461 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10462 set dummy ${ncn_progname}; ac_word=$2
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10464 $as_echo_n "checking for $ac_word... " >&6; }
10465 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10466 $as_echo_n "(cached) " >&6
10467 else
10468 if test -n "$GOC_FOR_TARGET"; then
10469 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10470 else
10471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10472 for as_dir in $PATH
10473 do
10474 IFS=$as_save_IFS
10475 test -z "$as_dir" && as_dir=.
10476 for ac_exec_ext in '' $ac_executable_extensions; do
10477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10478 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10480 break 2
10481 fi
10482 done
10483 done
10484 IFS=$as_save_IFS
10485
10486 fi
10487 fi
10488 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10489 if test -n "$GOC_FOR_TARGET"; then
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10491 $as_echo "$GOC_FOR_TARGET" >&6; }
10492 else
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10494 $as_echo "no" >&6; }
10495 fi
10496
10497
10498 done
10499 fi
10500
10501 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10502 for ncn_progname in gccgo; do
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10504 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10505 if test -x $with_build_time_tools/${ncn_progname}; then
10506 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10508 $as_echo "yes" >&6; }
10509 break
10510 else
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; }
10513 fi
10514 done
10515 fi
10516
10517 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10518 for ncn_progname in gccgo; do
10519 if test -n "$ncn_target_tool_prefix"; then
10520 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10521 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10523 $as_echo_n "checking for $ac_word... " >&6; }
10524 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10527 if test -n "$GOC_FOR_TARGET"; then
10528 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10529 else
10530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10531 for as_dir in $PATH
10532 do
10533 IFS=$as_save_IFS
10534 test -z "$as_dir" && as_dir=.
10535 for ac_exec_ext in '' $ac_executable_extensions; do
10536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10537 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10539 break 2
10540 fi
10541 done
10542 done
10543 IFS=$as_save_IFS
10544
10545 fi
10546 fi
10547 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10548 if test -n "$GOC_FOR_TARGET"; then
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10550 $as_echo "$GOC_FOR_TARGET" >&6; }
10551 else
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10553 $as_echo "no" >&6; }
10554 fi
10555
10556
10557 fi
10558 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10559 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10560 set dummy ${ncn_progname}; ac_word=$2
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562 $as_echo_n "checking for $ac_word... " >&6; }
10563 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10564 $as_echo_n "(cached) " >&6
10565 else
10566 if test -n "$GOC_FOR_TARGET"; then
10567 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10568 else
10569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570 for as_dir in $PATH
10571 do
10572 IFS=$as_save_IFS
10573 test -z "$as_dir" && as_dir=.
10574 for ac_exec_ext in '' $ac_executable_extensions; do
10575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10576 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10578 break 2
10579 fi
10580 done
10581 done
10582 IFS=$as_save_IFS
10583
10584 fi
10585 fi
10586 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10587 if test -n "$GOC_FOR_TARGET"; then
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10589 $as_echo "$GOC_FOR_TARGET" >&6; }
10590 else
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 $as_echo "no" >&6; }
10593 fi
10594
10595
10596 fi
10597 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10598 done
10599 fi
10600
10601 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10602 set dummy gccgo
10603 if test $build = $target ; then
10604 GOC_FOR_TARGET="$2"
10605 else
10606 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10607 fi
10608 else
10609 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10610 fi
10611
10612
10613
10614 cat > conftest.c << \EOF
10615 #ifdef __GNUC__
10616 gcc_yay;
10617 #endif
10618 EOF
10619 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10620 have_gcc_for_target=yes
10621 else
10622 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10623 have_gcc_for_target=no
10624 fi
10625 rm conftest.c
10626
10627
10628
10629
10630 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10631 if test -n "$with_build_time_tools"; then
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10633 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10634 if test -x $with_build_time_tools/ar; then
10635 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10636 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10638 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10639 else
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10641 $as_echo "no" >&6; }
10642 fi
10643 elif test $build != $host && test $have_gcc_for_target = yes; then
10644 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10645 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10646 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10647 fi
10648 fi
10649 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10650 # Extract the first word of "ar", so it can be a program name with args.
10651 set dummy ar; ac_word=$2
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10653 $as_echo_n "checking for $ac_word... " >&6; }
10654 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10655 $as_echo_n "(cached) " >&6
10656 else
10657 case $AR_FOR_TARGET in
10658 [\\/]* | ?:[\\/]*)
10659 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10660 ;;
10661 *)
10662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in $gcc_cv_tool_dirs
10664 do
10665 IFS=$as_save_IFS
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10669 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10671 break 2
10672 fi
10673 done
10674 done
10675 IFS=$as_save_IFS
10676
10677 ;;
10678 esac
10679 fi
10680 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10681 if test -n "$AR_FOR_TARGET"; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10683 $as_echo "$AR_FOR_TARGET" >&6; }
10684 else
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; }
10687 fi
10688
10689
10690 fi
10691 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10692
10693
10694 if test -n "$AR_FOR_TARGET"; then
10695 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10696 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10697 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10698 fi
10699
10700 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10701 for ncn_progname in ar; do
10702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10703 set dummy ${ncn_progname}; ac_word=$2
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10705 $as_echo_n "checking for $ac_word... " >&6; }
10706 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10707 $as_echo_n "(cached) " >&6
10708 else
10709 if test -n "$AR_FOR_TARGET"; then
10710 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10711 else
10712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713 for as_dir in $PATH
10714 do
10715 IFS=$as_save_IFS
10716 test -z "$as_dir" && as_dir=.
10717 for ac_exec_ext in '' $ac_executable_extensions; do
10718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10719 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10721 break 2
10722 fi
10723 done
10724 done
10725 IFS=$as_save_IFS
10726
10727 fi
10728 fi
10729 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10730 if test -n "$AR_FOR_TARGET"; then
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10732 $as_echo "$AR_FOR_TARGET" >&6; }
10733 else
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10735 $as_echo "no" >&6; }
10736 fi
10737
10738
10739 done
10740 fi
10741
10742 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10743 for ncn_progname in ar; do
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10745 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10746 if test -x $with_build_time_tools/${ncn_progname}; then
10747 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10749 $as_echo "yes" >&6; }
10750 break
10751 else
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10753 $as_echo "no" >&6; }
10754 fi
10755 done
10756 fi
10757
10758 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10759 for ncn_progname in ar; do
10760 if test -n "$ncn_target_tool_prefix"; then
10761 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10762 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10764 $as_echo_n "checking for $ac_word... " >&6; }
10765 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10766 $as_echo_n "(cached) " >&6
10767 else
10768 if test -n "$AR_FOR_TARGET"; then
10769 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10770 else
10771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772 for as_dir in $PATH
10773 do
10774 IFS=$as_save_IFS
10775 test -z "$as_dir" && as_dir=.
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10778 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 break 2
10781 fi
10782 done
10783 done
10784 IFS=$as_save_IFS
10785
10786 fi
10787 fi
10788 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10789 if test -n "$AR_FOR_TARGET"; then
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10791 $as_echo "$AR_FOR_TARGET" >&6; }
10792 else
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10794 $as_echo "no" >&6; }
10795 fi
10796
10797
10798 fi
10799 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10801 set dummy ${ncn_progname}; ac_word=$2
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10803 $as_echo_n "checking for $ac_word... " >&6; }
10804 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10805 $as_echo_n "(cached) " >&6
10806 else
10807 if test -n "$AR_FOR_TARGET"; then
10808 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10809 else
10810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10811 for as_dir in $PATH
10812 do
10813 IFS=$as_save_IFS
10814 test -z "$as_dir" && as_dir=.
10815 for ac_exec_ext in '' $ac_executable_extensions; do
10816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10817 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10819 break 2
10820 fi
10821 done
10822 done
10823 IFS=$as_save_IFS
10824
10825 fi
10826 fi
10827 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10828 if test -n "$AR_FOR_TARGET"; then
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10830 $as_echo "$AR_FOR_TARGET" >&6; }
10831 else
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833 $as_echo "no" >&6; }
10834 fi
10835
10836
10837 fi
10838 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10839 done
10840 fi
10841
10842 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10843 set dummy ar
10844 if test $build = $target ; then
10845 AR_FOR_TARGET="$2"
10846 else
10847 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10848 fi
10849 else
10850 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10851 fi
10852
10853 else
10854 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10855 fi
10856
10857
10858
10859
10860 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10861 if test -n "$with_build_time_tools"; then
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10863 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10864 if test -x $with_build_time_tools/as; then
10865 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10866 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10868 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10869 else
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10871 $as_echo "no" >&6; }
10872 fi
10873 elif test $build != $host && test $have_gcc_for_target = yes; then
10874 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10875 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10876 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10877 fi
10878 fi
10879 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10880 # Extract the first word of "as", so it can be a program name with args.
10881 set dummy as; ac_word=$2
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10883 $as_echo_n "checking for $ac_word... " >&6; }
10884 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887 case $AS_FOR_TARGET in
10888 [\\/]* | ?:[\\/]*)
10889 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10890 ;;
10891 *)
10892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10893 for as_dir in $gcc_cv_tool_dirs
10894 do
10895 IFS=$as_save_IFS
10896 test -z "$as_dir" && as_dir=.
10897 for ac_exec_ext in '' $ac_executable_extensions; do
10898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10899 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10901 break 2
10902 fi
10903 done
10904 done
10905 IFS=$as_save_IFS
10906
10907 ;;
10908 esac
10909 fi
10910 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10911 if test -n "$AS_FOR_TARGET"; then
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10913 $as_echo "$AS_FOR_TARGET" >&6; }
10914 else
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10916 $as_echo "no" >&6; }
10917 fi
10918
10919
10920 fi
10921 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10922
10923
10924 if test -n "$AS_FOR_TARGET"; then
10925 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10926 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10927 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10928 fi
10929
10930 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10931 for ncn_progname in as; do
10932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10933 set dummy ${ncn_progname}; ac_word=$2
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935 $as_echo_n "checking for $ac_word... " >&6; }
10936 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 if test -n "$AS_FOR_TARGET"; then
10940 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10941 else
10942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943 for as_dir in $PATH
10944 do
10945 IFS=$as_save_IFS
10946 test -z "$as_dir" && as_dir=.
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10949 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10951 break 2
10952 fi
10953 done
10954 done
10955 IFS=$as_save_IFS
10956
10957 fi
10958 fi
10959 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10960 if test -n "$AS_FOR_TARGET"; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10962 $as_echo "$AS_FOR_TARGET" >&6; }
10963 else
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965 $as_echo "no" >&6; }
10966 fi
10967
10968
10969 done
10970 fi
10971
10972 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10973 for ncn_progname in as; do
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10975 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10976 if test -x $with_build_time_tools/${ncn_progname}; then
10977 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10979 $as_echo "yes" >&6; }
10980 break
10981 else
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10983 $as_echo "no" >&6; }
10984 fi
10985 done
10986 fi
10987
10988 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10989 for ncn_progname in as; do
10990 if test -n "$ncn_target_tool_prefix"; then
10991 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10992 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994 $as_echo_n "checking for $ac_word... " >&6; }
10995 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10996 $as_echo_n "(cached) " >&6
10997 else
10998 if test -n "$AS_FOR_TARGET"; then
10999 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11000 else
11001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002 for as_dir in $PATH
11003 do
11004 IFS=$as_save_IFS
11005 test -z "$as_dir" && as_dir=.
11006 for ac_exec_ext in '' $ac_executable_extensions; do
11007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11008 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11010 break 2
11011 fi
11012 done
11013 done
11014 IFS=$as_save_IFS
11015
11016 fi
11017 fi
11018 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11019 if test -n "$AS_FOR_TARGET"; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11021 $as_echo "$AS_FOR_TARGET" >&6; }
11022 else
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11024 $as_echo "no" >&6; }
11025 fi
11026
11027
11028 fi
11029 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11031 set dummy ${ncn_progname}; ac_word=$2
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11033 $as_echo_n "checking for $ac_word... " >&6; }
11034 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11035 $as_echo_n "(cached) " >&6
11036 else
11037 if test -n "$AS_FOR_TARGET"; then
11038 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11039 else
11040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in $PATH
11042 do
11043 IFS=$as_save_IFS
11044 test -z "$as_dir" && as_dir=.
11045 for ac_exec_ext in '' $ac_executable_extensions; do
11046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11047 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11049 break 2
11050 fi
11051 done
11052 done
11053 IFS=$as_save_IFS
11054
11055 fi
11056 fi
11057 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11058 if test -n "$AS_FOR_TARGET"; then
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11060 $as_echo "$AS_FOR_TARGET" >&6; }
11061 else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063 $as_echo "no" >&6; }
11064 fi
11065
11066
11067 fi
11068 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11069 done
11070 fi
11071
11072 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11073 set dummy as
11074 if test $build = $target ; then
11075 AS_FOR_TARGET="$2"
11076 else
11077 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11078 fi
11079 else
11080 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11081 fi
11082
11083 else
11084 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11085 fi
11086
11087
11088
11089
11090 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11091 if test -n "$with_build_time_tools"; then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11093 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11094 if test -x $with_build_time_tools/dlltool; then
11095 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11096 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11098 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11099 else
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11101 $as_echo "no" >&6; }
11102 fi
11103 elif test $build != $host && test $have_gcc_for_target = yes; then
11104 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11105 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11106 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11107 fi
11108 fi
11109 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11110 # Extract the first word of "dlltool", so it can be a program name with args.
11111 set dummy dlltool; ac_word=$2
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11113 $as_echo_n "checking for $ac_word... " >&6; }
11114 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11115 $as_echo_n "(cached) " >&6
11116 else
11117 case $DLLTOOL_FOR_TARGET in
11118 [\\/]* | ?:[\\/]*)
11119 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11120 ;;
11121 *)
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123 for as_dir in $gcc_cv_tool_dirs
11124 do
11125 IFS=$as_save_IFS
11126 test -z "$as_dir" && as_dir=.
11127 for ac_exec_ext in '' $ac_executable_extensions; do
11128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11129 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11131 break 2
11132 fi
11133 done
11134 done
11135 IFS=$as_save_IFS
11136
11137 ;;
11138 esac
11139 fi
11140 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11141 if test -n "$DLLTOOL_FOR_TARGET"; then
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11143 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11144 else
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146 $as_echo "no" >&6; }
11147 fi
11148
11149
11150 fi
11151 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11152
11153
11154 if test -n "$DLLTOOL_FOR_TARGET"; then
11155 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11156 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11157 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11158 fi
11159
11160 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11161 for ncn_progname in dlltool; do
11162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11163 set dummy ${ncn_progname}; ac_word=$2
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11165 $as_echo_n "checking for $ac_word... " >&6; }
11166 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11167 $as_echo_n "(cached) " >&6
11168 else
11169 if test -n "$DLLTOOL_FOR_TARGET"; then
11170 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11171 else
11172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11173 for as_dir in $PATH
11174 do
11175 IFS=$as_save_IFS
11176 test -z "$as_dir" && as_dir=.
11177 for ac_exec_ext in '' $ac_executable_extensions; do
11178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11179 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11181 break 2
11182 fi
11183 done
11184 done
11185 IFS=$as_save_IFS
11186
11187 fi
11188 fi
11189 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11190 if test -n "$DLLTOOL_FOR_TARGET"; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11192 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11193 else
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195 $as_echo "no" >&6; }
11196 fi
11197
11198
11199 done
11200 fi
11201
11202 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11203 for ncn_progname in dlltool; do
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11205 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11206 if test -x $with_build_time_tools/${ncn_progname}; then
11207 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11209 $as_echo "yes" >&6; }
11210 break
11211 else
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 $as_echo "no" >&6; }
11214 fi
11215 done
11216 fi
11217
11218 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11219 for ncn_progname in dlltool; do
11220 if test -n "$ncn_target_tool_prefix"; then
11221 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11222 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228 if test -n "$DLLTOOL_FOR_TARGET"; then
11229 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11230 else
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11233 do
11234 IFS=$as_save_IFS
11235 test -z "$as_dir" && as_dir=.
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11238 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11240 break 2
11241 fi
11242 done
11243 done
11244 IFS=$as_save_IFS
11245
11246 fi
11247 fi
11248 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11249 if test -n "$DLLTOOL_FOR_TARGET"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11251 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11252 else
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11255 fi
11256
11257
11258 fi
11259 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11261 set dummy ${ncn_progname}; ac_word=$2
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11263 $as_echo_n "checking for $ac_word... " >&6; }
11264 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11265 $as_echo_n "(cached) " >&6
11266 else
11267 if test -n "$DLLTOOL_FOR_TARGET"; then
11268 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11269 else
11270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271 for as_dir in $PATH
11272 do
11273 IFS=$as_save_IFS
11274 test -z "$as_dir" && as_dir=.
11275 for ac_exec_ext in '' $ac_executable_extensions; do
11276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11277 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11279 break 2
11280 fi
11281 done
11282 done
11283 IFS=$as_save_IFS
11284
11285 fi
11286 fi
11287 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11288 if test -n "$DLLTOOL_FOR_TARGET"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11290 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11291 else
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11294 fi
11295
11296
11297 fi
11298 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11299 done
11300 fi
11301
11302 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11303 set dummy dlltool
11304 if test $build = $target ; then
11305 DLLTOOL_FOR_TARGET="$2"
11306 else
11307 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11308 fi
11309 else
11310 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11311 fi
11312
11313 else
11314 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11315 fi
11316
11317
11318
11319
11320 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11321 if test -n "$with_build_time_tools"; then
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11323 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11324 if test -x $with_build_time_tools/ld; then
11325 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11326 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11328 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11329 else
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331 $as_echo "no" >&6; }
11332 fi
11333 elif test $build != $host && test $have_gcc_for_target = yes; then
11334 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11335 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11336 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11337 fi
11338 fi
11339 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11340 # Extract the first word of "ld", so it can be a program name with args.
11341 set dummy ld; ac_word=$2
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11343 $as_echo_n "checking for $ac_word... " >&6; }
11344 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11345 $as_echo_n "(cached) " >&6
11346 else
11347 case $LD_FOR_TARGET in
11348 [\\/]* | ?:[\\/]*)
11349 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11350 ;;
11351 *)
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $gcc_cv_tool_dirs
11354 do
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11359 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11361 break 2
11362 fi
11363 done
11364 done
11365 IFS=$as_save_IFS
11366
11367 ;;
11368 esac
11369 fi
11370 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11371 if test -n "$LD_FOR_TARGET"; then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11373 $as_echo "$LD_FOR_TARGET" >&6; }
11374 else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376 $as_echo "no" >&6; }
11377 fi
11378
11379
11380 fi
11381 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11382
11383
11384 if test -n "$LD_FOR_TARGET"; then
11385 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11386 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11387 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11388 fi
11389
11390 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11391 for ncn_progname in ld; do
11392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11393 set dummy ${ncn_progname}; ac_word=$2
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11395 $as_echo_n "checking for $ac_word... " >&6; }
11396 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 if test -n "$LD_FOR_TARGET"; then
11400 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11401 else
11402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403 for as_dir in $PATH
11404 do
11405 IFS=$as_save_IFS
11406 test -z "$as_dir" && as_dir=.
11407 for ac_exec_ext in '' $ac_executable_extensions; do
11408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11409 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11411 break 2
11412 fi
11413 done
11414 done
11415 IFS=$as_save_IFS
11416
11417 fi
11418 fi
11419 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11420 if test -n "$LD_FOR_TARGET"; then
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11422 $as_echo "$LD_FOR_TARGET" >&6; }
11423 else
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425 $as_echo "no" >&6; }
11426 fi
11427
11428
11429 done
11430 fi
11431
11432 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11433 for ncn_progname in ld; do
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11435 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11436 if test -x $with_build_time_tools/${ncn_progname}; then
11437 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11439 $as_echo "yes" >&6; }
11440 break
11441 else
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443 $as_echo "no" >&6; }
11444 fi
11445 done
11446 fi
11447
11448 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11449 for ncn_progname in ld; do
11450 if test -n "$ncn_target_tool_prefix"; then
11451 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11452 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454 $as_echo_n "checking for $ac_word... " >&6; }
11455 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 if test -n "$LD_FOR_TARGET"; then
11459 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11460 else
11461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462 for as_dir in $PATH
11463 do
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11468 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 break 2
11471 fi
11472 done
11473 done
11474 IFS=$as_save_IFS
11475
11476 fi
11477 fi
11478 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11479 if test -n "$LD_FOR_TARGET"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11481 $as_echo "$LD_FOR_TARGET" >&6; }
11482 else
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484 $as_echo "no" >&6; }
11485 fi
11486
11487
11488 fi
11489 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11491 set dummy ${ncn_progname}; ac_word=$2
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11493 $as_echo_n "checking for $ac_word... " >&6; }
11494 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11497 if test -n "$LD_FOR_TARGET"; then
11498 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11499 else
11500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501 for as_dir in $PATH
11502 do
11503 IFS=$as_save_IFS
11504 test -z "$as_dir" && as_dir=.
11505 for ac_exec_ext in '' $ac_executable_extensions; do
11506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11507 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11509 break 2
11510 fi
11511 done
11512 done
11513 IFS=$as_save_IFS
11514
11515 fi
11516 fi
11517 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11518 if test -n "$LD_FOR_TARGET"; then
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11520 $as_echo "$LD_FOR_TARGET" >&6; }
11521 else
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11524 fi
11525
11526
11527 fi
11528 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11529 done
11530 fi
11531
11532 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11533 set dummy ld
11534 if test $build = $target ; then
11535 LD_FOR_TARGET="$2"
11536 else
11537 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11538 fi
11539 else
11540 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11541 fi
11542
11543 else
11544 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11545 fi
11546
11547
11548
11549
11550 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11551 if test -n "$with_build_time_tools"; then
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11553 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11554 if test -x $with_build_time_tools/lipo; then
11555 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11556 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11558 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11559 else
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561 $as_echo "no" >&6; }
11562 fi
11563 elif test $build != $host && test $have_gcc_for_target = yes; then
11564 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11565 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11566 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11567 fi
11568 fi
11569 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11570 # Extract the first word of "lipo", so it can be a program name with args.
11571 set dummy lipo; ac_word=$2
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11573 $as_echo_n "checking for $ac_word... " >&6; }
11574 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11575 $as_echo_n "(cached) " >&6
11576 else
11577 case $LIPO_FOR_TARGET in
11578 [\\/]* | ?:[\\/]*)
11579 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11580 ;;
11581 *)
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $gcc_cv_tool_dirs
11584 do
11585 IFS=$as_save_IFS
11586 test -z "$as_dir" && as_dir=.
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11589 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11591 break 2
11592 fi
11593 done
11594 done
11595 IFS=$as_save_IFS
11596
11597 ;;
11598 esac
11599 fi
11600 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11601 if test -n "$LIPO_FOR_TARGET"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11603 $as_echo "$LIPO_FOR_TARGET" >&6; }
11604 else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 $as_echo "no" >&6; }
11607 fi
11608
11609
11610 fi
11611 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11612
11613
11614 if test -n "$LIPO_FOR_TARGET"; then
11615 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11616 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11617 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11618 fi
11619
11620 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11621 for ncn_progname in lipo; do
11622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11623 set dummy ${ncn_progname}; ac_word=$2
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625 $as_echo_n "checking for $ac_word... " >&6; }
11626 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 if test -n "$LIPO_FOR_TARGET"; then
11630 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11631 else
11632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
11634 do
11635 IFS=$as_save_IFS
11636 test -z "$as_dir" && as_dir=.
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11639 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11641 break 2
11642 fi
11643 done
11644 done
11645 IFS=$as_save_IFS
11646
11647 fi
11648 fi
11649 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11650 if test -n "$LIPO_FOR_TARGET"; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11652 $as_echo "$LIPO_FOR_TARGET" >&6; }
11653 else
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11656 fi
11657
11658
11659 done
11660 fi
11661
11662 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11663 for ncn_progname in lipo; do
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11665 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11666 if test -x $with_build_time_tools/${ncn_progname}; then
11667 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11669 $as_echo "yes" >&6; }
11670 break
11671 else
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11674 fi
11675 done
11676 fi
11677
11678 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11679 for ncn_progname in lipo; do
11680 if test -n "$ncn_target_tool_prefix"; then
11681 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11682 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684 $as_echo_n "checking for $ac_word... " >&6; }
11685 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11688 if test -n "$LIPO_FOR_TARGET"; then
11689 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11690 else
11691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692 for as_dir in $PATH
11693 do
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11698 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11700 break 2
11701 fi
11702 done
11703 done
11704 IFS=$as_save_IFS
11705
11706 fi
11707 fi
11708 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11709 if test -n "$LIPO_FOR_TARGET"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11711 $as_echo "$LIPO_FOR_TARGET" >&6; }
11712 else
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11715 fi
11716
11717
11718 fi
11719 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11720 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11721 set dummy ${ncn_progname}; ac_word=$2
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723 $as_echo_n "checking for $ac_word... " >&6; }
11724 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727 if test -n "$LIPO_FOR_TARGET"; then
11728 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11729 else
11730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 for as_dir in $PATH
11732 do
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11737 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11739 break 2
11740 fi
11741 done
11742 done
11743 IFS=$as_save_IFS
11744
11745 fi
11746 fi
11747 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11748 if test -n "$LIPO_FOR_TARGET"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11750 $as_echo "$LIPO_FOR_TARGET" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11754 fi
11755
11756
11757 fi
11758 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11759 done
11760 fi
11761
11762 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11763 set dummy lipo
11764 if test $build = $target ; then
11765 LIPO_FOR_TARGET="$2"
11766 else
11767 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11768 fi
11769 else
11770 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11771 fi
11772
11773 else
11774 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11775 fi
11776
11777
11778
11779
11780 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11781 if test -n "$with_build_time_tools"; then
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11783 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11784 if test -x $with_build_time_tools/nm; then
11785 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11786 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11788 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11789 else
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791 $as_echo "no" >&6; }
11792 fi
11793 elif test $build != $host && test $have_gcc_for_target = yes; then
11794 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11795 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11796 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11797 fi
11798 fi
11799 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11800 # Extract the first word of "nm", so it can be a program name with args.
11801 set dummy nm; ac_word=$2
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803 $as_echo_n "checking for $ac_word... " >&6; }
11804 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11805 $as_echo_n "(cached) " >&6
11806 else
11807 case $NM_FOR_TARGET in
11808 [\\/]* | ?:[\\/]*)
11809 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11810 ;;
11811 *)
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $gcc_cv_tool_dirs
11814 do
11815 IFS=$as_save_IFS
11816 test -z "$as_dir" && as_dir=.
11817 for ac_exec_ext in '' $ac_executable_extensions; do
11818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11819 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11821 break 2
11822 fi
11823 done
11824 done
11825 IFS=$as_save_IFS
11826
11827 ;;
11828 esac
11829 fi
11830 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11831 if test -n "$NM_FOR_TARGET"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11833 $as_echo "$NM_FOR_TARGET" >&6; }
11834 else
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11837 fi
11838
11839
11840 fi
11841 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11842
11843
11844 if test -n "$NM_FOR_TARGET"; then
11845 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11846 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11847 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11848 fi
11849
11850 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11851 for ncn_progname in nm; do
11852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11853 set dummy ${ncn_progname}; ac_word=$2
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855 $as_echo_n "checking for $ac_word... " >&6; }
11856 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 if test -n "$NM_FOR_TARGET"; then
11860 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11861 else
11862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863 for as_dir in $PATH
11864 do
11865 IFS=$as_save_IFS
11866 test -z "$as_dir" && as_dir=.
11867 for ac_exec_ext in '' $ac_executable_extensions; do
11868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11869 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11871 break 2
11872 fi
11873 done
11874 done
11875 IFS=$as_save_IFS
11876
11877 fi
11878 fi
11879 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11880 if test -n "$NM_FOR_TARGET"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11882 $as_echo "$NM_FOR_TARGET" >&6; }
11883 else
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11886 fi
11887
11888
11889 done
11890 fi
11891
11892 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11893 for ncn_progname in nm; do
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11895 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11896 if test -x $with_build_time_tools/${ncn_progname}; then
11897 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11899 $as_echo "yes" >&6; }
11900 break
11901 else
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903 $as_echo "no" >&6; }
11904 fi
11905 done
11906 fi
11907
11908 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11909 for ncn_progname in nm; do
11910 if test -n "$ncn_target_tool_prefix"; then
11911 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11912 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914 $as_echo_n "checking for $ac_word... " >&6; }
11915 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11916 $as_echo_n "(cached) " >&6
11917 else
11918 if test -n "$NM_FOR_TARGET"; then
11919 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11920 else
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11923 do
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
11926 for ac_exec_ext in '' $ac_executable_extensions; do
11927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11928 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930 break 2
11931 fi
11932 done
11933 done
11934 IFS=$as_save_IFS
11935
11936 fi
11937 fi
11938 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11939 if test -n "$NM_FOR_TARGET"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11941 $as_echo "$NM_FOR_TARGET" >&6; }
11942 else
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11945 fi
11946
11947
11948 fi
11949 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11951 set dummy ${ncn_progname}; ac_word=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 if test -n "$NM_FOR_TARGET"; then
11958 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11959 else
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11962 do
11963 IFS=$as_save_IFS
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11967 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11969 break 2
11970 fi
11971 done
11972 done
11973 IFS=$as_save_IFS
11974
11975 fi
11976 fi
11977 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11978 if test -n "$NM_FOR_TARGET"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11980 $as_echo "$NM_FOR_TARGET" >&6; }
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11984 fi
11985
11986
11987 fi
11988 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11989 done
11990 fi
11991
11992 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11993 set dummy nm
11994 if test $build = $target ; then
11995 NM_FOR_TARGET="$2"
11996 else
11997 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11998 fi
11999 else
12000 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12001 fi
12002
12003 else
12004 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12005 fi
12006
12007
12008
12009
12010 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12011 if test -n "$with_build_time_tools"; then
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12013 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12014 if test -x $with_build_time_tools/objdump; then
12015 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12016 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12018 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12019 else
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12022 fi
12023 elif test $build != $host && test $have_gcc_for_target = yes; then
12024 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12025 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12026 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12027 fi
12028 fi
12029 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12030 # Extract the first word of "objdump", so it can be a program name with args.
12031 set dummy objdump; ac_word=$2
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12033 $as_echo_n "checking for $ac_word... " >&6; }
12034 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12035 $as_echo_n "(cached) " >&6
12036 else
12037 case $OBJDUMP_FOR_TARGET in
12038 [\\/]* | ?:[\\/]*)
12039 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12040 ;;
12041 *)
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $gcc_cv_tool_dirs
12044 do
12045 IFS=$as_save_IFS
12046 test -z "$as_dir" && as_dir=.
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12049 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12051 break 2
12052 fi
12053 done
12054 done
12055 IFS=$as_save_IFS
12056
12057 ;;
12058 esac
12059 fi
12060 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12061 if test -n "$OBJDUMP_FOR_TARGET"; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12063 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12064 else
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 $as_echo "no" >&6; }
12067 fi
12068
12069
12070 fi
12071 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12072
12073
12074 if test -n "$OBJDUMP_FOR_TARGET"; then
12075 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12076 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12077 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12078 fi
12079
12080 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12081 for ncn_progname in objdump; do
12082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12083 set dummy ${ncn_progname}; ac_word=$2
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12085 $as_echo_n "checking for $ac_word... " >&6; }
12086 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12087 $as_echo_n "(cached) " >&6
12088 else
12089 if test -n "$OBJDUMP_FOR_TARGET"; then
12090 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12091 else
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in $PATH
12094 do
12095 IFS=$as_save_IFS
12096 test -z "$as_dir" && as_dir=.
12097 for ac_exec_ext in '' $ac_executable_extensions; do
12098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12099 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12101 break 2
12102 fi
12103 done
12104 done
12105 IFS=$as_save_IFS
12106
12107 fi
12108 fi
12109 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12110 if test -n "$OBJDUMP_FOR_TARGET"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12112 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12113 else
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115 $as_echo "no" >&6; }
12116 fi
12117
12118
12119 done
12120 fi
12121
12122 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12123 for ncn_progname in objdump; do
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12125 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12126 if test -x $with_build_time_tools/${ncn_progname}; then
12127 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12129 $as_echo "yes" >&6; }
12130 break
12131 else
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12134 fi
12135 done
12136 fi
12137
12138 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12139 for ncn_progname in objdump; do
12140 if test -n "$ncn_target_tool_prefix"; then
12141 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12142 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12144 $as_echo_n "checking for $ac_word... " >&6; }
12145 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12146 $as_echo_n "(cached) " >&6
12147 else
12148 if test -n "$OBJDUMP_FOR_TARGET"; then
12149 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12150 else
12151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152 for as_dir in $PATH
12153 do
12154 IFS=$as_save_IFS
12155 test -z "$as_dir" && as_dir=.
12156 for ac_exec_ext in '' $ac_executable_extensions; do
12157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12158 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12160 break 2
12161 fi
12162 done
12163 done
12164 IFS=$as_save_IFS
12165
12166 fi
12167 fi
12168 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12169 if test -n "$OBJDUMP_FOR_TARGET"; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12171 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12172 else
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174 $as_echo "no" >&6; }
12175 fi
12176
12177
12178 fi
12179 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12181 set dummy ${ncn_progname}; ac_word=$2
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183 $as_echo_n "checking for $ac_word... " >&6; }
12184 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12187 if test -n "$OBJDUMP_FOR_TARGET"; then
12188 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12189 else
12190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191 for as_dir in $PATH
12192 do
12193 IFS=$as_save_IFS
12194 test -z "$as_dir" && as_dir=.
12195 for ac_exec_ext in '' $ac_executable_extensions; do
12196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12197 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12199 break 2
12200 fi
12201 done
12202 done
12203 IFS=$as_save_IFS
12204
12205 fi
12206 fi
12207 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12208 if test -n "$OBJDUMP_FOR_TARGET"; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12210 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12211 else
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213 $as_echo "no" >&6; }
12214 fi
12215
12216
12217 fi
12218 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12219 done
12220 fi
12221
12222 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12223 set dummy objdump
12224 if test $build = $target ; then
12225 OBJDUMP_FOR_TARGET="$2"
12226 else
12227 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12228 fi
12229 else
12230 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12231 fi
12232
12233 else
12234 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12235 fi
12236
12237
12238
12239
12240 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12241 if test -n "$with_build_time_tools"; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12243 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12244 if test -x $with_build_time_tools/ranlib; then
12245 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12246 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12248 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 $as_echo "no" >&6; }
12252 fi
12253 elif test $build != $host && test $have_gcc_for_target = yes; then
12254 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12255 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12256 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12257 fi
12258 fi
12259 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12260 # Extract the first word of "ranlib", so it can be a program name with args.
12261 set dummy ranlib; ac_word=$2
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263 $as_echo_n "checking for $ac_word... " >&6; }
12264 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12265 $as_echo_n "(cached) " >&6
12266 else
12267 case $RANLIB_FOR_TARGET in
12268 [\\/]* | ?:[\\/]*)
12269 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12270 ;;
12271 *)
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273 for as_dir in $gcc_cv_tool_dirs
12274 do
12275 IFS=$as_save_IFS
12276 test -z "$as_dir" && as_dir=.
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12279 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12281 break 2
12282 fi
12283 done
12284 done
12285 IFS=$as_save_IFS
12286
12287 ;;
12288 esac
12289 fi
12290 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12291 if test -n "$RANLIB_FOR_TARGET"; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12293 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12294 else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296 $as_echo "no" >&6; }
12297 fi
12298
12299
12300 fi
12301 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12302
12303
12304 if test -n "$RANLIB_FOR_TARGET"; then
12305 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12306 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12307 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12308 fi
12309
12310 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12311 for ncn_progname in ranlib; do
12312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12313 set dummy ${ncn_progname}; ac_word=$2
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12315 $as_echo_n "checking for $ac_word... " >&6; }
12316 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12317 $as_echo_n "(cached) " >&6
12318 else
12319 if test -n "$RANLIB_FOR_TARGET"; then
12320 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12321 else
12322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323 for as_dir in $PATH
12324 do
12325 IFS=$as_save_IFS
12326 test -z "$as_dir" && as_dir=.
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12329 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331 break 2
12332 fi
12333 done
12334 done
12335 IFS=$as_save_IFS
12336
12337 fi
12338 fi
12339 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12340 if test -n "$RANLIB_FOR_TARGET"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12342 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12343 else
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345 $as_echo "no" >&6; }
12346 fi
12347
12348
12349 done
12350 fi
12351
12352 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12353 for ncn_progname in ranlib; do
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12355 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12356 if test -x $with_build_time_tools/${ncn_progname}; then
12357 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12359 $as_echo "yes" >&6; }
12360 break
12361 else
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12364 fi
12365 done
12366 fi
12367
12368 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12369 for ncn_progname in ranlib; do
12370 if test -n "$ncn_target_tool_prefix"; then
12371 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12372 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374 $as_echo_n "checking for $ac_word... " >&6; }
12375 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12376 $as_echo_n "(cached) " >&6
12377 else
12378 if test -n "$RANLIB_FOR_TARGET"; then
12379 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12380 else
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
12383 do
12384 IFS=$as_save_IFS
12385 test -z "$as_dir" && as_dir=.
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12388 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12390 break 2
12391 fi
12392 done
12393 done
12394 IFS=$as_save_IFS
12395
12396 fi
12397 fi
12398 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12399 if test -n "$RANLIB_FOR_TARGET"; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12401 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12402 else
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12405 fi
12406
12407
12408 fi
12409 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12411 set dummy ${ncn_progname}; ac_word=$2
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413 $as_echo_n "checking for $ac_word... " >&6; }
12414 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
12416 else
12417 if test -n "$RANLIB_FOR_TARGET"; then
12418 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12419 else
12420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421 for as_dir in $PATH
12422 do
12423 IFS=$as_save_IFS
12424 test -z "$as_dir" && as_dir=.
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12427 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12429 break 2
12430 fi
12431 done
12432 done
12433 IFS=$as_save_IFS
12434
12435 fi
12436 fi
12437 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12438 if test -n "$RANLIB_FOR_TARGET"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12440 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12441 else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12444 fi
12445
12446
12447 fi
12448 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12449 done
12450 fi
12451
12452 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12453 set dummy ranlib
12454 if test $build = $target ; then
12455 RANLIB_FOR_TARGET="$2"
12456 else
12457 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12458 fi
12459 else
12460 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12461 fi
12462
12463 else
12464 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12465 fi
12466
12467
12468
12469
12470 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12471 if test -n "$with_build_time_tools"; then
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12473 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12474 if test -x $with_build_time_tools/strip; then
12475 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12476 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12478 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12482 fi
12483 elif test $build != $host && test $have_gcc_for_target = yes; then
12484 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12485 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12486 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12487 fi
12488 fi
12489 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12490 # Extract the first word of "strip", so it can be a program name with args.
12491 set dummy strip; ac_word=$2
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12493 $as_echo_n "checking for $ac_word... " >&6; }
12494 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12495 $as_echo_n "(cached) " >&6
12496 else
12497 case $STRIP_FOR_TARGET in
12498 [\\/]* | ?:[\\/]*)
12499 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12500 ;;
12501 *)
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $gcc_cv_tool_dirs
12504 do
12505 IFS=$as_save_IFS
12506 test -z "$as_dir" && as_dir=.
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12509 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12511 break 2
12512 fi
12513 done
12514 done
12515 IFS=$as_save_IFS
12516
12517 ;;
12518 esac
12519 fi
12520 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12521 if test -n "$STRIP_FOR_TARGET"; then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12523 $as_echo "$STRIP_FOR_TARGET" >&6; }
12524 else
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 $as_echo "no" >&6; }
12527 fi
12528
12529
12530 fi
12531 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12532
12533
12534 if test -n "$STRIP_FOR_TARGET"; then
12535 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12536 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12537 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12538 fi
12539
12540 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12541 for ncn_progname in strip; do
12542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12543 set dummy ${ncn_progname}; ac_word=$2
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12545 $as_echo_n "checking for $ac_word... " >&6; }
12546 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12549 if test -n "$STRIP_FOR_TARGET"; then
12550 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12551 else
12552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12553 for as_dir in $PATH
12554 do
12555 IFS=$as_save_IFS
12556 test -z "$as_dir" && as_dir=.
12557 for ac_exec_ext in '' $ac_executable_extensions; do
12558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12559 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12561 break 2
12562 fi
12563 done
12564 done
12565 IFS=$as_save_IFS
12566
12567 fi
12568 fi
12569 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12570 if test -n "$STRIP_FOR_TARGET"; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12572 $as_echo "$STRIP_FOR_TARGET" >&6; }
12573 else
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12576 fi
12577
12578
12579 done
12580 fi
12581
12582 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12583 for ncn_progname in strip; do
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12585 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12586 if test -x $with_build_time_tools/${ncn_progname}; then
12587 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12589 $as_echo "yes" >&6; }
12590 break
12591 else
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593 $as_echo "no" >&6; }
12594 fi
12595 done
12596 fi
12597
12598 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12599 for ncn_progname in strip; do
12600 if test -n "$ncn_target_tool_prefix"; then
12601 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12602 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604 $as_echo_n "checking for $ac_word... " >&6; }
12605 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12606 $as_echo_n "(cached) " >&6
12607 else
12608 if test -n "$STRIP_FOR_TARGET"; then
12609 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12610 else
12611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612 for as_dir in $PATH
12613 do
12614 IFS=$as_save_IFS
12615 test -z "$as_dir" && as_dir=.
12616 for ac_exec_ext in '' $ac_executable_extensions; do
12617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12618 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12620 break 2
12621 fi
12622 done
12623 done
12624 IFS=$as_save_IFS
12625
12626 fi
12627 fi
12628 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12629 if test -n "$STRIP_FOR_TARGET"; then
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12631 $as_echo "$STRIP_FOR_TARGET" >&6; }
12632 else
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12635 fi
12636
12637
12638 fi
12639 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12641 set dummy ${ncn_progname}; ac_word=$2
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643 $as_echo_n "checking for $ac_word... " >&6; }
12644 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
12646 else
12647 if test -n "$STRIP_FOR_TARGET"; then
12648 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12649 else
12650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651 for as_dir in $PATH
12652 do
12653 IFS=$as_save_IFS
12654 test -z "$as_dir" && as_dir=.
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12657 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12659 break 2
12660 fi
12661 done
12662 done
12663 IFS=$as_save_IFS
12664
12665 fi
12666 fi
12667 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12668 if test -n "$STRIP_FOR_TARGET"; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12670 $as_echo "$STRIP_FOR_TARGET" >&6; }
12671 else
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673 $as_echo "no" >&6; }
12674 fi
12675
12676
12677 fi
12678 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12679 done
12680 fi
12681
12682 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12683 set dummy strip
12684 if test $build = $target ; then
12685 STRIP_FOR_TARGET="$2"
12686 else
12687 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12688 fi
12689 else
12690 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12691 fi
12692
12693 else
12694 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12695 fi
12696
12697
12698
12699
12700 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12701 if test -n "$with_build_time_tools"; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12703 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12704 if test -x $with_build_time_tools/windres; then
12705 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12706 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12708 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12709 else
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711 $as_echo "no" >&6; }
12712 fi
12713 elif test $build != $host && test $have_gcc_for_target = yes; then
12714 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12715 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12716 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12717 fi
12718 fi
12719 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12720 # Extract the first word of "windres", so it can be a program name with args.
12721 set dummy windres; ac_word=$2
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12723 $as_echo_n "checking for $ac_word... " >&6; }
12724 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12725 $as_echo_n "(cached) " >&6
12726 else
12727 case $WINDRES_FOR_TARGET in
12728 [\\/]* | ?:[\\/]*)
12729 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12730 ;;
12731 *)
12732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733 for as_dir in $gcc_cv_tool_dirs
12734 do
12735 IFS=$as_save_IFS
12736 test -z "$as_dir" && as_dir=.
12737 for ac_exec_ext in '' $ac_executable_extensions; do
12738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12739 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12741 break 2
12742 fi
12743 done
12744 done
12745 IFS=$as_save_IFS
12746
12747 ;;
12748 esac
12749 fi
12750 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12751 if test -n "$WINDRES_FOR_TARGET"; then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12753 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12754 else
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 $as_echo "no" >&6; }
12757 fi
12758
12759
12760 fi
12761 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12762
12763
12764 if test -n "$WINDRES_FOR_TARGET"; then
12765 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12766 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12767 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12768 fi
12769
12770 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12771 for ncn_progname in windres; do
12772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12773 set dummy ${ncn_progname}; ac_word=$2
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775 $as_echo_n "checking for $ac_word... " >&6; }
12776 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 if test -n "$WINDRES_FOR_TARGET"; then
12780 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12781 else
12782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783 for as_dir in $PATH
12784 do
12785 IFS=$as_save_IFS
12786 test -z "$as_dir" && as_dir=.
12787 for ac_exec_ext in '' $ac_executable_extensions; do
12788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12789 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12791 break 2
12792 fi
12793 done
12794 done
12795 IFS=$as_save_IFS
12796
12797 fi
12798 fi
12799 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12800 if test -n "$WINDRES_FOR_TARGET"; then
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12802 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12803 else
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805 $as_echo "no" >&6; }
12806 fi
12807
12808
12809 done
12810 fi
12811
12812 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12813 for ncn_progname in windres; do
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12815 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12816 if test -x $with_build_time_tools/${ncn_progname}; then
12817 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12819 $as_echo "yes" >&6; }
12820 break
12821 else
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823 $as_echo "no" >&6; }
12824 fi
12825 done
12826 fi
12827
12828 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12829 for ncn_progname in windres; do
12830 if test -n "$ncn_target_tool_prefix"; then
12831 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12832 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834 $as_echo_n "checking for $ac_word... " >&6; }
12835 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12836 $as_echo_n "(cached) " >&6
12837 else
12838 if test -n "$WINDRES_FOR_TARGET"; then
12839 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12840 else
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH
12843 do
12844 IFS=$as_save_IFS
12845 test -z "$as_dir" && as_dir=.
12846 for ac_exec_ext in '' $ac_executable_extensions; do
12847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12848 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12850 break 2
12851 fi
12852 done
12853 done
12854 IFS=$as_save_IFS
12855
12856 fi
12857 fi
12858 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12859 if test -n "$WINDRES_FOR_TARGET"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12861 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12862 else
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12865 fi
12866
12867
12868 fi
12869 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12871 set dummy ${ncn_progname}; ac_word=$2
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873 $as_echo_n "checking for $ac_word... " >&6; }
12874 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12875 $as_echo_n "(cached) " >&6
12876 else
12877 if test -n "$WINDRES_FOR_TARGET"; then
12878 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12879 else
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12882 do
12883 IFS=$as_save_IFS
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12887 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 break 2
12890 fi
12891 done
12892 done
12893 IFS=$as_save_IFS
12894
12895 fi
12896 fi
12897 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12898 if test -n "$WINDRES_FOR_TARGET"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12900 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12901 else
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12904 fi
12905
12906
12907 fi
12908 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12909 done
12910 fi
12911
12912 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12913 set dummy windres
12914 if test $build = $target ; then
12915 WINDRES_FOR_TARGET="$2"
12916 else
12917 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12918 fi
12919 else
12920 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12921 fi
12922
12923 else
12924 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12925 fi
12926
12927
12928
12929
12930 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12931 if test -n "$with_build_time_tools"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12933 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12934 if test -x $with_build_time_tools/windmc; then
12935 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12936 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12938 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12939 else
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12942 fi
12943 elif test $build != $host && test $have_gcc_for_target = yes; then
12944 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12945 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12946 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12947 fi
12948 fi
12949 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12950 # Extract the first word of "windmc", so it can be a program name with args.
12951 set dummy windmc; ac_word=$2
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12953 $as_echo_n "checking for $ac_word... " >&6; }
12954 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12955 $as_echo_n "(cached) " >&6
12956 else
12957 case $WINDMC_FOR_TARGET in
12958 [\\/]* | ?:[\\/]*)
12959 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12960 ;;
12961 *)
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $gcc_cv_tool_dirs
12964 do
12965 IFS=$as_save_IFS
12966 test -z "$as_dir" && as_dir=.
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12969 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12971 break 2
12972 fi
12973 done
12974 done
12975 IFS=$as_save_IFS
12976
12977 ;;
12978 esac
12979 fi
12980 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12981 if test -n "$WINDMC_FOR_TARGET"; then
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12983 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12984 else
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986 $as_echo "no" >&6; }
12987 fi
12988
12989
12990 fi
12991 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12992
12993
12994 if test -n "$WINDMC_FOR_TARGET"; then
12995 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12996 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12997 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12998 fi
12999
13000 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13001 for ncn_progname in windmc; do
13002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13003 set dummy ${ncn_progname}; ac_word=$2
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13005 $as_echo_n "checking for $ac_word... " >&6; }
13006 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 if test -n "$WINDMC_FOR_TARGET"; then
13010 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13011 else
13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013 for as_dir in $PATH
13014 do
13015 IFS=$as_save_IFS
13016 test -z "$as_dir" && as_dir=.
13017 for ac_exec_ext in '' $ac_executable_extensions; do
13018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13019 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13021 break 2
13022 fi
13023 done
13024 done
13025 IFS=$as_save_IFS
13026
13027 fi
13028 fi
13029 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13030 if test -n "$WINDMC_FOR_TARGET"; then
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13032 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13033 else
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035 $as_echo "no" >&6; }
13036 fi
13037
13038
13039 done
13040 fi
13041
13042 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13043 for ncn_progname in windmc; do
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13045 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13046 if test -x $with_build_time_tools/${ncn_progname}; then
13047 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13049 $as_echo "yes" >&6; }
13050 break
13051 else
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053 $as_echo "no" >&6; }
13054 fi
13055 done
13056 fi
13057
13058 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13059 for ncn_progname in windmc; do
13060 if test -n "$ncn_target_tool_prefix"; then
13061 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13062 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13066 $as_echo_n "(cached) " >&6
13067 else
13068 if test -n "$WINDMC_FOR_TARGET"; then
13069 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13070 else
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13073 do
13074 IFS=$as_save_IFS
13075 test -z "$as_dir" && as_dir=.
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13078 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13080 break 2
13081 fi
13082 done
13083 done
13084 IFS=$as_save_IFS
13085
13086 fi
13087 fi
13088 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13089 if test -n "$WINDMC_FOR_TARGET"; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13091 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13092 else
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094 $as_echo "no" >&6; }
13095 fi
13096
13097
13098 fi
13099 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13101 set dummy ${ncn_progname}; ac_word=$2
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103 $as_echo_n "checking for $ac_word... " >&6; }
13104 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13105 $as_echo_n "(cached) " >&6
13106 else
13107 if test -n "$WINDMC_FOR_TARGET"; then
13108 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13109 else
13110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111 for as_dir in $PATH
13112 do
13113 IFS=$as_save_IFS
13114 test -z "$as_dir" && as_dir=.
13115 for ac_exec_ext in '' $ac_executable_extensions; do
13116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13117 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13119 break 2
13120 fi
13121 done
13122 done
13123 IFS=$as_save_IFS
13124
13125 fi
13126 fi
13127 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13128 if test -n "$WINDMC_FOR_TARGET"; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13130 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13131 else
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133 $as_echo "no" >&6; }
13134 fi
13135
13136
13137 fi
13138 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13139 done
13140 fi
13141
13142 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13143 set dummy windmc
13144 if test $build = $target ; then
13145 WINDMC_FOR_TARGET="$2"
13146 else
13147 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13148 fi
13149 else
13150 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13151 fi
13152
13153 else
13154 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13155 fi
13156
13157
13158 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13159
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13161 $as_echo_n "checking where to find the target ar... " >&6; }
13162 if test "x${build}" != "x${host}" ; then
13163 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13164 # We already found the complete path
13165 ac_dir=`dirname $AR_FOR_TARGET`
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13167 $as_echo "pre-installed in $ac_dir" >&6; }
13168 else
13169 # Canadian cross, just use what we found
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13171 $as_echo "pre-installed" >&6; }
13172 fi
13173 else
13174 ok=yes
13175 case " ${configdirs} " in
13176 *" binutils "*) ;;
13177 *) ok=no ;;
13178 esac
13179
13180 if test $ok = yes; then
13181 # An in-tree tool is available and we can use it
13182 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13184 $as_echo "just compiled" >&6; }
13185 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13186 # We already found the complete path
13187 ac_dir=`dirname $AR_FOR_TARGET`
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13189 $as_echo "pre-installed in $ac_dir" >&6; }
13190 elif test "x$target" = "x$host"; then
13191 # We can use an host tool
13192 AR_FOR_TARGET='$(AR)'
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13194 $as_echo "host tool" >&6; }
13195 else
13196 # We need a cross tool
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13198 $as_echo "pre-installed" >&6; }
13199 fi
13200 fi
13201
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13203 $as_echo_n "checking where to find the target as... " >&6; }
13204 if test "x${build}" != "x${host}" ; then
13205 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13206 # We already found the complete path
13207 ac_dir=`dirname $AS_FOR_TARGET`
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13209 $as_echo "pre-installed in $ac_dir" >&6; }
13210 else
13211 # Canadian cross, just use what we found
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13213 $as_echo "pre-installed" >&6; }
13214 fi
13215 else
13216 ok=yes
13217 case " ${configdirs} " in
13218 *" gas "*) ;;
13219 *) ok=no ;;
13220 esac
13221
13222 if test $ok = yes; then
13223 # An in-tree tool is available and we can use it
13224 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13226 $as_echo "just compiled" >&6; }
13227 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13228 # We already found the complete path
13229 ac_dir=`dirname $AS_FOR_TARGET`
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13231 $as_echo "pre-installed in $ac_dir" >&6; }
13232 elif test "x$target" = "x$host"; then
13233 # We can use an host tool
13234 AS_FOR_TARGET='$(AS)'
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13236 $as_echo "host tool" >&6; }
13237 else
13238 # We need a cross tool
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13240 $as_echo "pre-installed" >&6; }
13241 fi
13242 fi
13243
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13245 $as_echo_n "checking where to find the target cc... " >&6; }
13246 if test "x${build}" != "x${host}" ; then
13247 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13248 # We already found the complete path
13249 ac_dir=`dirname $CC_FOR_TARGET`
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13251 $as_echo "pre-installed in $ac_dir" >&6; }
13252 else
13253 # Canadian cross, just use what we found
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13255 $as_echo "pre-installed" >&6; }
13256 fi
13257 else
13258 ok=yes
13259 case " ${configdirs} " in
13260 *" gcc "*) ;;
13261 *) ok=no ;;
13262 esac
13263
13264 if test $ok = yes; then
13265 # An in-tree tool is available and we can use it
13266 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13268 $as_echo "just compiled" >&6; }
13269 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13270 # We already found the complete path
13271 ac_dir=`dirname $CC_FOR_TARGET`
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13273 $as_echo "pre-installed in $ac_dir" >&6; }
13274 elif test "x$target" = "x$host"; then
13275 # We can use an host tool
13276 CC_FOR_TARGET='$(CC)'
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13278 $as_echo "host tool" >&6; }
13279 else
13280 # We need a cross tool
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13282 $as_echo "pre-installed" >&6; }
13283 fi
13284 fi
13285
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13287 $as_echo_n "checking where to find the target c++... " >&6; }
13288 if test "x${build}" != "x${host}" ; then
13289 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13290 # We already found the complete path
13291 ac_dir=`dirname $CXX_FOR_TARGET`
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13293 $as_echo "pre-installed in $ac_dir" >&6; }
13294 else
13295 # Canadian cross, just use what we found
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13297 $as_echo "pre-installed" >&6; }
13298 fi
13299 else
13300 ok=yes
13301 case " ${configdirs} " in
13302 *" gcc "*) ;;
13303 *) ok=no ;;
13304 esac
13305 case ,${enable_languages}, in
13306 *,c++,*) ;;
13307 *) ok=no ;;
13308 esac
13309 if test $ok = yes; then
13310 # An in-tree tool is available and we can use it
13311 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13313 $as_echo "just compiled" >&6; }
13314 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13315 # We already found the complete path
13316 ac_dir=`dirname $CXX_FOR_TARGET`
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13318 $as_echo "pre-installed in $ac_dir" >&6; }
13319 elif test "x$target" = "x$host"; then
13320 # We can use an host tool
13321 CXX_FOR_TARGET='$(CXX)'
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13323 $as_echo "host tool" >&6; }
13324 else
13325 # We need a cross tool
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13327 $as_echo "pre-installed" >&6; }
13328 fi
13329 fi
13330
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13332 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13333 if test "x${build}" != "x${host}" ; then
13334 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13335 # We already found the complete path
13336 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13338 $as_echo "pre-installed in $ac_dir" >&6; }
13339 else
13340 # Canadian cross, just use what we found
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13342 $as_echo "pre-installed" >&6; }
13343 fi
13344 else
13345 ok=yes
13346 case " ${configdirs} " in
13347 *" gcc "*) ;;
13348 *) ok=no ;;
13349 esac
13350 case ,${enable_languages}, in
13351 *,c++,*) ;;
13352 *) ok=no ;;
13353 esac
13354 if test $ok = yes; then
13355 # An in-tree tool is available and we can use it
13356 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'
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13358 $as_echo "just compiled" >&6; }
13359 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13360 # We already found the complete path
13361 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13363 $as_echo "pre-installed in $ac_dir" >&6; }
13364 elif test "x$target" = "x$host"; then
13365 # We can use an host tool
13366 RAW_CXX_FOR_TARGET='$(CXX)'
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13368 $as_echo "host tool" >&6; }
13369 else
13370 # We need a cross tool
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13372 $as_echo "pre-installed" >&6; }
13373 fi
13374 fi
13375
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13377 $as_echo_n "checking where to find the target dlltool... " >&6; }
13378 if test "x${build}" != "x${host}" ; then
13379 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13380 # We already found the complete path
13381 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13383 $as_echo "pre-installed in $ac_dir" >&6; }
13384 else
13385 # Canadian cross, just use what we found
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13387 $as_echo "pre-installed" >&6; }
13388 fi
13389 else
13390 ok=yes
13391 case " ${configdirs} " in
13392 *" binutils "*) ;;
13393 *) ok=no ;;
13394 esac
13395
13396 if test $ok = yes; then
13397 # An in-tree tool is available and we can use it
13398 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13400 $as_echo "just compiled" >&6; }
13401 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13402 # We already found the complete path
13403 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13405 $as_echo "pre-installed in $ac_dir" >&6; }
13406 elif test "x$target" = "x$host"; then
13407 # We can use an host tool
13408 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13410 $as_echo "host tool" >&6; }
13411 else
13412 # We need a cross tool
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13414 $as_echo "pre-installed" >&6; }
13415 fi
13416 fi
13417
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13419 $as_echo_n "checking where to find the target gcc... " >&6; }
13420 if test "x${build}" != "x${host}" ; then
13421 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13422 # We already found the complete path
13423 ac_dir=`dirname $GCC_FOR_TARGET`
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13425 $as_echo "pre-installed in $ac_dir" >&6; }
13426 else
13427 # Canadian cross, just use what we found
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13429 $as_echo "pre-installed" >&6; }
13430 fi
13431 else
13432 ok=yes
13433 case " ${configdirs} " in
13434 *" gcc "*) ;;
13435 *) ok=no ;;
13436 esac
13437
13438 if test $ok = yes; then
13439 # An in-tree tool is available and we can use it
13440 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13442 $as_echo "just compiled" >&6; }
13443 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13444 # We already found the complete path
13445 ac_dir=`dirname $GCC_FOR_TARGET`
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13447 $as_echo "pre-installed in $ac_dir" >&6; }
13448 elif test "x$target" = "x$host"; then
13449 # We can use an host tool
13450 GCC_FOR_TARGET='$()'
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13452 $as_echo "host tool" >&6; }
13453 else
13454 # We need a cross tool
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13456 $as_echo "pre-installed" >&6; }
13457 fi
13458 fi
13459
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13461 $as_echo_n "checking where to find the target gcj... " >&6; }
13462 if test "x${build}" != "x${host}" ; then
13463 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13464 # We already found the complete path
13465 ac_dir=`dirname $GCJ_FOR_TARGET`
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13467 $as_echo "pre-installed in $ac_dir" >&6; }
13468 else
13469 # Canadian cross, just use what we found
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13471 $as_echo "pre-installed" >&6; }
13472 fi
13473 else
13474 ok=yes
13475 case " ${configdirs} " in
13476 *" gcc "*) ;;
13477 *) ok=no ;;
13478 esac
13479 case ,${enable_languages}, in
13480 *,java,*) ;;
13481 *) ok=no ;;
13482 esac
13483 if test $ok = yes; then
13484 # An in-tree tool is available and we can use it
13485 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13487 $as_echo "just compiled" >&6; }
13488 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13489 # We already found the complete path
13490 ac_dir=`dirname $GCJ_FOR_TARGET`
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13492 $as_echo "pre-installed in $ac_dir" >&6; }
13493 elif test "x$target" = "x$host"; then
13494 # We can use an host tool
13495 GCJ_FOR_TARGET='$(GCJ)'
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13497 $as_echo "host tool" >&6; }
13498 else
13499 # We need a cross tool
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13501 $as_echo "pre-installed" >&6; }
13502 fi
13503 fi
13504
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13506 $as_echo_n "checking where to find the target gfortran... " >&6; }
13507 if test "x${build}" != "x${host}" ; then
13508 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13509 # We already found the complete path
13510 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13512 $as_echo "pre-installed in $ac_dir" >&6; }
13513 else
13514 # Canadian cross, just use what we found
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13516 $as_echo "pre-installed" >&6; }
13517 fi
13518 else
13519 ok=yes
13520 case " ${configdirs} " in
13521 *" gcc "*) ;;
13522 *) ok=no ;;
13523 esac
13524 case ,${enable_languages}, in
13525 *,fortran,*) ;;
13526 *) ok=no ;;
13527 esac
13528 if test $ok = yes; then
13529 # An in-tree tool is available and we can use it
13530 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13532 $as_echo "just compiled" >&6; }
13533 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13534 # We already found the complete path
13535 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13537 $as_echo "pre-installed in $ac_dir" >&6; }
13538 elif test "x$target" = "x$host"; then
13539 # We can use an host tool
13540 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13542 $as_echo "host tool" >&6; }
13543 else
13544 # We need a cross tool
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13546 $as_echo "pre-installed" >&6; }
13547 fi
13548 fi
13549
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13551 $as_echo_n "checking where to find the target gccgo... " >&6; }
13552 if test "x${build}" != "x${host}" ; then
13553 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13554 # We already found the complete path
13555 ac_dir=`dirname $GOC_FOR_TARGET`
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13557 $as_echo "pre-installed in $ac_dir" >&6; }
13558 else
13559 # Canadian cross, just use what we found
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13561 $as_echo "pre-installed" >&6; }
13562 fi
13563 else
13564 ok=yes
13565 case " ${configdirs} " in
13566 *" gcc "*) ;;
13567 *) ok=no ;;
13568 esac
13569 case ,${enable_languages}, in
13570 *,go,*) ;;
13571 *) ok=no ;;
13572 esac
13573 if test $ok = yes; then
13574 # An in-tree tool is available and we can use it
13575 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13577 $as_echo "just compiled" >&6; }
13578 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13579 # We already found the complete path
13580 ac_dir=`dirname $GOC_FOR_TARGET`
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13582 $as_echo "pre-installed in $ac_dir" >&6; }
13583 elif test "x$target" = "x$host"; then
13584 # We can use an host tool
13585 GOC_FOR_TARGET='$(GOC)'
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13587 $as_echo "host tool" >&6; }
13588 else
13589 # We need a cross tool
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13591 $as_echo "pre-installed" >&6; }
13592 fi
13593 fi
13594
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13596 $as_echo_n "checking where to find the target ld... " >&6; }
13597 if test "x${build}" != "x${host}" ; then
13598 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13599 # We already found the complete path
13600 ac_dir=`dirname $LD_FOR_TARGET`
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13602 $as_echo "pre-installed in $ac_dir" >&6; }
13603 else
13604 # Canadian cross, just use what we found
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13606 $as_echo "pre-installed" >&6; }
13607 fi
13608 else
13609 ok=yes
13610 case " ${configdirs} " in
13611 *" ld "*) ;;
13612 *) ok=no ;;
13613 esac
13614
13615 if test $ok = yes; then
13616 # An in-tree tool is available and we can use it
13617 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13619 $as_echo "just compiled" >&6; }
13620 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13621 # We already found the complete path
13622 ac_dir=`dirname $LD_FOR_TARGET`
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13624 $as_echo "pre-installed in $ac_dir" >&6; }
13625 elif test "x$target" = "x$host"; then
13626 # We can use an host tool
13627 LD_FOR_TARGET='$(LD)'
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13629 $as_echo "host tool" >&6; }
13630 else
13631 # We need a cross tool
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13633 $as_echo "pre-installed" >&6; }
13634 fi
13635 fi
13636
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13638 $as_echo_n "checking where to find the target lipo... " >&6; }
13639 if test "x${build}" != "x${host}" ; then
13640 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13641 # We already found the complete path
13642 ac_dir=`dirname $LIPO_FOR_TARGET`
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13644 $as_echo "pre-installed in $ac_dir" >&6; }
13645 else
13646 # Canadian cross, just use what we found
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13648 $as_echo "pre-installed" >&6; }
13649 fi
13650 else
13651 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13652 # We already found the complete path
13653 ac_dir=`dirname $LIPO_FOR_TARGET`
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13655 $as_echo "pre-installed in $ac_dir" >&6; }
13656 elif test "x$target" = "x$host"; then
13657 # We can use an host tool
13658 LIPO_FOR_TARGET='$(LIPO)'
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13660 $as_echo "host tool" >&6; }
13661 else
13662 # We need a cross tool
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13664 $as_echo "pre-installed" >&6; }
13665 fi
13666 fi
13667
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13669 $as_echo_n "checking where to find the target nm... " >&6; }
13670 if test "x${build}" != "x${host}" ; then
13671 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13672 # We already found the complete path
13673 ac_dir=`dirname $NM_FOR_TARGET`
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13675 $as_echo "pre-installed in $ac_dir" >&6; }
13676 else
13677 # Canadian cross, just use what we found
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13679 $as_echo "pre-installed" >&6; }
13680 fi
13681 else
13682 ok=yes
13683 case " ${configdirs} " in
13684 *" binutils "*) ;;
13685 *) ok=no ;;
13686 esac
13687
13688 if test $ok = yes; then
13689 # An in-tree tool is available and we can use it
13690 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13692 $as_echo "just compiled" >&6; }
13693 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13694 # We already found the complete path
13695 ac_dir=`dirname $NM_FOR_TARGET`
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13697 $as_echo "pre-installed in $ac_dir" >&6; }
13698 elif test "x$target" = "x$host"; then
13699 # We can use an host tool
13700 NM_FOR_TARGET='$(NM)'
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13702 $as_echo "host tool" >&6; }
13703 else
13704 # We need a cross tool
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13706 $as_echo "pre-installed" >&6; }
13707 fi
13708 fi
13709
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13711 $as_echo_n "checking where to find the target objdump... " >&6; }
13712 if test "x${build}" != "x${host}" ; then
13713 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13714 # We already found the complete path
13715 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13717 $as_echo "pre-installed in $ac_dir" >&6; }
13718 else
13719 # Canadian cross, just use what we found
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13721 $as_echo "pre-installed" >&6; }
13722 fi
13723 else
13724 ok=yes
13725 case " ${configdirs} " in
13726 *" binutils "*) ;;
13727 *) ok=no ;;
13728 esac
13729
13730 if test $ok = yes; then
13731 # An in-tree tool is available and we can use it
13732 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13734 $as_echo "just compiled" >&6; }
13735 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13736 # We already found the complete path
13737 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13739 $as_echo "pre-installed in $ac_dir" >&6; }
13740 elif test "x$target" = "x$host"; then
13741 # We can use an host tool
13742 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13744 $as_echo "host tool" >&6; }
13745 else
13746 # We need a cross tool
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13748 $as_echo "pre-installed" >&6; }
13749 fi
13750 fi
13751
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13753 $as_echo_n "checking where to find the target ranlib... " >&6; }
13754 if test "x${build}" != "x${host}" ; then
13755 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13756 # We already found the complete path
13757 ac_dir=`dirname $RANLIB_FOR_TARGET`
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13759 $as_echo "pre-installed in $ac_dir" >&6; }
13760 else
13761 # Canadian cross, just use what we found
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13763 $as_echo "pre-installed" >&6; }
13764 fi
13765 else
13766 ok=yes
13767 case " ${configdirs} " in
13768 *" binutils "*) ;;
13769 *) ok=no ;;
13770 esac
13771
13772 if test $ok = yes; then
13773 # An in-tree tool is available and we can use it
13774 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13776 $as_echo "just compiled" >&6; }
13777 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13778 # We already found the complete path
13779 ac_dir=`dirname $RANLIB_FOR_TARGET`
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13781 $as_echo "pre-installed in $ac_dir" >&6; }
13782 elif test "x$target" = "x$host"; then
13783 # We can use an host tool
13784 RANLIB_FOR_TARGET='$(RANLIB)'
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13786 $as_echo "host tool" >&6; }
13787 else
13788 # We need a cross tool
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13790 $as_echo "pre-installed" >&6; }
13791 fi
13792 fi
13793
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13795 $as_echo_n "checking where to find the target strip... " >&6; }
13796 if test "x${build}" != "x${host}" ; then
13797 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13798 # We already found the complete path
13799 ac_dir=`dirname $STRIP_FOR_TARGET`
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13801 $as_echo "pre-installed in $ac_dir" >&6; }
13802 else
13803 # Canadian cross, just use what we found
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13805 $as_echo "pre-installed" >&6; }
13806 fi
13807 else
13808 ok=yes
13809 case " ${configdirs} " in
13810 *" binutils "*) ;;
13811 *) ok=no ;;
13812 esac
13813
13814 if test $ok = yes; then
13815 # An in-tree tool is available and we can use it
13816 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13818 $as_echo "just compiled" >&6; }
13819 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13820 # We already found the complete path
13821 ac_dir=`dirname $STRIP_FOR_TARGET`
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13823 $as_echo "pre-installed in $ac_dir" >&6; }
13824 elif test "x$target" = "x$host"; then
13825 # We can use an host tool
13826 STRIP_FOR_TARGET='$(STRIP)'
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13828 $as_echo "host tool" >&6; }
13829 else
13830 # We need a cross tool
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13832 $as_echo "pre-installed" >&6; }
13833 fi
13834 fi
13835
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13837 $as_echo_n "checking where to find the target windres... " >&6; }
13838 if test "x${build}" != "x${host}" ; then
13839 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13840 # We already found the complete path
13841 ac_dir=`dirname $WINDRES_FOR_TARGET`
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13843 $as_echo "pre-installed in $ac_dir" >&6; }
13844 else
13845 # Canadian cross, just use what we found
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13847 $as_echo "pre-installed" >&6; }
13848 fi
13849 else
13850 ok=yes
13851 case " ${configdirs} " in
13852 *" binutils "*) ;;
13853 *) ok=no ;;
13854 esac
13855
13856 if test $ok = yes; then
13857 # An in-tree tool is available and we can use it
13858 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13860 $as_echo "just compiled" >&6; }
13861 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13862 # We already found the complete path
13863 ac_dir=`dirname $WINDRES_FOR_TARGET`
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13865 $as_echo "pre-installed in $ac_dir" >&6; }
13866 elif test "x$target" = "x$host"; then
13867 # We can use an host tool
13868 WINDRES_FOR_TARGET='$(WINDRES)'
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13870 $as_echo "host tool" >&6; }
13871 else
13872 # We need a cross tool
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13874 $as_echo "pre-installed" >&6; }
13875 fi
13876 fi
13877
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13879 $as_echo_n "checking where to find the target windmc... " >&6; }
13880 if test "x${build}" != "x${host}" ; then
13881 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13882 # We already found the complete path
13883 ac_dir=`dirname $WINDMC_FOR_TARGET`
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13885 $as_echo "pre-installed in $ac_dir" >&6; }
13886 else
13887 # Canadian cross, just use what we found
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13889 $as_echo "pre-installed" >&6; }
13890 fi
13891 else
13892 ok=yes
13893 case " ${configdirs} " in
13894 *" binutils "*) ;;
13895 *) ok=no ;;
13896 esac
13897
13898 if test $ok = yes; then
13899 # An in-tree tool is available and we can use it
13900 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13902 $as_echo "just compiled" >&6; }
13903 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13904 # We already found the complete path
13905 ac_dir=`dirname $WINDMC_FOR_TARGET`
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13907 $as_echo "pre-installed in $ac_dir" >&6; }
13908 elif test "x$target" = "x$host"; then
13909 # We can use an host tool
13910 WINDMC_FOR_TARGET='$(WINDMC)'
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13912 $as_echo "host tool" >&6; }
13913 else
13914 # We need a cross tool
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13916 $as_echo "pre-installed" >&6; }
13917 fi
13918 fi
13919
13920
13921
13922
13923
13924 # Certain tools may need extra flags.
13925 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13926 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13927 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13928
13929 # When building target libraries, except in a Canadian cross, we use
13930 # the same toolchain as the compiler we just built.
13931 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13932 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13933 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13934 if test $host = $build; then
13935 case " $configdirs " in
13936 *" gcc "*)
13937 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13938 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13939 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13940 ;;
13941 esac
13942 fi
13943
13944
13945
13946
13947
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13949 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13950 # Check whether --enable-maintainer-mode was given.
13951 if test "${enable_maintainer_mode+set}" = set; then :
13952 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13953 else
13954 USE_MAINTAINER_MODE=no
13955 fi
13956
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13958 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13959
13960
13961 if test "$USE_MAINTAINER_MODE" = yes; then
13962 MAINTAINER_MODE_TRUE=
13963 MAINTAINER_MODE_FALSE='#'
13964 else
13965 MAINTAINER_MODE_TRUE='#'
13966 MAINTAINER_MODE_FALSE=
13967 fi
13968 MAINT=$MAINTAINER_MODE_TRUE
13969
13970 # ---------------------
13971 # GCC bootstrap support
13972 # ---------------------
13973
13974 # Stage specific cflags for build.
13975 stage1_cflags="-g"
13976 case $build in
13977 vax-*-*)
13978 case ${GCC} in
13979 yes) stage1_cflags="-g -Wa,-J" ;;
13980 *) stage1_cflags="-g -J" ;;
13981 esac ;;
13982 esac
13983
13984 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13985 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13986 saved_CFLAGS="$CFLAGS"
13987
13988 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13989 CFLAGS="$CFLAGS -fkeep-inline-functions"
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13991 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13993 /* end confdefs.h. */
13994
13995 #if (__GNUC__ < 3) \
13996 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13997 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13998 #error http://gcc.gnu.org/PR29382
13999 #endif
14000
14001 int
14002 main ()
14003 {
14004
14005 ;
14006 return 0;
14007 }
14008 _ACEOF
14009 if ac_fn_c_try_compile "$LINENO"; then :
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14011 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14012 else
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14014 $as_echo "no" >&6; }
14015 fi
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017
14018 CFLAGS="$saved_CFLAGS"
14019 fi
14020
14021
14022
14023 # Enable --enable-checking in stage1 of the compiler.
14024 # Check whether --enable-stage1-checking was given.
14025 if test "${enable_stage1_checking+set}" = set; then :
14026 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14027 else
14028 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14029 stage1_checking=--enable-checking=yes,types
14030 else
14031 stage1_checking=--enable-checking=$enable_checking,types
14032 fi
14033 fi
14034
14035
14036
14037 # Enable -Werror in bootstrap stage2 and later.
14038 # Check whether --enable-werror was given.
14039 if test "${enable_werror+set}" = set; then :
14040 enableval=$enable_werror;
14041 else
14042 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14043 enable_werror=yes
14044 else
14045 enable_werror=no
14046 fi
14047 fi
14048
14049 case ${enable_werror} in
14050 yes) stage2_werror_flag="--enable-werror-always" ;;
14051 *) stage2_werror_flag="" ;;
14052 esac
14053
14054
14055 # Specify what files to not compare during bootstrap.
14056
14057 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14058 case "$target" in
14059 hppa*64*-*-hpux*) ;;
14060 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14061 esac
14062 case " $configdirs " in
14063 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14064 esac
14065
14066
14067 ac_config_files="$ac_config_files Makefile"
14068
14069 cat >confcache <<\_ACEOF
14070 # This file is a shell script that caches the results of configure
14071 # tests run on this system so they can be shared between configure
14072 # scripts and configure runs, see configure's option --config-cache.
14073 # It is not useful on other systems. If it contains results you don't
14074 # want to keep, you may remove or edit it.
14075 #
14076 # config.status only pays attention to the cache file if you give it
14077 # the --recheck option to rerun configure.
14078 #
14079 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14080 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14081 # following values.
14082
14083 _ACEOF
14084
14085 # The following way of writing the cache mishandles newlines in values,
14086 # but we know of no workaround that is simple, portable, and efficient.
14087 # So, we kill variables containing newlines.
14088 # Ultrix sh set writes to stderr and can't be redirected directly,
14089 # and sets the high bit in the cache file unless we assign to the vars.
14090 (
14091 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14092 eval ac_val=\$$ac_var
14093 case $ac_val in #(
14094 *${as_nl}*)
14095 case $ac_var in #(
14096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14097 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14098 esac
14099 case $ac_var in #(
14100 _ | IFS | as_nl) ;; #(
14101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14102 *) { eval $ac_var=; unset $ac_var;} ;;
14103 esac ;;
14104 esac
14105 done
14106
14107 (set) 2>&1 |
14108 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14109 *${as_nl}ac_space=\ *)
14110 # `set' does not quote correctly, so add quotes: double-quote
14111 # substitution turns \\\\ into \\, and sed turns \\ into \.
14112 sed -n \
14113 "s/'/'\\\\''/g;
14114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14115 ;; #(
14116 *)
14117 # `set' quotes correctly as required by POSIX, so do not add quotes.
14118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14119 ;;
14120 esac |
14121 sort
14122 ) |
14123 sed '
14124 /^ac_cv_env_/b end
14125 t clear
14126 :clear
14127 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14128 t end
14129 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14130 :end' >>confcache
14131 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14132 if test -w "$cache_file"; then
14133 test "x$cache_file" != "x/dev/null" &&
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14135 $as_echo "$as_me: updating cache $cache_file" >&6;}
14136 cat confcache >$cache_file
14137 else
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14139 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14140 fi
14141 fi
14142 rm -f confcache
14143
14144 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14145 # Let make expand exec_prefix.
14146 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14147
14148 # Transform confdefs.h into DEFS.
14149 # Protect against shell expansion while executing Makefile rules.
14150 # Protect against Makefile macro expansion.
14151 #
14152 # If the first sed substitution is executed (which looks for macros that
14153 # take arguments), then branch to the quote section. Otherwise,
14154 # look for a macro that doesn't take arguments.
14155 ac_script='
14156 :mline
14157 /\\$/{
14158 N
14159 s,\\\n,,
14160 b mline
14161 }
14162 t clear
14163 :clear
14164 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14165 t quote
14166 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14167 t quote
14168 b any
14169 :quote
14170 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14171 s/\[/\\&/g
14172 s/\]/\\&/g
14173 s/\$/$$/g
14174 H
14175 :any
14176 ${
14177 g
14178 s/^\n//
14179 s/\n/ /g
14180 p
14181 }
14182 '
14183 DEFS=`sed -n "$ac_script" confdefs.h`
14184
14185
14186 ac_libobjs=
14187 ac_ltlibobjs=
14188 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14189 # 1. Remove the extension, and $U if already installed.
14190 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14191 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14192 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14193 # will be set to the directory where LIBOBJS objects are built.
14194 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14195 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14196 done
14197 LIBOBJS=$ac_libobjs
14198
14199 LTLIBOBJS=$ac_ltlibobjs
14200
14201
14202
14203 : ${CONFIG_STATUS=./config.status}
14204 ac_write_fail=0
14205 ac_clean_files_save=$ac_clean_files
14206 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14208 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14209 as_write_fail=0
14210 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14211 #! $SHELL
14212 # Generated by $as_me.
14213 # Run this file to recreate the current configuration.
14214 # Compiler output produced by configure, useful for debugging
14215 # configure, is in config.log if it exists.
14216
14217 debug=false
14218 ac_cs_recheck=false
14219 ac_cs_silent=false
14220
14221 SHELL=\${CONFIG_SHELL-$SHELL}
14222 export SHELL
14223 _ASEOF
14224 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14225 ## -------------------- ##
14226 ## M4sh Initialization. ##
14227 ## -------------------- ##
14228
14229 # Be more Bourne compatible
14230 DUALCASE=1; export DUALCASE # for MKS sh
14231 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14232 emulate sh
14233 NULLCMD=:
14234 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14235 # is contrary to our usage. Disable this feature.
14236 alias -g '${1+"$@"}'='"$@"'
14237 setopt NO_GLOB_SUBST
14238 else
14239 case `(set -o) 2>/dev/null` in #(
14240 *posix*) :
14241 set -o posix ;; #(
14242 *) :
14243 ;;
14244 esac
14245 fi
14246
14247
14248 as_nl='
14249 '
14250 export as_nl
14251 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14252 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14253 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14254 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14255 # Prefer a ksh shell builtin over an external printf program on Solaris,
14256 # but without wasting forks for bash or zsh.
14257 if test -z "$BASH_VERSION$ZSH_VERSION" \
14258 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14259 as_echo='print -r --'
14260 as_echo_n='print -rn --'
14261 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14262 as_echo='printf %s\n'
14263 as_echo_n='printf %s'
14264 else
14265 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14266 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14267 as_echo_n='/usr/ucb/echo -n'
14268 else
14269 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14270 as_echo_n_body='eval
14271 arg=$1;
14272 case $arg in #(
14273 *"$as_nl"*)
14274 expr "X$arg" : "X\\(.*\\)$as_nl";
14275 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14276 esac;
14277 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14278 '
14279 export as_echo_n_body
14280 as_echo_n='sh -c $as_echo_n_body as_echo'
14281 fi
14282 export as_echo_body
14283 as_echo='sh -c $as_echo_body as_echo'
14284 fi
14285
14286 # The user is always right.
14287 if test "${PATH_SEPARATOR+set}" != set; then
14288 PATH_SEPARATOR=:
14289 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14290 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14291 PATH_SEPARATOR=';'
14292 }
14293 fi
14294
14295
14296 # IFS
14297 # We need space, tab and new line, in precisely that order. Quoting is
14298 # there to prevent editors from complaining about space-tab.
14299 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14300 # splitting by setting IFS to empty value.)
14301 IFS=" "" $as_nl"
14302
14303 # Find who we are. Look in the path if we contain no directory separator.
14304 case $0 in #((
14305 *[\\/]* ) as_myself=$0 ;;
14306 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14307 for as_dir in $PATH
14308 do
14309 IFS=$as_save_IFS
14310 test -z "$as_dir" && as_dir=.
14311 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14312 done
14313 IFS=$as_save_IFS
14314
14315 ;;
14316 esac
14317 # We did not find ourselves, most probably we were run as `sh COMMAND'
14318 # in which case we are not to be found in the path.
14319 if test "x$as_myself" = x; then
14320 as_myself=$0
14321 fi
14322 if test ! -f "$as_myself"; then
14323 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14324 exit 1
14325 fi
14326
14327 # Unset variables that we do not need and which cause bugs (e.g. in
14328 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14329 # suppresses any "Segmentation fault" message there. '((' could
14330 # trigger a bug in pdksh 5.2.14.
14331 for as_var in BASH_ENV ENV MAIL MAILPATH
14332 do eval test x\${$as_var+set} = xset \
14333 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14334 done
14335 PS1='$ '
14336 PS2='> '
14337 PS4='+ '
14338
14339 # NLS nuisances.
14340 LC_ALL=C
14341 export LC_ALL
14342 LANGUAGE=C
14343 export LANGUAGE
14344
14345 # CDPATH.
14346 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14347
14348
14349 # as_fn_error ERROR [LINENO LOG_FD]
14350 # ---------------------------------
14351 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14352 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14353 # script with status $?, using 1 if that was 0.
14354 as_fn_error ()
14355 {
14356 as_status=$?; test $as_status -eq 0 && as_status=1
14357 if test "$3"; then
14358 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14359 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14360 fi
14361 $as_echo "$as_me: error: $1" >&2
14362 as_fn_exit $as_status
14363 } # as_fn_error
14364
14365
14366 # as_fn_set_status STATUS
14367 # -----------------------
14368 # Set $? to STATUS, without forking.
14369 as_fn_set_status ()
14370 {
14371 return $1
14372 } # as_fn_set_status
14373
14374 # as_fn_exit STATUS
14375 # -----------------
14376 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14377 as_fn_exit ()
14378 {
14379 set +e
14380 as_fn_set_status $1
14381 exit $1
14382 } # as_fn_exit
14383
14384 # as_fn_unset VAR
14385 # ---------------
14386 # Portably unset VAR.
14387 as_fn_unset ()
14388 {
14389 { eval $1=; unset $1;}
14390 }
14391 as_unset=as_fn_unset
14392 # as_fn_append VAR VALUE
14393 # ----------------------
14394 # Append the text in VALUE to the end of the definition contained in VAR. Take
14395 # advantage of any shell optimizations that allow amortized linear growth over
14396 # repeated appends, instead of the typical quadratic growth present in naive
14397 # implementations.
14398 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14399 eval 'as_fn_append ()
14400 {
14401 eval $1+=\$2
14402 }'
14403 else
14404 as_fn_append ()
14405 {
14406 eval $1=\$$1\$2
14407 }
14408 fi # as_fn_append
14409
14410 # as_fn_arith ARG...
14411 # ------------------
14412 # Perform arithmetic evaluation on the ARGs, and store the result in the
14413 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14414 # must be portable across $(()) and expr.
14415 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14416 eval 'as_fn_arith ()
14417 {
14418 as_val=$(( $* ))
14419 }'
14420 else
14421 as_fn_arith ()
14422 {
14423 as_val=`expr "$@" || test $? -eq 1`
14424 }
14425 fi # as_fn_arith
14426
14427
14428 if expr a : '\(a\)' >/dev/null 2>&1 &&
14429 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14430 as_expr=expr
14431 else
14432 as_expr=false
14433 fi
14434
14435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14436 as_basename=basename
14437 else
14438 as_basename=false
14439 fi
14440
14441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14442 as_dirname=dirname
14443 else
14444 as_dirname=false
14445 fi
14446
14447 as_me=`$as_basename -- "$0" ||
14448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14449 X"$0" : 'X\(//\)$' \| \
14450 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14451 $as_echo X/"$0" |
14452 sed '/^.*\/\([^/][^/]*\)\/*$/{
14453 s//\1/
14454 q
14455 }
14456 /^X\/\(\/\/\)$/{
14457 s//\1/
14458 q
14459 }
14460 /^X\/\(\/\).*/{
14461 s//\1/
14462 q
14463 }
14464 s/.*/./; q'`
14465
14466 # Avoid depending upon Character Ranges.
14467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14470 as_cr_digits='0123456789'
14471 as_cr_alnum=$as_cr_Letters$as_cr_digits
14472
14473 ECHO_C= ECHO_N= ECHO_T=
14474 case `echo -n x` in #(((((
14475 -n*)
14476 case `echo 'xy\c'` in
14477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14478 xy) ECHO_C='\c';;
14479 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14480 ECHO_T=' ';;
14481 esac;;
14482 *)
14483 ECHO_N='-n';;
14484 esac
14485
14486 rm -f conf$$ conf$$.exe conf$$.file
14487 if test -d conf$$.dir; then
14488 rm -f conf$$.dir/conf$$.file
14489 else
14490 rm -f conf$$.dir
14491 mkdir conf$$.dir 2>/dev/null
14492 fi
14493 if (echo >conf$$.file) 2>/dev/null; then
14494 if ln -s conf$$.file conf$$ 2>/dev/null; then
14495 as_ln_s='ln -s'
14496 # ... but there are two gotchas:
14497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14499 # In both cases, we have to default to `cp -p'.
14500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14501 as_ln_s='cp -p'
14502 elif ln conf$$.file conf$$ 2>/dev/null; then
14503 as_ln_s=ln
14504 else
14505 as_ln_s='cp -p'
14506 fi
14507 else
14508 as_ln_s='cp -p'
14509 fi
14510 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14511 rmdir conf$$.dir 2>/dev/null
14512
14513
14514 # as_fn_mkdir_p
14515 # -------------
14516 # Create "$as_dir" as a directory, including parents if necessary.
14517 as_fn_mkdir_p ()
14518 {
14519
14520 case $as_dir in #(
14521 -*) as_dir=./$as_dir;;
14522 esac
14523 test -d "$as_dir" || eval $as_mkdir_p || {
14524 as_dirs=
14525 while :; do
14526 case $as_dir in #(
14527 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14528 *) as_qdir=$as_dir;;
14529 esac
14530 as_dirs="'$as_qdir' $as_dirs"
14531 as_dir=`$as_dirname -- "$as_dir" ||
14532 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14533 X"$as_dir" : 'X\(//\)[^/]' \| \
14534 X"$as_dir" : 'X\(//\)$' \| \
14535 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14536 $as_echo X"$as_dir" |
14537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14538 s//\1/
14539 q
14540 }
14541 /^X\(\/\/\)[^/].*/{
14542 s//\1/
14543 q
14544 }
14545 /^X\(\/\/\)$/{
14546 s//\1/
14547 q
14548 }
14549 /^X\(\/\).*/{
14550 s//\1/
14551 q
14552 }
14553 s/.*/./; q'`
14554 test -d "$as_dir" && break
14555 done
14556 test -z "$as_dirs" || eval "mkdir $as_dirs"
14557 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14558
14559
14560 } # as_fn_mkdir_p
14561 if mkdir -p . 2>/dev/null; then
14562 as_mkdir_p='mkdir -p "$as_dir"'
14563 else
14564 test -d ./-p && rmdir ./-p
14565 as_mkdir_p=false
14566 fi
14567
14568 if test -x / >/dev/null 2>&1; then
14569 as_test_x='test -x'
14570 else
14571 if ls -dL / >/dev/null 2>&1; then
14572 as_ls_L_option=L
14573 else
14574 as_ls_L_option=
14575 fi
14576 as_test_x='
14577 eval sh -c '\''
14578 if test -d "$1"; then
14579 test -d "$1/.";
14580 else
14581 case $1 in #(
14582 -*)set "./$1";;
14583 esac;
14584 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14585 ???[sx]*):;;*)false;;esac;fi
14586 '\'' sh
14587 '
14588 fi
14589 as_executable_p=$as_test_x
14590
14591 # Sed expression to map a string onto a valid CPP name.
14592 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14593
14594 # Sed expression to map a string onto a valid variable name.
14595 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14596
14597
14598 exec 6>&1
14599 ## ----------------------------------- ##
14600 ## Main body of $CONFIG_STATUS script. ##
14601 ## ----------------------------------- ##
14602 _ASEOF
14603 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14604
14605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14606 # Save the log message, to keep $0 and so on meaningful, and to
14607 # report actual input values of CONFIG_FILES etc. instead of their
14608 # values after options handling.
14609 ac_log="
14610 This file was extended by $as_me, which was
14611 generated by GNU Autoconf 2.64. Invocation command line was
14612
14613 CONFIG_FILES = $CONFIG_FILES
14614 CONFIG_HEADERS = $CONFIG_HEADERS
14615 CONFIG_LINKS = $CONFIG_LINKS
14616 CONFIG_COMMANDS = $CONFIG_COMMANDS
14617 $ $0 $@
14618
14619 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14620 "
14621
14622 _ACEOF
14623
14624 case $ac_config_files in *"
14625 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14626 esac
14627
14628
14629
14630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14631 # Files that config.status was made for.
14632 config_files="$ac_config_files"
14633
14634 _ACEOF
14635
14636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14637 ac_cs_usage="\
14638 \`$as_me' instantiates files and other configuration actions
14639 from templates according to the current configuration. Unless the files
14640 and actions are specified as TAGs, all are instantiated by default.
14641
14642 Usage: $0 [OPTION]... [TAG]...
14643
14644 -h, --help print this help, then exit
14645 -V, --version print version number and configuration settings, then exit
14646 -q, --quiet, --silent
14647 do not print progress messages
14648 -d, --debug don't remove temporary files
14649 --recheck update $as_me by reconfiguring in the same conditions
14650 --file=FILE[:TEMPLATE]
14651 instantiate the configuration file FILE
14652
14653 Configuration files:
14654 $config_files
14655
14656 Report bugs to the package provider."
14657
14658 _ACEOF
14659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14660 ac_cs_version="\\
14661 config.status
14662 configured by $0, generated by GNU Autoconf 2.64,
14663 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14664
14665 Copyright (C) 2009 Free Software Foundation, Inc.
14666 This config.status script is free software; the Free Software Foundation
14667 gives unlimited permission to copy, distribute and modify it."
14668
14669 ac_pwd='$ac_pwd'
14670 srcdir='$srcdir'
14671 INSTALL='$INSTALL'
14672 AWK='$AWK'
14673 test -n "\$AWK" || AWK=awk
14674 _ACEOF
14675
14676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14677 # The default lists apply if the user does not specify any file.
14678 ac_need_defaults=:
14679 while test $# != 0
14680 do
14681 case $1 in
14682 --*=*)
14683 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14684 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14685 ac_shift=:
14686 ;;
14687 *)
14688 ac_option=$1
14689 ac_optarg=$2
14690 ac_shift=shift
14691 ;;
14692 esac
14693
14694 case $ac_option in
14695 # Handling of the options.
14696 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14697 ac_cs_recheck=: ;;
14698 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14699 $as_echo "$ac_cs_version"; exit ;;
14700 --debug | --debu | --deb | --de | --d | -d )
14701 debug=: ;;
14702 --file | --fil | --fi | --f )
14703 $ac_shift
14704 case $ac_optarg in
14705 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14706 esac
14707 as_fn_append CONFIG_FILES " '$ac_optarg'"
14708 ac_need_defaults=false;;
14709 --he | --h | --help | --hel | -h )
14710 $as_echo "$ac_cs_usage"; exit ;;
14711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14712 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14713 ac_cs_silent=: ;;
14714
14715 # This is an error.
14716 -*) as_fn_error "unrecognized option: \`$1'
14717 Try \`$0 --help' for more information." ;;
14718
14719 *) as_fn_append ac_config_targets " $1"
14720 ac_need_defaults=false ;;
14721
14722 esac
14723 shift
14724 done
14725
14726 ac_configure_extra_args=
14727
14728 if $ac_cs_silent; then
14729 exec 6>/dev/null
14730 ac_configure_extra_args="$ac_configure_extra_args --silent"
14731 fi
14732
14733 _ACEOF
14734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14735 if \$ac_cs_recheck; then
14736 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14737 shift
14738 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14739 CONFIG_SHELL='$SHELL'
14740 export CONFIG_SHELL
14741 exec "\$@"
14742 fi
14743
14744 _ACEOF
14745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14746 exec 5>>config.log
14747 {
14748 echo
14749 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14750 ## Running $as_me. ##
14751 _ASBOX
14752 $as_echo "$ac_log"
14753 } >&5
14754
14755 _ACEOF
14756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14757 #
14758 # INIT-COMMANDS
14759 #
14760 extrasub_build="$extrasub_build"
14761 extrasub_host="$extrasub_host"
14762 extrasub_target="$extrasub_target"
14763
14764 _ACEOF
14765
14766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14767
14768 # Handling of arguments.
14769 for ac_config_target in $ac_config_targets
14770 do
14771 case $ac_config_target in
14772 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14773
14774 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14775 esac
14776 done
14777
14778
14779 # If the user did not use the arguments to specify the items to instantiate,
14780 # then the envvar interface is used. Set only those that are not.
14781 # We use the long form for the default assignment because of an extremely
14782 # bizarre bug on SunOS 4.1.3.
14783 if $ac_need_defaults; then
14784 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14785 fi
14786
14787 # Have a temporary directory for convenience. Make it in the build tree
14788 # simply because there is no reason against having it here, and in addition,
14789 # creating and moving files from /tmp can sometimes cause problems.
14790 # Hook for its removal unless debugging.
14791 # Note that there is a small window in which the directory will not be cleaned:
14792 # after its creation but before its name has been assigned to `$tmp'.
14793 $debug ||
14794 {
14795 tmp=
14796 trap 'exit_status=$?
14797 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14798 ' 0
14799 trap 'as_fn_exit 1' 1 2 13 15
14800 }
14801 # Create a (secure) tmp directory for tmp files.
14802
14803 {
14804 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14805 test -n "$tmp" && test -d "$tmp"
14806 } ||
14807 {
14808 tmp=./conf$$-$RANDOM
14809 (umask 077 && mkdir "$tmp")
14810 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14811
14812 # Set up the scripts for CONFIG_FILES section.
14813 # No need to generate them if there are no CONFIG_FILES.
14814 # This happens for instance with `./config.status config.h'.
14815 if test -n "$CONFIG_FILES"; then
14816
14817 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14818 ac_cs_awk_getline=:
14819 ac_cs_awk_pipe_init=
14820 ac_cs_awk_read_file='
14821 while ((getline aline < (F[key])) > 0)
14822 print(aline)
14823 close(F[key])'
14824 ac_cs_awk_pipe_fini=
14825 else
14826 ac_cs_awk_getline=false
14827 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14828 ac_cs_awk_read_file='
14829 print "|#_!!_#|"
14830 print "cat " F[key] " &&"
14831 '$ac_cs_awk_pipe_init
14832 # The final `:' finishes the AND list.
14833 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14834 fi
14835 ac_cr=`echo X | tr X '\015'`
14836 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14837 # But we know of no other shell where ac_cr would be empty at this
14838 # point, so we can use a bashism as a fallback.
14839 if test "x$ac_cr" = x; then
14840 eval ac_cr=\$\'\\r\'
14841 fi
14842 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14843 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14844 ac_cs_awk_cr='\r'
14845 else
14846 ac_cs_awk_cr=$ac_cr
14847 fi
14848
14849 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14850 _ACEOF
14851
14852 # Create commands to substitute file output variables.
14853 {
14854 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14855 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14856 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14857 echo "_ACAWK" &&
14858 echo "_ACEOF"
14859 } >conf$$files.sh &&
14860 . ./conf$$files.sh ||
14861 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14862 rm -f conf$$files.sh
14863
14864 {
14865 echo "cat >conf$$subs.awk <<_ACEOF" &&
14866 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14867 echo "_ACEOF"
14868 } >conf$$subs.sh ||
14869 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14870 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14871 ac_delim='%!_!# '
14872 for ac_last_try in false false false false false :; do
14873 . ./conf$$subs.sh ||
14874 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14875
14876 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14877 if test $ac_delim_n = $ac_delim_num; then
14878 break
14879 elif $ac_last_try; then
14880 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14881 else
14882 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14883 fi
14884 done
14885 rm -f conf$$subs.sh
14886
14887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14888 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14889 _ACEOF
14890 sed -n '
14891 h
14892 s/^/S["/; s/!.*/"]=/
14893 p
14894 g
14895 s/^[^!]*!//
14896 :repl
14897 t repl
14898 s/'"$ac_delim"'$//
14899 t delim
14900 :nl
14901 h
14902 s/\(.\{148\}\).*/\1/
14903 t more1
14904 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14905 p
14906 n
14907 b repl
14908 :more1
14909 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14910 p
14911 g
14912 s/.\{148\}//
14913 t nl
14914 :delim
14915 h
14916 s/\(.\{148\}\).*/\1/
14917 t more2
14918 s/["\\]/\\&/g; s/^/"/; s/$/"/
14919 p
14920 b
14921 :more2
14922 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14923 p
14924 g
14925 s/.\{148\}//
14926 t delim
14927 ' <conf$$subs.awk | sed '
14928 /^[^""]/{
14929 N
14930 s/\n//
14931 }
14932 ' >>$CONFIG_STATUS || ac_write_fail=1
14933 rm -f conf$$subs.awk
14934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14935 _ACAWK
14936 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14937 for (key in S) S_is_set[key] = 1
14938 FS = "\a"
14939 \$ac_cs_awk_pipe_init
14940 }
14941 {
14942 line = $ 0
14943 nfields = split(line, field, "@")
14944 substed = 0
14945 len = length(field[1])
14946 for (i = 2; i < nfields; i++) {
14947 key = field[i]
14948 keylen = length(key)
14949 if (S_is_set[key]) {
14950 value = S[key]
14951 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14952 len += length(value) + length(field[++i])
14953 substed = 1
14954 } else
14955 len += 1 + keylen
14956 }
14957 if (nfields == 3 && !substed) {
14958 key = field[2]
14959 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14960 \$ac_cs_awk_read_file
14961 next
14962 }
14963 }
14964 print line
14965 }
14966 \$ac_cs_awk_pipe_fini
14967 _ACAWK
14968 _ACEOF
14969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14970 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14971 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14972 else
14973 cat
14974 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14975 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14976 _ACEOF
14977
14978 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14979 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14980 # trailing colons and then remove the whole line if VPATH becomes empty
14981 # (actually we leave an empty line to preserve line numbers).
14982 if test "x$srcdir" = x.; then
14983 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14984 s/:*\$(srcdir):*/:/
14985 s/:*\${srcdir}:*/:/
14986 s/:*@srcdir@:*/:/
14987 s/^\([^=]*=[ ]*\):*/\1/
14988 s/:*$//
14989 s/^[^=]*=[ ]*$//
14990 }'
14991 fi
14992
14993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14994 fi # test -n "$CONFIG_FILES"
14995
14996
14997 eval set X " :F $CONFIG_FILES "
14998 shift
14999 for ac_tag
15000 do
15001 case $ac_tag in
15002 :[FHLC]) ac_mode=$ac_tag; continue;;
15003 esac
15004 case $ac_mode$ac_tag in
15005 :[FHL]*:*);;
15006 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15007 :[FH]-) ac_tag=-:-;;
15008 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15009 esac
15010 ac_save_IFS=$IFS
15011 IFS=:
15012 set x $ac_tag
15013 IFS=$ac_save_IFS
15014 shift
15015 ac_file=$1
15016 shift
15017
15018 case $ac_mode in
15019 :L) ac_source=$1;;
15020 :[FH])
15021 ac_file_inputs=
15022 for ac_f
15023 do
15024 case $ac_f in
15025 -) ac_f="$tmp/stdin";;
15026 *) # Look for the file first in the build tree, then in the source tree
15027 # (if the path is not absolute). The absolute path cannot be DOS-style,
15028 # because $ac_f cannot contain `:'.
15029 test -f "$ac_f" ||
15030 case $ac_f in
15031 [\\/$]*) false;;
15032 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15033 esac ||
15034 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15035 esac
15036 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15037 as_fn_append ac_file_inputs " '$ac_f'"
15038 done
15039
15040 # Let's still pretend it is `configure' which instantiates (i.e., don't
15041 # use $as_me), people would be surprised to read:
15042 # /* config.h. Generated by config.status. */
15043 configure_input='Generated from '`
15044 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15045 `' by configure.'
15046 if test x"$ac_file" != x-; then
15047 configure_input="$ac_file. $configure_input"
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15049 $as_echo "$as_me: creating $ac_file" >&6;}
15050 fi
15051 # Neutralize special characters interpreted by sed in replacement strings.
15052 case $configure_input in #(
15053 *\&* | *\|* | *\\* )
15054 ac_sed_conf_input=`$as_echo "$configure_input" |
15055 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15056 *) ac_sed_conf_input=$configure_input;;
15057 esac
15058
15059 case $ac_tag in
15060 *:-:* | *:-) cat >"$tmp/stdin" \
15061 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15062 esac
15063 ;;
15064 esac
15065
15066 ac_dir=`$as_dirname -- "$ac_file" ||
15067 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15068 X"$ac_file" : 'X\(//\)[^/]' \| \
15069 X"$ac_file" : 'X\(//\)$' \| \
15070 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15071 $as_echo X"$ac_file" |
15072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15073 s//\1/
15074 q
15075 }
15076 /^X\(\/\/\)[^/].*/{
15077 s//\1/
15078 q
15079 }
15080 /^X\(\/\/\)$/{
15081 s//\1/
15082 q
15083 }
15084 /^X\(\/\).*/{
15085 s//\1/
15086 q
15087 }
15088 s/.*/./; q'`
15089 as_dir="$ac_dir"; as_fn_mkdir_p
15090 ac_builddir=.
15091
15092 case "$ac_dir" in
15093 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15094 *)
15095 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15096 # A ".." for each directory in $ac_dir_suffix.
15097 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15098 case $ac_top_builddir_sub in
15099 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15100 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15101 esac ;;
15102 esac
15103 ac_abs_top_builddir=$ac_pwd
15104 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15105 # for backward compatibility:
15106 ac_top_builddir=$ac_top_build_prefix
15107
15108 case $srcdir in
15109 .) # We are building in place.
15110 ac_srcdir=.
15111 ac_top_srcdir=$ac_top_builddir_sub
15112 ac_abs_top_srcdir=$ac_pwd ;;
15113 [\\/]* | ?:[\\/]* ) # Absolute name.
15114 ac_srcdir=$srcdir$ac_dir_suffix;
15115 ac_top_srcdir=$srcdir
15116 ac_abs_top_srcdir=$srcdir ;;
15117 *) # Relative name.
15118 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15119 ac_top_srcdir=$ac_top_build_prefix$srcdir
15120 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15121 esac
15122 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15123
15124
15125 case $ac_mode in
15126 :F)
15127 #
15128 # CONFIG_FILE
15129 #
15130
15131 case $INSTALL in
15132 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15133 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15134 esac
15135 _ACEOF
15136
15137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15138 # If the template does not know about datarootdir, expand it.
15139 # FIXME: This hack should be removed a few years after 2.60.
15140 ac_datarootdir_hack=; ac_datarootdir_seen=
15141 ac_sed_dataroot='
15142 /datarootdir/ {
15143 p
15144 q
15145 }
15146 /@datadir@/p
15147 /@docdir@/p
15148 /@infodir@/p
15149 /@localedir@/p
15150 /@mandir@/p'
15151 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15152 *datarootdir*) ac_datarootdir_seen=yes;;
15153 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15155 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15156 _ACEOF
15157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15158 ac_datarootdir_hack='
15159 s&@datadir@&$datadir&g
15160 s&@docdir@&$docdir&g
15161 s&@infodir@&$infodir&g
15162 s&@localedir@&$localedir&g
15163 s&@mandir@&$mandir&g
15164 s&\\\${datarootdir}&$datarootdir&g' ;;
15165 esac
15166 _ACEOF
15167
15168 # Neutralize VPATH when `$srcdir' = `.'.
15169 # Shell code in configure.ac might set extrasub.
15170 # FIXME: do we really want to maintain this feature?
15171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15172 ac_sed_extra="$ac_vpsub
15173 $extrasub
15174 _ACEOF
15175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15176 :t
15177 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15178 s|@configure_input@|$ac_sed_conf_input|;t t
15179 s&@top_builddir@&$ac_top_builddir_sub&;t t
15180 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15181 s&@srcdir@&$ac_srcdir&;t t
15182 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15183 s&@top_srcdir@&$ac_top_srcdir&;t t
15184 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15185 s&@builddir@&$ac_builddir&;t t
15186 s&@abs_builddir@&$ac_abs_builddir&;t t
15187 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15188 s&@INSTALL@&$ac_INSTALL&;t t
15189 $ac_datarootdir_hack
15190 "
15191 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15192 if $ac_cs_awk_getline; then
15193 $AWK -f "$tmp/subs.awk"
15194 else
15195 $AWK -f "$tmp/subs.awk" | $SHELL
15196 fi >$tmp/out \
15197 || as_fn_error "could not create $ac_file" "$LINENO" 5
15198
15199 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15200 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15201 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15203 which seems to be undefined. Please make sure it is defined." >&5
15204 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15205 which seems to be undefined. Please make sure it is defined." >&2;}
15206
15207 rm -f "$tmp/stdin"
15208 case $ac_file in
15209 -) cat "$tmp/out" && rm -f "$tmp/out";;
15210 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15211 esac \
15212 || as_fn_error "could not create $ac_file" "$LINENO" 5
15213 ;;
15214
15215
15216
15217 esac
15218
15219
15220 case $ac_file$ac_mode in
15221 "Makefile":F) sed "$extrasub_build" Makefile |
15222 sed "$extrasub_host" |
15223 sed "$extrasub_target" > mf$$
15224 mv -f mf$$ Makefile ;;
15225
15226 esac
15227 done # for ac_tag
15228
15229
15230 as_fn_exit 0
15231 _ACEOF
15232 ac_clean_files=$ac_clean_files_save
15233
15234 test $ac_write_fail = 0 ||
15235 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15236
15237
15238 # configure is writing to config.log, and then calls config.status.
15239 # config.status does its own redirection, appending to config.log.
15240 # Unfortunately, on DOS this fails, as config.log is still kept open
15241 # by configure, so config.status won't be able to write to it; its
15242 # output is simply discarded. So we exec the FD to /dev/null,
15243 # effectively closing config.log, so it can be properly (re)opened and
15244 # appended to by config.status. When coming back to configure, we
15245 # need to make the FD available again.
15246 if test "$no_create" != yes; then
15247 ac_cs_success=:
15248 ac_config_status_args=
15249 test "$silent" = yes &&
15250 ac_config_status_args="$ac_config_status_args --quiet"
15251 exec 5>/dev/null
15252 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15253 exec 5>>config.log
15254 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15255 # would make configure fail if this is the last instruction.
15256 $ac_cs_success || as_fn_exit $?
15257 fi
15258 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15260 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15261 fi
15262
This page took 0.677382 seconds and 4 git commands to generate.