PR binutils/12110
[binutils.git] / configure
blob6c3d5d6f68ac53c347626909dd3247102e7a6e6b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
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.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 *) :
148 esac
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; }
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 :
164 else
165 exitcode=1; echo positional parameters were not saved.
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
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
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
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
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+"$@"}
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."
234 exit 1
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
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
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 ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
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/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
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"
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 ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
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 ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
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 ()
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
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
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
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
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
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/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
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
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 '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
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; }
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
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;;
460 ECHO_N='-n';;
461 esac
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
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'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
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
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=
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
518 as_executable_p=$as_test_x
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'"
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'"
527 exec 7<&0 </dev/null 6>&1
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`
535 # Initializations.
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=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 # Factoring default headers for most tests.
557 ac_includes_default="\
558 #include <stdio.h>
559 #ifdef HAVE_SYS_TYPES_H
560 # include <sys/types.h>
561 #endif
562 #ifdef HAVE_SYS_STAT_H
563 # include <sys/stat.h>
564 #endif
565 #ifdef STDC_HEADERS
566 # include <stdlib.h>
567 # include <stddef.h>
568 #else
569 # ifdef HAVE_STDLIB_H
570 # include <stdlib.h>
571 # endif
572 #endif
573 #ifdef HAVE_STRING_H
574 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
575 # include <memory.h>
576 # endif
577 # include <string.h>
578 #endif
579 #ifdef HAVE_STRINGS_H
580 # include <strings.h>
581 #endif
582 #ifdef HAVE_INTTYPES_H
583 # include <inttypes.h>
584 #endif
585 #ifdef HAVE_STDINT_H
586 # include <stdint.h>
587 #endif
588 #ifdef HAVE_UNISTD_H
589 # include <unistd.h>
590 #endif"
592 ac_subst_vars='LTLIBOBJS
593 LIBOBJS
594 compare_exclusions
595 stage2_werror_flag
596 stage1_checking
597 stage1_cflags
598 MAINT
599 MAINTAINER_MODE_FALSE
600 MAINTAINER_MODE_TRUE
601 COMPILER_NM_FOR_TARGET
602 COMPILER_LD_FOR_TARGET
603 COMPILER_AS_FOR_TARGET
604 FLAGS_FOR_TARGET
605 RAW_CXX_FOR_TARGET
606 WINDMC_FOR_TARGET
607 WINDRES_FOR_TARGET
608 STRIP_FOR_TARGET
609 RANLIB_FOR_TARGET
610 OBJDUMP_FOR_TARGET
611 NM_FOR_TARGET
612 LIPO_FOR_TARGET
613 LD_FOR_TARGET
614 DLLTOOL_FOR_TARGET
615 AS_FOR_TARGET
616 AR_FOR_TARGET
617 GFORTRAN_FOR_TARGET
618 GCJ_FOR_TARGET
619 GCC_FOR_TARGET
620 CXX_FOR_TARGET
621 CC_FOR_TARGET
622 OBJDUMP
623 OBJCOPY
624 WINDMC
625 WINDRES
626 STRIP
627 RANLIB
629 LIPO
631 DLLTOOL
634 RUNTEST
635 EXPECT
636 MAKEINFO
637 FLEX
640 BISON
641 YACC
642 config_shell
643 WINDRES_FOR_BUILD
644 WINDMC_FOR_BUILD
645 RANLIB_FOR_BUILD
646 NM_FOR_BUILD
647 LD_FOR_BUILD
648 LDFLAGS_FOR_BUILD
649 GFORTRAN_FOR_BUILD
650 GCJ_FOR_BUILD
651 DLLTOOL_FOR_BUILD
652 CXX_FOR_BUILD
653 CXXFLAGS_FOR_BUILD
654 CFLAGS_FOR_BUILD
655 CC_FOR_BUILD
656 AS_FOR_BUILD
657 AR_FOR_BUILD
658 target_configdirs
659 configdirs
660 build_configdirs
661 INSTALL_GDB_TK
662 GDB_TK
663 CONFIGURE_GDB_TK
664 build_tooldir
665 tooldir
666 GCC_SHLIB_SUBDIR
667 RPATH_ENVVAR
668 target_configargs
669 host_configargs
670 build_configargs
671 BUILD_CONFIG
672 CXXFLAGS_FOR_TARGET
673 CFLAGS_FOR_TARGET
674 DEBUG_PREFIX_CFLAGS_FOR_TARGET
675 SYSROOT_CFLAGS_FOR_TARGET
676 stage1_languages
677 extra_host_libiberty_configure_flags
678 libelfinc
679 libelflibs
680 EGREP
681 GREP
683 clooginc
684 clooglibs
685 pplinc
686 ppllibs
687 poststage1_ldflags
688 poststage1_libs
689 stage1_libs
690 stage1_ldflags
691 extra_mpc_mpfr_configure_flags
692 extra_mpc_gmp_configure_flags
693 extra_mpfr_configure_flags
694 gmpinc
695 gmplibs
696 do_compare
697 GNATMAKE
698 GNATBIND
699 ac_ct_CXX
700 CXXFLAGS
702 OBJEXT
703 EXEEXT
704 ac_ct_CC
705 CPPFLAGS
706 LDFLAGS
707 CFLAGS
709 target_subdir
710 host_subdir
711 build_subdir
712 build_libsubdir
715 LN_S
717 INSTALL_DATA
718 INSTALL_SCRIPT
719 INSTALL_PROGRAM
720 target_os
721 target_vendor
722 target_cpu
723 target
724 host_os
725 host_vendor
726 host_cpu
727 host
728 target_noncanonical
729 host_noncanonical
730 build_noncanonical
731 build_os
732 build_vendor
733 build_cpu
734 build
735 TOPLEVEL_CONFIGURE_ARGUMENTS
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files='serialization_dependencies
775 host_makefile_frag
776 target_makefile_frag
777 alphaieee_frag
778 ospace_frag'
779 ac_user_opts='
780 enable_option_checking
781 with_build_libsubdir
782 enable_gold
783 enable_libada
784 enable_libssp
785 enable_build_with_cxx
786 with_mpc
787 with_mpc_include
788 with_mpc_lib
789 with_mpfr_dir
790 with_mpfr
791 with_mpfr_include
792 with_mpfr_lib
793 with_gmp_dir
794 with_gmp
795 with_gmp_include
796 with_gmp_lib
797 with_host_libstdcxx
798 with_stage1_ldflags
799 with_stage1_libs
800 with_boot_libs
801 with_boot_ldflags
802 with_ppl
803 with_ppl_include
804 with_ppl_lib
805 enable_ppl_version_check
806 with_cloog
807 with_cloog_include
808 with_cloog_lib
809 enable_cloog_version_check
810 enable_lto
811 with_libelf
812 with_libelf_include
813 with_libelf_lib
814 enable_stage1_languages
815 enable_objc_gc
816 with_build_sysroot
817 with_debug_prefix_map
818 enable_bootstrap
819 with_build_config
820 enable_serial_configure
821 with_build_time_tools
822 enable_maintainer_mode
823 enable_stage1_checking
824 enable_werror
826 ac_precious_vars='build_alias
827 host_alias
828 target_alias
830 CFLAGS
831 LDFLAGS
832 LIBS
833 CPPFLAGS
835 CXXFLAGS
838 build_configargs
839 host_configargs
840 target_configargs
843 DLLTOOL
845 LIPO
847 RANLIB
848 STRIP
849 WINDRES
850 WINDMC
851 OBJCOPY
852 OBJDUMP
853 CC_FOR_TARGET
854 CXX_FOR_TARGET
855 GCC_FOR_TARGET
856 GCJ_FOR_TARGET
857 GFORTRAN_FOR_TARGET
858 AR_FOR_TARGET
859 AS_FOR_TARGET
860 DLLTOOL_FOR_TARGET
861 LD_FOR_TARGET
862 LIPO_FOR_TARGET
863 NM_FOR_TARGET
864 OBJDUMP_FOR_TARGET
865 RANLIB_FOR_TARGET
866 STRIP_FOR_TARGET
867 WINDRES_FOR_TARGET
868 WINDMC_FOR_TARGET'
871 # Initialize some variables set by options.
872 ac_init_help=
873 ac_init_version=false
874 ac_unrecognized_opts=
875 ac_unrecognized_sep=
876 # The variables have the same names as the options, with
877 # dashes changed to underlines.
878 cache_file=/dev/null
879 exec_prefix=NONE
880 no_create=
881 no_recursion=
882 prefix=NONE
883 program_prefix=NONE
884 program_suffix=NONE
885 program_transform_name=s,x,x,
886 silent=
887 site=
888 srcdir=
889 verbose=
890 x_includes=NONE
891 x_libraries=NONE
893 # Installation directory options.
894 # These are left unexpanded so users can "make install exec_prefix=/foo"
895 # and all the variables that are supposed to be based on exec_prefix
896 # by default will actually change.
897 # Use braces instead of parens because sh, perl, etc. also accept them.
898 # (The list follows the same order as the GNU Coding Standards.)
899 bindir='${exec_prefix}/bin'
900 sbindir='${exec_prefix}/sbin'
901 libexecdir='${exec_prefix}/libexec'
902 datarootdir='${prefix}/share'
903 datadir='${datarootdir}'
904 sysconfdir='${prefix}/etc'
905 sharedstatedir='${prefix}/com'
906 localstatedir='${prefix}/var'
907 includedir='${prefix}/include'
908 oldincludedir='/usr/include'
909 docdir='${datarootdir}/doc/${PACKAGE}'
910 infodir='${datarootdir}/info'
911 htmldir='${docdir}'
912 dvidir='${docdir}'
913 pdfdir='${docdir}'
914 psdir='${docdir}'
915 libdir='${exec_prefix}/lib'
916 localedir='${datarootdir}/locale'
917 mandir='${datarootdir}/man'
919 ac_prev=
920 ac_dashdash=
921 for ac_option
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
925 eval $ac_prev=\$ac_option
926 ac_prev=
927 continue
930 case $ac_option in
931 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 *) ac_optarg=yes ;;
933 esac
935 # Accept the important Cygnus configure options, so we can diagnose typos.
937 case $ac_dashdash$ac_option in
939 ac_dashdash=yes ;;
941 -bindir | --bindir | --bindi | --bind | --bin | --bi)
942 ac_prev=bindir ;;
943 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944 bindir=$ac_optarg ;;
946 -build | --build | --buil | --bui | --bu)
947 ac_prev=build_alias ;;
948 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949 build_alias=$ac_optarg ;;
951 -cache-file | --cache-file | --cache-fil | --cache-fi \
952 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953 ac_prev=cache_file ;;
954 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956 cache_file=$ac_optarg ;;
958 --config-cache | -C)
959 cache_file=config.cache ;;
961 -datadir | --datadir | --datadi | --datad)
962 ac_prev=datadir ;;
963 -datadir=* | --datadir=* | --datadi=* | --datad=*)
964 datadir=$ac_optarg ;;
966 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967 | --dataroo | --dataro | --datar)
968 ac_prev=datarootdir ;;
969 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971 datarootdir=$ac_optarg ;;
973 -disable-* | --disable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
982 "enable_$ac_useropt"
983 "*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
986 esac
987 eval enable_$ac_useropt=no ;;
989 -docdir | --docdir | --docdi | --doc | --do)
990 ac_prev=docdir ;;
991 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992 docdir=$ac_optarg ;;
994 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995 ac_prev=dvidir ;;
996 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997 dvidir=$ac_optarg ;;
999 -enable-* | --enable-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error "invalid feature name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1008 "enable_$ac_useropt"
1009 "*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1012 esac
1013 eval enable_$ac_useropt=\$ac_optarg ;;
1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017 | --exec | --exe | --ex)
1018 ac_prev=exec_prefix ;;
1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021 | --exec=* | --exe=* | --ex=*)
1022 exec_prefix=$ac_optarg ;;
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1026 with_gas=yes ;;
1028 -help | --help | --hel | --he | -h)
1029 ac_init_help=long ;;
1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031 ac_init_help=recursive ;;
1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033 ac_init_help=short ;;
1035 -host | --host | --hos | --ho)
1036 ac_prev=host_alias ;;
1037 -host=* | --host=* | --hos=* | --ho=*)
1038 host_alias=$ac_optarg ;;
1040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041 ac_prev=htmldir ;;
1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043 | --ht=*)
1044 htmldir=$ac_optarg ;;
1046 -includedir | --includedir | --includedi | --included | --include \
1047 | --includ | --inclu | --incl | --inc)
1048 ac_prev=includedir ;;
1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050 | --includ=* | --inclu=* | --incl=* | --inc=*)
1051 includedir=$ac_optarg ;;
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1054 ac_prev=infodir ;;
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056 infodir=$ac_optarg ;;
1058 -libdir | --libdir | --libdi | --libd)
1059 ac_prev=libdir ;;
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061 libdir=$ac_optarg ;;
1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064 | --libexe | --libex | --libe)
1065 ac_prev=libexecdir ;;
1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067 | --libexe=* | --libex=* | --libe=*)
1068 libexecdir=$ac_optarg ;;
1070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1075 -localstatedir | --localstatedir | --localstatedi | --localstated \
1076 | --localstate | --localstat | --localsta | --localst | --locals)
1077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080 localstatedir=$ac_optarg ;;
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083 ac_prev=mandir ;;
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085 mandir=$ac_optarg ;;
1087 -nfp | --nfp | --nf)
1088 # Obsolete; use --without-fp.
1089 with_fp=no ;;
1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092 | --no-cr | --no-c | -n)
1093 no_create=yes ;;
1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097 no_recursion=yes ;;
1099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101 | --oldin | --oldi | --old | --ol | --o)
1102 ac_prev=oldincludedir ;;
1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106 oldincludedir=$ac_optarg ;;
1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109 ac_prev=prefix ;;
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111 prefix=$ac_optarg ;;
1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114 | --program-pre | --program-pr | --program-p)
1115 ac_prev=program_prefix ;;
1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118 program_prefix=$ac_optarg ;;
1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121 | --program-suf | --program-su | --program-s)
1122 ac_prev=program_suffix ;;
1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125 program_suffix=$ac_optarg ;;
1127 -program-transform-name | --program-transform-name \
1128 | --program-transform-nam | --program-transform-na \
1129 | --program-transform-n | --program-transform- \
1130 | --program-transform | --program-transfor \
1131 | --program-transfo | --program-transf \
1132 | --program-trans | --program-tran \
1133 | --progr-tra | --program-tr | --program-t)
1134 ac_prev=program_transform_name ;;
1135 -program-transform-name=* | --program-transform-name=* \
1136 | --program-transform-nam=* | --program-transform-na=* \
1137 | --program-transform-n=* | --program-transform-=* \
1138 | --program-transform=* | --program-transfor=* \
1139 | --program-transfo=* | --program-transf=* \
1140 | --program-trans=* | --program-tran=* \
1141 | --progr-tra=* | --program-tr=* | --program-t=*)
1142 program_transform_name=$ac_optarg ;;
1144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145 ac_prev=pdfdir ;;
1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147 pdfdir=$ac_optarg ;;
1149 -psdir | --psdir | --psdi | --psd | --ps)
1150 ac_prev=psdir ;;
1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152 psdir=$ac_optarg ;;
1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1156 silent=yes ;;
1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159 ac_prev=sbindir ;;
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161 | --sbi=* | --sb=*)
1162 sbindir=$ac_optarg ;;
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1167 | --sha | --sh)
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172 | --sha=* | --sh=*)
1173 sharedstatedir=$ac_optarg ;;
1175 -site | --site | --sit)
1176 ac_prev=site ;;
1177 -site=* | --site=* | --sit=*)
1178 site=$ac_optarg ;;
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181 ac_prev=srcdir ;;
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183 srcdir=$ac_optarg ;;
1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190 sysconfdir=$ac_optarg ;;
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
1193 ac_prev=target_alias ;;
1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195 target_alias=$ac_optarg ;;
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198 verbose=yes ;;
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
1203 -with-* | --with-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1212 "with_$ac_useropt"
1213 "*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=\$ac_optarg ;;
1219 -without-* | --without-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1228 "with_$ac_useropt"
1229 "*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=no ;;
1235 --x)
1236 # Obsolete; use --with-x.
1237 with_x=yes ;;
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244 x_includes=$ac_optarg ;;
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251 x_libraries=$ac_optarg ;;
1253 -*) as_fn_error "unrecognized option: \`$ac_option'
1254 Try \`$0 --help' for more information."
1257 *=*)
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 case $ac_envvar in #(
1261 '' | [0-9]* | *[!_$as_cr_alnum]* )
1262 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1263 esac
1264 eval $ac_envvar=\$ac_optarg
1265 export $ac_envvar ;;
1268 # FIXME: should be removed in autoconf 3.0.
1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275 esac
1276 done
1278 if test -n "$ac_prev"; then
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280 as_fn_error "missing argument to $ac_option"
1283 if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1285 no) ;;
1286 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288 esac
1291 # Check all directory arguments for consistency.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1297 eval ac_val=\$$ac_var
1298 # Remove trailing slashes.
1299 case $ac_val in
1300 */ )
1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\$ac_val;;
1303 esac
1304 # Be sure to have absolute directory names.
1305 case $ac_val in
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 esac
1309 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1310 done
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1326 cross_compiling=yes
1330 ac_tool_prefix=
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333 test "$silent" = yes && exec 6>/dev/null
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 as_fn_error "working directory cannot be determined"
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 as_fn_error "pwd does not report name of working directory"
1344 # Find the source files, if location was not specified.
1345 if test -z "$srcdir"; then
1346 ac_srcdir_defaulted=yes
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir=`$as_dirname -- "$as_myself" ||
1349 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353 $as_echo X"$as_myself" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 s//\1/
1358 /^X\(\/\/\)[^/].*/{
1359 s//\1/
1362 /^X\(\/\/\)$/{
1363 s//\1/
1366 /^X\(\/\).*/{
1367 s//\1/
1370 s/.*/./; q'`
1371 srcdir=$ac_confdir
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 srcdir=..
1375 else
1376 ac_srcdir_defaulted=no
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 ac_abs_confdir=`(
1384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1385 pwd)`
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 srcdir=.
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1393 case $srcdir in
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 esac
1396 case $srcdir in
1397 *" "*)
1398 as_fn_error "path to source, $srcdir, contains spaces"
1400 esac
1401 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1403 for ac_var in $ac_precious_vars; do
1404 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_${ac_var}_value=\$${ac_var}
1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 done
1411 # Report the --help message.
1413 if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1416 cat <<_ACEOF
1417 \`configure' configures this package to adapt to many kinds of systems.
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE. See below for descriptions of some of the useful variables.
1424 Defaults for the options are specified in brackets.
1426 Configuration:
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437 Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
1439 [$ac_default_prefix]
1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441 [PREFIX]
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1448 For better control, use the options below.
1450 Fine tuning of the installation directories:
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1470 _ACEOF
1472 cat <<\_ACEOF
1474 Program names:
1475 --program-prefix=PREFIX prepend PREFIX to installed program names
1476 --program-suffix=SUFFIX append SUFFIX to installed program names
1477 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1479 System types:
1480 --build=BUILD configure for building on BUILD [guessed]
1481 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1482 --target=TARGET configure for building compilers for TARGET [HOST]
1483 _ACEOF
1486 if test -n "$ac_init_help"; then
1488 cat <<\_ACEOF
1490 Optional Features:
1491 --disable-option-checking ignore unrecognized --enable/--with options
1492 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1493 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1494 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
1495 --enable-libada build libada directory
1496 --enable-libssp build libssp directory
1497 --enable-build-with-cxx build with C++ compiler instead of C compiler
1498 --disable-ppl-version-check disable check for PPL version
1499 --disable-cloog-version-check disable check for CLooG version
1500 --enable-lto enable link time optimization support
1501 --enable-stage1-languages[=all] choose additional languages to build during
1502 stage1. Mostly useful for compiler development.
1503 --enable-objc-gc enable use of Boehm's garbage collector with the
1504 GNU Objective-C runtime
1505 --enable-bootstrap enable bootstrapping [yes if native build]
1506 --enable-serial-[{host,target,build}-]configure
1507 force sequential configuration of
1508 sub-packages for the host, target or build
1509 machine, or all sub-packages
1510 --enable-maintainer-mode enable make rules and dependencies not useful
1511 (and sometimes confusing) to the casual installer
1512 --enable-stage1-checking[=all] choose additional checking for stage1
1513 of the compiler
1514 --enable-werror enable -Werror in bootstrap stage2 and later
1516 Optional Packages:
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519 --with-build-libsubdir=DIR Directory where to find libraries for build system
1520 --with-mpc=PATH specify prefix directory for installed MPC package.
1521 Equivalent to --with-mpc-include=PATH/include
1522 plus --with-mpc-lib=PATH/lib
1523 --with-mpc-include=PATH
1524 specify directory for installed MPC include files
1525 --with-mpc-lib=PATH specify directory for the installed MPC library
1526 --with-mpfr-dir=PATH this option has been REMOVED
1527 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1528 Equivalent to --with-mpfr-include=PATH/include
1529 plus --with-mpfr-lib=PATH/lib
1530 --with-mpfr-include=PATH
1531 specify directory for installed MPFR include files
1532 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1533 --with-gmp-dir=PATH this option has been REMOVED
1534 --with-gmp=PATH specify prefix directory for the installed GMP package.
1535 Equivalent to --with-gmp-include=PATH/include
1536 plus --with-gmp-lib=PATH/lib
1537 --with-gmp-include=PATH specify directory for installed GMP include files
1538 --with-gmp-lib=PATH specify directory for the installed GMP library
1539 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1540 when linking with PPL
1541 --with-stage1-ldflags=FLAGS Linker flags for stage1
1542 -with-stage1-libs=LIBS Libraries for stage1
1543 --with-boot-libs=LIBS Libraries for stage2 and later
1544 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1545 --with-ppl=PATH Specify prefix directory for the installed PPL package
1546 Equivalent to --with-ppl-include=PATH/include
1547 plus --with-ppl-lib=PATH/lib
1548 --with-ppl-include=PATH Specify directory for installed PPL include files
1549 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1550 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
1551 Equivalent to --with-cloog-include=PATH/include
1552 plus --with-cloog-lib=PATH/lib
1553 --with-cloog-include=PATH Specify directory for installed CLooG include files
1554 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
1555 --with-libelf=PATH Specify prefix directory for the installed libelf package
1556 Equivalent to --with-libelf-include=PATH/include
1557 plus --with-libelf-lib=PATH/lib
1558 --with-libelf-include=PATH Specify directory for installed libelf include files
1559 --with-libelf-lib=PATH Specify the directory for the installed libelf library
1560 --with-build-sysroot=SYSROOT
1561 use sysroot as the system root during the build
1562 --with-debug-prefix-map='A=B C=D ...'
1563 map A to B, C to D ... in debug information
1564 --with-build-config='NAME NAME2...'
1565 Use config/NAME.mk build configuration
1566 --with-build-time-tools=PATH
1567 use given path to find target tools during the build
1569 Some influential environment variables:
1570 CC C compiler command
1571 CFLAGS C compiler flags
1572 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1573 nonstandard directory <lib dir>
1574 LIBS libraries to pass to the linker, e.g. -l<library>
1575 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1576 you have headers in a nonstandard directory <include dir>
1577 CXX C++ compiler command
1578 CXXFLAGS C++ compiler flags
1579 CPP C preprocessor
1580 build_configargs
1581 additional configure arguments for build directories
1582 host_configargs
1583 additional configure arguments for host directories
1584 target_configargs
1585 additional configure arguments for target directories
1586 AR AR for the host
1587 AS AS for the host
1588 DLLTOOL DLLTOOL for the host
1589 LD LD for the host
1590 LIPO LIPO for the host
1591 NM NM for the host
1592 RANLIB RANLIB for the host
1593 STRIP STRIP for the host
1594 WINDRES WINDRES for the host
1595 WINDMC WINDMC for the host
1596 OBJCOPY OBJCOPY for the host
1597 OBJDUMP OBJDUMP for the host
1598 CC_FOR_TARGET
1599 CC for the target
1600 CXX_FOR_TARGET
1601 CXX for the target
1602 GCC_FOR_TARGET
1603 GCC for the target
1604 GCJ_FOR_TARGET
1605 GCJ for the target
1606 GFORTRAN_FOR_TARGET
1607 GFORTRAN for the target
1608 AR_FOR_TARGET
1609 AR for the target
1610 AS_FOR_TARGET
1611 AS for the target
1612 DLLTOOL_FOR_TARGET
1613 DLLTOOL for the target
1614 LD_FOR_TARGET
1615 LD for the target
1616 LIPO_FOR_TARGET
1617 LIPO for the target
1618 NM_FOR_TARGET
1619 NM for the target
1620 OBJDUMP_FOR_TARGET
1621 OBJDUMP for the target
1622 RANLIB_FOR_TARGET
1623 RANLIB for the target
1624 STRIP_FOR_TARGET
1625 STRIP for the target
1626 WINDRES_FOR_TARGET
1627 WINDRES for the target
1628 WINDMC_FOR_TARGET
1629 WINDMC for the target
1631 Use these variables to override the choices made by `configure' or to help
1632 it to find libraries and programs with nonstandard names/locations.
1634 Report bugs to the package provider.
1635 _ACEOF
1636 ac_status=$?
1639 if test "$ac_init_help" = "recursive"; then
1640 # If there are subdirs, report their specific --help.
1641 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1642 test -d "$ac_dir" ||
1643 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1644 continue
1645 ac_builddir=.
1647 case "$ac_dir" in
1648 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1651 # A ".." for each directory in $ac_dir_suffix.
1652 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1653 case $ac_top_builddir_sub in
1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656 esac ;;
1657 esac
1658 ac_abs_top_builddir=$ac_pwd
1659 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660 # for backward compatibility:
1661 ac_top_builddir=$ac_top_build_prefix
1663 case $srcdir in
1664 .) # We are building in place.
1665 ac_srcdir=.
1666 ac_top_srcdir=$ac_top_builddir_sub
1667 ac_abs_top_srcdir=$ac_pwd ;;
1668 [\\/]* | ?:[\\/]* ) # Absolute name.
1669 ac_srcdir=$srcdir$ac_dir_suffix;
1670 ac_top_srcdir=$srcdir
1671 ac_abs_top_srcdir=$srcdir ;;
1672 *) # Relative name.
1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674 ac_top_srcdir=$ac_top_build_prefix$srcdir
1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1676 esac
1677 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679 cd "$ac_dir" || { ac_status=$?; continue; }
1680 # Check for guested configure.
1681 if test -f "$ac_srcdir/configure.gnu"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684 elif test -f "$ac_srcdir/configure"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure" --help=recursive
1687 else
1688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689 fi || ac_status=$?
1690 cd "$ac_pwd" || { ac_status=$?; break; }
1691 done
1694 test -n "$ac_init_help" && exit $ac_status
1695 if $ac_init_version; then
1696 cat <<\_ACEOF
1697 configure
1698 generated by GNU Autoconf 2.64
1700 Copyright (C) 2009 Free Software Foundation, Inc.
1701 This configure script is free software; the Free Software Foundation
1702 gives unlimited permission to copy, distribute and modify it.
1703 _ACEOF
1704 exit
1707 ## ------------------------ ##
1708 ## Autoconf initialization. ##
1709 ## ------------------------ ##
1711 # ac_fn_c_try_compile LINENO
1712 # --------------------------
1713 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_compile ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext
1718 if { { ac_try="$ac_compile"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.$ac_objext; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1742 ac_retval=1
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745 return $ac_retval
1747 } # ac_fn_c_try_compile
1749 # ac_fn_cxx_try_compile LINENO
1750 # ----------------------------
1751 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1752 ac_fn_cxx_try_compile ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 rm -f conftest.$ac_objext
1756 if { { ac_try="$ac_compile"
1757 case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_compile") 2>conftest.err
1764 ac_status=$?
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_cxx_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest.$ac_objext; then :
1775 ac_retval=0
1776 else
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1780 ac_retval=1
1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783 return $ac_retval
1785 } # ac_fn_cxx_try_compile
1787 # ac_fn_c_try_link LINENO
1788 # -----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_link ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext conftest$ac_exeext
1794 if { { ac_try="$ac_link"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest$ac_exeext && {
1813 test "$cross_compiling" = yes ||
1814 $as_test_x conftest$ac_exeext
1815 }; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1821 ac_retval=1
1823 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825 # interfere with the next link command; also delete a directory that is
1826 # left behind by Apple's compiler. We do this before executing the actions.
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 return $ac_retval
1831 } # ac_fn_c_try_link
1833 # ac_fn_c_try_cpp LINENO
1834 # ----------------------
1835 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_c_try_cpp ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 if { { ac_try="$ac_cpp conftest.$ac_ext"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } >/dev/null && {
1855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 }; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 ac_retval=1
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866 return $ac_retval
1868 } # ac_fn_c_try_cpp
1870 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1871 # -------------------------------------------------------
1872 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1873 # the include files in INCLUDES and setting the cache variable VAR
1874 # accordingly.
1875 ac_fn_c_check_header_mongrel ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882 $as_echo_n "(cached) " >&6
1884 eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 else
1888 # Is the header compilable?
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1890 $as_echo_n "checking $2 usability... " >&6; }
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1894 #include <$2>
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897 ac_header_compiler=yes
1898 else
1899 ac_header_compiler=no
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1903 $as_echo "$ac_header_compiler" >&6; }
1905 # Is the header present?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1907 $as_echo_n "checking $2 presence... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1910 #include <$2>
1911 _ACEOF
1912 if ac_fn_c_try_cpp "$LINENO"; then :
1913 ac_header_preproc=yes
1914 else
1915 ac_header_preproc=no
1917 rm -f conftest.err conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1919 $as_echo "$ac_header_preproc" >&6; }
1921 # So? What about this header?
1922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1923 yes:no: )
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1925 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1927 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1929 no:yes:* )
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1931 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1933 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1935 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1937 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1941 esac
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943 $as_echo_n "checking for $2... " >&6; }
1944 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1945 $as_echo_n "(cached) " >&6
1946 else
1947 eval "$3=\$ac_header_compiler"
1949 eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1953 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955 } # ac_fn_c_check_header_mongrel
1957 # ac_fn_c_try_run LINENO
1958 # ----------------------
1959 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1960 # that executables *can* be run.
1961 ac_fn_c_try_run ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 if { { ac_try="$ac_link"
1965 case "(($ac_try" in
1966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967 *) ac_try_echo=$ac_try;;
1968 esac
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971 (eval "$ac_link") 2>&5
1972 ac_status=$?
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1975 { { case "(($ac_try" in
1976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977 *) ac_try_echo=$ac_try;;
1978 esac
1979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980 $as_echo "$ac_try_echo"; } >&5
1981 (eval "$ac_try") 2>&5
1982 ac_status=$?
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; }; }; then :
1985 ac_retval=0
1986 else
1987 $as_echo "$as_me: program exited with status $ac_status" >&5
1988 $as_echo "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1991 ac_retval=$ac_status
1993 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1994 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1995 return $ac_retval
1997 } # ac_fn_c_try_run
1999 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2000 # -------------------------------------------------------
2001 # Tests whether HEADER exists and can be compiled using the include files in
2002 # INCLUDES, setting the cache variable VAR accordingly.
2003 ac_fn_c_check_header_compile ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2009 $as_echo_n "(cached) " >&6
2010 else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2014 #include <$2>
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017 eval "$3=yes"
2018 else
2019 eval "$3=no"
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 eval ac_res=\$$3
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2028 } # ac_fn_c_check_header_compile
2029 cat >config.log <<_ACEOF
2030 This file contains any messages produced by compilers while
2031 running configure, to aid debugging if configure makes a mistake.
2033 It was created by $as_me, which was
2034 generated by GNU Autoconf 2.64. Invocation command line was
2036 $ $0 $@
2038 _ACEOF
2039 exec 5>>config.log
2041 cat <<_ASUNAME
2042 ## --------- ##
2043 ## Platform. ##
2044 ## --------- ##
2046 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2047 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2048 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2049 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2050 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2052 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2053 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2055 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2056 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2057 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2058 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2059 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2060 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2061 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2063 _ASUNAME
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2068 IFS=$as_save_IFS
2069 test -z "$as_dir" && as_dir=.
2070 $as_echo "PATH: $as_dir"
2071 done
2072 IFS=$as_save_IFS
2074 } >&5
2076 cat >&5 <<_ACEOF
2079 ## ----------- ##
2080 ## Core tests. ##
2081 ## ----------- ##
2083 _ACEOF
2086 # Keep a trace of the command line.
2087 # Strip out --no-create and --no-recursion so they do not pile up.
2088 # Strip out --silent because we don't want to record it for future runs.
2089 # Also quote any args containing shell meta-characters.
2090 # Make two passes to allow for proper duplicate-argument suppression.
2091 ac_configure_args=
2092 ac_configure_args0=
2093 ac_configure_args1=
2094 ac_must_keep_next=false
2095 for ac_pass in 1 2
2097 for ac_arg
2099 case $ac_arg in
2100 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2102 | -silent | --silent | --silen | --sile | --sil)
2103 continue ;;
2104 *\'*)
2105 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2106 esac
2107 case $ac_pass in
2108 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2110 as_fn_append ac_configure_args1 " '$ac_arg'"
2111 if test $ac_must_keep_next = true; then
2112 ac_must_keep_next=false # Got value, back to normal.
2113 else
2114 case $ac_arg in
2115 *=* | --config-cache | -C | -disable-* | --disable-* \
2116 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2117 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2118 | -with-* | --with-* | -without-* | --without-* | --x)
2119 case "$ac_configure_args0 " in
2120 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2121 esac
2123 -* ) ac_must_keep_next=true ;;
2124 esac
2126 as_fn_append ac_configure_args " '$ac_arg'"
2128 esac
2129 done
2130 done
2131 { ac_configure_args0=; unset ac_configure_args0;}
2132 { ac_configure_args1=; unset ac_configure_args1;}
2134 # When interrupted or exit'd, cleanup temporary files, and complete
2135 # config.log. We remove comments because anyway the quotes in there
2136 # would cause problems or look ugly.
2137 # WARNING: Use '\'' to represent an apostrophe within the trap.
2138 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2139 trap 'exit_status=$?
2140 # Save into config.log some information that might help in debugging.
2142 echo
2144 cat <<\_ASBOX
2145 ## ---------------- ##
2146 ## Cache variables. ##
2147 ## ---------------- ##
2148 _ASBOX
2149 echo
2150 # The following way of writing the cache mishandles newlines in values,
2152 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2153 eval ac_val=\$$ac_var
2154 case $ac_val in #(
2155 *${as_nl}*)
2156 case $ac_var in #(
2157 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2158 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2159 esac
2160 case $ac_var in #(
2161 _ | IFS | as_nl) ;; #(
2162 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2163 *) { eval $ac_var=; unset $ac_var;} ;;
2164 esac ;;
2165 esac
2166 done
2167 (set) 2>&1 |
2168 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2169 *${as_nl}ac_space=\ *)
2170 sed -n \
2171 "s/'\''/'\''\\\\'\'''\''/g;
2172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2173 ;; #(
2175 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2177 esac |
2178 sort
2180 echo
2182 cat <<\_ASBOX
2183 ## ----------------- ##
2184 ## Output variables. ##
2185 ## ----------------- ##
2186 _ASBOX
2187 echo
2188 for ac_var in $ac_subst_vars
2190 eval ac_val=\$$ac_var
2191 case $ac_val in
2192 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193 esac
2194 $as_echo "$ac_var='\''$ac_val'\''"
2195 done | sort
2196 echo
2198 if test -n "$ac_subst_files"; then
2199 cat <<\_ASBOX
2200 ## ------------------- ##
2201 ## File substitutions. ##
2202 ## ------------------- ##
2203 _ASBOX
2204 echo
2205 for ac_var in $ac_subst_files
2207 eval ac_val=\$$ac_var
2208 case $ac_val in
2209 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2210 esac
2211 $as_echo "$ac_var='\''$ac_val'\''"
2212 done | sort
2213 echo
2216 if test -s confdefs.h; then
2217 cat <<\_ASBOX
2218 ## ----------- ##
2219 ## confdefs.h. ##
2220 ## ----------- ##
2221 _ASBOX
2222 echo
2223 cat confdefs.h
2224 echo
2226 test "$ac_signal" != 0 &&
2227 $as_echo "$as_me: caught signal $ac_signal"
2228 $as_echo "$as_me: exit $exit_status"
2229 } >&5
2230 rm -f core *.core core.conftest.* &&
2231 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2232 exit $exit_status
2234 for ac_signal in 1 2 13 15; do
2235 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2236 done
2237 ac_signal=0
2239 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2240 rm -f -r conftest* confdefs.h
2242 $as_echo "/* confdefs.h */" > confdefs.h
2244 # Predefined preprocessor variables.
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_NAME "$PACKAGE_NAME"
2248 _ACEOF
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2252 _ACEOF
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2256 _ACEOF
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_STRING "$PACKAGE_STRING"
2260 _ACEOF
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2264 _ACEOF
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_URL "$PACKAGE_URL"
2268 _ACEOF
2271 # Let the site file select an alternate cache file if it wants to.
2272 # Prefer an explicitly selected file to automatically selected ones.
2273 ac_site_file1=NONE
2274 ac_site_file2=NONE
2275 if test -n "$CONFIG_SITE"; then
2276 ac_site_file1=$CONFIG_SITE
2277 elif test "x$prefix" != xNONE; then
2278 ac_site_file1=$prefix/share/config.site
2279 ac_site_file2=$prefix/etc/config.site
2280 else
2281 ac_site_file1=$ac_default_prefix/share/config.site
2282 ac_site_file2=$ac_default_prefix/etc/config.site
2284 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2286 test "x$ac_site_file" = xNONE && continue
2287 if test -r "$ac_site_file"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2289 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2290 sed 's/^/| /' "$ac_site_file" >&5
2291 . "$ac_site_file"
2293 done
2295 if test -r "$cache_file"; then
2296 # Some versions of bash will fail to source /dev/null (special
2297 # files actually), so we avoid doing that.
2298 if test -f "$cache_file"; then
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2300 $as_echo "$as_me: loading cache $cache_file" >&6;}
2301 case $cache_file in
2302 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2303 *) . "./$cache_file";;
2304 esac
2306 else
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2308 $as_echo "$as_me: creating cache $cache_file" >&6;}
2309 >$cache_file
2312 # Check that the precious variables saved in the cache have kept the same
2313 # value.
2314 ac_cache_corrupted=false
2315 for ac_var in $ac_precious_vars; do
2316 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2317 eval ac_new_set=\$ac_env_${ac_var}_set
2318 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2319 eval ac_new_val=\$ac_env_${ac_var}_value
2320 case $ac_old_set,$ac_new_set in
2321 set,)
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2323 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2324 ac_cache_corrupted=: ;;
2325 ,set)
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2327 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2328 ac_cache_corrupted=: ;;
2329 ,);;
2331 if test "x$ac_old_val" != "x$ac_new_val"; then
2332 # differences in whitespace do not lead to failure.
2333 ac_old_val_w=`echo x $ac_old_val`
2334 ac_new_val_w=`echo x $ac_new_val`
2335 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2337 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2338 ac_cache_corrupted=:
2339 else
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2341 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2342 eval $ac_var=\$ac_old_val
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2345 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2347 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2348 fi;;
2349 esac
2350 # Pass precious variables to config.status.
2351 if test "$ac_new_set" = set; then
2352 case $ac_new_val in
2353 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2354 *) ac_arg=$ac_var=$ac_new_val ;;
2355 esac
2356 case " $ac_configure_args " in
2357 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2358 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2359 esac
2361 done
2362 if $ac_cache_corrupted; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2366 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2367 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2369 ## -------------------- ##
2370 ## Main body of script. ##
2371 ## -------------------- ##
2373 ac_ext=c
2374 ac_cpp='$CPP $CPPFLAGS'
2375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387 progname=$0
2388 # if PWD already has a value, it is probably wrong.
2389 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2391 # Export original configure arguments for use by sub-configures.
2392 # Quote arguments with shell meta charatcers.
2393 TOPLEVEL_CONFIGURE_ARGUMENTS=
2394 set -- "$progname" "$@"
2395 for ac_arg
2397 case "$ac_arg" in
2398 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2399 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2400 # if the argument is of the form -foo=baz, quote the baz part only
2401 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2402 *) ;;
2403 esac
2404 # Add the quoted argument to the list.
2405 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2406 done
2407 if test "$silent" = yes; then
2408 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2410 # Remove the initial space we just introduced and, as these will be
2411 # expanded by make, quote '$'.
2412 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2415 # Find the build, host, and target systems.
2416 ac_aux_dir=
2417 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2418 for ac_t in install-sh install.sh shtool; do
2419 if test -f "$ac_dir/$ac_t"; then
2420 ac_aux_dir=$ac_dir
2421 ac_install_sh="$ac_aux_dir/$ac_t -c"
2422 break 2
2424 done
2425 done
2426 if test -z "$ac_aux_dir"; then
2427 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2430 # These three variables are undocumented and unsupported,
2431 # and are intended to be withdrawn in a future Autoconf release.
2432 # They can cause serious problems if a builder's source tree is in a directory
2433 # whose full name contains unusual characters.
2434 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2435 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2436 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2439 # Make sure we can run config.sub.
2440 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2441 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2444 $as_echo_n "checking build system type... " >&6; }
2445 if test "${ac_cv_build+set}" = set; then :
2446 $as_echo_n "(cached) " >&6
2447 else
2448 ac_build_alias=$build_alias
2449 test "x$ac_build_alias" = x &&
2450 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2451 test "x$ac_build_alias" = x &&
2452 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2453 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2454 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2458 $as_echo "$ac_cv_build" >&6; }
2459 case $ac_cv_build in
2460 *-*-*) ;;
2461 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2462 esac
2463 build=$ac_cv_build
2464 ac_save_IFS=$IFS; IFS='-'
2465 set x $ac_cv_build
2466 shift
2467 build_cpu=$1
2468 build_vendor=$2
2469 shift; shift
2470 # Remember, the first character of IFS is used to create $*,
2471 # except with old shells:
2472 build_os=$*
2473 IFS=$ac_save_IFS
2474 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2477 case ${build_alias} in
2478 "") build_noncanonical=${build} ;;
2479 *) build_noncanonical=${build_alias} ;;
2480 esac
2484 case ${host_alias} in
2485 "") host_noncanonical=${build_noncanonical} ;;
2486 *) host_noncanonical=${host_alias} ;;
2487 esac
2491 case ${target_alias} in
2492 "") target_noncanonical=${host_noncanonical} ;;
2493 *) target_noncanonical=${target_alias} ;;
2494 esac
2499 test "$host_noncanonical" = "$target_noncanonical" &&
2500 test "$program_prefix$program_suffix$program_transform_name" = \
2501 NONENONEs,x,x, &&
2502 program_transform_name=s,y,y,
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2505 $as_echo_n "checking host system type... " >&6; }
2506 if test "${ac_cv_host+set}" = set; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 if test "x$host_alias" = x; then
2510 ac_cv_host=$ac_cv_build
2511 else
2512 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2513 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2518 $as_echo "$ac_cv_host" >&6; }
2519 case $ac_cv_host in
2520 *-*-*) ;;
2521 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2522 esac
2523 host=$ac_cv_host
2524 ac_save_IFS=$IFS; IFS='-'
2525 set x $ac_cv_host
2526 shift
2527 host_cpu=$1
2528 host_vendor=$2
2529 shift; shift
2530 # Remember, the first character of IFS is used to create $*,
2531 # except with old shells:
2532 host_os=$*
2533 IFS=$ac_save_IFS
2534 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2538 $as_echo_n "checking target system type... " >&6; }
2539 if test "${ac_cv_target+set}" = set; then :
2540 $as_echo_n "(cached) " >&6
2541 else
2542 if test "x$target_alias" = x; then
2543 ac_cv_target=$ac_cv_host
2544 else
2545 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2546 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2551 $as_echo "$ac_cv_target" >&6; }
2552 case $ac_cv_target in
2553 *-*-*) ;;
2554 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2555 esac
2556 target=$ac_cv_target
2557 ac_save_IFS=$IFS; IFS='-'
2558 set x $ac_cv_target
2559 shift
2560 target_cpu=$1
2561 target_vendor=$2
2562 shift; shift
2563 # Remember, the first character of IFS is used to create $*,
2564 # except with old shells:
2565 target_os=$*
2566 IFS=$ac_save_IFS
2567 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2570 # The aliases save the names the user supplied, while $host etc.
2571 # will get canonicalized.
2572 test -n "$target_alias" &&
2573 test "$program_prefix$program_suffix$program_transform_name" = \
2574 NONENONEs,x,x, &&
2575 program_prefix=${target_alias}-
2577 test "$program_prefix" != NONE &&
2578 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2579 # Use a double $ so make ignores it.
2580 test "$program_suffix" != NONE &&
2581 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2582 # Double any \ or $.
2583 # By default was `s,x,x', remove it if useless.
2584 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2585 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2589 # Get 'install' or 'install-sh' and its variants.
2590 # Find a good install program. We prefer a C program (faster),
2591 # so one script is as good as another. But avoid the broken or
2592 # incompatible versions:
2593 # SysV /etc/install, /usr/sbin/install
2594 # SunOS /usr/etc/install
2595 # IRIX /sbin/install
2596 # AIX /bin/install
2597 # AmigaOS /C/install, which installs bootblocks on floppy discs
2598 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2599 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2600 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2601 # OS/2's system install, which has a completely different semantic
2602 # ./install, which can be erroneously created by make from ./install.sh.
2603 # Reject install programs that cannot install multiple files.
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2605 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2606 if test -z "$INSTALL"; then
2607 if test "${ac_cv_path_install+set}" = set; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 # Account for people who put trailing slashes in PATH elements.
2616 case $as_dir/ in #((
2617 ./ | .// | /[cC]/* | \
2618 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2619 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2620 /usr/ucb/* ) ;;
2622 # OSF1 and SCO ODT 3.0 have their own names for install.
2623 # Don't use installbsd from OSF since it installs stuff as root
2624 # by default.
2625 for ac_prog in ginstall scoinst install; do
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2628 if test $ac_prog = install &&
2629 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2630 # AIX install. It has an incompatible calling convention.
2632 elif test $ac_prog = install &&
2633 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2634 # program-specific install script used by HP pwplus--don't use.
2636 else
2637 rm -rf conftest.one conftest.two conftest.dir
2638 echo one > conftest.one
2639 echo two > conftest.two
2640 mkdir conftest.dir
2641 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2642 test -s conftest.one && test -s conftest.two &&
2643 test -s conftest.dir/conftest.one &&
2644 test -s conftest.dir/conftest.two
2645 then
2646 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2647 break 3
2651 done
2652 done
2654 esac
2656 done
2657 IFS=$as_save_IFS
2659 rm -rf conftest.one conftest.two conftest.dir
2662 if test "${ac_cv_path_install+set}" = set; then
2663 INSTALL=$ac_cv_path_install
2664 else
2665 # As a last resort, use the slow shell script. Don't cache a
2666 # value for INSTALL within a source directory, because that will
2667 # break other packages using the cache if that directory is
2668 # removed, or if the value is a relative name.
2669 INSTALL=$ac_install_sh
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2673 $as_echo "$INSTALL" >&6; }
2675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2676 # It thinks the first close brace ends the variable substitution.
2677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2684 $as_echo_n "checking whether ln works... " >&6; }
2685 if test "${acx_cv_prog_LN+set}" = set; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 rm -f conftestdata_t
2689 echo >conftestdata_f
2690 if ln conftestdata_f conftestdata_t 2>/dev/null
2691 then
2692 acx_cv_prog_LN=ln
2693 else
2694 acx_cv_prog_LN=no
2696 rm -f conftestdata_f conftestdata_t
2699 if test $acx_cv_prog_LN = no; then
2700 LN="cp"
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2702 $as_echo "no, using $LN" >&6; }
2703 else
2704 LN="$acx_cv_prog_LN"
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2706 $as_echo "yes" >&6; }
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2710 $as_echo_n "checking whether ln -s works... " >&6; }
2711 LN_S=$as_ln_s
2712 if test "$LN_S" = "ln -s"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2714 $as_echo "yes" >&6; }
2715 else
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2717 $as_echo "no, using $LN_S" >&6; }
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2721 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2722 if test "${ac_cv_path_SED+set}" = set; then :
2723 $as_echo_n "(cached) " >&6
2724 else
2725 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2726 for ac_i in 1 2 3 4 5 6 7; do
2727 ac_script="$ac_script$as_nl$ac_script"
2728 done
2729 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2730 { ac_script=; unset ac_script;}
2731 if test -z "$SED"; then
2732 ac_path_SED_found=false
2733 # Loop through the user's path and test for each of PROGNAME-LIST
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_prog in sed gsed; do
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2742 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2743 # Check for GNU ac_path_SED and select it if it is found.
2744 # Check for GNU $ac_path_SED
2745 case `"$ac_path_SED" --version 2>&1` in
2746 *GNU*)
2747 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2749 ac_count=0
2750 $as_echo_n 0123456789 >"conftest.in"
2751 while :
2753 cat "conftest.in" "conftest.in" >"conftest.tmp"
2754 mv "conftest.tmp" "conftest.in"
2755 cp "conftest.in" "conftest.nl"
2756 $as_echo '' >> "conftest.nl"
2757 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2759 as_fn_arith $ac_count + 1 && ac_count=$as_val
2760 if test $ac_count -gt ${ac_path_SED_max-0}; then
2761 # Best one so far, save it but keep looking for a better one
2762 ac_cv_path_SED="$ac_path_SED"
2763 ac_path_SED_max=$ac_count
2765 # 10*(2^10) chars as input seems more than enough
2766 test $ac_count -gt 10 && break
2767 done
2768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2769 esac
2771 $ac_path_SED_found && break 3
2772 done
2773 done
2774 done
2775 IFS=$as_save_IFS
2776 if test -z "$ac_cv_path_SED"; then
2777 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2779 else
2780 ac_cv_path_SED=$SED
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2785 $as_echo "$ac_cv_path_SED" >&6; }
2786 SED="$ac_cv_path_SED"
2787 rm -f conftest.sed
2789 for ac_prog in gawk mawk nawk awk
2791 # Extract the first word of "$ac_prog", so it can be a program name with args.
2792 set dummy $ac_prog; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if test "${ac_cv_prog_AWK+set}" = set; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 if test -n "$AWK"; then
2799 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_AWK="$ac_prog"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2812 done
2813 done
2814 IFS=$as_save_IFS
2818 AWK=$ac_cv_prog_AWK
2819 if test -n "$AWK"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2821 $as_echo "$AWK" >&6; }
2822 else
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2828 test -n "$AWK" && break
2829 done
2832 ### we might need to use some other shell than /bin/sh for running subshells
2833 ### If we are on Windows, search for the shell. This will permit people
2834 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2835 ### without also having to set CONFIG_SHELL. This code will work when
2836 ### using bash, which sets OSTYPE.
2837 case "${OSTYPE}" in
2838 *win32*)
2839 if test x${CONFIG_SHELL} = x ; then
2840 if test ! -f /bin/sh ; then
2841 if test x${SHELL} != x && test -f ${SHELL} ; then
2842 CONFIG_SHELL=${SHELL}
2843 export CONFIG_SHELL
2844 else
2845 for prog in sh sh.exe bash bash.exe; do
2846 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2847 for dir in $PATH; do
2848 test -z "$dir" && dir=.
2849 if test -f $dir/$prog; then
2850 CONFIG_SHELL=$dir/$prog
2851 export CONFIG_SHELL
2852 break
2854 done
2855 IFS="$save_ifs"
2856 test -n "${CONFIG_SHELL}" && break
2857 done
2862 esac
2864 config_shell=${CONFIG_SHELL-/bin/sh}
2866 moveifchange=${srcdir}/move-if-change
2868 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2870 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2871 # a relative path.
2872 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2873 INSTALL="${srcpwd}/install-sh -c"
2876 # Set srcdir to "." if that's what it is.
2877 # This is important for multilib support.
2878 pwd=`${PWDCMD-pwd}`
2879 if test "${pwd}" = "${srcpwd}" ; then
2880 srcdir=.
2883 topsrcdir=$srcpwd
2885 extra_host_args=
2887 ### To add a new directory to the tree, first choose whether it is a target
2888 ### or a host dependent tool. Then put it into the appropriate list
2889 ### (library or tools, host or target), doing a dependency sort.
2891 # Subdirs will be configured in the order listed in build_configdirs,
2892 # configdirs, or target_configdirs; see the serialization section below.
2894 # Dependency sorting is only needed when *configuration* must be done in
2895 # a particular order. In all cases a dependency should be specified in
2896 # the Makefile, whether or not it's implicitly specified here.
2898 # Double entries in build_configdirs, configdirs, or target_configdirs may
2899 # cause circular dependencies and break everything horribly.
2901 # these library is used by various programs built for the build
2902 # environment
2904 build_libs="build-libiberty"
2906 # these tools are built for the build environment
2907 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2909 # these libraries are used by various programs built for the host environment
2911 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2913 # these tools are built for the host environment
2914 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2915 # know that we are building the simulator.
2916 # binutils, gas and ld appear in that order because it makes sense to run
2917 # "make check" in that particular order.
2918 # If --enable-gold is used, "gold" may replace "ld".
2919 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"
2921 # libgcj represents the runtime libraries only used by gcj.
2922 libgcj="target-libffi \
2923 target-zlib \
2924 target-qthreads \
2925 target-libjava"
2927 # these libraries are built for the target environment, and are built after
2928 # the host libraries and the host tools (which may be a cross compiler)
2930 target_libraries="target-libgcc \
2931 target-libiberty \
2932 target-libgloss \
2933 target-newlib \
2934 target-libgomp \
2935 target-libstdc++-v3 \
2936 target-libmudflap \
2937 target-libssp \
2938 target-libgfortran \
2939 target-boehm-gc \
2940 ${libgcj} \
2941 target-libobjc \
2942 target-libada"
2944 # these tools are built using the target libraries, and are intended to
2945 # run only in the target environment
2947 # note: any program that *uses* libraries that are in the "target_libraries"
2948 # list belongs in this list. those programs are also very likely
2949 # candidates for the "native_only" list which follows
2951 target_tools="target-examples target-groff target-gperf target-rda"
2953 ################################################################################
2955 ## All tools belong in one of the four categories, and are assigned above
2956 ## We assign ${configdirs} this way to remove all embedded newlines. This
2957 ## is important because configure will choke if they ever get through.
2958 ## ${configdirs} is directories we build using the host tools.
2959 ## ${target_configdirs} is directories we build using the target tools.
2960 configdirs=`echo ${host_libs} ${host_tools}`
2961 target_configdirs=`echo ${target_libraries} ${target_tools}`
2962 build_configdirs=`echo ${build_libs} ${build_tools}`
2966 ################################################################################
2968 srcname="gnu development package"
2970 # This gets set non-empty for some net releases of packages.
2971 appdirs=""
2973 # Define is_cross_compiler to save on calls to 'test'.
2974 is_cross_compiler=
2975 if test x"${host}" = x"${target}" ; then
2976 is_cross_compiler=no
2977 else
2978 is_cross_compiler=yes
2981 # Find the build and target subdir names.
2983 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2984 # have matching libraries, they should use host libraries: Makefile.tpl
2985 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2986 # However, they still use the build modules, because the corresponding
2987 # host modules (e.g. bison) are only built for the host when bootstrap
2988 # finishes. So:
2989 # - build_subdir is where we find build modules, and never changes.
2990 # - build_libsubdir is where we find build libraries, and can be overridden.
2992 # Prefix 'build-' so this never conflicts with target_subdir.
2993 build_subdir="build-${build_noncanonical}"
2995 # Check whether --with-build-libsubdir was given.
2996 if test "${with_build_libsubdir+set}" = set; then :
2997 withval=$with_build_libsubdir; build_libsubdir="$withval"
2998 else
2999 build_libsubdir="$build_subdir"
3002 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3003 if ( test $srcdir = . && test -d gcc ) \
3004 || test -d $srcdir/../host-${host_noncanonical}; then
3005 host_subdir="host-${host_noncanonical}"
3006 else
3007 host_subdir=.
3009 # No prefix.
3010 target_subdir=${target_noncanonical}
3012 # Be sure to cover against remnants of an in-tree build.
3013 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
3014 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
3015 Use a pristine source tree when building in a separate tree" "$LINENO" 5
3018 # Skipdirs are removed silently.
3019 skipdirs=
3020 # Noconfigdirs are removed loudly.
3021 noconfigdirs=""
3023 use_gnu_ld=
3024 # Make sure we don't let GNU ld be added if we didn't want it.
3025 if test x$with_gnu_ld = xno ; then
3026 use_gnu_ld=no
3027 noconfigdirs="$noconfigdirs ld gold"
3030 use_gnu_as=
3031 # Make sure we don't let GNU as be added if we didn't want it.
3032 if test x$with_gnu_as = xno ; then
3033 use_gnu_as=no
3034 noconfigdirs="$noconfigdirs gas"
3037 use_included_zlib=
3038 # Make sure we don't let ZLIB be added if we didn't want it.
3039 if test x$with_system_zlib = xyes ; then
3040 use_included_zlib=no
3041 noconfigdirs="$noconfigdirs zlib"
3044 # some tools are so dependent upon X11 that if we're not building with X,
3045 # it's not even worth trying to configure, much less build, that tool.
3047 case ${with_x} in
3048 yes | "") ;; # the default value for this tree is that X11 is available
3050 skipdirs="${skipdirs} tk itcl libgui"
3051 # We won't be able to build gdbtk without X.
3052 enable_gdbtk=no
3054 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3055 esac
3057 # Some tools are only suitable for building in a "native" situation.
3058 # Remove these if host!=target.
3059 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"
3061 # Similarly, some are only suitable for cross toolchains.
3062 # Remove these if host=target.
3063 cross_only="target-libgloss target-newlib target-opcodes"
3065 case $is_cross_compiler in
3066 no) skipdirs="${skipdirs} ${cross_only}" ;;
3067 yes) skipdirs="${skipdirs} ${native_only}" ;;
3068 esac
3070 # If both --with-headers and --with-libs are specified, default to
3071 # --without-newlib.
3072 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3073 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
3074 if test x"${with_newlib}" = x ; then
3075 with_newlib=no
3079 # Recognize --with-newlib/--without-newlib.
3080 case ${with_newlib} in
3081 no) skipdirs="${skipdirs} target-newlib" ;;
3082 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3083 esac
3085 # Handle --enable-gold.
3086 # --enable-gold Build only gold
3087 # --disable-gold [default] Build only ld
3088 # --enable-gold=both Build both gold and ld, ld is default
3089 # --enable-gold=both/ld Same
3090 # --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd
3092 # Check whether --enable-gold was given.
3093 if test "${enable_gold+set}" = set; then :
3094 enableval=$enable_gold; ENABLE_GOLD=$enableval
3095 else
3096 ENABLE_GOLD=no
3099 case "${ENABLE_GOLD}" in
3100 yes|both|both/gold|both/ld)
3101 # Check for ELF target.
3102 is_elf=no
3103 case "${target}" in
3104 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3105 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3106 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
3107 case "${target}" in
3108 *-*-linux*aout* | *-*-linux*oldld*)
3111 is_elf=yes
3113 esac
3114 esac
3116 if test "$is_elf" = "yes"; then
3117 # Check for target supported by gold.
3118 case "${target}" in
3119 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
3120 case "${ENABLE_GOLD}" in
3121 both*)
3122 configdirs="$configdirs gold"
3125 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
3127 esac
3128 ENABLE_GOLD=yes
3130 esac
3136 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
3138 esac
3140 # Configure extra directories which are host specific
3142 case "${host}" in
3143 *-cygwin*)
3144 configdirs="$configdirs libtermcap" ;;
3145 esac
3147 # A target can indicate whether a language isn't supported for some reason.
3148 # Only spaces may be used in this macro; not newlines or tabs.
3149 unsupported_languages=
3151 # Remove more programs from consideration, based on the host or
3152 # target this usually means that a port of the program doesn't
3153 # exist yet.
3155 case "${host}" in
3156 hppa*64*-*-*)
3157 noconfigdirs="$noconfigdirs byacc"
3159 i[3456789]86-*-vsta)
3160 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
3162 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
3163 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3165 x86_64-*-mingw*)
3166 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3168 i[3456789]86-*-mingw32*)
3169 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
3170 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3172 i[3456789]86-*-beos*)
3173 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3175 *-*-cygwin*)
3176 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
3178 *-*-netbsd*)
3179 noconfigdirs="$noconfigdirs rcs"
3181 ppc*-*-pe)
3182 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
3184 powerpc-*-beos*)
3185 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
3187 esac
3190 # Check whether --enable-libada was given.
3191 if test "${enable_libada+set}" = set; then :
3192 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3193 else
3194 ENABLE_LIBADA=yes
3197 if test "${ENABLE_LIBADA}" != "yes" ; then
3198 noconfigdirs="$noconfigdirs gnattools"
3201 # Check whether --enable-libssp was given.
3202 if test "${enable_libssp+set}" = set; then :
3203 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3204 else
3205 ENABLE_LIBSSP=yes
3209 # Save it here so that, even in case of --enable-libgcj, if the Java
3210 # front-end isn't enabled, we still get libgcj disabled.
3211 libgcj_saved=$libgcj
3212 case $enable_libgcj in
3213 yes)
3214 # If we reset it here, it won't get added to noconfigdirs in the
3215 # target-specific build rules, so it will be forcibly enabled
3216 # (unless the Java language itself isn't enabled).
3217 libgcj=
3220 # Make sure we get it printed in the list of not supported target libs.
3221 noconfigdirs="$noconfigdirs ${libgcj}"
3223 esac
3226 # Disable libmudflap on some systems.
3227 if test x$enable_libmudflap = x ; then
3228 case "${target}" in
3229 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3230 # Enable libmudflap by default in GNU and friends.
3232 *-*-freebsd*)
3233 # Enable libmudflap by default in FreeBSD.
3236 # Disable it by default everywhere else.
3237 noconfigdirs="$noconfigdirs target-libmudflap"
3239 esac
3242 # Disable libgomp on non POSIX hosted systems.
3243 if test x$enable_libgomp = x ; then
3244 # Enable libgomp by default on hosted POSIX systems.
3245 case "${target}" in
3246 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3248 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3250 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3252 *-*-darwin* | *-*-aix*)
3255 noconfigdirs="$noconfigdirs target-libgomp"
3257 esac
3260 # Default libgloss CPU subdirectory.
3261 libgloss_dir="$target_cpu"
3263 case "${target}" in
3264 *-*-chorusos)
3265 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3267 powerpc-*-darwin*)
3268 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3269 noconfigdirs="$noconfigdirs sim target-rda"
3271 i[3456789]86-*-darwin*)
3272 noconfigdirs="$noconfigdirs ld gprof"
3273 noconfigdirs="$noconfigdirs sim target-rda"
3275 x86_64-*-darwin[912]*)
3276 noconfigdirs="$noconfigdirs ld gas gprof"
3277 noconfigdirs="$noconfigdirs sim target-rda"
3279 *-*-darwin*)
3280 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3281 noconfigdirs="$noconfigdirs sim target-rda"
3282 noconfigdirs="$noconfigdirs ${libgcj}"
3284 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3285 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3287 *-*-freebsd*)
3288 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3289 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3290 && test -f /usr/local/include/gmp.h; then
3291 with_gmp=/usr/local
3294 # Skip some stuff that's unsupported on some FreeBSD configurations.
3295 case "${target}" in
3296 i*86-*-*) ;;
3297 alpha*-*-*) ;;
3298 x86_64-*-*) ;;
3300 noconfigdirs="$noconfigdirs ${libgcj}"
3302 esac
3304 *-*-kaos*)
3305 # Remove unsupported stuff on all kaOS configurations.
3306 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3307 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3308 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3309 noconfigdirs="$noconfigdirs target-libgloss"
3311 *-*-netbsd*)
3312 # Skip some stuff on all NetBSD configurations.
3313 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3315 # Skip some stuff that's unsupported on some NetBSD configurations.
3316 case "${target}" in
3317 i*86-*-netbsdelf*) ;;
3318 arm*-*-netbsdelf*) ;;
3320 noconfigdirs="$noconfigdirs ${libgcj}"
3322 esac
3324 *-*-netware*)
3325 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3327 *-*-rtems*)
3328 skipdirs="${skipdirs} target-libiberty"
3329 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3331 # The tpf target doesn't support gdb yet.
3332 *-*-tpf*)
3333 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3335 *-*-uclinux*)
3336 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3338 *-*-vxworks*)
3339 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3341 alpha*-dec-osf*)
3342 # ld works, but does not support shared libraries.
3343 # newlib is not 64 bit ready. I'm not sure about fileutils.
3344 # gas doesn't generate exception information.
3345 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3347 alpha*-*-*vms*)
3348 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3350 alpha*-*-linux*)
3351 # newlib is not 64 bit ready
3352 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3354 alpha*-*-*)
3355 # newlib is not 64 bit ready
3356 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3358 am33_2.0-*-linux*)
3359 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3361 sh-*-linux*)
3362 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3364 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3365 noconfigdirs="$noconfigdirs ${libgcj}"
3366 noconfigdirs="$noconfigdirs target-examples"
3367 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3368 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3369 noconfigdirs="$noconfigdirs expect dejagnu"
3370 # the C++ libraries don't build on top of CE's C libraries
3371 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3372 noconfigdirs="$noconfigdirs target-newlib"
3373 case "${host}" in
3374 *-*-cygwin*) ;; # keep gdb and readline
3375 *) noconfigdirs="$noconfigdirs gdb readline"
3377 esac
3378 libgloss_dir=wince
3380 arc-*-*)
3381 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3383 arm-semi-aof )
3385 arm-*-coff | strongarm-*-coff | xscale-*-coff)
3386 noconfigdirs="$noconfigdirs ${libgcj}"
3387 libgloss_dir=arm
3389 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3390 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3391 libgloss_dir=arm
3393 arm*-*-linux-gnueabi)
3394 noconfigdirs="$noconfigdirs target-qthreads"
3395 case ${with_newlib} in
3396 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3397 esac
3398 libgloss_dir=arm
3400 arm*-*-symbianelf*)
3401 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3402 libgloss_dir=arm
3404 arm-*-pe*)
3405 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3407 thumb-*-coff)
3408 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3410 thumb-*-elf)
3411 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3413 thumb-*-pe)
3414 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3416 arm-*-riscix*)
3417 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3419 avr-*-*)
3420 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3422 bfin-*-*)
3423 unsupported_languages="$unsupported_languages java"
3424 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3425 if test x${is_cross_compiler} != xno ; then
3426 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3429 c4x-*-* | tic4x-*-*)
3430 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3432 c54x*-*-* | tic54x-*-*)
3433 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3435 cr16-*-*)
3436 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3438 cris-*-* | crisv32-*-*)
3439 unsupported_languages="$unsupported_languages java"
3440 case "${target}" in
3441 *-*-aout)
3442 unsupported_languages="$unsupported_languages fortran"
3443 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3444 *-*-elf)
3445 noconfigdirs="$noconfigdirs target-boehm-gc";;
3446 *-*-linux*)
3447 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3449 unsupported_languages="$unsupported_languages fortran"
3450 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3451 esac
3452 libgloss_dir=cris
3454 crx-*-*)
3455 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3457 d10v-*-*)
3458 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3460 d30v-*-*)
3461 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3463 ep9312-*-elf | ep9312-*-coff)
3464 libgloss_dir=arm
3466 fr30-*-elf*)
3467 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3469 frv-*-*)
3470 noconfigdirs="$noconfigdirs ${libgcj}"
3472 moxie-*-*)
3473 noconfigdirs="$noconfigdirs ${libgcj}"
3474 noconfigdirs="$noconfigdirs gprof"
3476 h8300*-*-*)
3477 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3479 h8500-*-*)
3480 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3482 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3484 hppa*64*-*-linux* | parisc*64*-*-linux*)
3485 # In this case, it's because the hppa64-linux target is for
3486 # the kernel only at this point and has no libc, and thus no
3487 # headers, crt*.o, etc., all of which are needed by these.
3488 noconfigdirs="$noconfigdirs target-zlib"
3490 parisc*-*-linux* | hppa*-*-linux*)
3492 hppa*-*-*elf* | \
3493 hppa*-*-lites* | \
3494 hppa*-*-openbsd* | \
3495 hppa*64*-*-*)
3496 noconfigdirs="$noconfigdirs ${libgcj}"
3498 hppa*-hp-hpux11*)
3499 noconfigdirs="$noconfigdirs ld shellutils"
3501 hppa*-*-pro*)
3502 libgloss_dir=pa
3504 hppa*-*-*)
3505 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3506 # build on HP-UX 10.20.
3507 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3509 i960-*-*)
3510 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3512 ia64*-*-elf*)
3513 # No gdb support yet.
3514 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3516 ia64*-**-hpux*)
3517 # No gdb or ld support yet.
3518 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3520 ia64*-*-*vms*)
3521 # No gdb or ld support yet.
3522 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3524 i370-*-opened*)
3526 i[3456789]86-*-coff | i[3456789]86-*-elf)
3527 noconfigdirs="$noconfigdirs ${libgcj}"
3528 libgloss_dir=i386
3530 i[3456789]86-*-linux*)
3531 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3532 # not build java stuff by default.
3533 case "${target}" in
3534 *-*-*libc1*)
3535 noconfigdirs="$noconfigdirs ${libgcj}";;
3536 esac
3538 # This section makes it possible to build newlib natively on linux.
3539 # If we are using a cross compiler then don't configure newlib.
3540 if test x${is_cross_compiler} != xno ; then
3541 noconfigdirs="$noconfigdirs target-newlib"
3543 noconfigdirs="$noconfigdirs target-libgloss"
3544 # If we are not using a cross compiler, do configure newlib.
3545 # Note however, that newlib will only be configured in this situation
3546 # if the --with-newlib option has been given, because otherwise
3547 # 'target-newlib' will appear in skipdirs.
3549 i[3456789]86-w64-mingw*)
3550 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3552 i[3456789]86-*-mingw*)
3553 target_configdirs="$target_configdirs target-winsup"
3554 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3556 x86_64-*-mingw*)
3557 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3559 *-*-cygwin*)
3560 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3561 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3562 # always build newlib if winsup directory is present.
3563 if test -d "$srcdir/winsup/cygwin"; then
3564 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3565 elif test -d "$srcdir/newlib"; then
3566 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3569 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3570 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3572 i[3456789]86-*-pe)
3573 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3575 i[3456789]86-*-sco3.2v5*)
3576 # The linker does not yet know about weak symbols in COFF,
3577 # and is not configured to handle mixed ELF and COFF.
3578 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3580 i[3456789]86-*-sco*)
3581 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3583 i[3456789]86-*-solaris2*)
3584 noconfigdirs="$noconfigdirs target-libgloss"
3586 i[3456789]86-*-sysv4*)
3587 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3589 i[3456789]86-*-beos*)
3590 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3592 i[3456789]86-*-rdos*)
3593 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3595 m32r-*-*)
3596 noconfigdirs="$noconfigdirs ${libgcj}"
3598 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3599 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3600 libgloss_dir=m68hc11
3602 m68k-*-elf*)
3603 noconfigdirs="$noconfigdirs ${libgcj}"
3605 m68k-*-coff*)
3606 noconfigdirs="$noconfigdirs ${libgcj}"
3608 m68*-*-* | fido-*-*)
3609 libgloss_dir=m68k
3611 mcore-*-pe*)
3612 # The EPOC C++ environment does not support exceptions or rtti,
3613 # and so building libstdc++-v3 tends not to always work.
3614 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3616 mmix-*-*)
3617 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3618 unsupported_languages="$unsupported_languages fortran java"
3620 mn10200-*-*)
3621 noconfigdirs="$noconfigdirs ${libgcj}"
3623 mn10300-*-*)
3624 noconfigdirs="$noconfigdirs ${libgcj}"
3626 mt-*-*)
3627 noconfigdirs="$noconfigdirs sim"
3629 powerpc-*-aix*)
3630 # copied from rs6000-*-* entry
3631 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3633 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3634 target_configdirs="$target_configdirs target-winsup"
3635 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3636 # always build newlib.
3637 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3639 # This is temporary until we can link against shared libraries
3640 powerpcle-*-solaris*)
3641 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3642 libgloss_dir=rs6000
3644 powerpc-*-beos*)
3645 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3647 powerpc-*-eabi)
3648 noconfigdirs="$noconfigdirs ${libgcj}"
3649 libgloss_dir=rs6000
3651 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3652 libgloss_dir=rs6000
3654 rs6000-*-lynxos*)
3655 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3657 rs6000-*-aix*)
3658 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3660 rs6000-*-*)
3661 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3663 m68k-apollo-*)
3664 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3666 microblaze*)
3667 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3669 mips*-sde-elf*)
3670 skipdirs="$skipdirs target-libiberty"
3671 noconfigdirs="$noconfigdirs ${libgcj}"
3672 if test x$with_newlib = xyes; then
3673 noconfigdirs="$noconfigdirs gprof"
3675 libgloss_dir=mips
3677 mips*-*-irix5*)
3678 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3680 mips*-*-irix6*)
3681 # Linking libjava exceeds command-line length limits on at least
3682 # IRIX 6.2, but not on IRIX 6.5.
3683 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3684 # <oldham@codesourcery.com>
3685 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3687 mips*-*-bsd*)
3688 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3690 mips*-*-linux*)
3691 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693 mips*-*-*)
3694 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3695 libgloss_dir=mips
3697 romp-*-*)
3698 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3700 sh-*-* | sh64-*-*)
3701 case "${host}" in
3702 i[3456789]86-*-vsta) ;; # don't add gprof back in
3703 i[3456789]86-*-go32*) ;; # don't add gprof back in
3704 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3705 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3706 esac
3707 case "${target}" in
3708 sh*-*-elf)
3709 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3711 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3712 esac
3714 sparclet-*-aout* | sparc86x-*-*)
3715 libgloss_dir=sparc
3717 sparc-*-elf*)
3718 noconfigdirs="$noconfigdirs ${libgcj}"
3720 sparc64-*-elf*)
3721 noconfigdirs="$noconfigdirs ${libgcj}"
3722 libgloss_dir=sparc
3724 sparclite-*-*)
3725 noconfigdirs="$noconfigdirs ${libgcj}"
3726 libgloss_dir=sparc
3728 sparc-*-sunos4*)
3729 noconfigdirs="$noconfigdirs ${libgcj}"
3730 if test x${is_cross_compiler} != xno ; then
3731 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3732 else
3733 use_gnu_ld=no
3736 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3737 noconfigdirs="$noconfigdirs ${libgcj}"
3739 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3741 tic6x-*-*)
3742 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3744 v810-*-*)
3745 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3747 v850*-*-*)
3748 noconfigdirs="$noconfigdirs ${libgcj}"
3750 vax-*-vms)
3751 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3753 vax-*-*)
3754 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3756 xtensa*-*-*)
3757 noconfigdirs="$noconfigdirs ${libgcj}"
3759 ip2k-*-*)
3760 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3762 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3763 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3765 *-*-lynxos*)
3766 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3768 *-*-*)
3769 noconfigdirs="$noconfigdirs ${libgcj}"
3771 esac
3773 # If we aren't building newlib, then don't build libgloss, since libgloss
3774 # depends upon some newlib header files.
3775 case "${noconfigdirs}" in
3776 *target-libgloss*) ;;
3777 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3778 esac
3780 # Work in distributions that contain no compiler tools, like Autoconf.
3781 tentative_cc=""
3782 host_makefile_frag=/dev/null
3783 if test -d ${srcdir}/config ; then
3784 case "${host}" in
3785 m68k-hp-hpux*)
3786 # Avoid "too much defining" errors from HPUX compiler.
3787 tentative_cc="cc -Wp,-H256000"
3788 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3789 # If it's HP/UX ar, this should be harmless.
3790 RANLIB="ar ts"
3792 m68k-apollo-sysv*)
3793 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3795 m68k-apollo-bsd*)
3796 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3797 # chokes on bfd, the compiler won't let you assign integers to enums, and
3798 # other problems. Defining CC to gcc is a questionable way to say "don't use
3799 # the apollo compiler" (the preferred version of GCC could be called cc,
3800 # or whatever), but I'm not sure leaving CC as cc is any better...
3801 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3802 # Used to have BISON=yacc.
3803 tentative_cc=gcc
3805 m88k-dg-dgux*)
3806 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3808 m88k-harris-cxux*)
3809 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3810 tentative_cc="cc -Xa"
3811 host_makefile_frag="config/mh-cxux"
3813 m88k-motorola-sysv*)
3815 mips*-dec-ultrix*)
3816 tentative_cc="cc -Wf,-XNg1000"
3817 host_makefile_frag="config/mh-decstation"
3819 mips*-nec-sysv4*)
3820 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3821 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3822 host_makefile_frag="config/mh-necv4"
3824 mips*-sgi-irix4*)
3825 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3826 # environment. Also bump switch table size so that cp-parse will
3827 # compile. Bump string length limit so linker builds.
3828 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3830 mips*-*-sysv4*)
3831 host_makefile_frag="config/mh-sysv4"
3833 mips*-*-sysv*)
3834 # This is for a MIPS running RISC/os 4.52C.
3836 # This is needed for GDB, but needs to be in the top-level make because
3837 # if a library is compiled with the bsd headers and gets linked with the
3838 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3839 # a different size).
3840 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3841 # known except to select the sysv environment. Could we use /proc instead?
3842 # These "sysv environments" and "bsd environments" often end up being a pain.
3844 # This is not part of CFLAGS because perhaps not all C compilers have this
3845 # option.
3846 tentative_cc="cc -systype sysv"
3848 i370-ibm-opened*)
3849 tentative_cc="c89"
3851 i[3456789]86-*-sysv5*)
3852 host_makefile_frag="config/mh-sysv5"
3854 i[3456789]86-*-dgux*)
3855 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3856 host_makefile_frag="config/mh-dgux386"
3858 i[3456789]86-ncr-sysv4.3*)
3859 # The MetaWare compiler will generate a copyright message unless you
3860 # turn it off by adding the -Hnocopyr flag.
3861 tentative_cc="cc -Hnocopyr"
3863 i[3456789]86-ncr-sysv4*)
3864 # for an NCR 3000 (i486/SVR4) system.
3865 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3866 # This compiler not only emits obnoxious copyright messages every time
3867 # you run it, but it chokes and dies on a whole bunch of GNU source
3868 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3869 tentative_cc="/usr/ccs/ATT/cc"
3870 host_makefile_frag="config/mh-ncr3000"
3872 i[3456789]86-*-sco3.2v5*)
3874 i[3456789]86-*-sco*)
3875 # The native C compiler botches some simple uses of const. Unfortunately,
3876 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3877 tentative_cc="cc -Dconst="
3878 host_makefile_frag="config/mh-sco"
3880 i[3456789]86-*-udk*)
3881 host_makefile_frag="config/mh-sysv5"
3883 i[3456789]86-*-solaris2*)
3884 host_makefile_frag="config/mh-sysv4"
3886 i[3456789]86-*-msdosdjgpp*)
3887 host_makefile_frag="config/mh-djgpp"
3889 *-cygwin*)
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3892 $as_echo_n "checking to see if cat works as expected... " >&6; }
3893 echo a >cygwin-cat-check
3894 if test `cat cygwin-cat-check` = a ; then
3895 rm cygwin-cat-check
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3897 $as_echo "yes" >&6; }
3898 else
3899 rm cygwin-cat-check
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3902 as_fn_error "The cat command does not ignore carriage return characters.
3903 Please either mount the build directory in binary mode or run the following
3904 commands before running any configure script:
3905 set -o igncr
3906 export SHELLOPTS
3907 " "$LINENO" 5
3910 host_makefile_frag="config/mh-cygwin"
3912 *-mingw*)
3913 host_makefile_frag="config/mh-mingw"
3915 *-interix*)
3916 host_makefile_frag="config/mh-interix"
3918 vax-*-ultrix2*)
3919 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3920 tentative_cc=gcc
3922 *-*-solaris2*)
3923 host_makefile_frag="config/mh-solaris"
3925 m68k-sun-sunos*)
3926 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3927 # without overflowing the jump tables (-J says to use a 32 bit table)
3928 tentative_cc="cc -J"
3930 hppa*-hp-hpux10*)
3931 tentative_cc="cc -Wp,-H256000"
3932 host_makefile_frag="config/mh-pa-hpux10"
3934 hppa*-hp-hpux* | hppa*-*-hiux*)
3935 tentative_cc="cc -Wp,-H256000"
3936 host_makefile_frag="config/mh-pa"
3938 hppa*-*)
3939 host_makefile_frag="config/mh-pa"
3941 *-hp-hpux* | *-*-hiux*)
3942 tentative_cc="cc -Wp,-H256000"
3944 rs6000-*-lynxos*)
3945 # /bin/cc is less than useful for our purposes. Always use GCC
3946 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3947 host_makefile_frag="config/mh-lynxrs6k"
3949 powerpc-*-darwin*)
3950 host_makefile_frag="config/mh-ppc-darwin"
3952 powerpc-*-aix*)
3953 host_makefile_frag="config/mh-ppc-aix"
3955 rs6000-*-aix*)
3956 host_makefile_frag="config/mh-ppc-aix"
3958 *-*-lynxos*)
3959 # /bin/cc is less than useful for our purposes. Always use GCC
3960 tentative_cc="/bin/gcc"
3962 *-*-sysv4*)
3963 host_makefile_frag="config/mh-sysv4"
3965 # This is placed last to prevent interfering with the cases above.
3966 i[3456789]86-*-*)
3967 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3968 host_makefile_frag="config/mh-x86omitfp"
3970 esac
3973 # If we aren't going to be using gcc, see if we can extract a definition
3974 # of CC from the fragment.
3975 # Actually, use the 'pre-extracted' version above.
3976 if test -z "${CC}" && test "${build}" = "${host}" ; then
3977 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3978 found=
3979 for dir in $PATH; do
3980 test -z "$dir" && dir=.
3981 if test -f $dir/gcc; then
3982 found=yes
3983 break
3985 done
3986 IFS="$save_ifs"
3987 if test -z "${found}" && test -n "${tentative_cc}" ; then
3988 CC=$tentative_cc
3992 if test "${build}" != "${host}" ; then
3993 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3994 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3995 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3996 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3997 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3998 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3999 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4000 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4001 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4002 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4003 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4004 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4005 else
4006 AR_FOR_BUILD="\$(AR)"
4007 AS_FOR_BUILD="\$(AS)"
4008 CC_FOR_BUILD="\$(CC)"
4009 CXX_FOR_BUILD="\$(CXX)"
4010 GCJ_FOR_BUILD="\$(GCJ)"
4011 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4012 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4013 LD_FOR_BUILD="\$(LD)"
4014 NM_FOR_BUILD="\$(NM)"
4015 RANLIB_FOR_BUILD="\$(RANLIB)"
4016 WINDRES_FOR_BUILD="\$(WINDRES)"
4017 WINDMC_FOR_BUILD="\$(WINDMC)"
4020 ac_ext=c
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025 if test -n "$ac_tool_prefix"; then
4026 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4027 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if test "${ac_cv_prog_CC+set}" = set; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 if test -n "$CC"; then
4034 ac_cv_prog_CC="$CC" # Let the user override the test.
4035 else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4043 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 break 2
4047 done
4048 done
4049 IFS=$as_save_IFS
4053 CC=$ac_cv_prog_CC
4054 if test -n "$CC"; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056 $as_echo "$CC" >&6; }
4057 else
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4064 if test -z "$ac_cv_prog_CC"; then
4065 ac_ct_CC=$CC
4066 # Extract the first word of "gcc", so it can be a program name with args.
4067 set dummy gcc; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 if test -n "$ac_ct_CC"; then
4074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4083 ac_cv_prog_ac_ct_CC="gcc"
4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 break 2
4087 done
4088 done
4089 IFS=$as_save_IFS
4093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4094 if test -n "$ac_ct_CC"; then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4096 $as_echo "$ac_ct_CC" >&6; }
4097 else
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4102 if test "x$ac_ct_CC" = x; then
4103 CC=""
4104 else
4105 case $cross_compiling:$ac_tool_warned in
4106 yes:)
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109 ac_tool_warned=yes ;;
4110 esac
4111 CC=$ac_ct_CC
4113 else
4114 CC="$ac_cv_prog_CC"
4117 if test -z "$CC"; then
4118 if test -n "$ac_tool_prefix"; then
4119 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}cc; ac_word=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if test "${ac_cv_prog_CC+set}" = set; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 if test -n "$CC"; then
4127 ac_cv_prog_CC="$CC" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4136 ac_cv_prog_CC="${ac_tool_prefix}cc"
4137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 break 2
4140 done
4141 done
4142 IFS=$as_save_IFS
4146 CC=$ac_cv_prog_CC
4147 if test -n "$CC"; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4149 $as_echo "$CC" >&6; }
4150 else
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4158 if test -z "$CC"; then
4159 # Extract the first word of "cc", so it can be a program name with args.
4160 set dummy cc; ac_word=$2
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 $as_echo_n "checking for $ac_word... " >&6; }
4163 if test "${ac_cv_prog_CC+set}" = set; then :
4164 $as_echo_n "(cached) " >&6
4165 else
4166 if test -n "$CC"; then
4167 ac_cv_prog_CC="$CC" # Let the user override the test.
4168 else
4169 ac_prog_rejected=no
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4178 ac_prog_rejected=yes
4179 continue
4181 ac_cv_prog_CC="cc"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4185 done
4186 done
4187 IFS=$as_save_IFS
4189 if test $ac_prog_rejected = yes; then
4190 # We found a bogon in the path, so make sure we never use it.
4191 set dummy $ac_cv_prog_CC
4192 shift
4193 if test $# != 0; then
4194 # We chose a different compiler from the bogus one.
4195 # However, it has the same basename, so the bogon will be chosen
4196 # first if we set CC to just the basename; use the full file name.
4197 shift
4198 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4203 CC=$ac_cv_prog_CC
4204 if test -n "$CC"; then
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4206 $as_echo "$CC" >&6; }
4207 else
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4214 if test -z "$CC"; then
4215 if test -n "$ac_tool_prefix"; then
4216 for ac_prog in cl.exe
4218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if test "${ac_cv_prog_CC+set}" = set; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 if test -n "$CC"; then
4226 ac_cv_prog_CC="$CC" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4239 done
4240 done
4241 IFS=$as_save_IFS
4245 CC=$ac_cv_prog_CC
4246 if test -n "$CC"; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4248 $as_echo "$CC" >&6; }
4249 else
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4255 test -n "$CC" && break
4256 done
4258 if test -z "$CC"; then
4259 ac_ct_CC=$CC
4260 for ac_prog in cl.exe
4262 # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy $ac_prog; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if test -n "$ac_ct_CC"; then
4270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_prog_ac_ct_CC="$ac_prog"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4283 done
4284 done
4285 IFS=$as_save_IFS
4289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4290 if test -n "$ac_ct_CC"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4292 $as_echo "$ac_ct_CC" >&6; }
4293 else
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4299 test -n "$ac_ct_CC" && break
4300 done
4302 if test "x$ac_ct_CC" = x; then
4303 CC=""
4304 else
4305 case $cross_compiling:$ac_tool_warned in
4306 yes:)
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4309 ac_tool_warned=yes ;;
4310 esac
4311 CC=$ac_ct_CC
4318 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error "no acceptable C compiler found in \$PATH
4321 See \`config.log' for more details." "$LINENO" 5; }
4323 # Provide some information about the compiler.
4324 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4325 set X $ac_compile
4326 ac_compiler=$2
4327 for ac_option in --version -v -V -qversion; do
4328 { { ac_try="$ac_compiler $ac_option >&5"
4329 case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332 esac
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4336 ac_status=$?
4337 if test -s conftest.err; then
4338 sed '10a\
4339 ... rest of stderr output deleted ...
4340 10q' conftest.err >conftest.er1
4341 cat conftest.er1 >&5
4342 rm -f conftest.er1 conftest.err
4344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345 test $ac_status = 0; }
4346 done
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4352 main ()
4356 return 0;
4358 _ACEOF
4359 ac_clean_files_save=$ac_clean_files
4360 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4361 # Try to create an executable without -o first, disregard a.out.
4362 # It will help us diagnose broken compilers, and finding out an intuition
4363 # of exeext.
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4365 $as_echo_n "checking for C compiler default output file name... " >&6; }
4366 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4368 # The possible output files:
4369 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4371 ac_rmfiles=
4372 for ac_file in $ac_files
4374 case $ac_file in
4375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4376 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4377 esac
4378 done
4379 rm -f $ac_rmfiles
4381 if { { ac_try="$ac_link_default"
4382 case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385 esac
4386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 $as_echo "$ac_try_echo"; } >&5
4388 (eval "$ac_link_default") 2>&5
4389 ac_status=$?
4390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391 test $ac_status = 0; }; then :
4392 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4393 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4394 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4395 # so that the user can short-circuit this test for compilers unknown to
4396 # Autoconf.
4397 for ac_file in $ac_files ''
4399 test -f "$ac_file" || continue
4400 case $ac_file in
4401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4403 [ab].out )
4404 # We found the default executable, but exeext='' is most
4405 # certainly right.
4406 break;;
4407 *.* )
4408 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4409 then :; else
4410 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4412 # We set ac_cv_exeext here because the later test for it is not
4413 # safe: cross compilers may not add the suffix if given an `-o'
4414 # argument, so we may need to know it at that point already.
4415 # Even if this section looks crufty: it has the advantage of
4416 # actually working.
4417 break;;
4419 break;;
4420 esac
4421 done
4422 test "$ac_cv_exeext" = no && ac_cv_exeext=
4424 else
4425 ac_file=''
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4428 $as_echo "$ac_file" >&6; }
4429 if test -z "$ac_file"; then :
4430 $as_echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 { as_fn_set_status 77
4436 as_fn_error "C compiler cannot create executables
4437 See \`config.log' for more details." "$LINENO" 5; }; }
4439 ac_exeext=$ac_cv_exeext
4441 # Check that the compiler produces executables we can run. If not, either
4442 # the compiler is broken, or we cross compile.
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4444 $as_echo_n "checking whether the C compiler works... " >&6; }
4445 # If not cross compiling, check that we can run a simple program.
4446 if test "$cross_compiling" != yes; then
4447 if { ac_try='./$ac_file'
4448 { { case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451 esac
4452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453 $as_echo "$ac_try_echo"; } >&5
4454 (eval "$ac_try") 2>&5
4455 ac_status=$?
4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }; }; then
4458 cross_compiling=no
4459 else
4460 if test "$cross_compiling" = maybe; then
4461 cross_compiling=yes
4462 else
4463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465 as_fn_error "cannot run C compiled programs.
4466 If you meant to cross compile, use \`--host'.
4467 See \`config.log' for more details." "$LINENO" 5; }
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4472 $as_echo "yes" >&6; }
4474 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4475 ac_clean_files=$ac_clean_files_save
4476 # Check that the compiler produces executables we can run. If not, either
4477 # the compiler is broken, or we cross compile.
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4479 $as_echo_n "checking whether we are cross compiling... " >&6; }
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4481 $as_echo "$cross_compiling" >&6; }
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4484 $as_echo_n "checking for suffix of executables... " >&6; }
4485 if { { ac_try="$ac_link"
4486 case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489 esac
4490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4491 $as_echo "$ac_try_echo"; } >&5
4492 (eval "$ac_link") 2>&5
4493 ac_status=$?
4494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4495 test $ac_status = 0; }; then :
4496 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4497 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4498 # work properly (i.e., refer to `conftest.exe'), while it won't with
4499 # `rm'.
4500 for ac_file in conftest.exe conftest conftest.*; do
4501 test -f "$ac_file" || continue
4502 case $ac_file in
4503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4504 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4505 break;;
4506 * ) break;;
4507 esac
4508 done
4509 else
4510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4512 as_fn_error "cannot compute suffix of executables: cannot compile and link
4513 See \`config.log' for more details." "$LINENO" 5; }
4515 rm -f conftest$ac_cv_exeext
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4517 $as_echo "$ac_cv_exeext" >&6; }
4519 rm -f conftest.$ac_ext
4520 EXEEXT=$ac_cv_exeext
4521 ac_exeext=$EXEEXT
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4523 $as_echo_n "checking for suffix of object files... " >&6; }
4524 if test "${ac_cv_objext+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4531 main ()
4535 return 0;
4537 _ACEOF
4538 rm -f conftest.o conftest.obj
4539 if { { ac_try="$ac_compile"
4540 case "(($ac_try" in
4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4543 esac
4544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4545 $as_echo "$ac_try_echo"; } >&5
4546 (eval "$ac_compile") 2>&5
4547 ac_status=$?
4548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4549 test $ac_status = 0; }; then :
4550 for ac_file in conftest.o conftest.obj conftest.*; do
4551 test -f "$ac_file" || continue;
4552 case $ac_file in
4553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4554 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4555 break;;
4556 esac
4557 done
4558 else
4559 $as_echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4564 as_fn_error "cannot compute suffix of object files: cannot compile
4565 See \`config.log' for more details." "$LINENO" 5; }
4567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4570 $as_echo "$ac_cv_objext" >&6; }
4571 OBJEXT=$ac_cv_objext
4572 ac_objext=$OBJEXT
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4574 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4575 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4582 main ()
4584 #ifndef __GNUC__
4585 choke me
4586 #endif
4589 return 0;
4591 _ACEOF
4592 if ac_fn_c_try_compile "$LINENO"; then :
4593 ac_compiler_gnu=yes
4594 else
4595 ac_compiler_gnu=no
4597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4602 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4603 if test $ac_compiler_gnu = yes; then
4604 GCC=yes
4605 else
4606 GCC=
4608 ac_test_CFLAGS=${CFLAGS+set}
4609 ac_save_CFLAGS=$CFLAGS
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4611 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4612 if test "${ac_cv_prog_cc_g+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 ac_save_c_werror_flag=$ac_c_werror_flag
4616 ac_c_werror_flag=yes
4617 ac_cv_prog_cc_g=no
4618 CFLAGS="-g"
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4623 main ()
4627 return 0;
4629 _ACEOF
4630 if ac_fn_c_try_compile "$LINENO"; then :
4631 ac_cv_prog_cc_g=yes
4632 else
4633 CFLAGS=""
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4638 main ()
4642 return 0;
4644 _ACEOF
4645 if ac_fn_c_try_compile "$LINENO"; then :
4647 else
4648 ac_c_werror_flag=$ac_save_c_werror_flag
4649 CFLAGS="-g"
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4654 main ()
4658 return 0;
4660 _ACEOF
4661 if ac_fn_c_try_compile "$LINENO"; then :
4662 ac_cv_prog_cc_g=yes
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 ac_c_werror_flag=$ac_save_c_werror_flag
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4672 $as_echo "$ac_cv_prog_cc_g" >&6; }
4673 if test "$ac_test_CFLAGS" = set; then
4674 CFLAGS=$ac_save_CFLAGS
4675 elif test $ac_cv_prog_cc_g = yes; then
4676 if test "$GCC" = yes; then
4677 CFLAGS="-g -O2"
4678 else
4679 CFLAGS="-g"
4681 else
4682 if test "$GCC" = yes; then
4683 CFLAGS="-O2"
4684 else
4685 CFLAGS=
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4689 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4690 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 ac_cv_prog_cc_c89=no
4694 ac_save_CC=$CC
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 #include <stdarg.h>
4698 #include <stdio.h>
4699 #include <sys/types.h>
4700 #include <sys/stat.h>
4701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4702 struct buf { int x; };
4703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4704 static char *e (p, i)
4705 char **p;
4706 int i;
4708 return p[i];
4710 static char *f (char * (*g) (char **, int), char **p, ...)
4712 char *s;
4713 va_list v;
4714 va_start (v,p);
4715 s = g (p, va_arg (v,int));
4716 va_end (v);
4717 return s;
4720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4721 function prototypes and stuff, but not '\xHH' hex character constants.
4722 These don't provoke an error unfortunately, instead are silently treated
4723 as 'x'. The following induces an error, until -std is added to get
4724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4725 array size at least. It's necessary to write '\x00'==0 to get something
4726 that's true only with -std. */
4727 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4730 inside strings and character constants. */
4731 #define FOO(x) 'x'
4732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4734 int test (int i, double x);
4735 struct s1 {int (*f) (int a);};
4736 struct s2 {int (*f) (double a);};
4737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4738 int argc;
4739 char **argv;
4741 main ()
4743 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4745 return 0;
4747 _ACEOF
4748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4751 CC="$ac_save_CC $ac_arg"
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_cv_prog_cc_c89=$ac_arg
4755 rm -f core conftest.err conftest.$ac_objext
4756 test "x$ac_cv_prog_cc_c89" != "xno" && break
4757 done
4758 rm -f conftest.$ac_ext
4759 CC=$ac_save_CC
4762 # AC_CACHE_VAL
4763 case "x$ac_cv_prog_cc_c89" in
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4766 $as_echo "none needed" >&6; } ;;
4767 xno)
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4769 $as_echo "unsupported" >&6; } ;;
4771 CC="$CC $ac_cv_prog_cc_c89"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4773 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4774 esac
4775 if test "x$ac_cv_prog_cc_c89" != xno; then :
4779 ac_ext=c
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4785 ac_ext=cpp
4786 ac_cpp='$CXXCPP $CPPFLAGS'
4787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4790 if test -z "$CXX"; then
4791 if test -n "$CCC"; then
4792 CXX=$CCC
4793 else
4794 if test -n "$ac_tool_prefix"; then
4795 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if test "${ac_cv_prog_CXX+set}" = set; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 if test -n "$CXX"; then
4805 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4806 else
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4818 done
4819 done
4820 IFS=$as_save_IFS
4824 CXX=$ac_cv_prog_CXX
4825 if test -n "$CXX"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4827 $as_echo "$CXX" >&6; }
4828 else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4834 test -n "$CXX" && break
4835 done
4837 if test -z "$CXX"; then
4838 ac_ct_CXX=$CXX
4839 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4841 # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 if test -n "$ac_ct_CXX"; then
4849 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_prog_ac_ct_CXX="$ac_prog"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 break 2
4862 done
4863 done
4864 IFS=$as_save_IFS
4868 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4869 if test -n "$ac_ct_CXX"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4871 $as_echo "$ac_ct_CXX" >&6; }
4872 else
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4878 test -n "$ac_ct_CXX" && break
4879 done
4881 if test "x$ac_ct_CXX" = x; then
4882 CXX="g++"
4883 else
4884 case $cross_compiling:$ac_tool_warned in
4885 yes:)
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888 ac_tool_warned=yes ;;
4889 esac
4890 CXX=$ac_ct_CXX
4896 # Provide some information about the compiler.
4897 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4898 set X $ac_compile
4899 ac_compiler=$2
4900 for ac_option in --version -v -V -qversion; do
4901 { { ac_try="$ac_compiler $ac_option >&5"
4902 case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4907 $as_echo "$ac_try_echo"; } >&5
4908 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4909 ac_status=$?
4910 if test -s conftest.err; then
4911 sed '10a\
4912 ... rest of stderr output deleted ...
4913 10q' conftest.err >conftest.er1
4914 cat conftest.er1 >&5
4915 rm -f conftest.er1 conftest.err
4917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }
4919 done
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4922 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4923 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4930 main ()
4932 #ifndef __GNUC__
4933 choke me
4934 #endif
4937 return 0;
4939 _ACEOF
4940 if ac_fn_cxx_try_compile "$LINENO"; then :
4941 ac_compiler_gnu=yes
4942 else
4943 ac_compiler_gnu=no
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4950 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4951 if test $ac_compiler_gnu = yes; then
4952 GXX=yes
4953 else
4954 GXX=
4956 ac_test_CXXFLAGS=${CXXFLAGS+set}
4957 ac_save_CXXFLAGS=$CXXFLAGS
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4959 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4960 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4964 ac_cxx_werror_flag=yes
4965 ac_cv_prog_cxx_g=no
4966 CXXFLAGS="-g"
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4971 main ()
4975 return 0;
4977 _ACEOF
4978 if ac_fn_cxx_try_compile "$LINENO"; then :
4979 ac_cv_prog_cxx_g=yes
4980 else
4981 CXXFLAGS=""
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4986 main ()
4990 return 0;
4992 _ACEOF
4993 if ac_fn_cxx_try_compile "$LINENO"; then :
4995 else
4996 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4997 CXXFLAGS="-g"
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5002 main ()
5006 return 0;
5008 _ACEOF
5009 if ac_fn_cxx_try_compile "$LINENO"; then :
5010 ac_cv_prog_cxx_g=yes
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5020 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5021 if test "$ac_test_CXXFLAGS" = set; then
5022 CXXFLAGS=$ac_save_CXXFLAGS
5023 elif test $ac_cv_prog_cxx_g = yes; then
5024 if test "$GXX" = yes; then
5025 CXXFLAGS="-g -O2"
5026 else
5027 CXXFLAGS="-g"
5029 else
5030 if test "$GXX" = yes; then
5031 CXXFLAGS="-O2"
5032 else
5033 CXXFLAGS=
5036 ac_ext=c
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043 # We must set the default linker to the linker used by gcc for the correct
5044 # operation of libtool. If LD is not defined and we are using gcc, try to
5045 # set the LD default to the ld used by gcc.
5046 if test -z "$LD"; then
5047 if test "$GCC" = yes; then
5048 case $build in
5049 *-*-mingw*)
5050 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5052 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5053 esac
5054 case $gcc_prog_ld in
5055 # Accept absolute paths.
5056 [\\/]* | [A-Za-z]:[\\/]*)
5057 LD="$gcc_prog_ld" ;;
5058 esac
5065 if test -n "$ac_tool_prefix"; then
5066 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5067 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 if test -n "$GNATBIND"; then
5074 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5075 else
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 break 2
5087 done
5088 done
5089 IFS=$as_save_IFS
5093 GNATBIND=$ac_cv_prog_GNATBIND
5094 if test -n "$GNATBIND"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5096 $as_echo "$GNATBIND" >&6; }
5097 else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5104 if test -z "$ac_cv_prog_GNATBIND"; then
5105 ac_ct_GNATBIND=$GNATBIND
5106 # Extract the first word of "gnatbind", so it can be a program name with args.
5107 set dummy gnatbind; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 if test -n "$ac_ct_GNATBIND"; then
5114 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5127 done
5128 done
5129 IFS=$as_save_IFS
5133 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5134 if test -n "$ac_ct_GNATBIND"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5136 $as_echo "$ac_ct_GNATBIND" >&6; }
5137 else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5142 if test "x$ac_ct_GNATBIND" = x; then
5143 GNATBIND="no"
5144 else
5145 case $cross_compiling:$ac_tool_warned in
5146 yes:)
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5149 ac_tool_warned=yes ;;
5150 esac
5151 GNATBIND=$ac_ct_GNATBIND
5153 else
5154 GNATBIND="$ac_cv_prog_GNATBIND"
5157 if test -n "$ac_tool_prefix"; then
5158 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5159 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 if test -n "$GNATMAKE"; then
5166 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5179 done
5180 done
5181 IFS=$as_save_IFS
5185 GNATMAKE=$ac_cv_prog_GNATMAKE
5186 if test -n "$GNATMAKE"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5188 $as_echo "$GNATMAKE" >&6; }
5189 else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5196 if test -z "$ac_cv_prog_GNATMAKE"; then
5197 ac_ct_GNATMAKE=$GNATMAKE
5198 # Extract the first word of "gnatmake", so it can be a program name with args.
5199 set dummy gnatmake; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 if test -n "$ac_ct_GNATMAKE"; then
5206 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5219 done
5220 done
5221 IFS=$as_save_IFS
5225 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5226 if test -n "$ac_ct_GNATMAKE"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5228 $as_echo "$ac_ct_GNATMAKE" >&6; }
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5234 if test "x$ac_ct_GNATMAKE" = x; then
5235 GNATMAKE="no"
5236 else
5237 case $cross_compiling:$ac_tool_warned in
5238 yes:)
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5241 ac_tool_warned=yes ;;
5242 esac
5243 GNATMAKE=$ac_ct_GNATMAKE
5245 else
5246 GNATMAKE="$ac_cv_prog_GNATMAKE"
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5250 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5251 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 cat >conftest.adb <<EOF
5255 procedure conftest is begin null; end conftest;
5257 acx_cv_cc_gcc_supports_ada=no
5258 # There is a bug in old released versions of GCC which causes the
5259 # driver to exit successfully when the appropriate language module
5260 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5261 # Therefore we must check for the error message as well as an
5262 # unsuccessful exit.
5263 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5264 # given a .adb file, but produce no object file. So we must check
5265 # if an object file was really produced to guard against this.
5266 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5267 if test x"$errors" = x && test -f conftest.$ac_objext; then
5268 acx_cv_cc_gcc_supports_ada=yes
5270 rm -f conftest.*
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5273 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5275 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5276 have_gnat=yes
5277 else
5278 have_gnat=no
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5282 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5283 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5286 echo abfoo >t1
5287 echo cdfoo >t2
5288 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5289 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5290 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5292 else
5293 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5296 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5297 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5299 else
5300 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5303 rm t1 t2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5307 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5308 do_compare="$gcc_cv_prog_cmp_skip"
5312 # See if we are building gcc with C++.
5313 # Check whether --enable-build-with-cxx was given.
5314 if test "${enable_build_with_cxx+set}" = set; then :
5315 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5316 else
5317 ENABLE_BUILD_WITH_CXX=no
5321 # Used for setting $lt_cv_objdir
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5323 $as_echo_n "checking for objdir... " >&6; }
5324 if test "${lt_cv_objdir+set}" = set; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 rm -f .libs 2>/dev/null
5328 mkdir .libs 2>/dev/null
5329 if test -d .libs; then
5330 lt_cv_objdir=.libs
5331 else
5332 # MS-DOS does not allow filenames that begin with a dot.
5333 lt_cv_objdir=_libs
5335 rmdir .libs 2>/dev/null
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5338 $as_echo "$lt_cv_objdir" >&6; }
5339 objdir=$lt_cv_objdir
5345 cat >>confdefs.h <<_ACEOF
5346 #define LT_OBJDIR "$lt_cv_objdir/"
5347 _ACEOF
5351 # Check for GMP, MPFR and MPC
5352 gmplibs="-lmpc -lmpfr -lgmp"
5353 gmpinc=
5354 have_gmp=no
5356 # Specify a location for mpc
5357 # check for this first so it ends up on the link line before mpfr.
5359 # Check whether --with-mpc was given.
5360 if test "${with_mpc+set}" = set; then :
5361 withval=$with_mpc;
5365 # Check whether --with-mpc_include was given.
5366 if test "${with_mpc_include+set}" = set; then :
5367 withval=$with_mpc_include;
5371 # Check whether --with-mpc_lib was given.
5372 if test "${with_mpc_lib+set}" = set; then :
5373 withval=$with_mpc_lib;
5377 if test "x$with_mpc" != x; then
5378 gmplibs="-L$with_mpc/lib $gmplibs"
5379 gmpinc="-I$with_mpc/include $gmpinc"
5381 if test "x$with_mpc_include" != x; then
5382 gmpinc="-I$with_mpc_include $gmpinc"
5384 if test "x$with_mpc_lib" != x; then
5385 gmplibs="-L$with_mpc_lib $gmplibs"
5387 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5388 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5389 gmpinc='-I$$s/mpc/src '"$gmpinc"
5390 # Do not test the mpc version. Assume that it is sufficient, since
5391 # it is in the source tree, and the library has not been built yet
5392 # but it would be included on the link line in the version check below
5393 # hence making the test fail.
5394 have_gmp=yes
5397 # Specify a location for mpfr
5398 # check for this first so it ends up on the link line before gmp.
5400 # Check whether --with-mpfr-dir was given.
5401 if test "${with_mpfr_dir+set}" = set; then :
5402 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5403 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5408 # Check whether --with-mpfr was given.
5409 if test "${with_mpfr+set}" = set; then :
5410 withval=$with_mpfr;
5414 # Check whether --with-mpfr_include was given.
5415 if test "${with_mpfr_include+set}" = set; then :
5416 withval=$with_mpfr_include;
5420 # Check whether --with-mpfr_lib was given.
5421 if test "${with_mpfr_lib+set}" = set; then :
5422 withval=$with_mpfr_lib;
5426 if test "x$with_mpfr" != x; then
5427 gmplibs="-L$with_mpfr/lib $gmplibs"
5428 gmpinc="-I$with_mpfr/include $gmpinc"
5430 if test "x$with_mpfr_include" != x; then
5431 gmpinc="-I$with_mpfr_include $gmpinc"
5433 if test "x$with_mpfr_lib" != x; then
5434 gmplibs="-L$with_mpfr_lib $gmplibs"
5436 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5437 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5438 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5439 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5440 # Do not test the mpfr version. Assume that it is sufficient, since
5441 # it is in the source tree, and the library has not been built yet
5442 # but it would be included on the link line in the version check below
5443 # hence making the test fail.
5444 have_gmp=yes
5447 # Specify a location for gmp
5449 # Check whether --with-gmp-dir was given.
5450 if test "${with_gmp_dir+set}" = set; then :
5451 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5452 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5457 # Check whether --with-gmp was given.
5458 if test "${with_gmp+set}" = set; then :
5459 withval=$with_gmp;
5463 # Check whether --with-gmp_include was given.
5464 if test "${with_gmp_include+set}" = set; then :
5465 withval=$with_gmp_include;
5469 # Check whether --with-gmp_lib was given.
5470 if test "${with_gmp_lib+set}" = set; then :
5471 withval=$with_gmp_lib;
5476 if test "x$with_gmp" != x; then
5477 gmplibs="-L$with_gmp/lib $gmplibs"
5478 gmpinc="-I$with_gmp/include $gmpinc"
5480 if test "x$with_gmp_include" != x; then
5481 gmpinc="-I$with_gmp_include $gmpinc"
5483 if test "x$with_gmp_lib" != x; then
5484 gmplibs="-L$with_gmp_lib $gmplibs"
5486 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5487 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5488 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5489 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5490 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5491 # Do not test the gmp version. Assume that it is sufficient, since
5492 # it is in the source tree, and the library has not been built yet
5493 # but it would be included on the link line in the version check below
5494 # hence making the test fail.
5495 have_gmp=yes
5498 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5499 have_gmp=yes
5500 saved_CFLAGS="$CFLAGS"
5501 CFLAGS="$CFLAGS $gmpinc"
5502 # Check for the recommended and required versions of GMP.
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5504 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508 #include "gmp.h"
5510 main ()
5513 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5514 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5515 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5516 choke me
5517 #endif
5520 return 0;
5522 _ACEOF
5523 if ac_fn_c_try_compile "$LINENO"; then :
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5526 #include <gmp.h>
5528 main ()
5531 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5532 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5533 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5534 choke me
5535 #endif
5538 return 0;
5540 _ACEOF
5541 if ac_fn_c_try_compile "$LINENO"; then :
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5543 $as_echo "yes" >&6; }
5544 else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5546 $as_echo "buggy but acceptable" >&6; }
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }; have_gmp=no
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 # If we have GMP, check the MPFR version.
5556 if test x"$have_gmp" = xyes; then
5557 # Check for the recommended and required versions of MPFR.
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5559 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 #include <gmp.h>
5563 #include <mpfr.h>
5565 main ()
5568 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5569 choke me
5570 #endif
5573 return 0;
5575 _ACEOF
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 #include <gmp.h>
5580 #include <mpfr.h>
5582 main ()
5585 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5586 choke me
5587 #endif
5590 return 0;
5592 _ACEOF
5593 if ac_fn_c_try_compile "$LINENO"; then :
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5595 $as_echo "yes" >&6; }
5596 else
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5598 $as_echo "buggy but acceptable" >&6; }
5600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601 else
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }; have_gmp=no
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 # Check for the MPC header version.
5609 if test x"$have_gmp" = xyes ; then
5610 # Check for the recommended and required versions of MPC.
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5612 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 #include <mpc.h>
5617 main ()
5620 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5621 choke me
5622 #endif
5625 return 0;
5627 _ACEOF
5628 if ac_fn_c_try_compile "$LINENO"; then :
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5631 #include <mpc.h>
5633 main ()
5636 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5637 choke me
5638 #endif
5641 return 0;
5643 _ACEOF
5644 if ac_fn_c_try_compile "$LINENO"; then :
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5646 $as_echo "yes" >&6; }
5647 else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5649 $as_echo "buggy but acceptable" >&6; }
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }; have_gmp=no
5656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 # Now check the MPFR library.
5660 if test x"$have_gmp" = xyes; then
5661 saved_LIBS="$LIBS"
5662 LIBS="$LIBS $gmplibs"
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5664 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #include <mpc.h>
5669 main ()
5672 mpfr_t n;
5673 mpfr_t x;
5674 mpc_t c;
5675 int t;
5676 mpfr_init (n);
5677 mpfr_init (x);
5678 mpfr_atan2 (n, n, x, GMP_RNDN);
5679 mpfr_erfc (n, x, GMP_RNDN);
5680 mpfr_subnormalize (x, t, GMP_RNDN);
5681 mpfr_clear(n);
5682 mpfr_clear(x);
5683 mpc_init2 (c, 53);
5684 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5685 mpc_cosh (c, c, MPC_RNDNN);
5686 mpc_pow (c, c, c, MPC_RNDNN);
5687 mpc_acosh (c, c, MPC_RNDNN);
5688 mpc_clear (c);
5691 return 0;
5693 _ACEOF
5694 if ac_fn_c_try_link "$LINENO"; then :
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696 $as_echo "yes" >&6; }
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }; have_gmp=no
5701 rm -f core conftest.err conftest.$ac_objext \
5702 conftest$ac_exeext conftest.$ac_ext
5703 LIBS="$saved_LIBS"
5706 CFLAGS="$saved_CFLAGS"
5708 # The library versions listed in the error message below should match
5709 # the HARD-minimums enforced above.
5710 if test x$have_gmp != xyes; then
5711 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5712 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5713 their locations. Source code for these libraries can be found at
5714 their respective hosting sites as well as at
5715 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5716 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5717 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5718 make sure that you have installed both the libraries and the header
5719 files. They may be located in separate packages." "$LINENO" 5
5723 # Flags needed for both GMP, MPFR and/or MPC.
5730 # Allow host libstdc++ to be specified for static linking with PPL.
5732 # Check whether --with-host-libstdcxx was given.
5733 if test "${with_host_libstdcxx+set}" = set; then :
5734 withval=$with_host_libstdcxx;
5738 case $with_host_libstdcxx in
5739 no|yes)
5740 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5742 esac
5744 # Linker flags to use for stage1 or when not boostrapping.
5746 # Check whether --with-stage1-ldflags was given.
5747 if test "${with_stage1_ldflags+set}" = set; then :
5748 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5749 stage1_ldflags=
5750 else
5751 stage1_ldflags=$withval
5753 else
5754 stage1_ldflags=
5759 # Libraries to use for stage1 or when not bootstrapping.
5761 # Check whether --with-stage1-libs was given.
5762 if test "${with_stage1_libs+set}" = set; then :
5763 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5764 stage1_libs=
5765 else
5766 stage1_libs=$withval
5768 else
5769 stage1_libs=$with_host_libstdcxx
5774 # Libraries to use for stage2 and later builds. This defaults to the
5775 # argument passed to --with-host-libstdcxx.
5777 # Check whether --with-boot-libs was given.
5778 if test "${with_boot_libs+set}" = set; then :
5779 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5780 poststage1_libs=
5781 else
5782 poststage1_libs=$withval
5784 else
5785 poststage1_libs=$with_host_libstdcxx
5790 # Linker flags to use for stage2 and later builds.
5792 # Check whether --with-boot-ldflags was given.
5793 if test "${with_boot_ldflags+set}" = set; then :
5794 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5795 poststage1_ldflags=
5796 else
5797 poststage1_ldflags=$withval
5799 else
5800 poststage1_ldflags=
5801 # With --enable-build-with-cxx, default to linking libstdc++ and
5802 # libgcc statically. But if the user explicitly specified the
5803 # libraries to use, trust that they are doing what they want.
5804 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5805 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5811 # Check for PPL
5812 ppllibs=" -lppl_c -lppl -lgmpxx"
5813 pplinc=
5816 # Check whether --with-ppl was given.
5817 if test "${with_ppl+set}" = set; then :
5818 withval=$with_ppl;
5822 # Check whether --with-ppl_include was given.
5823 if test "${with_ppl_include+set}" = set; then :
5824 withval=$with_ppl_include;
5828 # Check whether --with-ppl_lib was given.
5829 if test "${with_ppl_lib+set}" = set; then :
5830 withval=$with_ppl_lib;
5834 case $with_ppl in
5836 ppllibs=
5838 "" | yes)
5841 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5842 pplinc="-I$with_ppl/include $pplinc"
5844 esac
5845 if test "x$with_ppl_include" != x; then
5846 pplinc="-I$with_ppl_include $pplinc"
5848 if test "x$with_ppl_lib" != x; then
5849 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5851 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5852 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5853 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5854 enable_ppl_version_check=no
5857 # Check whether --enable-ppl-version-check was given.
5858 if test "${enable_ppl_version_check+set}" = set; then :
5859 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5860 else
5861 ENABLE_PPL_CHECK=yes
5865 if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5866 saved_CFLAGS="$CFLAGS"
5867 CFLAGS="$CFLAGS $pplinc $gmpinc"
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5869 $as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h. */
5872 #include "ppl_c.h"
5874 main ()
5877 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5878 choke me
5879 #endif
5882 return 0;
5884 _ACEOF
5885 if ac_fn_c_try_compile "$LINENO"; then :
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5887 $as_echo "yes" >&6; }
5888 else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893 CFLAGS="$saved_CFLAGS"
5896 # Flags needed for PPL
5901 # Check for CLOOG
5902 clooglibs=" -lcloog "
5903 clooginc=" -DCLOOG_PPL_BACKEND "
5906 # Check whether --with-cloog was given.
5907 if test "${with_cloog+set}" = set; then :
5908 withval=$with_cloog;
5912 # Check whether --with-cloog_include was given.
5913 if test "${with_cloog_include+set}" = set; then :
5914 withval=$with_cloog_include;
5918 # Check whether --with-cloog_lib was given.
5919 if test "${with_cloog_lib+set}" = set; then :
5920 withval=$with_cloog_lib;
5924 if test "x$with_ppl" = "xno"; then
5925 with_cloog=no
5928 case $with_cloog in
5930 clooglibs=
5931 clooginc=
5933 "" | yes)
5936 clooglibs="-L$with_cloog/lib -lcloog"
5937 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5939 esac
5940 if test "x$with_cloog_include" != x; then
5941 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5943 if test "x$with_cloog_lib" != x; then
5944 clooglibs="-L$with_cloog_lib -lcloog"
5946 if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5947 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' -lcloog '
5948 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5949 enable_cloog_version_check=no
5952 # Check whether --enable-cloog-version-check was given.
5953 if test "${enable_cloog_version_check+set}" = set; then :
5954 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5955 else
5956 ENABLE_CLOOG_CHECK=yes
5960 if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
5961 saved_CFLAGS="$CFLAGS"
5962 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5964 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5967 #include "cloog/cloog.h"
5969 main ()
5972 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 5
5973 choke me
5974 #endif
5977 return 0;
5979 _ACEOF
5980 if ac_fn_c_try_compile "$LINENO"; then :
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983 #include "cloog/cloog.h"
5985 main ()
5988 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 9
5989 choke me
5990 #endif
5993 return 0;
5995 _ACEOF
5996 if ac_fn_c_try_compile "$LINENO"; then :
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5998 $as_echo "yes" >&6; }
5999 else
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6001 $as_echo "buggy but acceptable" >&6; }
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }; clooglibs= ; clooginc=
6008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6009 CFLAGS="$saved_CFLAGS"
6012 # Flags needed for CLOOG
6016 # Check for LTO support.
6017 # Check whether --enable-lto was given.
6018 if test "${enable_lto+set}" = set; then :
6019 enableval=$enable_lto; enable_lto=$enableval
6020 else
6021 enable_lto=yes; default_enable_lto=yes
6026 ac_ext=c
6027 ac_cpp='$CPP $CPPFLAGS'
6028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6032 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6033 # On Suns, sometimes $CPP names a directory.
6034 if test -n "$CPP" && test -d "$CPP"; then
6035 CPP=
6037 if test -z "$CPP"; then
6038 if test "${ac_cv_prog_CPP+set}" = set; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 # Double quotes because CPP needs to be expanded
6042 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6044 ac_preproc_ok=false
6045 for ac_c_preproc_warn_flag in '' yes
6047 # Use a header file that comes with gcc, so configuring glibc
6048 # with a fresh cross-compiler works.
6049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6050 # <limits.h> exists even on freestanding compilers.
6051 # On the NeXT, cc -E runs the code through the compiler's parser,
6052 # not just through cpp. "Syntax error" is here to catch this case.
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 #ifdef __STDC__
6056 # include <limits.h>
6057 #else
6058 # include <assert.h>
6059 #endif
6060 Syntax error
6061 _ACEOF
6062 if ac_fn_c_try_cpp "$LINENO"; then :
6064 else
6065 # Broken: fails on valid input.
6066 continue
6068 rm -f conftest.err conftest.$ac_ext
6070 # OK, works on sane cases. Now check whether nonexistent headers
6071 # can be detected and how.
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074 #include <ac_nonexistent.h>
6075 _ACEOF
6076 if ac_fn_c_try_cpp "$LINENO"; then :
6077 # Broken: success on invalid input.
6078 continue
6079 else
6080 # Passes both tests.
6081 ac_preproc_ok=:
6082 break
6084 rm -f conftest.err conftest.$ac_ext
6086 done
6087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6088 rm -f conftest.err conftest.$ac_ext
6089 if $ac_preproc_ok; then :
6090 break
6093 done
6094 ac_cv_prog_CPP=$CPP
6097 CPP=$ac_cv_prog_CPP
6098 else
6099 ac_cv_prog_CPP=$CPP
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6102 $as_echo "$CPP" >&6; }
6103 ac_preproc_ok=false
6104 for ac_c_preproc_warn_flag in '' yes
6106 # Use a header file that comes with gcc, so configuring glibc
6107 # with a fresh cross-compiler works.
6108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6109 # <limits.h> exists even on freestanding compilers.
6110 # On the NeXT, cc -E runs the code through the compiler's parser,
6111 # not just through cpp. "Syntax error" is here to catch this case.
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6114 #ifdef __STDC__
6115 # include <limits.h>
6116 #else
6117 # include <assert.h>
6118 #endif
6119 Syntax error
6120 _ACEOF
6121 if ac_fn_c_try_cpp "$LINENO"; then :
6123 else
6124 # Broken: fails on valid input.
6125 continue
6127 rm -f conftest.err conftest.$ac_ext
6129 # OK, works on sane cases. Now check whether nonexistent headers
6130 # can be detected and how.
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 #include <ac_nonexistent.h>
6134 _ACEOF
6135 if ac_fn_c_try_cpp "$LINENO"; then :
6136 # Broken: success on invalid input.
6137 continue
6138 else
6139 # Passes both tests.
6140 ac_preproc_ok=:
6141 break
6143 rm -f conftest.err conftest.$ac_ext
6145 done
6146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6147 rm -f conftest.err conftest.$ac_ext
6148 if $ac_preproc_ok; then :
6150 else
6151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6153 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6154 See \`config.log' for more details." "$LINENO" 5; }
6157 ac_ext=c
6158 ac_cpp='$CPP $CPPFLAGS'
6159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6165 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6166 if test "${ac_cv_path_GREP+set}" = set; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 if test -z "$GREP"; then
6170 ac_path_GREP_found=false
6171 # Loop through the user's path and test for each of PROGNAME-LIST
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_prog in grep ggrep; do
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6180 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6181 # Check for GNU ac_path_GREP and select it if it is found.
6182 # Check for GNU $ac_path_GREP
6183 case `"$ac_path_GREP" --version 2>&1` in
6184 *GNU*)
6185 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6187 ac_count=0
6188 $as_echo_n 0123456789 >"conftest.in"
6189 while :
6191 cat "conftest.in" "conftest.in" >"conftest.tmp"
6192 mv "conftest.tmp" "conftest.in"
6193 cp "conftest.in" "conftest.nl"
6194 $as_echo 'GREP' >> "conftest.nl"
6195 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6197 as_fn_arith $ac_count + 1 && ac_count=$as_val
6198 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6199 # Best one so far, save it but keep looking for a better one
6200 ac_cv_path_GREP="$ac_path_GREP"
6201 ac_path_GREP_max=$ac_count
6203 # 10*(2^10) chars as input seems more than enough
6204 test $ac_count -gt 10 && break
6205 done
6206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6207 esac
6209 $ac_path_GREP_found && break 3
6210 done
6211 done
6212 done
6213 IFS=$as_save_IFS
6214 if test -z "$ac_cv_path_GREP"; then
6215 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6217 else
6218 ac_cv_path_GREP=$GREP
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6223 $as_echo "$ac_cv_path_GREP" >&6; }
6224 GREP="$ac_cv_path_GREP"
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6228 $as_echo_n "checking for egrep... " >&6; }
6229 if test "${ac_cv_path_EGREP+set}" = set; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6233 then ac_cv_path_EGREP="$GREP -E"
6234 else
6235 if test -z "$EGREP"; then
6236 ac_path_EGREP_found=false
6237 # Loop through the user's path and test for each of PROGNAME-LIST
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_prog in egrep; do
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6246 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6247 # Check for GNU ac_path_EGREP and select it if it is found.
6248 # Check for GNU $ac_path_EGREP
6249 case `"$ac_path_EGREP" --version 2>&1` in
6250 *GNU*)
6251 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6253 ac_count=0
6254 $as_echo_n 0123456789 >"conftest.in"
6255 while :
6257 cat "conftest.in" "conftest.in" >"conftest.tmp"
6258 mv "conftest.tmp" "conftest.in"
6259 cp "conftest.in" "conftest.nl"
6260 $as_echo 'EGREP' >> "conftest.nl"
6261 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6263 as_fn_arith $ac_count + 1 && ac_count=$as_val
6264 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6265 # Best one so far, save it but keep looking for a better one
6266 ac_cv_path_EGREP="$ac_path_EGREP"
6267 ac_path_EGREP_max=$ac_count
6269 # 10*(2^10) chars as input seems more than enough
6270 test $ac_count -gt 10 && break
6271 done
6272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6273 esac
6275 $ac_path_EGREP_found && break 3
6276 done
6277 done
6278 done
6279 IFS=$as_save_IFS
6280 if test -z "$ac_cv_path_EGREP"; then
6281 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6283 else
6284 ac_cv_path_EGREP=$EGREP
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6290 $as_echo "$ac_cv_path_EGREP" >&6; }
6291 EGREP="$ac_cv_path_EGREP"
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6295 $as_echo_n "checking for ANSI C header files... " >&6; }
6296 if test "${ac_cv_header_stdc+set}" = set; then :
6297 $as_echo_n "(cached) " >&6
6298 else
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6301 #include <stdlib.h>
6302 #include <stdarg.h>
6303 #include <string.h>
6304 #include <float.h>
6307 main ()
6311 return 0;
6313 _ACEOF
6314 if ac_fn_c_try_compile "$LINENO"; then :
6315 ac_cv_header_stdc=yes
6316 else
6317 ac_cv_header_stdc=no
6319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321 if test $ac_cv_header_stdc = yes; then
6322 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6325 #include <string.h>
6327 _ACEOF
6328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6329 $EGREP "memchr" >/dev/null 2>&1; then :
6331 else
6332 ac_cv_header_stdc=no
6334 rm -f conftest*
6338 if test $ac_cv_header_stdc = yes; then
6339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341 /* end confdefs.h. */
6342 #include <stdlib.h>
6344 _ACEOF
6345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6346 $EGREP "free" >/dev/null 2>&1; then :
6348 else
6349 ac_cv_header_stdc=no
6351 rm -f conftest*
6355 if test $ac_cv_header_stdc = yes; then
6356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6357 if test "$cross_compiling" = yes; then :
6359 else
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6362 #include <ctype.h>
6363 #include <stdlib.h>
6364 #if ((' ' & 0x0FF) == 0x020)
6365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6367 #else
6368 # define ISLOWER(c) \
6369 (('a' <= (c) && (c) <= 'i') \
6370 || ('j' <= (c) && (c) <= 'r') \
6371 || ('s' <= (c) && (c) <= 'z'))
6372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6373 #endif
6375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6377 main ()
6379 int i;
6380 for (i = 0; i < 256; i++)
6381 if (XOR (islower (i), ISLOWER (i))
6382 || toupper (i) != TOUPPER (i))
6383 return 2;
6384 return 0;
6386 _ACEOF
6387 if ac_fn_c_try_run "$LINENO"; then :
6389 else
6390 ac_cv_header_stdc=no
6392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6393 conftest.$ac_objext conftest.beam conftest.$ac_ext
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6399 $as_echo "$ac_cv_header_stdc" >&6; }
6400 if test $ac_cv_header_stdc = yes; then
6402 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6406 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6407 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6408 inttypes.h stdint.h unistd.h
6409 do :
6410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6411 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6413 eval as_val=\$$as_ac_Header
6414 if test "x$as_val" = x""yes; then :
6415 cat >>confdefs.h <<_ACEOF
6416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6417 _ACEOF
6421 done
6427 target_elf=no
6428 case $target in
6429 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6430 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6431 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6432 target_elf=no
6435 target_elf=yes
6437 esac
6439 if test $target_elf = yes; then :
6440 if test x"$enable_lto" = x"yes" ; then
6441 # Make sure that libelf.h and gelf.h are available.
6443 # Check whether --with-libelf was given.
6444 if test "${with_libelf+set}" = set; then :
6445 withval=$with_libelf;
6450 # Check whether --with-libelf_include was given.
6451 if test "${with_libelf_include+set}" = set; then :
6452 withval=$with_libelf_include;
6457 # Check whether --with-libelf_lib was given.
6458 if test "${with_libelf_lib+set}" = set; then :
6459 withval=$with_libelf_lib;
6463 saved_CFLAGS="$CFLAGS"
6464 saved_CPPFLAGS="$CPPFLAGS"
6465 saved_LIBS="$LIBS"
6467 case $with_libelf in
6469 libelflibs="-lelf"
6470 libelfinc="-I/usr/include/libelf"
6473 libelflibs="-L$with_libelf/lib -lelf"
6474 libelfinc="-I$with_libelf/include -I$with_libelf/include/libelf"
6475 LIBS="$libelflibs $LIBS"
6477 esac
6479 if test "x$with_libelf_include" != x; then
6480 libelfinc="-I$with_libelf_include"
6483 if test "x$with_libelf_lib" != x; then
6484 libelflibs="-L$with_libelf_lib -lelf"
6485 LIBS="$libelflibs $LIBS"
6488 if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \
6489 && test -d ${srcdir}/libelf; then
6490 libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/lib -lelf '
6491 libelfinc='-D__LIBELF_INTERNAL__ -I$$r/$(HOST_SUBDIR)/libelf/lib -I$$s/libelf/lib'
6492 LIBS="$libelflibs $LIBS"
6494 else
6496 CFLAGS="$CFLAGS $libelfinc"
6497 CPPFLAGS="$CPPFLAGS $libelfinc"
6498 LIBS="$LIBS $libelflibs"
6500 for ac_header in libelf.h
6501 do :
6502 ac_fn_c_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default"
6503 if test "x$ac_cv_header_libelf_h" = x""yes; then :
6504 cat >>confdefs.h <<_ACEOF
6505 #define HAVE_LIBELF_H 1
6506 _ACEOF
6507 have_libelf_h=yes
6510 done
6512 for ac_header in gelf.h
6513 do :
6514 ac_fn_c_check_header_mongrel "$LINENO" "gelf.h" "ac_cv_header_gelf_h" "$ac_includes_default"
6515 if test "x$ac_cv_header_gelf_h" = x""yes; then :
6516 cat >>confdefs.h <<_ACEOF
6517 #define HAVE_GELF_H 1
6518 _ACEOF
6519 have_gelf_h=yes
6522 done
6525 for ac_header in libelf/libelf.h
6526 do :
6527 ac_fn_c_check_header_mongrel "$LINENO" "libelf/libelf.h" "ac_cv_header_libelf_libelf_h" "$ac_includes_default"
6528 if test "x$ac_cv_header_libelf_libelf_h" = x""yes; then :
6529 cat >>confdefs.h <<_ACEOF
6530 #define HAVE_LIBELF_LIBELF_H 1
6531 _ACEOF
6532 have_libelf_libelf_h=yes
6535 done
6537 for ac_header in libelf/gelf.h
6538 do :
6539 ac_fn_c_check_header_mongrel "$LINENO" "libelf/gelf.h" "ac_cv_header_libelf_gelf_h" "$ac_includes_default"
6540 if test "x$ac_cv_header_libelf_gelf_h" = x""yes; then :
6541 cat >>confdefs.h <<_ACEOF
6542 #define HAVE_LIBELF_GELF_H 1
6543 _ACEOF
6544 have_libelf_gelf_h=yes
6547 done
6550 # If we couldn't find libelf.h and the user forced it, emit an error.
6551 if test x"$have_libelf_h" != x"yes" \
6552 && test x"$have_libelf_libelf_h" != x"yes" ; then
6553 if test x"$default_enable_lto" != x"yes" ; then
6554 as_fn_error "LTO support requires libelf.h or libelf/libelf.h." "$LINENO" 5
6555 else
6556 enable_lto=no
6557 libelflibs=
6558 libelfinc=
6562 # If we couldn't find gelf.h and the user forced it, emit an error.
6563 if test x"$have_gelf_h" != x"yes" \
6564 && test x"$have_libelf_gelf_h" != x"yes" ; then
6565 if test x"$default_enable_lto" != x"yes" ; then
6566 as_fn_error "LTO support requires gelf.h or libelf/gelf.h." "$LINENO" 5
6567 else
6568 enable_lto=no
6569 libelflibs=
6570 libelfinc=
6574 # Check that the detected libelf has the functions we need. We cannot
6575 # rely on just detecting the headers since they do not include
6576 # versioning information. Add functions, if needed.
6577 if test x"$enable_lto" = x"yes" ; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of libelf" >&5
6579 $as_echo_n "checking for the correct version of libelf... " >&6; }
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582 #include <libelf.h>
6584 main ()
6587 elf_errmsg (0);
6588 elf_getscn (0, 0);
6589 elf_nextscn (0, 0);
6590 elf_strptr (0, 0, 0);
6591 elf_getident (0, 0);
6592 elf_begin (0, 0, 0);
6593 elf_ndxscn (0);
6594 elf_end (0);
6597 return 0;
6599 _ACEOF
6600 if ac_fn_c_try_link "$LINENO"; then :
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6602 $as_echo "yes" >&6; };
6603 else
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc=
6608 rm -f core conftest.err conftest.$ac_objext \
6609 conftest$ac_exeext conftest.$ac_ext
6611 # Check for elf_getshdrstrndx or elf_getshstrndx. The latter's flavor
6612 # is determined in gcc/configure.ac.
6613 if test x"$enable_lto" = x"yes" ; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx" >&5
6615 $as_echo_n "checking for elf_getshdrstrndx... " >&6; }
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6618 #include <libelf.h>
6620 main ()
6623 elf_getshdrstrndx (0, 0);
6626 return 0;
6628 _ACEOF
6629 if ac_fn_c_try_link "$LINENO"; then :
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6631 $as_echo "yes" >&6; };
6632 else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; };
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshstrndx" >&5
6636 $as_echo_n "checking for elf_getshstrndx... " >&6; }
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639 #include <libelf.h>
6641 main ()
6644 elf_getshstrndx (0, 0);
6647 return 0;
6649 _ACEOF
6650 if ac_fn_c_try_link "$LINENO"; then :
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6652 $as_echo "yes" >&6; };
6653 else
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc=
6658 rm -f core conftest.err conftest.$ac_objext \
6659 conftest$ac_exeext conftest.$ac_ext
6662 rm -f core conftest.err conftest.$ac_objext \
6663 conftest$ac_exeext conftest.$ac_ext
6666 # If we couldn't enable LTO and the user forced it, emit an error.
6667 if test x"$enable_lto" = x"no" \
6668 && test x"$default_enable_lto" != x"yes" ; then
6669 as_fn_error "To enable LTO, GCC requires libelf v0.8.12+.
6670 Try the --with-libelf, --with-libelf-include and --with-libelf-lib options
6671 to specify its location." "$LINENO" 5
6675 CFLAGS="$saved_CFLAGS"
6676 CPPFLAGS="$saved_CPPFLAGS"
6677 LIBS="$saved_LIBS"
6681 # Flags needed for libelf.
6684 # ELF platforms build the lto-plugin when GOLD is in use.
6685 build_lto_plugin=${ENABLE_GOLD}
6687 else
6688 if test x"$default_enable_lto" = x"yes" ; then
6689 case $target in
6690 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
6691 # On other non-ELF platforms, LTO must be explicitly enabled.
6692 *) enable_lto=no ;;
6693 esac
6694 else
6695 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6696 # It would also be nice to check the binutils support, but we don't
6697 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6698 # warn during gcc/ subconfigure; unless you're bootstrapping with
6699 # -flto it won't be needed until after installation anyway.
6700 case $target in
6701 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6702 *) if test x"$enable_lto" = x"yes"; then
6703 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6706 esac
6708 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6709 case $target in
6710 *-cygwin* | *-mingw*) build_lto_plugin=yes ;;
6711 *) ;;
6712 esac
6713 default_enable_lto=no
6718 # By default, C is the only stage 1 language.
6719 stage1_languages=,c,
6721 # Target libraries that we bootstrap.
6722 bootstrap_target_libs=,target-libgcc,
6724 # Figure out what language subdirectories are present.
6725 # Look if the user specified --enable-languages="..."; if not, use
6726 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6727 # go away some day.
6728 # NB: embedded tabs in this IF block -- do not untabify
6729 if test -d ${srcdir}/gcc; then
6730 if test x"${enable_languages+set}" != xset; then
6731 if test x"${LANGUAGES+set}" = xset; then
6732 enable_languages="${LANGUAGES}"
6733 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6734 else
6735 enable_languages=all
6737 else
6738 if test x"${enable_languages}" = x ||
6739 test x"${enable_languages}" = xyes;
6740 then
6741 echo configure.in: --enable-languages needs at least one language argument 1>&2
6742 exit 1
6745 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6747 # 'f95' is the old name for the 'fortran' language. We issue a warning
6748 # and make the substitution.
6749 case ,${enable_languages}, in
6750 *,f95,*)
6751 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6752 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6754 esac
6756 # First scan to see if an enabled language requires some other language.
6757 # We assume that a given config-lang.in will list all the language
6758 # front ends it requires, even if some are required indirectly.
6759 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6760 case ${lang_frag} in
6761 ..) ;;
6762 # The odd quoting in the next line works around
6763 # an apparent bug in bash 1.12 on linux.
6764 ${srcdir}/gcc/[*]/config-lang.in) ;;
6766 # From the config-lang.in, get $language, $lang_requires
6767 language=
6768 lang_requires=
6769 . ${lang_frag}
6770 for other in ${lang_requires} ; do
6771 case ,${enable_languages}, in
6772 *,$other,*) ;;
6773 *,all,*) ;;
6774 *,$language,*)
6775 echo " \`$other' language required by \`$language'; enabling" 1>&2
6776 enable_languages="${enable_languages},${other}"
6778 esac
6779 done
6781 esac
6782 done
6784 new_enable_languages=,c,
6786 # If LTO is enabled, add the LTO front end.
6787 extra_host_libiberty_configure_flags=
6788 if test "$enable_lto" = "yes" ; then
6789 case ,${enable_languages}, in
6790 *,lto,*) ;;
6791 *) enable_languages="${enable_languages},lto" ;;
6792 esac
6793 if test "${build_lto_plugin}" = "yes" ; then
6794 configdirs="$configdirs lto-plugin"
6795 extra_host_libiberty_configure_flags=--enable-shared
6800 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6801 potential_languages=,c,
6803 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6804 case ${lang_frag} in
6805 ..) ;;
6806 # The odd quoting in the next line works around
6807 # an apparent bug in bash 1.12 on linux.
6808 ${srcdir}/gcc/[*]/config-lang.in) ;;
6810 # From the config-lang.in, get $language, $target_libs,
6811 # $lang_dirs, $boot_language, and $build_by_default
6812 language=
6813 target_libs=
6814 lang_dirs=
6815 subdir_requires=
6816 boot_language=no
6817 build_by_default=yes
6818 . ${lang_frag}
6819 if test x${language} = x; then
6820 echo "${lang_frag} doesn't set \$language." 1>&2
6821 exit 1
6824 if test "$language" = "c++" \
6825 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6826 boot_language=yes
6829 case ,${enable_languages}, in
6830 *,${language},*)
6831 # Language was explicitly selected; include it.
6832 add_this_lang=yes
6834 *,all,*)
6835 # 'all' was selected, select it if it is a default language
6836 add_this_lang=${build_by_default}
6839 add_this_lang=no
6841 esac
6843 # Disable languages that need other directories if these aren't available.
6844 for i in $subdir_requires; do
6845 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6846 case ,${enable_languages}, in
6847 *,${language},*)
6848 # Specifically requested language; tell them.
6849 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6852 # Silently disable.
6853 add_this_lang=unsupported
6855 esac
6856 done
6858 # Disable Ada if no preexisting GNAT is available.
6859 case ,${enable_languages},:${language}:${have_gnat} in
6860 *,${language},*:ada:no)
6861 # Specifically requested language; tell them.
6862 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6864 *:ada:no)
6865 # Silently disable.
6866 add_this_lang=unsupported
6868 esac
6870 # Disable a language that is unsupported by the target.
6871 case " $unsupported_languages " in
6872 *" $language "*)
6873 add_this_lang=unsupported
6875 esac
6877 case $add_this_lang in
6878 unsupported)
6879 # Remove language-dependent dirs.
6880 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6883 # Remove language-dependent dirs; still show language as supported.
6884 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6885 potential_languages="${potential_languages}${language},"
6887 yes)
6888 new_enable_languages="${new_enable_languages}${language},"
6889 potential_languages="${potential_languages}${language},"
6890 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6891 case "${boot_language}:,$enable_stage1_languages," in
6892 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6893 # Add to (comma-separated) list of stage 1 languages.
6894 case ",$stage1_languages," in
6895 *,$language,* | ,yes, | ,all,) ;;
6896 *) stage1_languages="${stage1_languages}${language}," ;;
6897 esac
6898 # We need to bootstrap any supporting libraries.
6899 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6901 esac
6903 esac
6905 esac
6906 done
6908 # Check whether --enable-stage1-languages was given.
6909 if test "${enable_stage1_languages+set}" = set; then :
6910 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6911 ,no,|,,)
6912 # Set it to something that will have no effect in the loop below
6913 enable_stage1_languages=c ;;
6914 ,yes,)
6915 enable_stage1_languages=`echo $new_enable_languages | \
6916 sed -e "s/^,//" -e "s/,$//" ` ;;
6917 *,all,*)
6918 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6919 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6920 esac
6922 # Add "good" languages from enable_stage1_languages to stage1_languages,
6923 # while "bad" languages go in missing_languages. Leave no duplicates.
6924 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6925 case $potential_languages in
6926 *,$i,*)
6927 case $stage1_languages in
6928 *,$i,*) ;;
6929 *) stage1_languages="$stage1_languages$i," ;;
6930 esac ;;
6932 case $missing_languages in
6933 *,$i,*) ;;
6934 *) missing_languages="$missing_languages$i," ;;
6935 esac ;;
6936 esac
6937 done
6941 # Remove leading/trailing commas that were added for simplicity
6942 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6943 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6944 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6945 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6947 if test "x$missing_languages" != x; then
6948 as_fn_error "
6949 The following requested languages could not be built: ${missing_languages}
6950 Supported languages are: ${potential_languages}" "$LINENO" 5
6952 if test "x$new_enable_languages" != "x$enable_languages"; then
6953 echo The following languages will be built: ${new_enable_languages}
6954 enable_languages="$new_enable_languages"
6958 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6961 # Handle --disable-<component> generically.
6962 for dir in $configdirs $build_configdirs $target_configdirs ; do
6963 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6964 varname=`echo $dirname | sed -e s/+/_/g`
6965 if eval test x\${enable_${varname}} "=" xno ; then
6966 noconfigdirs="$noconfigdirs $dir"
6968 done
6970 # Check for Boehm's garbage collector
6971 # Check whether --enable-objc-gc was given.
6972 if test "${enable_objc_gc+set}" = set; then :
6973 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6974 *,objc,*:*:yes:*target-boehm-gc*)
6975 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6977 esac
6981 # Make sure we only build Boehm's garbage collector if required.
6982 case ,${enable_languages},:${enable_objc_gc} in
6983 *,objc,*:yes)
6984 # Keep target-boehm-gc if requested for Objective-C.
6987 # Otherwise remove target-boehm-gc depending on target-libjava.
6988 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6989 noconfigdirs="$noconfigdirs target-boehm-gc"
6992 esac
6994 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6995 # $build_configdirs and $target_configdirs.
6996 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6998 notsupp=""
6999 for dir in . $skipdirs $noconfigdirs ; do
7000 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
7001 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7002 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
7003 if test -r $srcdir/$dirname/configure ; then
7004 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7005 true
7006 else
7007 notsupp="$notsupp $dir"
7011 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7012 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
7013 if test -r $srcdir/$dirname/configure ; then
7014 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7015 true
7016 else
7017 notsupp="$notsupp $dir"
7021 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7022 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
7023 if test -r $srcdir/$dirname/configure ; then
7024 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7025 true
7026 else
7027 notsupp="$notsupp $dir"
7031 done
7033 # Sometimes the tools are distributed with libiberty but with no other
7034 # libraries. In that case, we don't want to build target-libiberty.
7035 # Don't let libgcc imply libiberty either.
7036 if test -n "${target_configdirs}" ; then
7037 libgcc=
7038 others=
7039 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
7040 if test "$i" = "libgcc"; then
7041 libgcc=target-libgcc
7042 elif test "$i" != "libiberty" ; then
7043 if test -r $srcdir/$i/configure ; then
7044 others=yes;
7045 break;
7048 done
7049 if test -z "${others}" ; then
7050 target_configdirs=$libgcc
7054 # Quietly strip out all directories which aren't configurable in this tree.
7055 # This relies on all configurable subdirectories being autoconfiscated, which
7056 # is now the case.
7057 build_configdirs_all="$build_configdirs"
7058 build_configdirs=
7059 for i in ${build_configdirs_all} ; do
7060 j=`echo $i | sed -e s/build-//g`
7061 if test -f ${srcdir}/$j/configure ; then
7062 build_configdirs="${build_configdirs} $i"
7064 done
7066 configdirs_all="$configdirs"
7067 configdirs=
7068 for i in ${configdirs_all} ; do
7069 if test -f ${srcdir}/$i/configure ; then
7070 configdirs="${configdirs} $i"
7072 done
7074 target_configdirs_all="$target_configdirs"
7075 target_configdirs=
7076 for i in ${target_configdirs_all} ; do
7077 j=`echo $i | sed -e s/target-//g`
7078 if test -f ${srcdir}/$j/configure ; then
7079 target_configdirs="${target_configdirs} $i"
7081 done
7083 # Produce a warning message for the subdirs we can't configure.
7084 # This isn't especially interesting in the Cygnus tree, but in the individual
7085 # FSF releases, it's important to let people know when their machine isn't
7086 # supported by the one or two programs in a package.
7088 if test -n "${notsupp}" && test -z "${norecursion}" ; then
7089 # If $appdirs is non-empty, at least one of those directories must still
7090 # be configured, or we error out. (E.g., if the gas release supports a
7091 # specified target in some subdirs but not the gas subdir, we shouldn't
7092 # pretend that all is well.)
7093 if test -n "$appdirs" ; then
7094 for dir in $appdirs ; do
7095 if test -r $dir/Makefile.in ; then
7096 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7097 appdirs=""
7098 break
7100 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
7101 appdirs=""
7102 break
7105 done
7106 if test -n "$appdirs" ; then
7107 echo "*** This configuration is not supported by this package." 1>&2
7108 exit 1
7111 # Okay, some application will build, or we don't care to check. Still
7112 # notify of subdirs not getting built.
7113 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7114 echo " ${notsupp}" 1>&2
7115 echo " (Any other directories should still work fine.)" 1>&2
7118 case "$host" in
7119 *msdosdjgpp*)
7120 enable_gdbtk=no ;;
7121 esac
7123 # To find our prefix, in gcc_cv_tool_prefix.
7125 # The user is always right.
7126 if test "${PATH_SEPARATOR+set}" != set; then
7127 echo "#! /bin/sh" >conf$$.sh
7128 echo "exit 0" >>conf$$.sh
7129 chmod +x conf$$.sh
7130 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7131 PATH_SEPARATOR=';'
7132 else
7133 PATH_SEPARATOR=:
7135 rm -f conf$$.sh
7140 if test "x$exec_prefix" = xNONE; then
7141 if test "x$prefix" = xNONE; then
7142 gcc_cv_tool_prefix=$ac_default_prefix
7143 else
7144 gcc_cv_tool_prefix=$prefix
7146 else
7147 gcc_cv_tool_prefix=$exec_prefix
7150 # If there is no compiler in the tree, use the PATH only. In any
7151 # case, if there is no compiler in the tree nobody should use
7152 # AS_FOR_TARGET and LD_FOR_TARGET.
7153 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7154 gcc_version=`cat $srcdir/gcc/BASE-VER`
7155 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7156 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7157 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7158 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7159 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7160 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7161 else
7162 gcc_cv_tool_dirs=
7165 if test x$build = x$target && test -n "$md_exec_prefix"; then
7166 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7171 copy_dirs=
7174 # Check whether --with-build-sysroot was given.
7175 if test "${with_build_sysroot+set}" = set; then :
7176 withval=$with_build_sysroot; if test x"$withval" != x ; then
7177 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7179 else
7180 SYSROOT_CFLAGS_FOR_TARGET=
7186 # Check whether --with-debug-prefix-map was given.
7187 if test "${with_debug_prefix_map+set}" = set; then :
7188 withval=$with_debug_prefix_map; if test x"$withval" != x; then
7189 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7190 for debug_map in $withval; do
7191 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7192 done
7194 else
7195 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7200 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7201 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7202 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7203 # We want to ensure that TARGET libraries (which we know are built with
7204 # gcc) are built with "-O2 -g", so include those options when setting
7205 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7206 if test "x$CFLAGS_FOR_TARGET" = x; then
7207 CFLAGS_FOR_TARGET=$CFLAGS
7208 case " $CFLAGS " in
7209 *" -O2 "*) ;;
7210 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
7211 esac
7212 case " $CFLAGS " in
7213 *" -g "* | *" -g3 "*) ;;
7214 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
7215 esac
7219 if test "x$CXXFLAGS_FOR_TARGET" = x; then
7220 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7221 case " $CXXFLAGS " in
7222 *" -O2 "*) ;;
7223 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
7224 esac
7225 case " $CXXFLAGS " in
7226 *" -g "* | *" -g3 "*) ;;
7227 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
7228 esac
7232 # Handle --with-headers=XXX. If the value is not "yes", the contents of
7233 # the named directory are copied to $(tooldir)/sys-include.
7234 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7235 if test x${is_cross_compiler} = xno ; then
7236 echo 1>&2 '***' --with-headers is only supported when cross compiling
7237 exit 1
7239 if test x"${with_headers}" != xyes ; then
7240 x=${gcc_cv_tool_prefix}
7241 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
7245 # Handle --with-libs=XXX. If the value is not "yes", the contents of
7246 # the name directories are copied to $(tooldir)/lib. Multiple directories
7247 # are permitted.
7248 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7249 if test x${is_cross_compiler} = xno ; then
7250 echo 1>&2 '***' --with-libs is only supported when cross compiling
7251 exit 1
7253 if test x"${with_libs}" != xyes ; then
7254 # Copy the libraries in reverse order, so that files in the first named
7255 # library override files in subsequent libraries.
7256 x=${gcc_cv_tool_prefix}
7257 for l in ${with_libs}; do
7258 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7259 done
7263 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7265 # This is done by determining whether or not the appropriate directory
7266 # is available, and by checking whether or not specific configurations
7267 # have requested that this magic not happen.
7269 # The command line options always override the explicit settings in
7270 # configure.in, and the settings in configure.in override this magic.
7272 # If the default for a toolchain is to use GNU as and ld, and you don't
7273 # want to do that, then you should use the --without-gnu-as and
7274 # --without-gnu-ld options for the configure script. Similarly, if
7275 # the default is to use the included zlib and you don't want to do that,
7276 # you should use the --with-system-zlib option for the configure script.
7278 if test x${use_gnu_as} = x &&
7279 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7280 with_gnu_as=yes
7281 extra_host_args="$extra_host_args --with-gnu-as"
7284 if test x${use_gnu_ld} = x &&
7285 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7286 with_gnu_ld=yes
7287 extra_host_args="$extra_host_args --with-gnu-ld"
7290 if test x${use_included_zlib} = x &&
7291 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7293 else
7294 with_system_zlib=yes
7295 extra_host_args="$extra_host_args --with-system-zlib"
7298 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7299 # can detect this case.
7301 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7302 with_newlib=yes
7303 extra_host_args="$extra_host_args --with-newlib"
7306 # Handle ${copy_dirs}
7307 set fnord ${copy_dirs}
7308 shift
7309 while test $# != 0 ; do
7310 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7312 else
7313 echo Copying $1 to $2
7315 # Use the install script to create the directory and all required
7316 # parent directories.
7317 if test -d $2 ; then
7319 else
7320 echo >config.temp
7321 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7324 # Copy the directory, assuming we have tar.
7325 # FIXME: Should we use B in the second tar? Not all systems support it.
7326 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7328 # It is the responsibility of the user to correctly adjust all
7329 # symlinks. If somebody can figure out how to handle them correctly
7330 # here, feel free to add the code.
7332 echo $1 > $2/COPIED
7334 shift; shift
7335 done
7337 # Determine a target-dependent exec_prefix that the installed
7338 # gcc will search in. Keep this list sorted by triplet, with
7339 # the *-*-osname triplets last.
7340 md_exec_prefix=
7341 case "${target}" in
7342 alpha*-*-*vms*)
7343 md_exec_prefix=/gnu/lib/gcc-lib
7345 i[34567]86-pc-msdosdjgpp*)
7346 md_exec_prefix=/dev/env/DJDIR/bin
7348 i[34567]86-*-sco3.2v5*)
7349 if test $with_gnu_as = yes; then
7350 md_exec_prefix=/usr/gnu/bin
7351 else
7352 md_exec_prefix=/usr/ccs/bin/elf
7356 mn10300-*-* | \
7357 powerpc-*-chorusos* | \
7358 powerpc*-*-eabi* | \
7359 powerpc*-*-sysv* | \
7360 powerpc*-*-kaos* | \
7361 s390x-ibm-tpf*)
7362 md_exec_prefix=/usr/ccs/bin
7364 sparc64-*-elf*)
7366 v850*-*-*)
7367 md_exec_prefix=/usr/ccs/bin
7369 xtensa*-*-elf*)
7372 *-*-beos* | \
7373 *-*-elf* | \
7374 *-*-hpux* | \
7375 *-*-netware* | \
7376 *-*-nto-qnx* | \
7377 *-*-rtems* | \
7378 *-*-solaris2* | \
7379 *-*-sysv[45]* | \
7380 *-*-vxworks* | \
7381 *-wrs-windiss)
7382 md_exec_prefix=/usr/ccs/bin
7384 esac
7386 extra_arflags_for_target=
7387 extra_nmflags_for_target=
7388 extra_ranlibflags_for_target=
7389 target_makefile_frag=/dev/null
7390 case "${target}" in
7391 mep*-*-*)
7392 target_makefile_frag="config/mt-mep"
7394 spu-*-*)
7395 target_makefile_frag="config/mt-spu"
7397 mips*-sde-elf*)
7398 target_makefile_frag="config/mt-sde"
7400 mipsisa*-*-elfoabi*)
7401 target_makefile_frag="config/mt-mips-elfoabi"
7403 mips*-*-*linux* | mips*-*-gnu*)
7404 target_makefile_frag="config/mt-mips-gnu"
7406 *-*-netware*)
7407 target_makefile_frag="config/mt-netware"
7409 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7410 target_makefile_frag="config/mt-gnu"
7412 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7413 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7414 # commands to handle both 32-bit and 64-bit objects. These flags are
7415 # harmless if we're using GNU nm or ar.
7416 extra_arflags_for_target=" -X32_64"
7417 extra_nmflags_for_target=" -B -X32_64"
7419 *-*-darwin[3-9]*)
7420 # ranlib before Darwin10 requires the -c flag to look at common symbols.
7421 extra_ranlibflags_for_target=" -c"
7423 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
7424 target_makefile_frag="config/mt-wince"
7426 esac
7428 alphaieee_frag=/dev/null
7429 case $target in
7430 alpha*-*-*)
7431 # This just makes sure to use the -mieee option to build target libs.
7432 # This should probably be set individually by each library.
7433 alphaieee_frag="config/mt-alphaieee"
7435 esac
7437 # If --enable-target-optspace always use -Os instead of -O2 to build
7438 # the target libraries, similarly if it is not specified, use -Os
7439 # on selected platforms.
7440 ospace_frag=/dev/null
7441 case "${enable_target_optspace}:${target}" in
7442 yes:*)
7443 ospace_frag="config/mt-ospace"
7445 :d30v-*)
7446 ospace_frag="config/mt-d30v"
7448 :m32r-* | :d10v-* | :fr30-*)
7449 ospace_frag="config/mt-ospace"
7451 no:* | :*)
7454 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7456 esac
7458 # Default to using --with-stabs for certain targets.
7459 if test x${with_stabs} = x ; then
7460 case "${target}" in
7461 mips*-*-irix[56]*)
7463 mips*-*-* | alpha*-*-osf*)
7464 with_stabs=yes;
7465 extra_host_args="${extra_host_args} --with-stabs"
7467 esac
7470 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
7471 # them automatically.
7472 case "${host}" in
7473 hppa*64*-*-hpux11*)
7474 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
7476 esac
7478 # Some systems (e.g., one of the i386-aix systems the gas testers are
7479 # using) don't handle "\$" correctly, so don't use it here.
7480 tooldir='${exec_prefix}'/${target_noncanonical}
7481 build_tooldir=${tooldir}
7483 # Create a .gdbinit file which runs the one in srcdir
7484 # and tells GDB to look there for source files.
7486 if test -r ${srcdir}/.gdbinit ; then
7487 case ${srcdir} in
7488 .) ;;
7489 *) cat > ./.gdbinit <<EOF
7490 # ${NO_EDIT}
7491 dir ${srcdir}
7492 dir .
7493 source ${srcdir}/.gdbinit
7496 esac
7499 # Make sure that the compiler is able to generate an executable. If it
7500 # can't, we are probably in trouble. We don't care whether we can run the
7501 # executable--we might be using a cross compiler--we only care whether it
7502 # can be created. At this point the main configure script has set CC.
7503 we_are_ok=no
7504 echo "int main () { return 0; }" > conftest.c
7505 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7506 if test $? = 0 ; then
7507 if test -s conftest || test -s conftest.exe ; then
7508 we_are_ok=yes
7511 case $we_are_ok in
7513 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7514 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7515 rm -f conftest*
7516 exit 1
7518 esac
7519 rm -f conftest*
7521 # The Solaris /usr/ucb/cc compiler does not appear to work.
7522 case "${host}" in
7523 sparc-sun-solaris2*)
7524 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
7525 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
7526 could_use=
7527 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
7528 if test -d /opt/cygnus/bin ; then
7529 if test "$could_use" = "" ; then
7530 could_use="/opt/cygnus/bin"
7531 else
7532 could_use="$could_use or /opt/cygnus/bin"
7535 if test "$could_use" = "" ; then
7536 echo "Warning: compilation may fail because you're using"
7537 echo "/usr/ucb/cc. You should change your PATH or CC "
7538 echo "variable and rerun configure."
7539 else
7540 echo "Warning: compilation may fail because you're using"
7541 echo "/usr/ucb/cc, when you should use the C compiler from"
7542 echo "$could_use. You should change your"
7543 echo "PATH or CC variable and rerun configure."
7547 esac
7549 # Decide which environment variable is used to find dynamic libraries.
7550 case "${host}" in
7551 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7552 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7553 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7554 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7555 esac
7557 # On systems where the dynamic library environment variable is PATH,
7558 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7559 # built executables to PATH.
7560 if test "$RPATH_ENVVAR" = PATH; then
7561 GCC_SHLIB_SUBDIR=/shlib
7562 else
7563 GCC_SHLIB_SUBDIR=
7566 # Record target_configdirs and the configure arguments for target and
7567 # build configuration in Makefile.
7568 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7569 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7571 # If we are building libgomp, bootstrap it.
7572 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7573 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7576 # Determine whether gdb needs tk/tcl or not.
7577 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7578 # and in that case we want gdb to be built without tk. Ugh!
7579 # In fact I believe gdb is the *only* package directly dependent on tk,
7580 # so we should be able to put the 'maybe's in unconditionally and
7581 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7582 # 100% sure that that's safe though.
7584 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7585 case "$enable_gdbtk" in
7587 GDB_TK="" ;;
7588 yes)
7589 GDB_TK="${gdb_tk}" ;;
7591 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7592 # distro. Eventually someone will fix this and move Insight, nee
7593 # gdbtk to a separate directory.
7594 if test -d ${srcdir}/gdb/gdbtk ; then
7595 GDB_TK="${gdb_tk}"
7596 else
7597 GDB_TK=""
7600 esac
7601 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7602 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7604 # Strip out unwanted targets.
7606 # While at that, we remove Makefiles if we were started for recursive
7607 # configuration, so that the top-level Makefile reconfigures them,
7608 # like we used to do when configure itself was recursive.
7610 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7611 # but now we're fixing up the Makefile ourselves with the additional
7612 # commands passed to AC_CONFIG_FILES. Use separate variables
7613 # extrasub-{build,host,target} not because there is any reason to split
7614 # the substitutions up that way, but only to remain below the limit of
7615 # 99 commands in a script, for HP-UX sed.
7616 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7618 # Check whether --enable-bootstrap was given.
7619 if test "${enable_bootstrap+set}" = set; then :
7620 enableval=$enable_bootstrap;
7621 else
7622 enable_bootstrap=default
7626 # Issue errors and warnings for invalid/strange bootstrap combinations.
7627 case "$configdirs" in
7628 *gcc*) have_compiler=yes ;;
7629 *) have_compiler=no ;;
7630 esac
7632 case "$have_compiler:$host:$target:$enable_bootstrap" in
7633 *:*:*:no) ;;
7635 # Default behavior. Enable bootstrap if we have a compiler
7636 # and we are in a native configuration.
7637 yes:$build:$build:default)
7638 enable_bootstrap=yes ;;
7640 *:*:*:default)
7641 enable_bootstrap=no ;;
7643 # We have a compiler and we are in a native configuration, bootstrap is ok
7644 yes:$build:$build:yes)
7647 # Other configurations, but we have a compiler. Assume the user knows
7648 # what he's doing.
7649 yes:*:*:yes)
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7651 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
7654 # No compiler: if they passed --enable-bootstrap explicitly, fail
7655 no:*:*:yes)
7656 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
7658 # Fail if wrong command line
7660 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
7662 esac
7664 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7665 *,c++,*:yes:yes) ;;
7666 *:yes:yes)
7667 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7669 esac
7671 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7672 yes:yes:*\ gold\ *:*,c++,*) ;;
7673 yes:yes:*\ gold\ *:*)
7674 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7676 esac
7678 # Adjust the toplevel makefile according to whether bootstrap was selected.
7679 case $enable_bootstrap in
7680 yes)
7681 bootstrap_suffix=bootstrap
7682 BUILD_CONFIG=bootstrap-debug
7685 bootstrap_suffix=no-bootstrap
7686 BUILD_CONFIG=
7688 esac
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7691 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7694 # Check whether --with-build-config was given.
7695 if test "${with_build_config+set}" = set; then :
7696 withval=$with_build_config; case $with_build_config in
7697 yes) with_build_config= ;;
7698 no) with_build_config= BUILD_CONFIG= ;;
7699 esac
7703 if test "x${with_build_config}" != x; then
7704 BUILD_CONFIG=$with_build_config
7705 else
7706 case $BUILD_CONFIG in
7707 bootstrap-debug)
7708 if echo "int f (void) { return 0; }" > conftest.c &&
7709 ${CC} -c conftest.c &&
7710 mv conftest.o conftest.o.g0 &&
7711 ${CC} -c -g conftest.c &&
7712 mv conftest.o conftest.o.g &&
7713 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7715 else
7716 BUILD_CONFIG=
7718 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7720 esac
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7723 $as_echo "$BUILD_CONFIG" >&6; }
7726 extrasub_build=
7727 for module in ${build_configdirs} ; do
7728 if test -z "${no_recursion}" \
7729 && test -f ${build_subdir}/${module}/Makefile; then
7730 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7731 rm -f ${build_subdir}/${module}/Makefile
7733 extrasub_build="$extrasub_build
7734 /^@if build-$module\$/d
7735 /^@endif build-$module\$/d
7736 /^@if build-$module-$bootstrap_suffix\$/d
7737 /^@endif build-$module-$bootstrap_suffix\$/d"
7738 done
7739 extrasub_host=
7740 for module in ${configdirs} ; do
7741 if test -z "${no_recursion}"; then
7742 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7743 if test -f ${file}; then
7744 echo 1>&2 "*** removing ${file} to force reconfigure"
7745 rm -f ${file}
7747 done
7749 extrasub_host="$extrasub_host
7750 /^@if $module\$/d
7751 /^@endif $module\$/d
7752 /^@if $module-$bootstrap_suffix\$/d
7753 /^@endif $module-$bootstrap_suffix\$/d"
7754 done
7755 extrasub_target=
7756 for module in ${target_configdirs} ; do
7757 if test -z "${no_recursion}" \
7758 && test -f ${target_subdir}/${module}/Makefile; then
7759 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7760 rm -f ${target_subdir}/${module}/Makefile
7763 # We only bootstrap target libraries listed in bootstrap_target_libs.
7764 case $bootstrap_target_libs in
7765 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7766 *) target_bootstrap_suffix=no-bootstrap ;;
7767 esac
7769 extrasub_target="$extrasub_target
7770 /^@if target-$module\$/d
7771 /^@endif target-$module\$/d
7772 /^@if target-$module-$target_bootstrap_suffix\$/d
7773 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7774 done
7776 # Do the final fixup along with target modules.
7777 extrasub_target="$extrasub_target
7778 /^@if /,/^@endif /d"
7780 # Create the serialization dependencies. This uses a temporary file.
7782 # Check whether --enable-serial-configure was given.
7783 if test "${enable_serial_configure+set}" = set; then :
7784 enableval=$enable_serial_configure;
7788 case ${enable_serial_configure} in
7789 yes)
7790 enable_serial_build_configure=yes
7791 enable_serial_host_configure=yes
7792 enable_serial_target_configure=yes
7794 esac
7796 # These force 'configure's to be done one at a time, to avoid problems
7797 # with contention over a shared config.cache.
7798 rm -f serdep.tmp
7799 echo '# serdep.tmp' > serdep.tmp
7800 olditem=
7801 test "x${enable_serial_build_configure}" = xyes &&
7802 for item in ${build_configdirs} ; do
7803 case ${olditem} in
7804 "") ;;
7805 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7806 esac
7807 olditem=${item}
7808 done
7809 olditem=
7810 test "x${enable_serial_host_configure}" = xyes &&
7811 for item in ${configdirs} ; do
7812 case ${olditem} in
7813 "") ;;
7814 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7815 esac
7816 olditem=${item}
7817 done
7818 olditem=
7819 test "x${enable_serial_target_configure}" = xyes &&
7820 for item in ${target_configdirs} ; do
7821 case ${olditem} in
7822 "") ;;
7823 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7824 esac
7825 olditem=${item}
7826 done
7827 serialization_dependencies=serdep.tmp
7830 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7831 # target, nonopt, and variable assignments. These are the ones we
7832 # might not want to pass down to subconfigures. The exception being
7833 # --cache-file=/dev/null, which is used to turn off the use of cache
7834 # files altogether, and which should be passed on to subconfigures.
7835 # Also strip program-prefix, program-suffix, and program-transform-name,
7836 # so that we can pass down a consistent program-transform-name.
7837 baseargs=
7838 keep_next=no
7839 skip_next=no
7840 eval "set -- $ac_configure_args"
7841 for ac_arg
7843 if test X"$skip_next" = X"yes"; then
7844 skip_next=no
7845 continue
7847 if test X"$keep_next" = X"yes"; then
7848 case $ac_arg in
7849 *\'*)
7850 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7851 esac
7852 baseargs="$baseargs '$ac_arg'"
7853 keep_next=no
7854 continue
7857 # Handle separated arguments. Based on the logic generated by
7858 # autoconf 2.59.
7859 case $ac_arg in
7860 *=* | --config-cache | -C | -disable-* | --disable-* \
7861 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7862 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7863 | -with-* | --with-* | -without-* | --without-* | --x)
7864 separate_arg=no
7867 separate_arg=yes
7870 separate_arg=no
7872 esac
7874 case "$ac_arg" in
7875 --cache-file=/dev/null | \
7876 -cache-file=/dev/null )
7877 # Handled here to avoid the test to skip args below.
7878 baseargs="$baseargs '$ac_arg'"
7879 # Assert: $separate_arg should always be no.
7880 keep_next=$separate_arg
7882 --no*)
7883 continue
7885 --c* | \
7886 --sr* | \
7887 --ho* | \
7888 --bu* | \
7889 --t* | \
7890 --program-* | \
7891 -cache_file* | \
7892 -srcdir* | \
7893 -host* | \
7894 -build* | \
7895 -target* | \
7896 -program-prefix* | \
7897 -program-suffix* | \
7898 -program-transform-name* )
7899 skip_next=$separate_arg
7900 continue
7903 # An option. Add it.
7904 case $ac_arg in
7905 *\'*)
7906 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7907 esac
7908 baseargs="$baseargs '$ac_arg'"
7909 keep_next=$separate_arg
7912 # Either a variable assignment, or a nonopt (triplet). Don't
7913 # pass it down; let the Makefile handle this.
7914 continue
7916 esac
7917 done
7918 # Remove the initial space we just introduced and, as these will be
7919 # expanded by make, quote '$'.
7920 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7922 # Add in --program-transform-name, after --program-prefix and
7923 # --program-suffix have been applied to it. Autoconf has already
7924 # doubled dollar signs and backslashes in program_transform_name; we want
7925 # the backslashes un-doubled, and then the entire thing wrapped in single
7926 # quotes, because this will be expanded first by make and then by the shell.
7927 # Also, because we want to override the logic in subdir configure scripts to
7928 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7929 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7930 ${program_transform_name}
7931 EOF_SED
7932 gcc_transform_name=`cat conftestsed.out`
7933 rm -f conftestsed.out
7934 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7935 if test "$silent" = yes; then
7936 baseargs="$baseargs --silent"
7938 baseargs="$baseargs --disable-option-checking"
7940 # Record and document user additions to sub configure arguments.
7945 # For the build-side libraries, we just need to pretend we're native,
7946 # and not use the same cache file. Multilibs are neither needed nor
7947 # desired.
7948 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7950 # For host modules, accept cache file option, or specification as blank.
7951 case "${cache_file}" in
7952 "") # empty
7953 cache_file_option="" ;;
7954 /* | [A-Za-z]:[\\/]* ) # absolute path
7955 cache_file_option="--cache-file=${cache_file}" ;;
7956 *) # relative path
7957 cache_file_option="--cache-file=../${cache_file}" ;;
7958 esac
7960 # Host dirs don't like to share a cache file either, horribly enough.
7961 # This seems to be due to autoconf 2.5x stupidity.
7962 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7964 target_configargs="$target_configargs ${baseargs}"
7966 # Passing a --with-cross-host argument lets the target libraries know
7967 # whether they are being built with a cross-compiler or being built
7968 # native. However, it would be better to use other mechanisms to make the
7969 # sorts of decisions they want to make on this basis. Please consider
7970 # this option to be deprecated. FIXME.
7971 if test x${is_cross_compiler} = xyes ; then
7972 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7975 # Default to --enable-multilib.
7976 if test x${enable_multilib} = x ; then
7977 target_configargs="--enable-multilib ${target_configargs}"
7980 # Pass --with-newlib if appropriate. Note that target_configdirs has
7981 # changed from the earlier setting of with_newlib.
7982 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7983 target_configargs="--with-newlib ${target_configargs}"
7986 # Different target subdirs use different values of certain variables
7987 # (notably CXX). Worse, multilibs use *lots* of different values.
7988 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7989 # it doesn't automatically accept command-line overrides of them.
7990 # This means it's not safe for target subdirs to share a cache file,
7991 # which is disgusting, but there you have it. Hopefully this can be
7992 # fixed in future. It's still worthwhile to use a cache file for each
7993 # directory. I think.
7995 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7996 # We need to pass --target, as newer autoconf's requires consistency
7997 # for target_alias and gcc doesn't manage it consistently.
7998 target_configargs="--cache-file=./config.cache ${target_configargs}"
8000 FLAGS_FOR_TARGET=
8001 case " $target_configdirs " in
8002 *" newlib "*)
8003 case " $target_configargs " in
8004 *" --with-newlib "*)
8005 case "$target" in
8006 *-cygwin*)
8007 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'
8009 esac
8011 # If we're not building GCC, don't discard standard headers.
8012 if test -d ${srcdir}/gcc; then
8013 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
8015 if test "${build}" != "${host}"; then
8016 # On Canadian crosses, CC_FOR_TARGET will have already been set
8017 # by `configure', so we won't have an opportunity to add -Bgcc/
8018 # to it. This is right: we don't want to search that directory
8019 # for binaries, but we want the header files in there, so add
8020 # them explicitly.
8021 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
8023 # Someone might think of using the pre-installed headers on
8024 # Canadian crosses, in case the installed compiler is not fully
8025 # compatible with the compiler being built. In this case, it
8026 # would be better to flag an error than risking having
8027 # incompatible object files being constructed. We can't
8028 # guarantee that an error will be flagged, but let's hope the
8029 # compiler will do it, when presented with incompatible header
8030 # files.
8034 case "${target}-${is_cross_compiler}" in
8035 i[3456789]86-*-linux*-no)
8036 # Here host == target, so we don't need to build gcc,
8037 # so we don't want to discard standard headers.
8038 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
8041 # If we're building newlib, use its generic headers last, but search
8042 # for any libc-related directories first (so make it the last -B
8043 # switch).
8044 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
8046 # If we're building libgloss, find the startup file, simulator library
8047 # and linker script.
8048 case " $target_configdirs " in
8049 *" libgloss "*)
8050 # Look for startup file, simulator library and maybe linker script.
8051 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
8052 # Look for libnosys.a in case the target needs it.
8053 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
8054 # Most targets have the linker script in the source directory.
8055 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
8057 esac
8059 esac
8061 esac
8063 esac
8065 case "$target" in
8066 x86_64-*mingw* | *-w64-mingw*)
8067 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
8068 # however, use a symlink named 'mingw' in ${prefix} .
8069 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
8071 *-mingw*)
8072 # MinGW can't be handled as Cygwin above since it does not use newlib.
8073 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'
8075 esac
8077 # Allow the user to override the flags for
8078 # our build compiler if desired.
8079 if test x"${build}" = x"${host}" ; then
8080 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
8081 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8082 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8085 # On Canadian crosses, we'll be searching the right directories for
8086 # the previously-installed cross compiler, so don't bother to add
8087 # flags for directories within the install tree of the compiler
8088 # being built; programs in there won't even run.
8089 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8090 # Search for pre-installed headers if nothing else fits.
8091 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
8094 if test "x${use_gnu_ld}" = x &&
8095 echo " ${configdirs} " | grep " ld " > /dev/null ; then
8096 # Arrange for us to find uninstalled linker scripts.
8097 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
8100 # Search for other target-specific linker scripts and such.
8101 case "${target}" in
8102 mep*)
8103 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8105 esac
8107 # Makefile fragments.
8108 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8110 eval fragval=\$$frag
8111 if test $fragval != /dev/null; then
8112 eval $frag=${srcdir}/$fragval
8114 done
8120 # Miscellanea: directories, flags, etc.
8129 # Build module lists & subconfigure args.
8133 # Host module lists & subconfigure args.
8138 # Target module lists & subconfigure args.
8142 # Build tools.
8160 # Generate default definitions for YACC, M4, LEX and other programs that run
8161 # on the build machine. These are used if the Makefile can't locate these
8162 # programs in objdir.
8163 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8165 for ac_prog in 'bison -y' byacc yacc
8167 # Extract the first word of "$ac_prog", so it can be a program name with args.
8168 set dummy $ac_prog; ac_word=$2
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170 $as_echo_n "checking for $ac_word... " >&6; }
8171 if test "${ac_cv_prog_YACC+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 if test -n "$YACC"; then
8175 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8176 else
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8180 IFS=$as_save_IFS
8181 test -z "$as_dir" && as_dir=.
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8184 ac_cv_prog_YACC="$ac_prog"
8185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8186 break 2
8188 done
8189 done
8190 IFS=$as_save_IFS
8194 YACC=$ac_cv_prog_YACC
8195 if test -n "$YACC"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8197 $as_echo "$YACC" >&6; }
8198 else
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 $as_echo "no" >&6; }
8204 test -n "$YACC" && break
8205 done
8206 test -n "$YACC" || YACC="$MISSING bison -y"
8208 case " $build_configdirs " in
8209 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8210 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
8211 esac
8213 for ac_prog in bison
8215 # Extract the first word of "$ac_prog", so it can be a program name with args.
8216 set dummy $ac_prog; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if test "${ac_cv_prog_BISON+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 if test -n "$BISON"; then
8223 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8224 else
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 ac_cv_prog_BISON="$ac_prog"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 break 2
8236 done
8237 done
8238 IFS=$as_save_IFS
8242 BISON=$ac_cv_prog_BISON
8243 if test -n "$BISON"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8245 $as_echo "$BISON" >&6; }
8246 else
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8252 test -n "$BISON" && break
8253 done
8254 test -n "$BISON" || BISON="$MISSING bison"
8256 case " $build_configdirs " in
8257 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8258 esac
8260 for ac_prog in gm4 gnum4 m4
8262 # Extract the first word of "$ac_prog", so it can be a program name with args.
8263 set dummy $ac_prog; ac_word=$2
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8265 $as_echo_n "checking for $ac_word... " >&6; }
8266 if test "${ac_cv_prog_M4+set}" = set; then :
8267 $as_echo_n "(cached) " >&6
8268 else
8269 if test -n "$M4"; then
8270 ac_cv_prog_M4="$M4" # Let the user override the test.
8271 else
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $PATH
8275 IFS=$as_save_IFS
8276 test -z "$as_dir" && as_dir=.
8277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8279 ac_cv_prog_M4="$ac_prog"
8280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 break 2
8283 done
8284 done
8285 IFS=$as_save_IFS
8289 M4=$ac_cv_prog_M4
8290 if test -n "$M4"; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8292 $as_echo "$M4" >&6; }
8293 else
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 $as_echo "no" >&6; }
8299 test -n "$M4" && break
8300 done
8301 test -n "$M4" || M4="$MISSING m4"
8303 case " $build_configdirs " in
8304 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8305 esac
8307 for ac_prog in flex lex
8309 # Extract the first word of "$ac_prog", so it can be a program name with args.
8310 set dummy $ac_prog; ac_word=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if test "${ac_cv_prog_LEX+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 if test -n "$LEX"; then
8317 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8318 else
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 for as_dir in $PATH
8322 IFS=$as_save_IFS
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326 ac_cv_prog_LEX="$ac_prog"
8327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8328 break 2
8330 done
8331 done
8332 IFS=$as_save_IFS
8336 LEX=$ac_cv_prog_LEX
8337 if test -n "$LEX"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8339 $as_echo "$LEX" >&6; }
8340 else
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8346 test -n "$LEX" && break
8347 done
8348 test -n "$LEX" || LEX="$MISSING flex"
8350 case " $build_configdirs " in
8351 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8352 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8353 esac
8355 for ac_prog in flex
8357 # Extract the first word of "$ac_prog", so it can be a program name with args.
8358 set dummy $ac_prog; ac_word=$2
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8360 $as_echo_n "checking for $ac_word... " >&6; }
8361 if test "${ac_cv_prog_FLEX+set}" = set; then :
8362 $as_echo_n "(cached) " >&6
8363 else
8364 if test -n "$FLEX"; then
8365 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8366 else
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8370 IFS=$as_save_IFS
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374 ac_cv_prog_FLEX="$ac_prog"
8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 break 2
8378 done
8379 done
8380 IFS=$as_save_IFS
8384 FLEX=$ac_cv_prog_FLEX
8385 if test -n "$FLEX"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8387 $as_echo "$FLEX" >&6; }
8388 else
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8394 test -n "$FLEX" && break
8395 done
8396 test -n "$FLEX" || FLEX="$MISSING flex"
8398 case " $build_configdirs " in
8399 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8400 esac
8402 for ac_prog in makeinfo
8404 # Extract the first word of "$ac_prog", so it can be a program name with args.
8405 set dummy $ac_prog; ac_word=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 if test -n "$MAKEINFO"; then
8412 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8413 else
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 for as_dir in $PATH
8417 IFS=$as_save_IFS
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8421 ac_cv_prog_MAKEINFO="$ac_prog"
8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423 break 2
8425 done
8426 done
8427 IFS=$as_save_IFS
8431 MAKEINFO=$ac_cv_prog_MAKEINFO
8432 if test -n "$MAKEINFO"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8434 $as_echo "$MAKEINFO" >&6; }
8435 else
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8441 test -n "$MAKEINFO" && break
8442 done
8443 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8445 case " $build_configdirs " in
8446 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8449 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8450 # higher, else we use the "missing" dummy.
8451 if ${MAKEINFO} --version \
8452 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8454 else
8455 MAKEINFO="$MISSING makeinfo"
8459 esac
8461 # FIXME: expect and dejagnu may become build tools?
8463 for ac_prog in expect
8465 # Extract the first word of "$ac_prog", so it can be a program name with args.
8466 set dummy $ac_prog; ac_word=$2
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 $as_echo_n "checking for $ac_word... " >&6; }
8469 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8472 if test -n "$EXPECT"; then
8473 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8474 else
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8482 ac_cv_prog_EXPECT="$ac_prog"
8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484 break 2
8486 done
8487 done
8488 IFS=$as_save_IFS
8492 EXPECT=$ac_cv_prog_EXPECT
8493 if test -n "$EXPECT"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8495 $as_echo "$EXPECT" >&6; }
8496 else
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8502 test -n "$EXPECT" && break
8503 done
8504 test -n "$EXPECT" || EXPECT="expect"
8506 case " $configdirs " in
8507 *" expect "*)
8508 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8510 esac
8512 for ac_prog in runtest
8514 # Extract the first word of "$ac_prog", so it can be a program name with args.
8515 set dummy $ac_prog; ac_word=$2
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517 $as_echo_n "checking for $ac_word... " >&6; }
8518 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 if test -n "$RUNTEST"; then
8522 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8523 else
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 for as_dir in $PATH
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8531 ac_cv_prog_RUNTEST="$ac_prog"
8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 break 2
8535 done
8536 done
8537 IFS=$as_save_IFS
8541 RUNTEST=$ac_cv_prog_RUNTEST
8542 if test -n "$RUNTEST"; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8544 $as_echo "$RUNTEST" >&6; }
8545 else
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547 $as_echo "no" >&6; }
8551 test -n "$RUNTEST" && break
8552 done
8553 test -n "$RUNTEST" || RUNTEST="runtest"
8555 case " $configdirs " in
8556 *" dejagnu "*)
8557 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8559 esac
8562 # Host tools.
8563 ncn_tool_prefix=
8564 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8565 ncn_target_tool_prefix=
8566 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8570 if test -n "$AR"; then
8571 ac_cv_prog_AR=$AR
8572 elif test -n "$ac_cv_prog_AR"; then
8573 AR=$ac_cv_prog_AR
8576 if test -n "$ac_cv_prog_AR"; then
8577 for ncn_progname in ar; do
8578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8579 set dummy ${ncn_progname}; ac_word=$2
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581 $as_echo_n "checking for $ac_word... " >&6; }
8582 if test "${ac_cv_prog_AR+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8584 else
8585 if test -n "$AR"; then
8586 ac_cv_prog_AR="$AR" # Let the user override the test.
8587 else
8588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589 for as_dir in $PATH
8591 IFS=$as_save_IFS
8592 test -z "$as_dir" && as_dir=.
8593 for ac_exec_ext in '' $ac_executable_extensions; do
8594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8595 ac_cv_prog_AR="${ncn_progname}"
8596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8597 break 2
8599 done
8600 done
8601 IFS=$as_save_IFS
8605 AR=$ac_cv_prog_AR
8606 if test -n "$AR"; then
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8608 $as_echo "$AR" >&6; }
8609 else
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611 $as_echo "no" >&6; }
8615 done
8618 for ncn_progname in ar; do
8619 if test -n "$ncn_tool_prefix"; then
8620 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8621 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8623 $as_echo_n "checking for $ac_word... " >&6; }
8624 if test "${ac_cv_prog_AR+set}" = set; then :
8625 $as_echo_n "(cached) " >&6
8626 else
8627 if test -n "$AR"; then
8628 ac_cv_prog_AR="$AR" # Let the user override the test.
8629 else
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 for as_dir in $PATH
8633 IFS=$as_save_IFS
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8637 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639 break 2
8641 done
8642 done
8643 IFS=$as_save_IFS
8647 AR=$ac_cv_prog_AR
8648 if test -n "$AR"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8650 $as_echo "$AR" >&6; }
8651 else
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8658 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8660 set dummy ${ncn_progname}; ac_word=$2
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8662 $as_echo_n "checking for $ac_word... " >&6; }
8663 if test "${ac_cv_prog_AR+set}" = set; then :
8664 $as_echo_n "(cached) " >&6
8665 else
8666 if test -n "$AR"; then
8667 ac_cv_prog_AR="$AR" # Let the user override the test.
8668 else
8669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8670 for as_dir in $PATH
8672 IFS=$as_save_IFS
8673 test -z "$as_dir" && as_dir=.
8674 for ac_exec_ext in '' $ac_executable_extensions; do
8675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8676 ac_cv_prog_AR="${ncn_progname}"
8677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8678 break 2
8680 done
8681 done
8682 IFS=$as_save_IFS
8686 AR=$ac_cv_prog_AR
8687 if test -n "$AR"; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8689 $as_echo "$AR" >&6; }
8690 else
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692 $as_echo "no" >&6; }
8697 test -n "$ac_cv_prog_AR" && break
8698 done
8700 if test -z "$ac_cv_prog_AR" ; then
8701 set dummy ar
8702 if test $build = $host ; then
8703 AR="$2"
8704 else
8705 AR="${ncn_tool_prefix}$2"
8711 if test -n "$AS"; then
8712 ac_cv_prog_AS=$AS
8713 elif test -n "$ac_cv_prog_AS"; then
8714 AS=$ac_cv_prog_AS
8717 if test -n "$ac_cv_prog_AS"; then
8718 for ncn_progname in as; do
8719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8720 set dummy ${ncn_progname}; ac_word=$2
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722 $as_echo_n "checking for $ac_word... " >&6; }
8723 if test "${ac_cv_prog_AS+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 if test -n "$AS"; then
8727 ac_cv_prog_AS="$AS" # Let the user override the test.
8728 else
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730 for as_dir in $PATH
8732 IFS=$as_save_IFS
8733 test -z "$as_dir" && as_dir=.
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8736 ac_cv_prog_AS="${ncn_progname}"
8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8738 break 2
8740 done
8741 done
8742 IFS=$as_save_IFS
8746 AS=$ac_cv_prog_AS
8747 if test -n "$AS"; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8749 $as_echo "$AS" >&6; }
8750 else
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 $as_echo "no" >&6; }
8756 done
8759 for ncn_progname in as; do
8760 if test -n "$ncn_tool_prefix"; then
8761 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8762 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8764 $as_echo_n "checking for $ac_word... " >&6; }
8765 if test "${ac_cv_prog_AS+set}" = set; then :
8766 $as_echo_n "(cached) " >&6
8767 else
8768 if test -n "$AS"; then
8769 ac_cv_prog_AS="$AS" # Let the user override the test.
8770 else
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8774 IFS=$as_save_IFS
8775 test -z "$as_dir" && as_dir=.
8776 for ac_exec_ext in '' $ac_executable_extensions; do
8777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8778 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780 break 2
8782 done
8783 done
8784 IFS=$as_save_IFS
8788 AS=$ac_cv_prog_AS
8789 if test -n "$AS"; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8791 $as_echo "$AS" >&6; }
8792 else
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 $as_echo "no" >&6; }
8799 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8801 set dummy ${ncn_progname}; ac_word=$2
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803 $as_echo_n "checking for $ac_word... " >&6; }
8804 if test "${ac_cv_prog_AS+set}" = set; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 if test -n "$AS"; then
8808 ac_cv_prog_AS="$AS" # Let the user override the test.
8809 else
8810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811 for as_dir in $PATH
8813 IFS=$as_save_IFS
8814 test -z "$as_dir" && as_dir=.
8815 for ac_exec_ext in '' $ac_executable_extensions; do
8816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8817 ac_cv_prog_AS="${ncn_progname}"
8818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8819 break 2
8821 done
8822 done
8823 IFS=$as_save_IFS
8827 AS=$ac_cv_prog_AS
8828 if test -n "$AS"; then
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8830 $as_echo "$AS" >&6; }
8831 else
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833 $as_echo "no" >&6; }
8838 test -n "$ac_cv_prog_AS" && break
8839 done
8841 if test -z "$ac_cv_prog_AS" ; then
8842 set dummy as
8843 if test $build = $host ; then
8844 AS="$2"
8845 else
8846 AS="${ncn_tool_prefix}$2"
8852 if test -n "$DLLTOOL"; then
8853 ac_cv_prog_DLLTOOL=$DLLTOOL
8854 elif test -n "$ac_cv_prog_DLLTOOL"; then
8855 DLLTOOL=$ac_cv_prog_DLLTOOL
8858 if test -n "$ac_cv_prog_DLLTOOL"; then
8859 for ncn_progname in dlltool; do
8860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8861 set dummy ${ncn_progname}; ac_word=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8866 else
8867 if test -n "$DLLTOOL"; then
8868 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8869 else
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871 for as_dir in $PATH
8873 IFS=$as_save_IFS
8874 test -z "$as_dir" && as_dir=.
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8877 ac_cv_prog_DLLTOOL="${ncn_progname}"
8878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8879 break 2
8881 done
8882 done
8883 IFS=$as_save_IFS
8887 DLLTOOL=$ac_cv_prog_DLLTOOL
8888 if test -n "$DLLTOOL"; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8890 $as_echo "$DLLTOOL" >&6; }
8891 else
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 $as_echo "no" >&6; }
8897 done
8900 for ncn_progname in dlltool; do
8901 if test -n "$ncn_tool_prefix"; then
8902 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8903 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8905 $as_echo_n "checking for $ac_word... " >&6; }
8906 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8907 $as_echo_n "(cached) " >&6
8908 else
8909 if test -n "$DLLTOOL"; then
8910 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8911 else
8912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913 for as_dir in $PATH
8915 IFS=$as_save_IFS
8916 test -z "$as_dir" && as_dir=.
8917 for ac_exec_ext in '' $ac_executable_extensions; do
8918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8919 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8921 break 2
8923 done
8924 done
8925 IFS=$as_save_IFS
8929 DLLTOOL=$ac_cv_prog_DLLTOOL
8930 if test -n "$DLLTOOL"; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8932 $as_echo "$DLLTOOL" >&6; }
8933 else
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935 $as_echo "no" >&6; }
8940 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8942 set dummy ${ncn_progname}; ac_word=$2
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944 $as_echo_n "checking for $ac_word... " >&6; }
8945 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8946 $as_echo_n "(cached) " >&6
8947 else
8948 if test -n "$DLLTOOL"; then
8949 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8950 else
8951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952 for as_dir in $PATH
8954 IFS=$as_save_IFS
8955 test -z "$as_dir" && as_dir=.
8956 for ac_exec_ext in '' $ac_executable_extensions; do
8957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8958 ac_cv_prog_DLLTOOL="${ncn_progname}"
8959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8960 break 2
8962 done
8963 done
8964 IFS=$as_save_IFS
8968 DLLTOOL=$ac_cv_prog_DLLTOOL
8969 if test -n "$DLLTOOL"; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8971 $as_echo "$DLLTOOL" >&6; }
8972 else
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 $as_echo "no" >&6; }
8979 test -n "$ac_cv_prog_DLLTOOL" && break
8980 done
8982 if test -z "$ac_cv_prog_DLLTOOL" ; then
8983 set dummy dlltool
8984 if test $build = $host ; then
8985 DLLTOOL="$2"
8986 else
8987 DLLTOOL="${ncn_tool_prefix}$2"
8993 if test -n "$LD"; then
8994 ac_cv_prog_LD=$LD
8995 elif test -n "$ac_cv_prog_LD"; then
8996 LD=$ac_cv_prog_LD
8999 if test -n "$ac_cv_prog_LD"; then
9000 for ncn_progname in ld; do
9001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9002 set dummy ${ncn_progname}; ac_word=$2
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9004 $as_echo_n "checking for $ac_word... " >&6; }
9005 if test "${ac_cv_prog_LD+set}" = set; then :
9006 $as_echo_n "(cached) " >&6
9007 else
9008 if test -n "$LD"; then
9009 ac_cv_prog_LD="$LD" # Let the user override the test.
9010 else
9011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9012 for as_dir in $PATH
9014 IFS=$as_save_IFS
9015 test -z "$as_dir" && as_dir=.
9016 for ac_exec_ext in '' $ac_executable_extensions; do
9017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9018 ac_cv_prog_LD="${ncn_progname}"
9019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9020 break 2
9022 done
9023 done
9024 IFS=$as_save_IFS
9028 LD=$ac_cv_prog_LD
9029 if test -n "$LD"; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9031 $as_echo "$LD" >&6; }
9032 else
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9034 $as_echo "no" >&6; }
9038 done
9041 for ncn_progname in ld; do
9042 if test -n "$ncn_tool_prefix"; then
9043 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9044 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9046 $as_echo_n "checking for $ac_word... " >&6; }
9047 if test "${ac_cv_prog_LD+set}" = set; then :
9048 $as_echo_n "(cached) " >&6
9049 else
9050 if test -n "$LD"; then
9051 ac_cv_prog_LD="$LD" # Let the user override the test.
9052 else
9053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 for as_dir in $PATH
9056 IFS=$as_save_IFS
9057 test -z "$as_dir" && as_dir=.
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9060 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
9061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9062 break 2
9064 done
9065 done
9066 IFS=$as_save_IFS
9070 LD=$ac_cv_prog_LD
9071 if test -n "$LD"; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9073 $as_echo "$LD" >&6; }
9074 else
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9081 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
9082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9083 set dummy ${ncn_progname}; ac_word=$2
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 $as_echo_n "checking for $ac_word... " >&6; }
9086 if test "${ac_cv_prog_LD+set}" = set; then :
9087 $as_echo_n "(cached) " >&6
9088 else
9089 if test -n "$LD"; then
9090 ac_cv_prog_LD="$LD" # Let the user override the test.
9091 else
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093 for as_dir in $PATH
9095 IFS=$as_save_IFS
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9099 ac_cv_prog_LD="${ncn_progname}"
9100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9101 break 2
9103 done
9104 done
9105 IFS=$as_save_IFS
9109 LD=$ac_cv_prog_LD
9110 if test -n "$LD"; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9112 $as_echo "$LD" >&6; }
9113 else
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115 $as_echo "no" >&6; }
9120 test -n "$ac_cv_prog_LD" && break
9121 done
9123 if test -z "$ac_cv_prog_LD" ; then
9124 set dummy ld
9125 if test $build = $host ; then
9126 LD="$2"
9127 else
9128 LD="${ncn_tool_prefix}$2"
9134 if test -n "$LIPO"; then
9135 ac_cv_prog_LIPO=$LIPO
9136 elif test -n "$ac_cv_prog_LIPO"; then
9137 LIPO=$ac_cv_prog_LIPO
9140 if test -n "$ac_cv_prog_LIPO"; then
9141 for ncn_progname in lipo; do
9142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9143 set dummy ${ncn_progname}; ac_word=$2
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9145 $as_echo_n "checking for $ac_word... " >&6; }
9146 if test "${ac_cv_prog_LIPO+set}" = set; then :
9147 $as_echo_n "(cached) " >&6
9148 else
9149 if test -n "$LIPO"; then
9150 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9151 else
9152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9153 for as_dir in $PATH
9155 IFS=$as_save_IFS
9156 test -z "$as_dir" && as_dir=.
9157 for ac_exec_ext in '' $ac_executable_extensions; do
9158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9159 ac_cv_prog_LIPO="${ncn_progname}"
9160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9161 break 2
9163 done
9164 done
9165 IFS=$as_save_IFS
9169 LIPO=$ac_cv_prog_LIPO
9170 if test -n "$LIPO"; then
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9172 $as_echo "$LIPO" >&6; }
9173 else
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9175 $as_echo "no" >&6; }
9179 done
9182 for ncn_progname in lipo; do
9183 if test -n "$ncn_tool_prefix"; then
9184 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9185 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9187 $as_echo_n "checking for $ac_word... " >&6; }
9188 if test "${ac_cv_prog_LIPO+set}" = set; then :
9189 $as_echo_n "(cached) " >&6
9190 else
9191 if test -n "$LIPO"; then
9192 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9193 else
9194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9195 for as_dir in $PATH
9197 IFS=$as_save_IFS
9198 test -z "$as_dir" && as_dir=.
9199 for ac_exec_ext in '' $ac_executable_extensions; do
9200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9201 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
9202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9203 break 2
9205 done
9206 done
9207 IFS=$as_save_IFS
9211 LIPO=$ac_cv_prog_LIPO
9212 if test -n "$LIPO"; then
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9214 $as_echo "$LIPO" >&6; }
9215 else
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9217 $as_echo "no" >&6; }
9222 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9224 set dummy ${ncn_progname}; ac_word=$2
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9226 $as_echo_n "checking for $ac_word... " >&6; }
9227 if test "${ac_cv_prog_LIPO+set}" = set; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 if test -n "$LIPO"; then
9231 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9232 else
9233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234 for as_dir in $PATH
9236 IFS=$as_save_IFS
9237 test -z "$as_dir" && as_dir=.
9238 for ac_exec_ext in '' $ac_executable_extensions; do
9239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9240 ac_cv_prog_LIPO="${ncn_progname}"
9241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9242 break 2
9244 done
9245 done
9246 IFS=$as_save_IFS
9250 LIPO=$ac_cv_prog_LIPO
9251 if test -n "$LIPO"; then
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9253 $as_echo "$LIPO" >&6; }
9254 else
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9256 $as_echo "no" >&6; }
9261 test -n "$ac_cv_prog_LIPO" && break
9262 done
9264 if test -z "$ac_cv_prog_LIPO" ; then
9265 set dummy lipo
9266 if test $build = $host ; then
9267 LIPO="$2"
9268 else
9269 LIPO="${ncn_tool_prefix}$2"
9275 if test -n "$NM"; then
9276 ac_cv_prog_NM=$NM
9277 elif test -n "$ac_cv_prog_NM"; then
9278 NM=$ac_cv_prog_NM
9281 if test -n "$ac_cv_prog_NM"; then
9282 for ncn_progname in nm; do
9283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9284 set dummy ${ncn_progname}; ac_word=$2
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9286 $as_echo_n "checking for $ac_word... " >&6; }
9287 if test "${ac_cv_prog_NM+set}" = set; then :
9288 $as_echo_n "(cached) " >&6
9289 else
9290 if test -n "$NM"; then
9291 ac_cv_prog_NM="$NM" # Let the user override the test.
9292 else
9293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9294 for as_dir in $PATH
9296 IFS=$as_save_IFS
9297 test -z "$as_dir" && as_dir=.
9298 for ac_exec_ext in '' $ac_executable_extensions; do
9299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9300 ac_cv_prog_NM="${ncn_progname}"
9301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9302 break 2
9304 done
9305 done
9306 IFS=$as_save_IFS
9310 NM=$ac_cv_prog_NM
9311 if test -n "$NM"; then
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9313 $as_echo "$NM" >&6; }
9314 else
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9316 $as_echo "no" >&6; }
9320 done
9323 for ncn_progname in nm; do
9324 if test -n "$ncn_tool_prefix"; then
9325 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9326 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9328 $as_echo_n "checking for $ac_word... " >&6; }
9329 if test "${ac_cv_prog_NM+set}" = set; then :
9330 $as_echo_n "(cached) " >&6
9331 else
9332 if test -n "$NM"; then
9333 ac_cv_prog_NM="$NM" # Let the user override the test.
9334 else
9335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9336 for as_dir in $PATH
9338 IFS=$as_save_IFS
9339 test -z "$as_dir" && as_dir=.
9340 for ac_exec_ext in '' $ac_executable_extensions; do
9341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9342 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9344 break 2
9346 done
9347 done
9348 IFS=$as_save_IFS
9352 NM=$ac_cv_prog_NM
9353 if test -n "$NM"; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9355 $as_echo "$NM" >&6; }
9356 else
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358 $as_echo "no" >&6; }
9363 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9365 set dummy ${ncn_progname}; ac_word=$2
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9367 $as_echo_n "checking for $ac_word... " >&6; }
9368 if test "${ac_cv_prog_NM+set}" = set; then :
9369 $as_echo_n "(cached) " >&6
9370 else
9371 if test -n "$NM"; then
9372 ac_cv_prog_NM="$NM" # Let the user override the test.
9373 else
9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9375 for as_dir in $PATH
9377 IFS=$as_save_IFS
9378 test -z "$as_dir" && as_dir=.
9379 for ac_exec_ext in '' $ac_executable_extensions; do
9380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9381 ac_cv_prog_NM="${ncn_progname}"
9382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9383 break 2
9385 done
9386 done
9387 IFS=$as_save_IFS
9391 NM=$ac_cv_prog_NM
9392 if test -n "$NM"; then
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9394 $as_echo "$NM" >&6; }
9395 else
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 $as_echo "no" >&6; }
9402 test -n "$ac_cv_prog_NM" && break
9403 done
9405 if test -z "$ac_cv_prog_NM" ; then
9406 set dummy nm
9407 if test $build = $host ; then
9408 NM="$2"
9409 else
9410 NM="${ncn_tool_prefix}$2"
9416 if test -n "$RANLIB"; then
9417 ac_cv_prog_RANLIB=$RANLIB
9418 elif test -n "$ac_cv_prog_RANLIB"; then
9419 RANLIB=$ac_cv_prog_RANLIB
9422 if test -n "$ac_cv_prog_RANLIB"; then
9423 for ncn_progname in ranlib; do
9424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9425 set dummy ${ncn_progname}; ac_word=$2
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9427 $as_echo_n "checking for $ac_word... " >&6; }
9428 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9429 $as_echo_n "(cached) " >&6
9430 else
9431 if test -n "$RANLIB"; then
9432 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9433 else
9434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9435 for as_dir in $PATH
9437 IFS=$as_save_IFS
9438 test -z "$as_dir" && as_dir=.
9439 for ac_exec_ext in '' $ac_executable_extensions; do
9440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9441 ac_cv_prog_RANLIB="${ncn_progname}"
9442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9443 break 2
9445 done
9446 done
9447 IFS=$as_save_IFS
9451 RANLIB=$ac_cv_prog_RANLIB
9452 if test -n "$RANLIB"; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9454 $as_echo "$RANLIB" >&6; }
9455 else
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457 $as_echo "no" >&6; }
9461 done
9464 for ncn_progname in ranlib; do
9465 if test -n "$ncn_tool_prefix"; then
9466 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9467 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9469 $as_echo_n "checking for $ac_word... " >&6; }
9470 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9471 $as_echo_n "(cached) " >&6
9472 else
9473 if test -n "$RANLIB"; then
9474 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9475 else
9476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477 for as_dir in $PATH
9479 IFS=$as_save_IFS
9480 test -z "$as_dir" && as_dir=.
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9483 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9485 break 2
9487 done
9488 done
9489 IFS=$as_save_IFS
9493 RANLIB=$ac_cv_prog_RANLIB
9494 if test -n "$RANLIB"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9496 $as_echo "$RANLIB" >&6; }
9497 else
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9504 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9506 set dummy ${ncn_progname}; ac_word=$2
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9508 $as_echo_n "checking for $ac_word... " >&6; }
9509 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9510 $as_echo_n "(cached) " >&6
9511 else
9512 if test -n "$RANLIB"; then
9513 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9514 else
9515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9516 for as_dir in $PATH
9518 IFS=$as_save_IFS
9519 test -z "$as_dir" && as_dir=.
9520 for ac_exec_ext in '' $ac_executable_extensions; do
9521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9522 ac_cv_prog_RANLIB="${ncn_progname}"
9523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9524 break 2
9526 done
9527 done
9528 IFS=$as_save_IFS
9532 RANLIB=$ac_cv_prog_RANLIB
9533 if test -n "$RANLIB"; then
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9535 $as_echo "$RANLIB" >&6; }
9536 else
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9538 $as_echo "no" >&6; }
9543 test -n "$ac_cv_prog_RANLIB" && break
9544 done
9546 if test -z "$ac_cv_prog_RANLIB" ; then
9547 RANLIB="true"
9552 if test -n "$STRIP"; then
9553 ac_cv_prog_STRIP=$STRIP
9554 elif test -n "$ac_cv_prog_STRIP"; then
9555 STRIP=$ac_cv_prog_STRIP
9558 if test -n "$ac_cv_prog_STRIP"; then
9559 for ncn_progname in strip; do
9560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9561 set dummy ${ncn_progname}; ac_word=$2
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9563 $as_echo_n "checking for $ac_word... " >&6; }
9564 if test "${ac_cv_prog_STRIP+set}" = set; then :
9565 $as_echo_n "(cached) " >&6
9566 else
9567 if test -n "$STRIP"; then
9568 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9569 else
9570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9571 for as_dir in $PATH
9573 IFS=$as_save_IFS
9574 test -z "$as_dir" && as_dir=.
9575 for ac_exec_ext in '' $ac_executable_extensions; do
9576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9577 ac_cv_prog_STRIP="${ncn_progname}"
9578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9579 break 2
9581 done
9582 done
9583 IFS=$as_save_IFS
9587 STRIP=$ac_cv_prog_STRIP
9588 if test -n "$STRIP"; then
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9590 $as_echo "$STRIP" >&6; }
9591 else
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9593 $as_echo "no" >&6; }
9597 done
9600 for ncn_progname in strip; do
9601 if test -n "$ncn_tool_prefix"; then
9602 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9603 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9605 $as_echo_n "checking for $ac_word... " >&6; }
9606 if test "${ac_cv_prog_STRIP+set}" = set; then :
9607 $as_echo_n "(cached) " >&6
9608 else
9609 if test -n "$STRIP"; then
9610 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9611 else
9612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613 for as_dir in $PATH
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
9617 for ac_exec_ext in '' $ac_executable_extensions; do
9618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9619 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 break 2
9623 done
9624 done
9625 IFS=$as_save_IFS
9629 STRIP=$ac_cv_prog_STRIP
9630 if test -n "$STRIP"; then
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9632 $as_echo "$STRIP" >&6; }
9633 else
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9635 $as_echo "no" >&6; }
9640 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9642 set dummy ${ncn_progname}; ac_word=$2
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644 $as_echo_n "checking for $ac_word... " >&6; }
9645 if test "${ac_cv_prog_STRIP+set}" = set; then :
9646 $as_echo_n "(cached) " >&6
9647 else
9648 if test -n "$STRIP"; then
9649 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9650 else
9651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652 for as_dir in $PATH
9654 IFS=$as_save_IFS
9655 test -z "$as_dir" && as_dir=.
9656 for ac_exec_ext in '' $ac_executable_extensions; do
9657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9658 ac_cv_prog_STRIP="${ncn_progname}"
9659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9660 break 2
9662 done
9663 done
9664 IFS=$as_save_IFS
9668 STRIP=$ac_cv_prog_STRIP
9669 if test -n "$STRIP"; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9671 $as_echo "$STRIP" >&6; }
9672 else
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674 $as_echo "no" >&6; }
9679 test -n "$ac_cv_prog_STRIP" && break
9680 done
9682 if test -z "$ac_cv_prog_STRIP" ; then
9683 STRIP="true"
9688 if test -n "$WINDRES"; then
9689 ac_cv_prog_WINDRES=$WINDRES
9690 elif test -n "$ac_cv_prog_WINDRES"; then
9691 WINDRES=$ac_cv_prog_WINDRES
9694 if test -n "$ac_cv_prog_WINDRES"; then
9695 for ncn_progname in windres; do
9696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9697 set dummy ${ncn_progname}; ac_word=$2
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9699 $as_echo_n "checking for $ac_word... " >&6; }
9700 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9701 $as_echo_n "(cached) " >&6
9702 else
9703 if test -n "$WINDRES"; then
9704 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9705 else
9706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9707 for as_dir in $PATH
9709 IFS=$as_save_IFS
9710 test -z "$as_dir" && as_dir=.
9711 for ac_exec_ext in '' $ac_executable_extensions; do
9712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9713 ac_cv_prog_WINDRES="${ncn_progname}"
9714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9715 break 2
9717 done
9718 done
9719 IFS=$as_save_IFS
9723 WINDRES=$ac_cv_prog_WINDRES
9724 if test -n "$WINDRES"; then
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9726 $as_echo "$WINDRES" >&6; }
9727 else
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729 $as_echo "no" >&6; }
9733 done
9736 for ncn_progname in windres; do
9737 if test -n "$ncn_tool_prefix"; then
9738 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9739 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9741 $as_echo_n "checking for $ac_word... " >&6; }
9742 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9743 $as_echo_n "(cached) " >&6
9744 else
9745 if test -n "$WINDRES"; then
9746 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9747 else
9748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749 for as_dir in $PATH
9751 IFS=$as_save_IFS
9752 test -z "$as_dir" && as_dir=.
9753 for ac_exec_ext in '' $ac_executable_extensions; do
9754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9755 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9757 break 2
9759 done
9760 done
9761 IFS=$as_save_IFS
9765 WINDRES=$ac_cv_prog_WINDRES
9766 if test -n "$WINDRES"; then
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9768 $as_echo "$WINDRES" >&6; }
9769 else
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9771 $as_echo "no" >&6; }
9776 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9778 set dummy ${ncn_progname}; ac_word=$2
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9780 $as_echo_n "checking for $ac_word... " >&6; }
9781 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9782 $as_echo_n "(cached) " >&6
9783 else
9784 if test -n "$WINDRES"; then
9785 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9786 else
9787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788 for as_dir in $PATH
9790 IFS=$as_save_IFS
9791 test -z "$as_dir" && as_dir=.
9792 for ac_exec_ext in '' $ac_executable_extensions; do
9793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9794 ac_cv_prog_WINDRES="${ncn_progname}"
9795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9796 break 2
9798 done
9799 done
9800 IFS=$as_save_IFS
9804 WINDRES=$ac_cv_prog_WINDRES
9805 if test -n "$WINDRES"; then
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9807 $as_echo "$WINDRES" >&6; }
9808 else
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9810 $as_echo "no" >&6; }
9815 test -n "$ac_cv_prog_WINDRES" && break
9816 done
9818 if test -z "$ac_cv_prog_WINDRES" ; then
9819 set dummy windres
9820 if test $build = $host ; then
9821 WINDRES="$2"
9822 else
9823 WINDRES="${ncn_tool_prefix}$2"
9829 if test -n "$WINDMC"; then
9830 ac_cv_prog_WINDMC=$WINDMC
9831 elif test -n "$ac_cv_prog_WINDMC"; then
9832 WINDMC=$ac_cv_prog_WINDMC
9835 if test -n "$ac_cv_prog_WINDMC"; then
9836 for ncn_progname in windmc; do
9837 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9838 set dummy ${ncn_progname}; ac_word=$2
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9840 $as_echo_n "checking for $ac_word... " >&6; }
9841 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9842 $as_echo_n "(cached) " >&6
9843 else
9844 if test -n "$WINDMC"; then
9845 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9846 else
9847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9848 for as_dir in $PATH
9850 IFS=$as_save_IFS
9851 test -z "$as_dir" && as_dir=.
9852 for ac_exec_ext in '' $ac_executable_extensions; do
9853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9854 ac_cv_prog_WINDMC="${ncn_progname}"
9855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9856 break 2
9858 done
9859 done
9860 IFS=$as_save_IFS
9864 WINDMC=$ac_cv_prog_WINDMC
9865 if test -n "$WINDMC"; then
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9867 $as_echo "$WINDMC" >&6; }
9868 else
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870 $as_echo "no" >&6; }
9874 done
9877 for ncn_progname in windmc; do
9878 if test -n "$ncn_tool_prefix"; then
9879 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9880 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9882 $as_echo_n "checking for $ac_word... " >&6; }
9883 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9884 $as_echo_n "(cached) " >&6
9885 else
9886 if test -n "$WINDMC"; then
9887 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9888 else
9889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9890 for as_dir in $PATH
9892 IFS=$as_save_IFS
9893 test -z "$as_dir" && as_dir=.
9894 for ac_exec_ext in '' $ac_executable_extensions; do
9895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9896 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898 break 2
9900 done
9901 done
9902 IFS=$as_save_IFS
9906 WINDMC=$ac_cv_prog_WINDMC
9907 if test -n "$WINDMC"; then
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9909 $as_echo "$WINDMC" >&6; }
9910 else
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9912 $as_echo "no" >&6; }
9917 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9918 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9919 set dummy ${ncn_progname}; ac_word=$2
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9921 $as_echo_n "checking for $ac_word... " >&6; }
9922 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9923 $as_echo_n "(cached) " >&6
9924 else
9925 if test -n "$WINDMC"; then
9926 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9927 else
9928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929 for as_dir in $PATH
9931 IFS=$as_save_IFS
9932 test -z "$as_dir" && as_dir=.
9933 for ac_exec_ext in '' $ac_executable_extensions; do
9934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9935 ac_cv_prog_WINDMC="${ncn_progname}"
9936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9937 break 2
9939 done
9940 done
9941 IFS=$as_save_IFS
9945 WINDMC=$ac_cv_prog_WINDMC
9946 if test -n "$WINDMC"; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9948 $as_echo "$WINDMC" >&6; }
9949 else
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9956 test -n "$ac_cv_prog_WINDMC" && break
9957 done
9959 if test -z "$ac_cv_prog_WINDMC" ; then
9960 set dummy windmc
9961 if test $build = $host ; then
9962 WINDMC="$2"
9963 else
9964 WINDMC="${ncn_tool_prefix}$2"
9970 if test -n "$OBJCOPY"; then
9971 ac_cv_prog_OBJCOPY=$OBJCOPY
9972 elif test -n "$ac_cv_prog_OBJCOPY"; then
9973 OBJCOPY=$ac_cv_prog_OBJCOPY
9976 if test -n "$ac_cv_prog_OBJCOPY"; then
9977 for ncn_progname in objcopy; do
9978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9979 set dummy ${ncn_progname}; ac_word=$2
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9981 $as_echo_n "checking for $ac_word... " >&6; }
9982 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9983 $as_echo_n "(cached) " >&6
9984 else
9985 if test -n "$OBJCOPY"; then
9986 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9987 else
9988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989 for as_dir in $PATH
9991 IFS=$as_save_IFS
9992 test -z "$as_dir" && as_dir=.
9993 for ac_exec_ext in '' $ac_executable_extensions; do
9994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9995 ac_cv_prog_OBJCOPY="${ncn_progname}"
9996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9997 break 2
9999 done
10000 done
10001 IFS=$as_save_IFS
10005 OBJCOPY=$ac_cv_prog_OBJCOPY
10006 if test -n "$OBJCOPY"; then
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10008 $as_echo "$OBJCOPY" >&6; }
10009 else
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10011 $as_echo "no" >&6; }
10015 done
10018 for ncn_progname in objcopy; do
10019 if test -n "$ncn_tool_prefix"; then
10020 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10021 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10023 $as_echo_n "checking for $ac_word... " >&6; }
10024 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
10025 $as_echo_n "(cached) " >&6
10026 else
10027 if test -n "$OBJCOPY"; then
10028 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
10029 else
10030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031 for as_dir in $PATH
10033 IFS=$as_save_IFS
10034 test -z "$as_dir" && as_dir=.
10035 for ac_exec_ext in '' $ac_executable_extensions; do
10036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10037 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
10038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10039 break 2
10041 done
10042 done
10043 IFS=$as_save_IFS
10047 OBJCOPY=$ac_cv_prog_OBJCOPY
10048 if test -n "$OBJCOPY"; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10050 $as_echo "$OBJCOPY" >&6; }
10051 else
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10058 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
10059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10060 set dummy ${ncn_progname}; ac_word=$2
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10062 $as_echo_n "checking for $ac_word... " >&6; }
10063 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
10064 $as_echo_n "(cached) " >&6
10065 else
10066 if test -n "$OBJCOPY"; then
10067 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
10068 else
10069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10070 for as_dir in $PATH
10072 IFS=$as_save_IFS
10073 test -z "$as_dir" && as_dir=.
10074 for ac_exec_ext in '' $ac_executable_extensions; do
10075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10076 ac_cv_prog_OBJCOPY="${ncn_progname}"
10077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10078 break 2
10080 done
10081 done
10082 IFS=$as_save_IFS
10086 OBJCOPY=$ac_cv_prog_OBJCOPY
10087 if test -n "$OBJCOPY"; then
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10089 $as_echo "$OBJCOPY" >&6; }
10090 else
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10092 $as_echo "no" >&6; }
10097 test -n "$ac_cv_prog_OBJCOPY" && break
10098 done
10100 if test -z "$ac_cv_prog_OBJCOPY" ; then
10101 set dummy objcopy
10102 if test $build = $host ; then
10103 OBJCOPY="$2"
10104 else
10105 OBJCOPY="${ncn_tool_prefix}$2"
10111 if test -n "$OBJDUMP"; then
10112 ac_cv_prog_OBJDUMP=$OBJDUMP
10113 elif test -n "$ac_cv_prog_OBJDUMP"; then
10114 OBJDUMP=$ac_cv_prog_OBJDUMP
10117 if test -n "$ac_cv_prog_OBJDUMP"; then
10118 for ncn_progname in objdump; do
10119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10120 set dummy ${ncn_progname}; ac_word=$2
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122 $as_echo_n "checking for $ac_word... " >&6; }
10123 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10124 $as_echo_n "(cached) " >&6
10125 else
10126 if test -n "$OBJDUMP"; then
10127 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10128 else
10129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130 for as_dir in $PATH
10132 IFS=$as_save_IFS
10133 test -z "$as_dir" && as_dir=.
10134 for ac_exec_ext in '' $ac_executable_extensions; do
10135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10136 ac_cv_prog_OBJDUMP="${ncn_progname}"
10137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10138 break 2
10140 done
10141 done
10142 IFS=$as_save_IFS
10146 OBJDUMP=$ac_cv_prog_OBJDUMP
10147 if test -n "$OBJDUMP"; then
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10149 $as_echo "$OBJDUMP" >&6; }
10150 else
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 $as_echo "no" >&6; }
10156 done
10159 for ncn_progname in objdump; do
10160 if test -n "$ncn_tool_prefix"; then
10161 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10162 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10164 $as_echo_n "checking for $ac_word... " >&6; }
10165 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10166 $as_echo_n "(cached) " >&6
10167 else
10168 if test -n "$OBJDUMP"; then
10169 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10170 else
10171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10172 for as_dir in $PATH
10174 IFS=$as_save_IFS
10175 test -z "$as_dir" && as_dir=.
10176 for ac_exec_ext in '' $ac_executable_extensions; do
10177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10178 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
10179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10180 break 2
10182 done
10183 done
10184 IFS=$as_save_IFS
10188 OBJDUMP=$ac_cv_prog_OBJDUMP
10189 if test -n "$OBJDUMP"; then
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10191 $as_echo "$OBJDUMP" >&6; }
10192 else
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10194 $as_echo "no" >&6; }
10199 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10201 set dummy ${ncn_progname}; ac_word=$2
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10203 $as_echo_n "checking for $ac_word... " >&6; }
10204 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10205 $as_echo_n "(cached) " >&6
10206 else
10207 if test -n "$OBJDUMP"; then
10208 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10209 else
10210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10211 for as_dir in $PATH
10213 IFS=$as_save_IFS
10214 test -z "$as_dir" && as_dir=.
10215 for ac_exec_ext in '' $ac_executable_extensions; do
10216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10217 ac_cv_prog_OBJDUMP="${ncn_progname}"
10218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10219 break 2
10221 done
10222 done
10223 IFS=$as_save_IFS
10227 OBJDUMP=$ac_cv_prog_OBJDUMP
10228 if test -n "$OBJDUMP"; then
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10230 $as_echo "$OBJDUMP" >&6; }
10231 else
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10233 $as_echo "no" >&6; }
10238 test -n "$ac_cv_prog_OBJDUMP" && break
10239 done
10241 if test -z "$ac_cv_prog_OBJDUMP" ; then
10242 set dummy objdump
10243 if test $build = $host ; then
10244 OBJDUMP="$2"
10245 else
10246 OBJDUMP="${ncn_tool_prefix}$2"
10255 # Target tools.
10257 # Check whether --with-build-time-tools was given.
10258 if test "${with_build_time_tools+set}" = set; then :
10259 withval=$with_build_time_tools; case x"$withval" in
10260 x/*) ;;
10262 with_build_time_tools=
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10264 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10266 esac
10267 else
10268 with_build_time_tools=
10274 if test -n "$CC_FOR_TARGET"; then
10275 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10276 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10277 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10280 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10281 for ncn_progname in cc gcc; do
10282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10283 set dummy ${ncn_progname}; ac_word=$2
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10285 $as_echo_n "checking for $ac_word... " >&6; }
10286 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10287 $as_echo_n "(cached) " >&6
10288 else
10289 if test -n "$CC_FOR_TARGET"; then
10290 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10291 else
10292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10293 for as_dir in $PATH
10295 IFS=$as_save_IFS
10296 test -z "$as_dir" && as_dir=.
10297 for ac_exec_ext in '' $ac_executable_extensions; do
10298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10299 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10301 break 2
10303 done
10304 done
10305 IFS=$as_save_IFS
10309 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10310 if test -n "$CC_FOR_TARGET"; then
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10312 $as_echo "$CC_FOR_TARGET" >&6; }
10313 else
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10315 $as_echo "no" >&6; }
10319 done
10322 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10323 for ncn_progname in cc gcc; do
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10325 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10326 if test -x $with_build_time_tools/${ncn_progname}; then
10327 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10329 $as_echo "yes" >&6; }
10330 break
10331 else
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333 $as_echo "no" >&6; }
10335 done
10338 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10339 for ncn_progname in cc gcc; do
10340 if test -n "$ncn_target_tool_prefix"; then
10341 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10342 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344 $as_echo_n "checking for $ac_word... " >&6; }
10345 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10346 $as_echo_n "(cached) " >&6
10347 else
10348 if test -n "$CC_FOR_TARGET"; then
10349 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10350 else
10351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352 for as_dir in $PATH
10354 IFS=$as_save_IFS
10355 test -z "$as_dir" && as_dir=.
10356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10358 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10360 break 2
10362 done
10363 done
10364 IFS=$as_save_IFS
10368 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10369 if test -n "$CC_FOR_TARGET"; then
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10371 $as_echo "$CC_FOR_TARGET" >&6; }
10372 else
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374 $as_echo "no" >&6; }
10379 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10381 set dummy ${ncn_progname}; ac_word=$2
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383 $as_echo_n "checking for $ac_word... " >&6; }
10384 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
10386 else
10387 if test -n "$CC_FOR_TARGET"; then
10388 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10389 else
10390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10391 for as_dir in $PATH
10393 IFS=$as_save_IFS
10394 test -z "$as_dir" && as_dir=.
10395 for ac_exec_ext in '' $ac_executable_extensions; do
10396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10397 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10399 break 2
10401 done
10402 done
10403 IFS=$as_save_IFS
10407 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10408 if test -n "$CC_FOR_TARGET"; then
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10410 $as_echo "$CC_FOR_TARGET" >&6; }
10411 else
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413 $as_echo "no" >&6; }
10418 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10419 done
10422 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10423 set dummy cc gcc
10424 if test $build = $target ; then
10425 CC_FOR_TARGET="$2"
10426 else
10427 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10429 else
10430 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10435 if test -n "$CXX_FOR_TARGET"; then
10436 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10437 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10438 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10441 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10442 for ncn_progname in c++ g++ cxx gxx; do
10443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10444 set dummy ${ncn_progname}; ac_word=$2
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10446 $as_echo_n "checking for $ac_word... " >&6; }
10447 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10448 $as_echo_n "(cached) " >&6
10449 else
10450 if test -n "$CXX_FOR_TARGET"; then
10451 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10452 else
10453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454 for as_dir in $PATH
10456 IFS=$as_save_IFS
10457 test -z "$as_dir" && as_dir=.
10458 for ac_exec_ext in '' $ac_executable_extensions; do
10459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10460 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10462 break 2
10464 done
10465 done
10466 IFS=$as_save_IFS
10470 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10471 if test -n "$CXX_FOR_TARGET"; then
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10473 $as_echo "$CXX_FOR_TARGET" >&6; }
10474 else
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10476 $as_echo "no" >&6; }
10480 done
10483 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10484 for ncn_progname in c++ g++ cxx gxx; do
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10486 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10487 if test -x $with_build_time_tools/${ncn_progname}; then
10488 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10490 $as_echo "yes" >&6; }
10491 break
10492 else
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10494 $as_echo "no" >&6; }
10496 done
10499 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10500 for ncn_progname in c++ g++ cxx gxx; do
10501 if test -n "$ncn_target_tool_prefix"; then
10502 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10503 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505 $as_echo_n "checking for $ac_word... " >&6; }
10506 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
10508 else
10509 if test -n "$CXX_FOR_TARGET"; then
10510 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10511 else
10512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513 for as_dir in $PATH
10515 IFS=$as_save_IFS
10516 test -z "$as_dir" && as_dir=.
10517 for ac_exec_ext in '' $ac_executable_extensions; do
10518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10519 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10521 break 2
10523 done
10524 done
10525 IFS=$as_save_IFS
10529 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10530 if test -n "$CXX_FOR_TARGET"; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10532 $as_echo "$CXX_FOR_TARGET" >&6; }
10533 else
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 $as_echo "no" >&6; }
10540 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10542 set dummy ${ncn_progname}; ac_word=$2
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544 $as_echo_n "checking for $ac_word... " >&6; }
10545 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10546 $as_echo_n "(cached) " >&6
10547 else
10548 if test -n "$CXX_FOR_TARGET"; then
10549 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10550 else
10551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552 for as_dir in $PATH
10554 IFS=$as_save_IFS
10555 test -z "$as_dir" && as_dir=.
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10558 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10560 break 2
10562 done
10563 done
10564 IFS=$as_save_IFS
10568 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10569 if test -n "$CXX_FOR_TARGET"; then
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10571 $as_echo "$CXX_FOR_TARGET" >&6; }
10572 else
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574 $as_echo "no" >&6; }
10579 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10580 done
10583 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10584 set dummy c++ g++ cxx gxx
10585 if test $build = $target ; then
10586 CXX_FOR_TARGET="$2"
10587 else
10588 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10590 else
10591 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10596 if test -n "$GCC_FOR_TARGET"; then
10597 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10598 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10599 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10602 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10603 for ncn_progname in gcc; do
10604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10605 set dummy ${ncn_progname}; ac_word=$2
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10607 $as_echo_n "checking for $ac_word... " >&6; }
10608 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10609 $as_echo_n "(cached) " >&6
10610 else
10611 if test -n "$GCC_FOR_TARGET"; then
10612 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10613 else
10614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615 for as_dir in $PATH
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10621 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10623 break 2
10625 done
10626 done
10627 IFS=$as_save_IFS
10631 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10632 if test -n "$GCC_FOR_TARGET"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10634 $as_echo "$GCC_FOR_TARGET" >&6; }
10635 else
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10641 done
10644 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10645 for ncn_progname in gcc; do
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10647 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10648 if test -x $with_build_time_tools/${ncn_progname}; then
10649 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10651 $as_echo "yes" >&6; }
10652 break
10653 else
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 $as_echo "no" >&6; }
10657 done
10660 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10661 for ncn_progname in gcc; do
10662 if test -n "$ncn_target_tool_prefix"; then
10663 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10664 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10666 $as_echo_n "checking for $ac_word... " >&6; }
10667 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670 if test -n "$GCC_FOR_TARGET"; then
10671 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10672 else
10673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10674 for as_dir in $PATH
10676 IFS=$as_save_IFS
10677 test -z "$as_dir" && as_dir=.
10678 for ac_exec_ext in '' $ac_executable_extensions; do
10679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10680 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10682 break 2
10684 done
10685 done
10686 IFS=$as_save_IFS
10690 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10691 if test -n "$GCC_FOR_TARGET"; then
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10693 $as_echo "$GCC_FOR_TARGET" >&6; }
10694 else
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696 $as_echo "no" >&6; }
10701 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
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_GCC_FOR_TARGET+set}" = set; then :
10707 $as_echo_n "(cached) " >&6
10708 else
10709 if test -n "$GCC_FOR_TARGET"; then
10710 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10711 else
10712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713 for as_dir in $PATH
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_GCC_FOR_TARGET="${ncn_progname}"
10720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10721 break 2
10723 done
10724 done
10725 IFS=$as_save_IFS
10729 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10730 if test -n "$GCC_FOR_TARGET"; then
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10732 $as_echo "$GCC_FOR_TARGET" >&6; }
10733 else
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10735 $as_echo "no" >&6; }
10740 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10741 done
10744 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10745 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10746 else
10747 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10752 if test -n "$GCJ_FOR_TARGET"; then
10753 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10754 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10755 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10758 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10759 for ncn_progname in gcj; do
10760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10761 set dummy ${ncn_progname}; ac_word=$2
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10763 $as_echo_n "checking for $ac_word... " >&6; }
10764 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10765 $as_echo_n "(cached) " >&6
10766 else
10767 if test -n "$GCJ_FOR_TARGET"; then
10768 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10769 else
10770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771 for as_dir in $PATH
10773 IFS=$as_save_IFS
10774 test -z "$as_dir" && as_dir=.
10775 for ac_exec_ext in '' $ac_executable_extensions; do
10776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10777 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10779 break 2
10781 done
10782 done
10783 IFS=$as_save_IFS
10787 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10788 if test -n "$GCJ_FOR_TARGET"; then
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10790 $as_echo "$GCJ_FOR_TARGET" >&6; }
10791 else
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793 $as_echo "no" >&6; }
10797 done
10800 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10801 for ncn_progname in gcj; do
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10803 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10804 if test -x $with_build_time_tools/${ncn_progname}; then
10805 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10807 $as_echo "yes" >&6; }
10808 break
10809 else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; }
10813 done
10816 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10817 for ncn_progname in gcj; do
10818 if test -n "$ncn_target_tool_prefix"; then
10819 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10820 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10822 $as_echo_n "checking for $ac_word... " >&6; }
10823 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
10825 else
10826 if test -n "$GCJ_FOR_TARGET"; then
10827 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10828 else
10829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10830 for as_dir in $PATH
10832 IFS=$as_save_IFS
10833 test -z "$as_dir" && as_dir=.
10834 for ac_exec_ext in '' $ac_executable_extensions; do
10835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10836 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10838 break 2
10840 done
10841 done
10842 IFS=$as_save_IFS
10846 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10847 if test -n "$GCJ_FOR_TARGET"; then
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10849 $as_echo "$GCJ_FOR_TARGET" >&6; }
10850 else
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852 $as_echo "no" >&6; }
10857 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10859 set dummy ${ncn_progname}; ac_word=$2
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10861 $as_echo_n "checking for $ac_word... " >&6; }
10862 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10863 $as_echo_n "(cached) " >&6
10864 else
10865 if test -n "$GCJ_FOR_TARGET"; then
10866 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10867 else
10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869 for as_dir in $PATH
10871 IFS=$as_save_IFS
10872 test -z "$as_dir" && as_dir=.
10873 for ac_exec_ext in '' $ac_executable_extensions; do
10874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10875 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10877 break 2
10879 done
10880 done
10881 IFS=$as_save_IFS
10885 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10886 if test -n "$GCJ_FOR_TARGET"; then
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10888 $as_echo "$GCJ_FOR_TARGET" >&6; }
10889 else
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891 $as_echo "no" >&6; }
10896 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10897 done
10900 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10901 set dummy gcj
10902 if test $build = $target ; then
10903 GCJ_FOR_TARGET="$2"
10904 else
10905 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10907 else
10908 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10913 if test -n "$GFORTRAN_FOR_TARGET"; then
10914 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10915 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10916 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10919 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10920 for ncn_progname in gfortran; do
10921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10922 set dummy ${ncn_progname}; ac_word=$2
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10924 $as_echo_n "checking for $ac_word... " >&6; }
10925 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10926 $as_echo_n "(cached) " >&6
10927 else
10928 if test -n "$GFORTRAN_FOR_TARGET"; then
10929 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10930 else
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932 for as_dir in $PATH
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10938 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10940 break 2
10942 done
10943 done
10944 IFS=$as_save_IFS
10948 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10949 if test -n "$GFORTRAN_FOR_TARGET"; then
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10951 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10952 else
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10954 $as_echo "no" >&6; }
10958 done
10961 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10962 for ncn_progname in gfortran; do
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10964 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10965 if test -x $with_build_time_tools/${ncn_progname}; then
10966 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10968 $as_echo "yes" >&6; }
10969 break
10970 else
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972 $as_echo "no" >&6; }
10974 done
10977 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10978 for ncn_progname in gfortran; do
10979 if test -n "$ncn_target_tool_prefix"; then
10980 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10981 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10983 $as_echo_n "checking for $ac_word... " >&6; }
10984 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 if test -n "$GFORTRAN_FOR_TARGET"; then
10988 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10989 else
10990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991 for as_dir in $PATH
10993 IFS=$as_save_IFS
10994 test -z "$as_dir" && as_dir=.
10995 for ac_exec_ext in '' $ac_executable_extensions; do
10996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10997 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10999 break 2
11001 done
11002 done
11003 IFS=$as_save_IFS
11007 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11008 if test -n "$GFORTRAN_FOR_TARGET"; then
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11010 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11011 else
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013 $as_echo "no" >&6; }
11018 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11020 set dummy ${ncn_progname}; ac_word=$2
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11022 $as_echo_n "checking for $ac_word... " >&6; }
11023 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
11024 $as_echo_n "(cached) " >&6
11025 else
11026 if test -n "$GFORTRAN_FOR_TARGET"; then
11027 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11028 else
11029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030 for as_dir in $PATH
11032 IFS=$as_save_IFS
11033 test -z "$as_dir" && as_dir=.
11034 for ac_exec_ext in '' $ac_executable_extensions; do
11035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11036 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038 break 2
11040 done
11041 done
11042 IFS=$as_save_IFS
11046 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11047 if test -n "$GFORTRAN_FOR_TARGET"; then
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11049 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11050 else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11057 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11058 done
11061 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11062 set dummy gfortran
11063 if test $build = $target ; then
11064 GFORTRAN_FOR_TARGET="$2"
11065 else
11066 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11068 else
11069 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
11074 cat > conftest.c << \EOF
11075 #ifdef __GNUC__
11076 gcc_yay;
11077 #endif
11079 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11080 have_gcc_for_target=yes
11081 else
11082 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11083 have_gcc_for_target=no
11085 rm conftest.c
11090 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11091 if test -n "$with_build_time_tools"; then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11093 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11094 if test -x $with_build_time_tools/ar; then
11095 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11096 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11098 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11099 else
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11101 $as_echo "no" >&6; }
11103 elif test $build != $host && test $have_gcc_for_target = yes; then
11104 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11105 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11106 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11109 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11110 # Extract the first word of "ar", so it can be a program name with args.
11111 set dummy ar; 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_AR_FOR_TARGET+set}" = set; then :
11115 $as_echo_n "(cached) " >&6
11116 else
11117 case $AR_FOR_TARGET in
11118 [\\/]* | ?:[\\/]*)
11119 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123 for as_dir in $gcc_cv_tool_dirs
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_AR_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
11133 done
11134 done
11135 IFS=$as_save_IFS
11138 esac
11140 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11141 if test -n "$AR_FOR_TARGET"; then
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11143 $as_echo "$AR_FOR_TARGET" >&6; }
11144 else
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146 $as_echo "no" >&6; }
11151 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11154 if test -n "$AR_FOR_TARGET"; then
11155 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11156 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11157 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11160 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11161 for ncn_progname in ar; 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_AR_FOR_TARGET+set}" = set; then :
11167 $as_echo_n "(cached) " >&6
11168 else
11169 if test -n "$AR_FOR_TARGET"; then
11170 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11171 else
11172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11173 for as_dir in $PATH
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_AR_FOR_TARGET="${ncn_progname}"
11180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11181 break 2
11183 done
11184 done
11185 IFS=$as_save_IFS
11189 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11190 if test -n "$AR_FOR_TARGET"; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11192 $as_echo "$AR_FOR_TARGET" >&6; }
11193 else
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195 $as_echo "no" >&6; }
11199 done
11202 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11203 for ncn_progname in ar; 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_AR_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; }
11215 done
11218 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11219 for ncn_progname in ar; 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_AR_FOR_TARGET+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228 if test -n "$AR_FOR_TARGET"; then
11229 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11230 else
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
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_AR_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
11242 done
11243 done
11244 IFS=$as_save_IFS
11248 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11249 if test -n "$AR_FOR_TARGET"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11251 $as_echo "$AR_FOR_TARGET" >&6; }
11252 else
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11259 if test -z "$ac_cv_prog_AR_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_AR_FOR_TARGET+set}" = set; then :
11265 $as_echo_n "(cached) " >&6
11266 else
11267 if test -n "$AR_FOR_TARGET"; then
11268 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11269 else
11270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271 for as_dir in $PATH
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_AR_FOR_TARGET="${ncn_progname}"
11278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11279 break 2
11281 done
11282 done
11283 IFS=$as_save_IFS
11287 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11288 if test -n "$AR_FOR_TARGET"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11290 $as_echo "$AR_FOR_TARGET" >&6; }
11291 else
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11298 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11299 done
11302 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11303 set dummy ar
11304 if test $build = $target ; then
11305 AR_FOR_TARGET="$2"
11306 else
11307 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11309 else
11310 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11313 else
11314 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11320 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11321 if test -n "$with_build_time_tools"; then
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11323 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11324 if test -x $with_build_time_tools/as; then
11325 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11326 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11328 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11329 else
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331 $as_echo "no" >&6; }
11333 elif test $build != $host && test $have_gcc_for_target = yes; then
11334 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11335 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11336 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11339 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11340 # Extract the first word of "as", so it can be a program name with args.
11341 set dummy as; 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_AS_FOR_TARGET+set}" = set; then :
11345 $as_echo_n "(cached) " >&6
11346 else
11347 case $AS_FOR_TARGET in
11348 [\\/]* | ?:[\\/]*)
11349 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $gcc_cv_tool_dirs
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_AS_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
11363 done
11364 done
11365 IFS=$as_save_IFS
11368 esac
11370 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11371 if test -n "$AS_FOR_TARGET"; then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11373 $as_echo "$AS_FOR_TARGET" >&6; }
11374 else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376 $as_echo "no" >&6; }
11381 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11384 if test -n "$AS_FOR_TARGET"; then
11385 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11386 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11387 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11390 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11391 for ncn_progname in as; 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_AS_FOR_TARGET+set}" = set; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 if test -n "$AS_FOR_TARGET"; then
11400 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11401 else
11402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403 for as_dir in $PATH
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_AS_FOR_TARGET="${ncn_progname}"
11410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11411 break 2
11413 done
11414 done
11415 IFS=$as_save_IFS
11419 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11420 if test -n "$AS_FOR_TARGET"; then
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11422 $as_echo "$AS_FOR_TARGET" >&6; }
11423 else
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425 $as_echo "no" >&6; }
11429 done
11432 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11433 for ncn_progname in as; 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_AS_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; }
11445 done
11448 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11449 for ncn_progname in as; 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_AS_FOR_TARGET+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 if test -n "$AS_FOR_TARGET"; then
11459 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11460 else
11461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462 for as_dir in $PATH
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_AS_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
11472 done
11473 done
11474 IFS=$as_save_IFS
11478 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11479 if test -n "$AS_FOR_TARGET"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11481 $as_echo "$AS_FOR_TARGET" >&6; }
11482 else
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484 $as_echo "no" >&6; }
11489 if test -z "$ac_cv_prog_AS_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_AS_FOR_TARGET+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11497 if test -n "$AS_FOR_TARGET"; then
11498 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11499 else
11500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501 for as_dir in $PATH
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_AS_FOR_TARGET="${ncn_progname}"
11508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11509 break 2
11511 done
11512 done
11513 IFS=$as_save_IFS
11517 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11518 if test -n "$AS_FOR_TARGET"; then
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11520 $as_echo "$AS_FOR_TARGET" >&6; }
11521 else
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11528 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11529 done
11532 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11533 set dummy as
11534 if test $build = $target ; then
11535 AS_FOR_TARGET="$2"
11536 else
11537 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11539 else
11540 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11543 else
11544 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11550 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11551 if test -n "$with_build_time_tools"; then
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11553 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11554 if test -x $with_build_time_tools/dlltool; then
11555 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11556 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11558 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11559 else
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561 $as_echo "no" >&6; }
11563 elif test $build != $host && test $have_gcc_for_target = yes; then
11564 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11565 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11566 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11569 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11570 # Extract the first word of "dlltool", so it can be a program name with args.
11571 set dummy dlltool; 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_DLLTOOL_FOR_TARGET+set}" = set; then :
11575 $as_echo_n "(cached) " >&6
11576 else
11577 case $DLLTOOL_FOR_TARGET in
11578 [\\/]* | ?:[\\/]*)
11579 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $gcc_cv_tool_dirs
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_DLLTOOL_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
11593 done
11594 done
11595 IFS=$as_save_IFS
11598 esac
11600 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11601 if test -n "$DLLTOOL_FOR_TARGET"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11603 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11604 else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 $as_echo "no" >&6; }
11611 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11614 if test -n "$DLLTOOL_FOR_TARGET"; then
11615 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11616 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11617 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11620 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11621 for ncn_progname in dlltool; 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_DLLTOOL_FOR_TARGET+set}" = set; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 if test -n "$DLLTOOL_FOR_TARGET"; then
11630 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11631 else
11632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
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_DLLTOOL_FOR_TARGET="${ncn_progname}"
11640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11641 break 2
11643 done
11644 done
11645 IFS=$as_save_IFS
11649 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11650 if test -n "$DLLTOOL_FOR_TARGET"; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11652 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11653 else
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11659 done
11662 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11663 for ncn_progname in dlltool; 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_DLLTOOL_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; }
11675 done
11678 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11679 for ncn_progname in dlltool; 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_DLLTOOL_FOR_TARGET+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11688 if test -n "$DLLTOOL_FOR_TARGET"; then
11689 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11690 else
11691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692 for as_dir in $PATH
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_DLLTOOL_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
11702 done
11703 done
11704 IFS=$as_save_IFS
11708 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11709 if test -n "$DLLTOOL_FOR_TARGET"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11711 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11712 else
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11719 if test -z "$ac_cv_prog_DLLTOOL_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_DLLTOOL_FOR_TARGET+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727 if test -n "$DLLTOOL_FOR_TARGET"; then
11728 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11729 else
11730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 for as_dir in $PATH
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_DLLTOOL_FOR_TARGET="${ncn_progname}"
11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11739 break 2
11741 done
11742 done
11743 IFS=$as_save_IFS
11747 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11748 if test -n "$DLLTOOL_FOR_TARGET"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11750 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11758 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11759 done
11762 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11763 set dummy dlltool
11764 if test $build = $target ; then
11765 DLLTOOL_FOR_TARGET="$2"
11766 else
11767 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11769 else
11770 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11773 else
11774 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11780 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11781 if test -n "$with_build_time_tools"; then
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11783 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11784 if test -x $with_build_time_tools/ld; then
11785 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11786 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11788 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11789 else
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791 $as_echo "no" >&6; }
11793 elif test $build != $host && test $have_gcc_for_target = yes; then
11794 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11795 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11796 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11799 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11800 # Extract the first word of "ld", so it can be a program name with args.
11801 set dummy ld; 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_LD_FOR_TARGET+set}" = set; then :
11805 $as_echo_n "(cached) " >&6
11806 else
11807 case $LD_FOR_TARGET in
11808 [\\/]* | ?:[\\/]*)
11809 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $gcc_cv_tool_dirs
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_LD_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
11823 done
11824 done
11825 IFS=$as_save_IFS
11828 esac
11830 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11831 if test -n "$LD_FOR_TARGET"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11833 $as_echo "$LD_FOR_TARGET" >&6; }
11834 else
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11841 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11844 if test -n "$LD_FOR_TARGET"; then
11845 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11846 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11847 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11850 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11851 for ncn_progname in ld; 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_LD_FOR_TARGET+set}" = set; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 if test -n "$LD_FOR_TARGET"; then
11860 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11861 else
11862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863 for as_dir in $PATH
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_LD_FOR_TARGET="${ncn_progname}"
11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11871 break 2
11873 done
11874 done
11875 IFS=$as_save_IFS
11879 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11880 if test -n "$LD_FOR_TARGET"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11882 $as_echo "$LD_FOR_TARGET" >&6; }
11883 else
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11889 done
11892 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11893 for ncn_progname in ld; 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_LD_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; }
11905 done
11908 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11909 for ncn_progname in ld; 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_LD_FOR_TARGET+set}" = set; then :
11916 $as_echo_n "(cached) " >&6
11917 else
11918 if test -n "$LD_FOR_TARGET"; then
11919 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11920 else
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
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_LD_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
11932 done
11933 done
11934 IFS=$as_save_IFS
11938 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11939 if test -n "$LD_FOR_TARGET"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11941 $as_echo "$LD_FOR_TARGET" >&6; }
11942 else
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11949 if test -z "$ac_cv_prog_LD_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_LD_FOR_TARGET+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 if test -n "$LD_FOR_TARGET"; then
11958 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11959 else
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
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_LD_FOR_TARGET="${ncn_progname}"
11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11969 break 2
11971 done
11972 done
11973 IFS=$as_save_IFS
11977 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11978 if test -n "$LD_FOR_TARGET"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11980 $as_echo "$LD_FOR_TARGET" >&6; }
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11988 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11989 done
11992 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11993 set dummy ld
11994 if test $build = $target ; then
11995 LD_FOR_TARGET="$2"
11996 else
11997 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11999 else
12000 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12003 else
12004 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12010 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12011 if test -n "$with_build_time_tools"; then
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12013 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12014 if test -x $with_build_time_tools/lipo; then
12015 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12016 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12018 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12019 else
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12023 elif test $build != $host && test $have_gcc_for_target = yes; then
12024 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12025 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12026 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12029 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12030 # Extract the first word of "lipo", so it can be a program name with args.
12031 set dummy lipo; 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_LIPO_FOR_TARGET+set}" = set; then :
12035 $as_echo_n "(cached) " >&6
12036 else
12037 case $LIPO_FOR_TARGET in
12038 [\\/]* | ?:[\\/]*)
12039 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $gcc_cv_tool_dirs
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_LIPO_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
12053 done
12054 done
12055 IFS=$as_save_IFS
12058 esac
12060 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12061 if test -n "$LIPO_FOR_TARGET"; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12063 $as_echo "$LIPO_FOR_TARGET" >&6; }
12064 else
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 $as_echo "no" >&6; }
12071 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12074 if test -n "$LIPO_FOR_TARGET"; then
12075 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12076 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12077 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12080 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12081 for ncn_progname in lipo; 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_LIPO_FOR_TARGET+set}" = set; then :
12087 $as_echo_n "(cached) " >&6
12088 else
12089 if test -n "$LIPO_FOR_TARGET"; then
12090 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12091 else
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in $PATH
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_LIPO_FOR_TARGET="${ncn_progname}"
12100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12101 break 2
12103 done
12104 done
12105 IFS=$as_save_IFS
12109 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12110 if test -n "$LIPO_FOR_TARGET"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12112 $as_echo "$LIPO_FOR_TARGET" >&6; }
12113 else
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115 $as_echo "no" >&6; }
12119 done
12122 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12123 for ncn_progname in lipo; 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_LIPO_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; }
12135 done
12138 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12139 for ncn_progname in lipo; 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_LIPO_FOR_TARGET+set}" = set; then :
12146 $as_echo_n "(cached) " >&6
12147 else
12148 if test -n "$LIPO_FOR_TARGET"; then
12149 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12150 else
12151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152 for as_dir in $PATH
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_LIPO_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
12162 done
12163 done
12164 IFS=$as_save_IFS
12168 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12169 if test -n "$LIPO_FOR_TARGET"; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12171 $as_echo "$LIPO_FOR_TARGET" >&6; }
12172 else
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174 $as_echo "no" >&6; }
12179 if test -z "$ac_cv_prog_LIPO_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_LIPO_FOR_TARGET+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12187 if test -n "$LIPO_FOR_TARGET"; then
12188 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12189 else
12190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191 for as_dir in $PATH
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_LIPO_FOR_TARGET="${ncn_progname}"
12198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12199 break 2
12201 done
12202 done
12203 IFS=$as_save_IFS
12207 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12208 if test -n "$LIPO_FOR_TARGET"; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12210 $as_echo "$LIPO_FOR_TARGET" >&6; }
12211 else
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213 $as_echo "no" >&6; }
12218 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12219 done
12222 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12223 set dummy lipo
12224 if test $build = $target ; then
12225 LIPO_FOR_TARGET="$2"
12226 else
12227 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12229 else
12230 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12233 else
12234 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12240 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12241 if test -n "$with_build_time_tools"; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12243 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12244 if test -x $with_build_time_tools/nm; then
12245 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12246 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12248 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 $as_echo "no" >&6; }
12253 elif test $build != $host && test $have_gcc_for_target = yes; then
12254 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12255 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12256 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12259 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12260 # Extract the first word of "nm", so it can be a program name with args.
12261 set dummy nm; 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_NM_FOR_TARGET+set}" = set; then :
12265 $as_echo_n "(cached) " >&6
12266 else
12267 case $NM_FOR_TARGET in
12268 [\\/]* | ?:[\\/]*)
12269 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273 for as_dir in $gcc_cv_tool_dirs
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_NM_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
12283 done
12284 done
12285 IFS=$as_save_IFS
12288 esac
12290 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12291 if test -n "$NM_FOR_TARGET"; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12293 $as_echo "$NM_FOR_TARGET" >&6; }
12294 else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296 $as_echo "no" >&6; }
12301 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12304 if test -n "$NM_FOR_TARGET"; then
12305 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12306 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12307 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12310 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12311 for ncn_progname in nm; 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_NM_FOR_TARGET+set}" = set; then :
12317 $as_echo_n "(cached) " >&6
12318 else
12319 if test -n "$NM_FOR_TARGET"; then
12320 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12321 else
12322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323 for as_dir in $PATH
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_NM_FOR_TARGET="${ncn_progname}"
12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331 break 2
12333 done
12334 done
12335 IFS=$as_save_IFS
12339 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12340 if test -n "$NM_FOR_TARGET"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12342 $as_echo "$NM_FOR_TARGET" >&6; }
12343 else
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345 $as_echo "no" >&6; }
12349 done
12352 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12353 for ncn_progname in nm; 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_NM_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; }
12365 done
12368 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12369 for ncn_progname in nm; 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_NM_FOR_TARGET+set}" = set; then :
12376 $as_echo_n "(cached) " >&6
12377 else
12378 if test -n "$NM_FOR_TARGET"; then
12379 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12380 else
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
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_NM_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
12392 done
12393 done
12394 IFS=$as_save_IFS
12398 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12399 if test -n "$NM_FOR_TARGET"; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12401 $as_echo "$NM_FOR_TARGET" >&6; }
12402 else
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12409 if test -z "$ac_cv_prog_NM_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_NM_FOR_TARGET+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
12416 else
12417 if test -n "$NM_FOR_TARGET"; then
12418 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12419 else
12420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421 for as_dir in $PATH
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_NM_FOR_TARGET="${ncn_progname}"
12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12429 break 2
12431 done
12432 done
12433 IFS=$as_save_IFS
12437 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12438 if test -n "$NM_FOR_TARGET"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12440 $as_echo "$NM_FOR_TARGET" >&6; }
12441 else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12448 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12449 done
12452 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12453 set dummy nm
12454 if test $build = $target ; then
12455 NM_FOR_TARGET="$2"
12456 else
12457 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12459 else
12460 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12463 else
12464 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12470 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12471 if test -n "$with_build_time_tools"; then
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12473 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12474 if test -x $with_build_time_tools/objdump; then
12475 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12476 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12478 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12483 elif test $build != $host && test $have_gcc_for_target = yes; then
12484 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12485 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12486 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12489 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12490 # Extract the first word of "objdump", so it can be a program name with args.
12491 set dummy objdump; 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_OBJDUMP_FOR_TARGET+set}" = set; then :
12495 $as_echo_n "(cached) " >&6
12496 else
12497 case $OBJDUMP_FOR_TARGET in
12498 [\\/]* | ?:[\\/]*)
12499 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $gcc_cv_tool_dirs
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_OBJDUMP_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
12513 done
12514 done
12515 IFS=$as_save_IFS
12518 esac
12520 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12521 if test -n "$OBJDUMP_FOR_TARGET"; then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12523 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12524 else
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 $as_echo "no" >&6; }
12531 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12534 if test -n "$OBJDUMP_FOR_TARGET"; then
12535 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12536 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12537 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12540 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12541 for ncn_progname in objdump; 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_OBJDUMP_FOR_TARGET+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12549 if test -n "$OBJDUMP_FOR_TARGET"; then
12550 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12551 else
12552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12553 for as_dir in $PATH
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_OBJDUMP_FOR_TARGET="${ncn_progname}"
12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12561 break 2
12563 done
12564 done
12565 IFS=$as_save_IFS
12569 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12570 if test -n "$OBJDUMP_FOR_TARGET"; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12572 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12573 else
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12579 done
12582 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12583 for ncn_progname in objdump; 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_OBJDUMP_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; }
12595 done
12598 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12599 for ncn_progname in objdump; 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_OBJDUMP_FOR_TARGET+set}" = set; then :
12606 $as_echo_n "(cached) " >&6
12607 else
12608 if test -n "$OBJDUMP_FOR_TARGET"; then
12609 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12610 else
12611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612 for as_dir in $PATH
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_OBJDUMP_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
12622 done
12623 done
12624 IFS=$as_save_IFS
12628 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12629 if test -n "$OBJDUMP_FOR_TARGET"; then
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12631 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12632 else
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12639 if test -z "$ac_cv_prog_OBJDUMP_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_OBJDUMP_FOR_TARGET+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
12646 else
12647 if test -n "$OBJDUMP_FOR_TARGET"; then
12648 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12649 else
12650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651 for as_dir in $PATH
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_OBJDUMP_FOR_TARGET="${ncn_progname}"
12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12659 break 2
12661 done
12662 done
12663 IFS=$as_save_IFS
12667 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12668 if test -n "$OBJDUMP_FOR_TARGET"; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12670 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12671 else
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673 $as_echo "no" >&6; }
12678 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12679 done
12682 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12683 set dummy objdump
12684 if test $build = $target ; then
12685 OBJDUMP_FOR_TARGET="$2"
12686 else
12687 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12689 else
12690 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12693 else
12694 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12700 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12701 if test -n "$with_build_time_tools"; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12703 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12704 if test -x $with_build_time_tools/ranlib; then
12705 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12706 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12708 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12709 else
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711 $as_echo "no" >&6; }
12713 elif test $build != $host && test $have_gcc_for_target = yes; then
12714 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12715 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12716 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12719 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12720 # Extract the first word of "ranlib", so it can be a program name with args.
12721 set dummy ranlib; 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_RANLIB_FOR_TARGET+set}" = set; then :
12725 $as_echo_n "(cached) " >&6
12726 else
12727 case $RANLIB_FOR_TARGET in
12728 [\\/]* | ?:[\\/]*)
12729 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733 for as_dir in $gcc_cv_tool_dirs
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_RANLIB_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
12743 done
12744 done
12745 IFS=$as_save_IFS
12748 esac
12750 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12751 if test -n "$RANLIB_FOR_TARGET"; then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12753 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12754 else
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 $as_echo "no" >&6; }
12761 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12764 if test -n "$RANLIB_FOR_TARGET"; then
12765 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12766 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12767 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12770 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12771 for ncn_progname in ranlib; 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_RANLIB_FOR_TARGET+set}" = set; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 if test -n "$RANLIB_FOR_TARGET"; then
12780 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12781 else
12782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783 for as_dir in $PATH
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_RANLIB_FOR_TARGET="${ncn_progname}"
12790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12791 break 2
12793 done
12794 done
12795 IFS=$as_save_IFS
12799 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12800 if test -n "$RANLIB_FOR_TARGET"; then
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12802 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12803 else
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805 $as_echo "no" >&6; }
12809 done
12812 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12813 for ncn_progname in ranlib; 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_RANLIB_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; }
12825 done
12828 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12829 for ncn_progname in ranlib; 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_RANLIB_FOR_TARGET+set}" = set; then :
12836 $as_echo_n "(cached) " >&6
12837 else
12838 if test -n "$RANLIB_FOR_TARGET"; then
12839 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12840 else
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH
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_RANLIB_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
12852 done
12853 done
12854 IFS=$as_save_IFS
12858 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12859 if test -n "$RANLIB_FOR_TARGET"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12861 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12862 else
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12869 if test -z "$ac_cv_prog_RANLIB_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_RANLIB_FOR_TARGET+set}" = set; then :
12875 $as_echo_n "(cached) " >&6
12876 else
12877 if test -n "$RANLIB_FOR_TARGET"; then
12878 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12879 else
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
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_RANLIB_FOR_TARGET="${ncn_progname}"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 break 2
12891 done
12892 done
12893 IFS=$as_save_IFS
12897 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12898 if test -n "$RANLIB_FOR_TARGET"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12900 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12901 else
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12908 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12909 done
12912 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12913 set dummy ranlib
12914 if test $build = $target ; then
12915 RANLIB_FOR_TARGET="$2"
12916 else
12917 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12919 else
12920 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12923 else
12924 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12930 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12931 if test -n "$with_build_time_tools"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12933 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12934 if test -x $with_build_time_tools/strip; then
12935 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12936 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12938 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12939 else
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12943 elif test $build != $host && test $have_gcc_for_target = yes; then
12944 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12945 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12946 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12949 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12950 # Extract the first word of "strip", so it can be a program name with args.
12951 set dummy strip; 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_STRIP_FOR_TARGET+set}" = set; then :
12955 $as_echo_n "(cached) " >&6
12956 else
12957 case $STRIP_FOR_TARGET in
12958 [\\/]* | ?:[\\/]*)
12959 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $gcc_cv_tool_dirs
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_STRIP_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
12973 done
12974 done
12975 IFS=$as_save_IFS
12978 esac
12980 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12981 if test -n "$STRIP_FOR_TARGET"; then
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12983 $as_echo "$STRIP_FOR_TARGET" >&6; }
12984 else
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986 $as_echo "no" >&6; }
12991 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12994 if test -n "$STRIP_FOR_TARGET"; then
12995 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12996 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12997 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13000 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13001 for ncn_progname in strip; 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_STRIP_FOR_TARGET+set}" = set; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 if test -n "$STRIP_FOR_TARGET"; then
13010 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13011 else
13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013 for as_dir in $PATH
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_STRIP_FOR_TARGET="${ncn_progname}"
13020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13021 break 2
13023 done
13024 done
13025 IFS=$as_save_IFS
13029 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13030 if test -n "$STRIP_FOR_TARGET"; then
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13032 $as_echo "$STRIP_FOR_TARGET" >&6; }
13033 else
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035 $as_echo "no" >&6; }
13039 done
13042 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13043 for ncn_progname in strip; 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_STRIP_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; }
13055 done
13058 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13059 for ncn_progname in strip; 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_STRIP_FOR_TARGET+set}" = set; then :
13066 $as_echo_n "(cached) " >&6
13067 else
13068 if test -n "$STRIP_FOR_TARGET"; then
13069 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13070 else
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
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_STRIP_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
13082 done
13083 done
13084 IFS=$as_save_IFS
13088 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13089 if test -n "$STRIP_FOR_TARGET"; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13091 $as_echo "$STRIP_FOR_TARGET" >&6; }
13092 else
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094 $as_echo "no" >&6; }
13099 if test -z "$ac_cv_prog_STRIP_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_STRIP_FOR_TARGET+set}" = set; then :
13105 $as_echo_n "(cached) " >&6
13106 else
13107 if test -n "$STRIP_FOR_TARGET"; then
13108 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13109 else
13110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111 for as_dir in $PATH
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_STRIP_FOR_TARGET="${ncn_progname}"
13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13119 break 2
13121 done
13122 done
13123 IFS=$as_save_IFS
13127 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13128 if test -n "$STRIP_FOR_TARGET"; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13130 $as_echo "$STRIP_FOR_TARGET" >&6; }
13131 else
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133 $as_echo "no" >&6; }
13138 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13139 done
13142 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13143 set dummy strip
13144 if test $build = $target ; then
13145 STRIP_FOR_TARGET="$2"
13146 else
13147 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13149 else
13150 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13153 else
13154 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13160 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13161 if test -n "$with_build_time_tools"; then
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13163 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13164 if test -x $with_build_time_tools/windres; then
13165 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13166 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13168 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13169 else
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171 $as_echo "no" >&6; }
13173 elif test $build != $host && test $have_gcc_for_target = yes; then
13174 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13175 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13176 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13179 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13180 # Extract the first word of "windres", so it can be a program name with args.
13181 set dummy windres; ac_word=$2
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13183 $as_echo_n "checking for $ac_word... " >&6; }
13184 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13185 $as_echo_n "(cached) " >&6
13186 else
13187 case $WINDRES_FOR_TARGET in
13188 [\\/]* | ?:[\\/]*)
13189 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $gcc_cv_tool_dirs
13195 IFS=$as_save_IFS
13196 test -z "$as_dir" && as_dir=.
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13199 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13201 break 2
13203 done
13204 done
13205 IFS=$as_save_IFS
13208 esac
13210 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13211 if test -n "$WINDRES_FOR_TARGET"; then
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13213 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13214 else
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216 $as_echo "no" >&6; }
13221 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13224 if test -n "$WINDRES_FOR_TARGET"; then
13225 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13226 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13227 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13230 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13231 for ncn_progname in windres; do
13232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13233 set dummy ${ncn_progname}; ac_word=$2
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13235 $as_echo_n "checking for $ac_word... " >&6; }
13236 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13237 $as_echo_n "(cached) " >&6
13238 else
13239 if test -n "$WINDRES_FOR_TARGET"; then
13240 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13241 else
13242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243 for as_dir in $PATH
13245 IFS=$as_save_IFS
13246 test -z "$as_dir" && as_dir=.
13247 for ac_exec_ext in '' $ac_executable_extensions; do
13248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13249 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13251 break 2
13253 done
13254 done
13255 IFS=$as_save_IFS
13259 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13260 if test -n "$WINDRES_FOR_TARGET"; then
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13262 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13263 else
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 $as_echo "no" >&6; }
13269 done
13272 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13273 for ncn_progname in windres; do
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13275 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13276 if test -x $with_build_time_tools/${ncn_progname}; then
13277 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13279 $as_echo "yes" >&6; }
13280 break
13281 else
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 $as_echo "no" >&6; }
13285 done
13288 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13289 for ncn_progname in windres; do
13290 if test -n "$ncn_target_tool_prefix"; then
13291 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13292 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294 $as_echo_n "checking for $ac_word... " >&6; }
13295 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13296 $as_echo_n "(cached) " >&6
13297 else
13298 if test -n "$WINDRES_FOR_TARGET"; then
13299 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13300 else
13301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13304 IFS=$as_save_IFS
13305 test -z "$as_dir" && as_dir=.
13306 for ac_exec_ext in '' $ac_executable_extensions; do
13307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13308 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13310 break 2
13312 done
13313 done
13314 IFS=$as_save_IFS
13318 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13319 if test -n "$WINDRES_FOR_TARGET"; then
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13321 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13322 else
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324 $as_echo "no" >&6; }
13329 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13331 set dummy ${ncn_progname}; ac_word=$2
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13333 $as_echo_n "checking for $ac_word... " >&6; }
13334 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13335 $as_echo_n "(cached) " >&6
13336 else
13337 if test -n "$WINDRES_FOR_TARGET"; then
13338 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13339 else
13340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13341 for as_dir in $PATH
13343 IFS=$as_save_IFS
13344 test -z "$as_dir" && as_dir=.
13345 for ac_exec_ext in '' $ac_executable_extensions; do
13346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13347 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13349 break 2
13351 done
13352 done
13353 IFS=$as_save_IFS
13357 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13358 if test -n "$WINDRES_FOR_TARGET"; then
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13360 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13361 else
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 $as_echo "no" >&6; }
13368 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13369 done
13372 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13373 set dummy windres
13374 if test $build = $target ; then
13375 WINDRES_FOR_TARGET="$2"
13376 else
13377 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13379 else
13380 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13383 else
13384 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13390 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13391 if test -n "$with_build_time_tools"; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13393 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13394 if test -x $with_build_time_tools/windmc; then
13395 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13396 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13398 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13399 else
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401 $as_echo "no" >&6; }
13403 elif test $build != $host && test $have_gcc_for_target = yes; then
13404 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13405 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13406 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13409 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13410 # Extract the first word of "windmc", so it can be a program name with args.
13411 set dummy windmc; ac_word=$2
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413 $as_echo_n "checking for $ac_word... " >&6; }
13414 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13415 $as_echo_n "(cached) " >&6
13416 else
13417 case $WINDMC_FOR_TARGET in
13418 [\\/]* | ?:[\\/]*)
13419 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423 for as_dir in $gcc_cv_tool_dirs
13425 IFS=$as_save_IFS
13426 test -z "$as_dir" && as_dir=.
13427 for ac_exec_ext in '' $ac_executable_extensions; do
13428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13429 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13431 break 2
13433 done
13434 done
13435 IFS=$as_save_IFS
13438 esac
13440 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13441 if test -n "$WINDMC_FOR_TARGET"; then
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13443 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13444 else
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446 $as_echo "no" >&6; }
13451 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13454 if test -n "$WINDMC_FOR_TARGET"; then
13455 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13456 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13457 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13460 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13461 for ncn_progname in windmc; do
13462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13463 set dummy ${ncn_progname}; ac_word=$2
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13465 $as_echo_n "checking for $ac_word... " >&6; }
13466 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13467 $as_echo_n "(cached) " >&6
13468 else
13469 if test -n "$WINDMC_FOR_TARGET"; then
13470 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13471 else
13472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13473 for as_dir in $PATH
13475 IFS=$as_save_IFS
13476 test -z "$as_dir" && as_dir=.
13477 for ac_exec_ext in '' $ac_executable_extensions; do
13478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13479 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13481 break 2
13483 done
13484 done
13485 IFS=$as_save_IFS
13489 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13490 if test -n "$WINDMC_FOR_TARGET"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13492 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13493 else
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495 $as_echo "no" >&6; }
13499 done
13502 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13503 for ncn_progname in windmc; do
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13505 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13506 if test -x $with_build_time_tools/${ncn_progname}; then
13507 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13509 $as_echo "yes" >&6; }
13510 break
13511 else
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513 $as_echo "no" >&6; }
13515 done
13518 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13519 for ncn_progname in windmc; do
13520 if test -n "$ncn_target_tool_prefix"; then
13521 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13522 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13524 $as_echo_n "checking for $ac_word... " >&6; }
13525 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13526 $as_echo_n "(cached) " >&6
13527 else
13528 if test -n "$WINDMC_FOR_TARGET"; then
13529 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13530 else
13531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13532 for as_dir in $PATH
13534 IFS=$as_save_IFS
13535 test -z "$as_dir" && as_dir=.
13536 for ac_exec_ext in '' $ac_executable_extensions; do
13537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13538 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13540 break 2
13542 done
13543 done
13544 IFS=$as_save_IFS
13548 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13549 if test -n "$WINDMC_FOR_TARGET"; then
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13551 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13552 else
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13554 $as_echo "no" >&6; }
13559 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13561 set dummy ${ncn_progname}; ac_word=$2
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563 $as_echo_n "checking for $ac_word... " >&6; }
13564 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13565 $as_echo_n "(cached) " >&6
13566 else
13567 if test -n "$WINDMC_FOR_TARGET"; then
13568 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13569 else
13570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571 for as_dir in $PATH
13573 IFS=$as_save_IFS
13574 test -z "$as_dir" && as_dir=.
13575 for ac_exec_ext in '' $ac_executable_extensions; do
13576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13577 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13579 break 2
13581 done
13582 done
13583 IFS=$as_save_IFS
13587 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13588 if test -n "$WINDMC_FOR_TARGET"; then
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13590 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13591 else
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593 $as_echo "no" >&6; }
13598 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13599 done
13602 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13603 set dummy windmc
13604 if test $build = $target ; then
13605 WINDMC_FOR_TARGET="$2"
13606 else
13607 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13609 else
13610 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13613 else
13614 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13618 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13621 $as_echo_n "checking where to find the target ar... " >&6; }
13622 if test "x${build}" != "x${host}" ; then
13623 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13624 # We already found the complete path
13625 ac_dir=`dirname $AR_FOR_TARGET`
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13627 $as_echo "pre-installed in $ac_dir" >&6; }
13628 else
13629 # Canadian cross, just use what we found
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13631 $as_echo "pre-installed" >&6; }
13633 else
13634 ok=yes
13635 case " ${configdirs} " in
13636 *" binutils "*) ;;
13637 *) ok=no ;;
13638 esac
13640 if test $ok = yes; then
13641 # An in-tree tool is available and we can use it
13642 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13644 $as_echo "just compiled" >&6; }
13645 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13646 # We already found the complete path
13647 ac_dir=`dirname $AR_FOR_TARGET`
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13649 $as_echo "pre-installed in $ac_dir" >&6; }
13650 elif test "x$target" = "x$host"; then
13651 # We can use an host tool
13652 AR_FOR_TARGET='$(AR)'
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13654 $as_echo "host tool" >&6; }
13655 else
13656 # We need a cross tool
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13658 $as_echo "pre-installed" >&6; }
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13663 $as_echo_n "checking where to find the target as... " >&6; }
13664 if test "x${build}" != "x${host}" ; then
13665 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13666 # We already found the complete path
13667 ac_dir=`dirname $AS_FOR_TARGET`
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13669 $as_echo "pre-installed in $ac_dir" >&6; }
13670 else
13671 # Canadian cross, just use what we found
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13673 $as_echo "pre-installed" >&6; }
13675 else
13676 ok=yes
13677 case " ${configdirs} " in
13678 *" gas "*) ;;
13679 *) ok=no ;;
13680 esac
13682 if test $ok = yes; then
13683 # An in-tree tool is available and we can use it
13684 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13686 $as_echo "just compiled" >&6; }
13687 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13688 # We already found the complete path
13689 ac_dir=`dirname $AS_FOR_TARGET`
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13691 $as_echo "pre-installed in $ac_dir" >&6; }
13692 elif test "x$target" = "x$host"; then
13693 # We can use an host tool
13694 AS_FOR_TARGET='$(AS)'
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13696 $as_echo "host tool" >&6; }
13697 else
13698 # We need a cross tool
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13700 $as_echo "pre-installed" >&6; }
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13705 $as_echo_n "checking where to find the target cc... " >&6; }
13706 if test "x${build}" != "x${host}" ; then
13707 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13708 # We already found the complete path
13709 ac_dir=`dirname $CC_FOR_TARGET`
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13711 $as_echo "pre-installed in $ac_dir" >&6; }
13712 else
13713 # Canadian cross, just use what we found
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13715 $as_echo "pre-installed" >&6; }
13717 else
13718 ok=yes
13719 case " ${configdirs} " in
13720 *" gcc "*) ;;
13721 *) ok=no ;;
13722 esac
13724 if test $ok = yes; then
13725 # An in-tree tool is available and we can use it
13726 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13728 $as_echo "just compiled" >&6; }
13729 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13730 # We already found the complete path
13731 ac_dir=`dirname $CC_FOR_TARGET`
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13733 $as_echo "pre-installed in $ac_dir" >&6; }
13734 elif test "x$target" = "x$host"; then
13735 # We can use an host tool
13736 CC_FOR_TARGET='$(CC)'
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13738 $as_echo "host tool" >&6; }
13739 else
13740 # We need a cross tool
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13742 $as_echo "pre-installed" >&6; }
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13747 $as_echo_n "checking where to find the target c++... " >&6; }
13748 if test "x${build}" != "x${host}" ; then
13749 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13750 # We already found the complete path
13751 ac_dir=`dirname $CXX_FOR_TARGET`
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13753 $as_echo "pre-installed in $ac_dir" >&6; }
13754 else
13755 # Canadian cross, just use what we found
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13757 $as_echo "pre-installed" >&6; }
13759 else
13760 ok=yes
13761 case " ${configdirs} " in
13762 *" gcc "*) ;;
13763 *) ok=no ;;
13764 esac
13765 case ,${enable_languages}, in
13766 *,c++,*) ;;
13767 *) ok=no ;;
13768 esac
13769 if test $ok = yes; then
13770 # An in-tree tool is available and we can use it
13771 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'
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13773 $as_echo "just compiled" >&6; }
13774 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13775 # We already found the complete path
13776 ac_dir=`dirname $CXX_FOR_TARGET`
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13778 $as_echo "pre-installed in $ac_dir" >&6; }
13779 elif test "x$target" = "x$host"; then
13780 # We can use an host tool
13781 CXX_FOR_TARGET='$(CXX)'
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13783 $as_echo "host tool" >&6; }
13784 else
13785 # We need a cross tool
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13787 $as_echo "pre-installed" >&6; }
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13792 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13793 if test "x${build}" != "x${host}" ; then
13794 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13795 # We already found the complete path
13796 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13798 $as_echo "pre-installed in $ac_dir" >&6; }
13799 else
13800 # Canadian cross, just use what we found
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13802 $as_echo "pre-installed" >&6; }
13804 else
13805 ok=yes
13806 case " ${configdirs} " in
13807 *" gcc "*) ;;
13808 *) ok=no ;;
13809 esac
13810 case ,${enable_languages}, in
13811 *,c++,*) ;;
13812 *) ok=no ;;
13813 esac
13814 if test $ok = yes; then
13815 # An in-tree tool is available and we can use it
13816 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'
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13818 $as_echo "just compiled" >&6; }
13819 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13820 # We already found the complete path
13821 ac_dir=`dirname $RAW_CXX_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 RAW_CXX_FOR_TARGET='$(CXX)'
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; }
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13837 $as_echo_n "checking where to find the target dlltool... " >&6; }
13838 if test "x${build}" != "x${host}" ; then
13839 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13840 # We already found the complete path
13841 ac_dir=`dirname $DLLTOOL_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; }
13849 else
13850 ok=yes
13851 case " ${configdirs} " in
13852 *" binutils "*) ;;
13853 *) ok=no ;;
13854 esac
13856 if test $ok = yes; then
13857 # An in-tree tool is available and we can use it
13858 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13860 $as_echo "just compiled" >&6; }
13861 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13862 # We already found the complete path
13863 ac_dir=`dirname $DLLTOOL_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 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
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; }
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13879 $as_echo_n "checking where to find the target gcc... " >&6; }
13880 if test "x${build}" != "x${host}" ; then
13881 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13882 # We already found the complete path
13883 ac_dir=`dirname $GCC_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; }
13891 else
13892 ok=yes
13893 case " ${configdirs} " in
13894 *" gcc "*) ;;
13895 *) ok=no ;;
13896 esac
13898 if test $ok = yes; then
13899 # An in-tree tool is available and we can use it
13900 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13902 $as_echo "just compiled" >&6; }
13903 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13904 # We already found the complete path
13905 ac_dir=`dirname $GCC_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 GCC_FOR_TARGET='$()'
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; }
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13921 $as_echo_n "checking where to find the target gcj... " >&6; }
13922 if test "x${build}" != "x${host}" ; then
13923 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13924 # We already found the complete path
13925 ac_dir=`dirname $GCJ_FOR_TARGET`
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13927 $as_echo "pre-installed in $ac_dir" >&6; }
13928 else
13929 # Canadian cross, just use what we found
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13931 $as_echo "pre-installed" >&6; }
13933 else
13934 ok=yes
13935 case " ${configdirs} " in
13936 *" gcc "*) ;;
13937 *) ok=no ;;
13938 esac
13939 case ,${enable_languages}, in
13940 *,java,*) ;;
13941 *) ok=no ;;
13942 esac
13943 if test $ok = yes; then
13944 # An in-tree tool is available and we can use it
13945 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13947 $as_echo "just compiled" >&6; }
13948 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13949 # We already found the complete path
13950 ac_dir=`dirname $GCJ_FOR_TARGET`
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13952 $as_echo "pre-installed in $ac_dir" >&6; }
13953 elif test "x$target" = "x$host"; then
13954 # We can use an host tool
13955 GCJ_FOR_TARGET='$(GCJ)'
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13957 $as_echo "host tool" >&6; }
13958 else
13959 # We need a cross tool
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13961 $as_echo "pre-installed" >&6; }
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13966 $as_echo_n "checking where to find the target gfortran... " >&6; }
13967 if test "x${build}" != "x${host}" ; then
13968 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13969 # We already found the complete path
13970 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13972 $as_echo "pre-installed in $ac_dir" >&6; }
13973 else
13974 # Canadian cross, just use what we found
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13976 $as_echo "pre-installed" >&6; }
13978 else
13979 ok=yes
13980 case " ${configdirs} " in
13981 *" gcc "*) ;;
13982 *) ok=no ;;
13983 esac
13984 case ,${enable_languages}, in
13985 *,fortran,*) ;;
13986 *) ok=no ;;
13987 esac
13988 if test $ok = yes; then
13989 # An in-tree tool is available and we can use it
13990 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13992 $as_echo "just compiled" >&6; }
13993 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13994 # We already found the complete path
13995 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13997 $as_echo "pre-installed in $ac_dir" >&6; }
13998 elif test "x$target" = "x$host"; then
13999 # We can use an host tool
14000 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14002 $as_echo "host tool" >&6; }
14003 else
14004 # We need a cross tool
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14006 $as_echo "pre-installed" >&6; }
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14011 $as_echo_n "checking where to find the target ld... " >&6; }
14012 if test "x${build}" != "x${host}" ; then
14013 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14014 # We already found the complete path
14015 ac_dir=`dirname $LD_FOR_TARGET`
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14017 $as_echo "pre-installed in $ac_dir" >&6; }
14018 else
14019 # Canadian cross, just use what we found
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14021 $as_echo "pre-installed" >&6; }
14023 else
14024 ok=yes
14025 case " ${configdirs} " in
14026 *" ld "*) ;;
14027 *) ok=no ;;
14028 esac
14030 if test $ok = yes; then
14031 # An in-tree tool is available and we can use it
14032 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14034 $as_echo "just compiled" >&6; }
14035 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14036 # We already found the complete path
14037 ac_dir=`dirname $LD_FOR_TARGET`
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14039 $as_echo "pre-installed in $ac_dir" >&6; }
14040 elif test "x$target" = "x$host"; then
14041 # We can use an host tool
14042 LD_FOR_TARGET='$(LD)'
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14044 $as_echo "host tool" >&6; }
14045 else
14046 # We need a cross tool
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14048 $as_echo "pre-installed" >&6; }
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14053 $as_echo_n "checking where to find the target lipo... " >&6; }
14054 if test "x${build}" != "x${host}" ; then
14055 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14056 # We already found the complete path
14057 ac_dir=`dirname $LIPO_FOR_TARGET`
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14059 $as_echo "pre-installed in $ac_dir" >&6; }
14060 else
14061 # Canadian cross, just use what we found
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14063 $as_echo "pre-installed" >&6; }
14065 else
14066 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14067 # We already found the complete path
14068 ac_dir=`dirname $LIPO_FOR_TARGET`
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14070 $as_echo "pre-installed in $ac_dir" >&6; }
14071 elif test "x$target" = "x$host"; then
14072 # We can use an host tool
14073 LIPO_FOR_TARGET='$(LIPO)'
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14075 $as_echo "host tool" >&6; }
14076 else
14077 # We need a cross tool
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14079 $as_echo "pre-installed" >&6; }
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14084 $as_echo_n "checking where to find the target nm... " >&6; }
14085 if test "x${build}" != "x${host}" ; then
14086 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14087 # We already found the complete path
14088 ac_dir=`dirname $NM_FOR_TARGET`
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14090 $as_echo "pre-installed in $ac_dir" >&6; }
14091 else
14092 # Canadian cross, just use what we found
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14094 $as_echo "pre-installed" >&6; }
14096 else
14097 ok=yes
14098 case " ${configdirs} " in
14099 *" binutils "*) ;;
14100 *) ok=no ;;
14101 esac
14103 if test $ok = yes; then
14104 # An in-tree tool is available and we can use it
14105 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14107 $as_echo "just compiled" >&6; }
14108 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14109 # We already found the complete path
14110 ac_dir=`dirname $NM_FOR_TARGET`
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14112 $as_echo "pre-installed in $ac_dir" >&6; }
14113 elif test "x$target" = "x$host"; then
14114 # We can use an host tool
14115 NM_FOR_TARGET='$(NM)'
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14117 $as_echo "host tool" >&6; }
14118 else
14119 # We need a cross tool
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14121 $as_echo "pre-installed" >&6; }
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14126 $as_echo_n "checking where to find the target objdump... " >&6; }
14127 if test "x${build}" != "x${host}" ; then
14128 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14129 # We already found the complete path
14130 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14132 $as_echo "pre-installed in $ac_dir" >&6; }
14133 else
14134 # Canadian cross, just use what we found
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14136 $as_echo "pre-installed" >&6; }
14138 else
14139 ok=yes
14140 case " ${configdirs} " in
14141 *" binutils "*) ;;
14142 *) ok=no ;;
14143 esac
14145 if test $ok = yes; then
14146 # An in-tree tool is available and we can use it
14147 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14149 $as_echo "just compiled" >&6; }
14150 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14151 # We already found the complete path
14152 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14154 $as_echo "pre-installed in $ac_dir" >&6; }
14155 elif test "x$target" = "x$host"; then
14156 # We can use an host tool
14157 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14159 $as_echo "host tool" >&6; }
14160 else
14161 # We need a cross tool
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14163 $as_echo "pre-installed" >&6; }
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14168 $as_echo_n "checking where to find the target ranlib... " >&6; }
14169 if test "x${build}" != "x${host}" ; then
14170 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14171 # We already found the complete path
14172 ac_dir=`dirname $RANLIB_FOR_TARGET`
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14174 $as_echo "pre-installed in $ac_dir" >&6; }
14175 else
14176 # Canadian cross, just use what we found
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14178 $as_echo "pre-installed" >&6; }
14180 else
14181 ok=yes
14182 case " ${configdirs} " in
14183 *" binutils "*) ;;
14184 *) ok=no ;;
14185 esac
14187 if test $ok = yes; then
14188 # An in-tree tool is available and we can use it
14189 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14191 $as_echo "just compiled" >&6; }
14192 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14193 # We already found the complete path
14194 ac_dir=`dirname $RANLIB_FOR_TARGET`
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14196 $as_echo "pre-installed in $ac_dir" >&6; }
14197 elif test "x$target" = "x$host"; then
14198 # We can use an host tool
14199 RANLIB_FOR_TARGET='$(RANLIB)'
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14201 $as_echo "host tool" >&6; }
14202 else
14203 # We need a cross tool
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14205 $as_echo "pre-installed" >&6; }
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14210 $as_echo_n "checking where to find the target strip... " >&6; }
14211 if test "x${build}" != "x${host}" ; then
14212 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14213 # We already found the complete path
14214 ac_dir=`dirname $STRIP_FOR_TARGET`
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14216 $as_echo "pre-installed in $ac_dir" >&6; }
14217 else
14218 # Canadian cross, just use what we found
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14220 $as_echo "pre-installed" >&6; }
14222 else
14223 ok=yes
14224 case " ${configdirs} " in
14225 *" binutils "*) ;;
14226 *) ok=no ;;
14227 esac
14229 if test $ok = yes; then
14230 # An in-tree tool is available and we can use it
14231 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14233 $as_echo "just compiled" >&6; }
14234 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14235 # We already found the complete path
14236 ac_dir=`dirname $STRIP_FOR_TARGET`
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14238 $as_echo "pre-installed in $ac_dir" >&6; }
14239 elif test "x$target" = "x$host"; then
14240 # We can use an host tool
14241 STRIP_FOR_TARGET='$(STRIP)'
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14243 $as_echo "host tool" >&6; }
14244 else
14245 # We need a cross tool
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14247 $as_echo "pre-installed" >&6; }
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14252 $as_echo_n "checking where to find the target windres... " >&6; }
14253 if test "x${build}" != "x${host}" ; then
14254 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
14256 ac_dir=`dirname $WINDRES_FOR_TARGET`
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258 $as_echo "pre-installed in $ac_dir" >&6; }
14259 else
14260 # Canadian cross, just use what we found
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14262 $as_echo "pre-installed" >&6; }
14264 else
14265 ok=yes
14266 case " ${configdirs} " in
14267 *" binutils "*) ;;
14268 *) ok=no ;;
14269 esac
14271 if test $ok = yes; then
14272 # An in-tree tool is available and we can use it
14273 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14275 $as_echo "just compiled" >&6; }
14276 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14277 # We already found the complete path
14278 ac_dir=`dirname $WINDRES_FOR_TARGET`
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14280 $as_echo "pre-installed in $ac_dir" >&6; }
14281 elif test "x$target" = "x$host"; then
14282 # We can use an host tool
14283 WINDRES_FOR_TARGET='$(WINDRES)'
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14285 $as_echo "host tool" >&6; }
14286 else
14287 # We need a cross tool
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289 $as_echo "pre-installed" >&6; }
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14294 $as_echo_n "checking where to find the target windmc... " >&6; }
14295 if test "x${build}" != "x${host}" ; then
14296 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
14298 ac_dir=`dirname $WINDMC_FOR_TARGET`
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300 $as_echo "pre-installed in $ac_dir" >&6; }
14301 else
14302 # Canadian cross, just use what we found
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14304 $as_echo "pre-installed" >&6; }
14306 else
14307 ok=yes
14308 case " ${configdirs} " in
14309 *" binutils "*) ;;
14310 *) ok=no ;;
14311 esac
14313 if test $ok = yes; then
14314 # An in-tree tool is available and we can use it
14315 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14317 $as_echo "just compiled" >&6; }
14318 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14319 # We already found the complete path
14320 ac_dir=`dirname $WINDMC_FOR_TARGET`
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14322 $as_echo "pre-installed in $ac_dir" >&6; }
14323 elif test "x$target" = "x$host"; then
14324 # We can use an host tool
14325 WINDMC_FOR_TARGET='$(WINDMC)'
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14327 $as_echo "host tool" >&6; }
14328 else
14329 # We need a cross tool
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14331 $as_echo "pre-installed" >&6; }
14339 # Certain tools may need extra flags.
14340 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14341 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14342 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14344 # When building target libraries, except in a Canadian cross, we use
14345 # the same toolchain as the compiler we just built.
14346 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14347 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14348 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14349 if test $host = $build; then
14350 case " $configdirs " in
14351 *" gcc "*)
14352 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14353 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14354 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14356 esac
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14364 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14365 # Check whether --enable-maintainer-mode was given.
14366 if test "${enable_maintainer_mode+set}" = set; then :
14367 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14368 else
14369 USE_MAINTAINER_MODE=no
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14373 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14376 if test "$USE_MAINTAINER_MODE" = yes; then
14377 MAINTAINER_MODE_TRUE=
14378 MAINTAINER_MODE_FALSE='#'
14379 else
14380 MAINTAINER_MODE_TRUE='#'
14381 MAINTAINER_MODE_FALSE=
14383 MAINT=$MAINTAINER_MODE_TRUE
14385 # ---------------------
14386 # GCC bootstrap support
14387 # ---------------------
14389 # Stage specific cflags for build.
14390 stage1_cflags="-g"
14391 case $build in
14392 vax-*-*)
14393 case ${GCC} in
14394 yes) stage1_cflags="-g -Wa,-J" ;;
14395 *) stage1_cflags="-g -J" ;;
14396 esac ;;
14397 esac
14399 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14400 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14401 saved_CFLAGS="$CFLAGS"
14403 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14404 CFLAGS="$CFLAGS -fkeep-inline-functions"
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14406 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14410 #if (__GNUC__ < 3) \
14411 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14412 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14413 #error http://gcc.gnu.org/PR29382
14414 #endif
14417 main ()
14421 return 0;
14423 _ACEOF
14424 if ac_fn_c_try_compile "$LINENO"; then :
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14426 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14427 else
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429 $as_echo "no" >&6; }
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14433 CFLAGS="$saved_CFLAGS"
14438 # Enable --enable-checking in stage1 of the compiler.
14439 # Check whether --enable-stage1-checking was given.
14440 if test "${enable_stage1_checking+set}" = set; then :
14441 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14442 else
14443 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14444 stage1_checking=--enable-checking=yes,types
14445 else
14446 stage1_checking=--enable-checking=$enable_checking,types
14452 # Enable -Werror in bootstrap stage2 and later.
14453 # Check whether --enable-werror was given.
14454 if test "${enable_werror+set}" = set; then :
14455 enableval=$enable_werror;
14456 else
14457 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14458 enable_werror=yes
14459 else
14460 enable_werror=no
14464 case ${enable_werror} in
14465 yes) stage2_werror_flag="--enable-werror-always" ;;
14466 *) stage2_werror_flag="" ;;
14467 esac
14470 # Specify what files to not compare during bootstrap.
14472 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14473 case "$target" in
14474 hppa*64*-*-hpux*) ;;
14475 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14476 esac
14477 case " $configdirs " in
14478 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14479 esac
14482 ac_config_files="$ac_config_files Makefile"
14484 cat >confcache <<\_ACEOF
14485 # This file is a shell script that caches the results of configure
14486 # tests run on this system so they can be shared between configure
14487 # scripts and configure runs, see configure's option --config-cache.
14488 # It is not useful on other systems. If it contains results you don't
14489 # want to keep, you may remove or edit it.
14491 # config.status only pays attention to the cache file if you give it
14492 # the --recheck option to rerun configure.
14494 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14495 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14496 # following values.
14498 _ACEOF
14500 # The following way of writing the cache mishandles newlines in values,
14501 # but we know of no workaround that is simple, portable, and efficient.
14502 # So, we kill variables containing newlines.
14503 # Ultrix sh set writes to stderr and can't be redirected directly,
14504 # and sets the high bit in the cache file unless we assign to the vars.
14506 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14507 eval ac_val=\$$ac_var
14508 case $ac_val in #(
14509 *${as_nl}*)
14510 case $ac_var in #(
14511 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14512 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14513 esac
14514 case $ac_var in #(
14515 _ | IFS | as_nl) ;; #(
14516 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14517 *) { eval $ac_var=; unset $ac_var;} ;;
14518 esac ;;
14519 esac
14520 done
14522 (set) 2>&1 |
14523 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14524 *${as_nl}ac_space=\ *)
14525 # `set' does not quote correctly, so add quotes: double-quote
14526 # substitution turns \\\\ into \\, and sed turns \\ into \.
14527 sed -n \
14528 "s/'/'\\\\''/g;
14529 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14530 ;; #(
14532 # `set' quotes correctly as required by POSIX, so do not add quotes.
14533 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14535 esac |
14536 sort
14538 sed '
14539 /^ac_cv_env_/b end
14540 t clear
14541 :clear
14542 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14543 t end
14544 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14545 :end' >>confcache
14546 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14547 if test -w "$cache_file"; then
14548 test "x$cache_file" != "x/dev/null" &&
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14550 $as_echo "$as_me: updating cache $cache_file" >&6;}
14551 cat confcache >$cache_file
14552 else
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14554 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14557 rm -f confcache
14559 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14560 # Let make expand exec_prefix.
14561 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14563 # Transform confdefs.h into DEFS.
14564 # Protect against shell expansion while executing Makefile rules.
14565 # Protect against Makefile macro expansion.
14567 # If the first sed substitution is executed (which looks for macros that
14568 # take arguments), then branch to the quote section. Otherwise,
14569 # look for a macro that doesn't take arguments.
14570 ac_script='
14571 :mline
14572 /\\$/{
14574 s,\\\n,,
14575 b mline
14577 t clear
14578 :clear
14579 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14580 t quote
14581 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14582 t quote
14583 b any
14584 :quote
14585 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14586 s/\[/\\&/g
14587 s/\]/\\&/g
14588 s/\$/$$/g
14590 :any
14593 s/^\n//
14594 s/\n/ /g
14598 DEFS=`sed -n "$ac_script" confdefs.h`
14601 ac_libobjs=
14602 ac_ltlibobjs=
14603 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14604 # 1. Remove the extension, and $U if already installed.
14605 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14606 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14607 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14608 # will be set to the directory where LIBOBJS objects are built.
14609 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14610 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14611 done
14612 LIBOBJS=$ac_libobjs
14614 LTLIBOBJS=$ac_ltlibobjs
14618 : ${CONFIG_STATUS=./config.status}
14619 ac_write_fail=0
14620 ac_clean_files_save=$ac_clean_files
14621 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14623 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14624 as_write_fail=0
14625 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14626 #! $SHELL
14627 # Generated by $as_me.
14628 # Run this file to recreate the current configuration.
14629 # Compiler output produced by configure, useful for debugging
14630 # configure, is in config.log if it exists.
14632 debug=false
14633 ac_cs_recheck=false
14634 ac_cs_silent=false
14636 SHELL=\${CONFIG_SHELL-$SHELL}
14637 export SHELL
14638 _ASEOF
14639 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14640 ## -------------------- ##
14641 ## M4sh Initialization. ##
14642 ## -------------------- ##
14644 # Be more Bourne compatible
14645 DUALCASE=1; export DUALCASE # for MKS sh
14646 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14647 emulate sh
14648 NULLCMD=:
14649 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14650 # is contrary to our usage. Disable this feature.
14651 alias -g '${1+"$@"}'='"$@"'
14652 setopt NO_GLOB_SUBST
14653 else
14654 case `(set -o) 2>/dev/null` in #(
14655 *posix*) :
14656 set -o posix ;; #(
14657 *) :
14659 esac
14663 as_nl='
14665 export as_nl
14666 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14667 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14668 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14669 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14670 # Prefer a ksh shell builtin over an external printf program on Solaris,
14671 # but without wasting forks for bash or zsh.
14672 if test -z "$BASH_VERSION$ZSH_VERSION" \
14673 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14674 as_echo='print -r --'
14675 as_echo_n='print -rn --'
14676 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14677 as_echo='printf %s\n'
14678 as_echo_n='printf %s'
14679 else
14680 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14681 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14682 as_echo_n='/usr/ucb/echo -n'
14683 else
14684 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14685 as_echo_n_body='eval
14686 arg=$1;
14687 case $arg in #(
14688 *"$as_nl"*)
14689 expr "X$arg" : "X\\(.*\\)$as_nl";
14690 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14691 esac;
14692 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14694 export as_echo_n_body
14695 as_echo_n='sh -c $as_echo_n_body as_echo'
14697 export as_echo_body
14698 as_echo='sh -c $as_echo_body as_echo'
14701 # The user is always right.
14702 if test "${PATH_SEPARATOR+set}" != set; then
14703 PATH_SEPARATOR=:
14704 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14705 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14706 PATH_SEPARATOR=';'
14711 # IFS
14712 # We need space, tab and new line, in precisely that order. Quoting is
14713 # there to prevent editors from complaining about space-tab.
14714 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14715 # splitting by setting IFS to empty value.)
14716 IFS=" "" $as_nl"
14718 # Find who we are. Look in the path if we contain no directory separator.
14719 case $0 in #((
14720 *[\\/]* ) as_myself=$0 ;;
14721 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14722 for as_dir in $PATH
14724 IFS=$as_save_IFS
14725 test -z "$as_dir" && as_dir=.
14726 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14727 done
14728 IFS=$as_save_IFS
14731 esac
14732 # We did not find ourselves, most probably we were run as `sh COMMAND'
14733 # in which case we are not to be found in the path.
14734 if test "x$as_myself" = x; then
14735 as_myself=$0
14737 if test ! -f "$as_myself"; then
14738 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14739 exit 1
14742 # Unset variables that we do not need and which cause bugs (e.g. in
14743 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14744 # suppresses any "Segmentation fault" message there. '((' could
14745 # trigger a bug in pdksh 5.2.14.
14746 for as_var in BASH_ENV ENV MAIL MAILPATH
14747 do eval test x\${$as_var+set} = xset \
14748 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14749 done
14750 PS1='$ '
14751 PS2='> '
14752 PS4='+ '
14754 # NLS nuisances.
14755 LC_ALL=C
14756 export LC_ALL
14757 LANGUAGE=C
14758 export LANGUAGE
14760 # CDPATH.
14761 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14764 # as_fn_error ERROR [LINENO LOG_FD]
14765 # ---------------------------------
14766 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14767 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14768 # script with status $?, using 1 if that was 0.
14769 as_fn_error ()
14771 as_status=$?; test $as_status -eq 0 && as_status=1
14772 if test "$3"; then
14773 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14774 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14776 $as_echo "$as_me: error: $1" >&2
14777 as_fn_exit $as_status
14778 } # as_fn_error
14781 # as_fn_set_status STATUS
14782 # -----------------------
14783 # Set $? to STATUS, without forking.
14784 as_fn_set_status ()
14786 return $1
14787 } # as_fn_set_status
14789 # as_fn_exit STATUS
14790 # -----------------
14791 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14792 as_fn_exit ()
14794 set +e
14795 as_fn_set_status $1
14796 exit $1
14797 } # as_fn_exit
14799 # as_fn_unset VAR
14800 # ---------------
14801 # Portably unset VAR.
14802 as_fn_unset ()
14804 { eval $1=; unset $1;}
14806 as_unset=as_fn_unset
14807 # as_fn_append VAR VALUE
14808 # ----------------------
14809 # Append the text in VALUE to the end of the definition contained in VAR. Take
14810 # advantage of any shell optimizations that allow amortized linear growth over
14811 # repeated appends, instead of the typical quadratic growth present in naive
14812 # implementations.
14813 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14814 eval 'as_fn_append ()
14816 eval $1+=\$2
14818 else
14819 as_fn_append ()
14821 eval $1=\$$1\$2
14823 fi # as_fn_append
14825 # as_fn_arith ARG...
14826 # ------------------
14827 # Perform arithmetic evaluation on the ARGs, and store the result in the
14828 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14829 # must be portable across $(()) and expr.
14830 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14831 eval 'as_fn_arith ()
14833 as_val=$(( $* ))
14835 else
14836 as_fn_arith ()
14838 as_val=`expr "$@" || test $? -eq 1`
14840 fi # as_fn_arith
14843 if expr a : '\(a\)' >/dev/null 2>&1 &&
14844 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14845 as_expr=expr
14846 else
14847 as_expr=false
14850 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14851 as_basename=basename
14852 else
14853 as_basename=false
14856 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14857 as_dirname=dirname
14858 else
14859 as_dirname=false
14862 as_me=`$as_basename -- "$0" ||
14863 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14864 X"$0" : 'X\(//\)$' \| \
14865 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14866 $as_echo X/"$0" |
14867 sed '/^.*\/\([^/][^/]*\)\/*$/{
14868 s//\1/
14871 /^X\/\(\/\/\)$/{
14872 s//\1/
14875 /^X\/\(\/\).*/{
14876 s//\1/
14879 s/.*/./; q'`
14881 # Avoid depending upon Character Ranges.
14882 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14883 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14884 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14885 as_cr_digits='0123456789'
14886 as_cr_alnum=$as_cr_Letters$as_cr_digits
14888 ECHO_C= ECHO_N= ECHO_T=
14889 case `echo -n x` in #(((((
14890 -n*)
14891 case `echo 'xy\c'` in
14892 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14893 xy) ECHO_C='\c';;
14894 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14895 ECHO_T=' ';;
14896 esac;;
14898 ECHO_N='-n';;
14899 esac
14901 rm -f conf$$ conf$$.exe conf$$.file
14902 if test -d conf$$.dir; then
14903 rm -f conf$$.dir/conf$$.file
14904 else
14905 rm -f conf$$.dir
14906 mkdir conf$$.dir 2>/dev/null
14908 if (echo >conf$$.file) 2>/dev/null; then
14909 if ln -s conf$$.file conf$$ 2>/dev/null; then
14910 as_ln_s='ln -s'
14911 # ... but there are two gotchas:
14912 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14913 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14914 # In both cases, we have to default to `cp -p'.
14915 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14916 as_ln_s='cp -p'
14917 elif ln conf$$.file conf$$ 2>/dev/null; then
14918 as_ln_s=ln
14919 else
14920 as_ln_s='cp -p'
14922 else
14923 as_ln_s='cp -p'
14925 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14926 rmdir conf$$.dir 2>/dev/null
14929 # as_fn_mkdir_p
14930 # -------------
14931 # Create "$as_dir" as a directory, including parents if necessary.
14932 as_fn_mkdir_p ()
14935 case $as_dir in #(
14936 -*) as_dir=./$as_dir;;
14937 esac
14938 test -d "$as_dir" || eval $as_mkdir_p || {
14939 as_dirs=
14940 while :; do
14941 case $as_dir in #(
14942 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14943 *) as_qdir=$as_dir;;
14944 esac
14945 as_dirs="'$as_qdir' $as_dirs"
14946 as_dir=`$as_dirname -- "$as_dir" ||
14947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14948 X"$as_dir" : 'X\(//\)[^/]' \| \
14949 X"$as_dir" : 'X\(//\)$' \| \
14950 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14951 $as_echo X"$as_dir" |
14952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14953 s//\1/
14956 /^X\(\/\/\)[^/].*/{
14957 s//\1/
14960 /^X\(\/\/\)$/{
14961 s//\1/
14964 /^X\(\/\).*/{
14965 s//\1/
14968 s/.*/./; q'`
14969 test -d "$as_dir" && break
14970 done
14971 test -z "$as_dirs" || eval "mkdir $as_dirs"
14972 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14975 } # as_fn_mkdir_p
14976 if mkdir -p . 2>/dev/null; then
14977 as_mkdir_p='mkdir -p "$as_dir"'
14978 else
14979 test -d ./-p && rmdir ./-p
14980 as_mkdir_p=false
14983 if test -x / >/dev/null 2>&1; then
14984 as_test_x='test -x'
14985 else
14986 if ls -dL / >/dev/null 2>&1; then
14987 as_ls_L_option=L
14988 else
14989 as_ls_L_option=
14991 as_test_x='
14992 eval sh -c '\''
14993 if test -d "$1"; then
14994 test -d "$1/.";
14995 else
14996 case $1 in #(
14997 -*)set "./$1";;
14998 esac;
14999 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15000 ???[sx]*):;;*)false;;esac;fi
15001 '\'' sh
15004 as_executable_p=$as_test_x
15006 # Sed expression to map a string onto a valid CPP name.
15007 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15009 # Sed expression to map a string onto a valid variable name.
15010 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15013 exec 6>&1
15014 ## ----------------------------------- ##
15015 ## Main body of $CONFIG_STATUS script. ##
15016 ## ----------------------------------- ##
15017 _ASEOF
15018 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15021 # Save the log message, to keep $0 and so on meaningful, and to
15022 # report actual input values of CONFIG_FILES etc. instead of their
15023 # values after options handling.
15024 ac_log="
15025 This file was extended by $as_me, which was
15026 generated by GNU Autoconf 2.64. Invocation command line was
15028 CONFIG_FILES = $CONFIG_FILES
15029 CONFIG_HEADERS = $CONFIG_HEADERS
15030 CONFIG_LINKS = $CONFIG_LINKS
15031 CONFIG_COMMANDS = $CONFIG_COMMANDS
15032 $ $0 $@
15034 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15037 _ACEOF
15039 case $ac_config_files in *"
15040 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15041 esac
15045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15046 # Files that config.status was made for.
15047 config_files="$ac_config_files"
15049 _ACEOF
15051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15052 ac_cs_usage="\
15053 \`$as_me' instantiates files and other configuration actions
15054 from templates according to the current configuration. Unless the files
15055 and actions are specified as TAGs, all are instantiated by default.
15057 Usage: $0 [OPTION]... [TAG]...
15059 -h, --help print this help, then exit
15060 -V, --version print version number and configuration settings, then exit
15061 -q, --quiet, --silent
15062 do not print progress messages
15063 -d, --debug don't remove temporary files
15064 --recheck update $as_me by reconfiguring in the same conditions
15065 --file=FILE[:TEMPLATE]
15066 instantiate the configuration file FILE
15068 Configuration files:
15069 $config_files
15071 Report bugs to the package provider."
15073 _ACEOF
15074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15075 ac_cs_version="\\
15076 config.status
15077 configured by $0, generated by GNU Autoconf 2.64,
15078 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15080 Copyright (C) 2009 Free Software Foundation, Inc.
15081 This config.status script is free software; the Free Software Foundation
15082 gives unlimited permission to copy, distribute and modify it."
15084 ac_pwd='$ac_pwd'
15085 srcdir='$srcdir'
15086 INSTALL='$INSTALL'
15087 AWK='$AWK'
15088 test -n "\$AWK" || AWK=awk
15089 _ACEOF
15091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15092 # The default lists apply if the user does not specify any file.
15093 ac_need_defaults=:
15094 while test $# != 0
15096 case $1 in
15097 --*=*)
15098 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15099 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15100 ac_shift=:
15103 ac_option=$1
15104 ac_optarg=$2
15105 ac_shift=shift
15107 esac
15109 case $ac_option in
15110 # Handling of the options.
15111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15112 ac_cs_recheck=: ;;
15113 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15114 $as_echo "$ac_cs_version"; exit ;;
15115 --debug | --debu | --deb | --de | --d | -d )
15116 debug=: ;;
15117 --file | --fil | --fi | --f )
15118 $ac_shift
15119 case $ac_optarg in
15120 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15121 esac
15122 as_fn_append CONFIG_FILES " '$ac_optarg'"
15123 ac_need_defaults=false;;
15124 --he | --h | --help | --hel | -h )
15125 $as_echo "$ac_cs_usage"; exit ;;
15126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15127 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15128 ac_cs_silent=: ;;
15130 # This is an error.
15131 -*) as_fn_error "unrecognized option: \`$1'
15132 Try \`$0 --help' for more information." ;;
15134 *) as_fn_append ac_config_targets " $1"
15135 ac_need_defaults=false ;;
15137 esac
15138 shift
15139 done
15141 ac_configure_extra_args=
15143 if $ac_cs_silent; then
15144 exec 6>/dev/null
15145 ac_configure_extra_args="$ac_configure_extra_args --silent"
15148 _ACEOF
15149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15150 if \$ac_cs_recheck; then
15151 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15152 shift
15153 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15154 CONFIG_SHELL='$SHELL'
15155 export CONFIG_SHELL
15156 exec "\$@"
15159 _ACEOF
15160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15161 exec 5>>config.log
15163 echo
15164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15165 ## Running $as_me. ##
15166 _ASBOX
15167 $as_echo "$ac_log"
15168 } >&5
15170 _ACEOF
15171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15173 # INIT-COMMANDS
15175 extrasub_build="$extrasub_build"
15176 extrasub_host="$extrasub_host"
15177 extrasub_target="$extrasub_target"
15179 _ACEOF
15181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15183 # Handling of arguments.
15184 for ac_config_target in $ac_config_targets
15186 case $ac_config_target in
15187 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15189 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15190 esac
15191 done
15194 # If the user did not use the arguments to specify the items to instantiate,
15195 # then the envvar interface is used. Set only those that are not.
15196 # We use the long form for the default assignment because of an extremely
15197 # bizarre bug on SunOS 4.1.3.
15198 if $ac_need_defaults; then
15199 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15202 # Have a temporary directory for convenience. Make it in the build tree
15203 # simply because there is no reason against having it here, and in addition,
15204 # creating and moving files from /tmp can sometimes cause problems.
15205 # Hook for its removal unless debugging.
15206 # Note that there is a small window in which the directory will not be cleaned:
15207 # after its creation but before its name has been assigned to `$tmp'.
15208 $debug ||
15210 tmp=
15211 trap 'exit_status=$?
15212 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15214 trap 'as_fn_exit 1' 1 2 13 15
15216 # Create a (secure) tmp directory for tmp files.
15219 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15220 test -n "$tmp" && test -d "$tmp"
15221 } ||
15223 tmp=./conf$$-$RANDOM
15224 (umask 077 && mkdir "$tmp")
15225 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15227 # Set up the scripts for CONFIG_FILES section.
15228 # No need to generate them if there are no CONFIG_FILES.
15229 # This happens for instance with `./config.status config.h'.
15230 if test -n "$CONFIG_FILES"; then
15232 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15233 ac_cs_awk_getline=:
15234 ac_cs_awk_pipe_init=
15235 ac_cs_awk_read_file='
15236 while ((getline aline < (F[key])) > 0)
15237 print(aline)
15238 close(F[key])'
15239 ac_cs_awk_pipe_fini=
15240 else
15241 ac_cs_awk_getline=false
15242 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15243 ac_cs_awk_read_file='
15244 print "|#_!!_#|"
15245 print "cat " F[key] " &&"
15246 '$ac_cs_awk_pipe_init
15247 # The final `:' finishes the AND list.
15248 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15250 ac_cr=`echo X | tr X '\015'`
15251 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15252 # But we know of no other shell where ac_cr would be empty at this
15253 # point, so we can use a bashism as a fallback.
15254 if test "x$ac_cr" = x; then
15255 eval ac_cr=\$\'\\r\'
15257 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15258 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15259 ac_cs_awk_cr='\r'
15260 else
15261 ac_cs_awk_cr=$ac_cr
15264 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15265 _ACEOF
15267 # Create commands to substitute file output variables.
15269 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15270 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15271 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15272 echo "_ACAWK" &&
15273 echo "_ACEOF"
15274 } >conf$$files.sh &&
15275 . ./conf$$files.sh ||
15276 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15277 rm -f conf$$files.sh
15280 echo "cat >conf$$subs.awk <<_ACEOF" &&
15281 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15282 echo "_ACEOF"
15283 } >conf$$subs.sh ||
15284 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15285 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15286 ac_delim='%!_!# '
15287 for ac_last_try in false false false false false :; do
15288 . ./conf$$subs.sh ||
15289 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15291 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15292 if test $ac_delim_n = $ac_delim_num; then
15293 break
15294 elif $ac_last_try; then
15295 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15296 else
15297 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15299 done
15300 rm -f conf$$subs.sh
15302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15303 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15304 _ACEOF
15305 sed -n '
15307 s/^/S["/; s/!.*/"]=/
15310 s/^[^!]*!//
15311 :repl
15312 t repl
15313 s/'"$ac_delim"'$//
15314 t delim
15317 s/\(.\{148\}\).*/\1/
15318 t more1
15319 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15322 b repl
15323 :more1
15324 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15327 s/.\{148\}//
15328 t nl
15329 :delim
15331 s/\(.\{148\}\).*/\1/
15332 t more2
15333 s/["\\]/\\&/g; s/^/"/; s/$/"/
15336 :more2
15337 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15340 s/.\{148\}//
15341 t delim
15342 ' <conf$$subs.awk | sed '
15343 /^[^""]/{
15345 s/\n//
15347 ' >>$CONFIG_STATUS || ac_write_fail=1
15348 rm -f conf$$subs.awk
15349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15350 _ACAWK
15351 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15352 for (key in S) S_is_set[key] = 1
15353 FS = "\a"
15354 \$ac_cs_awk_pipe_init
15357 line = $ 0
15358 nfields = split(line, field, "@")
15359 substed = 0
15360 len = length(field[1])
15361 for (i = 2; i < nfields; i++) {
15362 key = field[i]
15363 keylen = length(key)
15364 if (S_is_set[key]) {
15365 value = S[key]
15366 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15367 len += length(value) + length(field[++i])
15368 substed = 1
15369 } else
15370 len += 1 + keylen
15372 if (nfields == 3 && !substed) {
15373 key = field[2]
15374 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15375 \$ac_cs_awk_read_file
15376 next
15379 print line
15381 \$ac_cs_awk_pipe_fini
15382 _ACAWK
15383 _ACEOF
15384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15385 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15386 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15387 else
15389 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15390 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15391 _ACEOF
15393 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15394 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15395 # trailing colons and then remove the whole line if VPATH becomes empty
15396 # (actually we leave an empty line to preserve line numbers).
15397 if test "x$srcdir" = x.; then
15398 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15399 s/:*\$(srcdir):*/:/
15400 s/:*\${srcdir}:*/:/
15401 s/:*@srcdir@:*/:/
15402 s/^\([^=]*=[ ]*\):*/\1/
15403 s/:*$//
15404 s/^[^=]*=[ ]*$//
15408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15409 fi # test -n "$CONFIG_FILES"
15412 eval set X " :F $CONFIG_FILES "
15413 shift
15414 for ac_tag
15416 case $ac_tag in
15417 :[FHLC]) ac_mode=$ac_tag; continue;;
15418 esac
15419 case $ac_mode$ac_tag in
15420 :[FHL]*:*);;
15421 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15422 :[FH]-) ac_tag=-:-;;
15423 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15424 esac
15425 ac_save_IFS=$IFS
15426 IFS=:
15427 set x $ac_tag
15428 IFS=$ac_save_IFS
15429 shift
15430 ac_file=$1
15431 shift
15433 case $ac_mode in
15434 :L) ac_source=$1;;
15435 :[FH])
15436 ac_file_inputs=
15437 for ac_f
15439 case $ac_f in
15440 -) ac_f="$tmp/stdin";;
15441 *) # Look for the file first in the build tree, then in the source tree
15442 # (if the path is not absolute). The absolute path cannot be DOS-style,
15443 # because $ac_f cannot contain `:'.
15444 test -f "$ac_f" ||
15445 case $ac_f in
15446 [\\/$]*) false;;
15447 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15448 esac ||
15449 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15450 esac
15451 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15452 as_fn_append ac_file_inputs " '$ac_f'"
15453 done
15455 # Let's still pretend it is `configure' which instantiates (i.e., don't
15456 # use $as_me), people would be surprised to read:
15457 # /* config.h. Generated by config.status. */
15458 configure_input='Generated from '`
15459 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15460 `' by configure.'
15461 if test x"$ac_file" != x-; then
15462 configure_input="$ac_file. $configure_input"
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15464 $as_echo "$as_me: creating $ac_file" >&6;}
15466 # Neutralize special characters interpreted by sed in replacement strings.
15467 case $configure_input in #(
15468 *\&* | *\|* | *\\* )
15469 ac_sed_conf_input=`$as_echo "$configure_input" |
15470 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15471 *) ac_sed_conf_input=$configure_input;;
15472 esac
15474 case $ac_tag in
15475 *:-:* | *:-) cat >"$tmp/stdin" \
15476 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15477 esac
15479 esac
15481 ac_dir=`$as_dirname -- "$ac_file" ||
15482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15483 X"$ac_file" : 'X\(//\)[^/]' \| \
15484 X"$ac_file" : 'X\(//\)$' \| \
15485 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15486 $as_echo X"$ac_file" |
15487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15488 s//\1/
15491 /^X\(\/\/\)[^/].*/{
15492 s//\1/
15495 /^X\(\/\/\)$/{
15496 s//\1/
15499 /^X\(\/\).*/{
15500 s//\1/
15503 s/.*/./; q'`
15504 as_dir="$ac_dir"; as_fn_mkdir_p
15505 ac_builddir=.
15507 case "$ac_dir" in
15508 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15511 # A ".." for each directory in $ac_dir_suffix.
15512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15513 case $ac_top_builddir_sub in
15514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15516 esac ;;
15517 esac
15518 ac_abs_top_builddir=$ac_pwd
15519 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15520 # for backward compatibility:
15521 ac_top_builddir=$ac_top_build_prefix
15523 case $srcdir in
15524 .) # We are building in place.
15525 ac_srcdir=.
15526 ac_top_srcdir=$ac_top_builddir_sub
15527 ac_abs_top_srcdir=$ac_pwd ;;
15528 [\\/]* | ?:[\\/]* ) # Absolute name.
15529 ac_srcdir=$srcdir$ac_dir_suffix;
15530 ac_top_srcdir=$srcdir
15531 ac_abs_top_srcdir=$srcdir ;;
15532 *) # Relative name.
15533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15534 ac_top_srcdir=$ac_top_build_prefix$srcdir
15535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15536 esac
15537 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15540 case $ac_mode in
15543 # CONFIG_FILE
15546 case $INSTALL in
15547 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15548 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15549 esac
15550 _ACEOF
15552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15553 # If the template does not know about datarootdir, expand it.
15554 # FIXME: This hack should be removed a few years after 2.60.
15555 ac_datarootdir_hack=; ac_datarootdir_seen=
15556 ac_sed_dataroot='
15557 /datarootdir/ {
15561 /@datadir@/p
15562 /@docdir@/p
15563 /@infodir@/p
15564 /@localedir@/p
15565 /@mandir@/p'
15566 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15567 *datarootdir*) ac_datarootdir_seen=yes;;
15568 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15570 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15571 _ACEOF
15572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15573 ac_datarootdir_hack='
15574 s&@datadir@&$datadir&g
15575 s&@docdir@&$docdir&g
15576 s&@infodir@&$infodir&g
15577 s&@localedir@&$localedir&g
15578 s&@mandir@&$mandir&g
15579 s&\\\${datarootdir}&$datarootdir&g' ;;
15580 esac
15581 _ACEOF
15583 # Neutralize VPATH when `$srcdir' = `.'.
15584 # Shell code in configure.ac might set extrasub.
15585 # FIXME: do we really want to maintain this feature?
15586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15587 ac_sed_extra="$ac_vpsub
15588 $extrasub
15589 _ACEOF
15590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15592 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15593 s|@configure_input@|$ac_sed_conf_input|;t t
15594 s&@top_builddir@&$ac_top_builddir_sub&;t t
15595 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15596 s&@srcdir@&$ac_srcdir&;t t
15597 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15598 s&@top_srcdir@&$ac_top_srcdir&;t t
15599 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15600 s&@builddir@&$ac_builddir&;t t
15601 s&@abs_builddir@&$ac_abs_builddir&;t t
15602 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15603 s&@INSTALL@&$ac_INSTALL&;t t
15604 $ac_datarootdir_hack
15606 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15607 if $ac_cs_awk_getline; then
15608 $AWK -f "$tmp/subs.awk"
15609 else
15610 $AWK -f "$tmp/subs.awk" | $SHELL
15611 fi >$tmp/out \
15612 || as_fn_error "could not create $ac_file" "$LINENO" 5
15614 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15615 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15616 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15618 which seems to be undefined. Please make sure it is defined." >&5
15619 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15620 which seems to be undefined. Please make sure it is defined." >&2;}
15622 rm -f "$tmp/stdin"
15623 case $ac_file in
15624 -) cat "$tmp/out" && rm -f "$tmp/out";;
15625 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15626 esac \
15627 || as_fn_error "could not create $ac_file" "$LINENO" 5
15632 esac
15635 case $ac_file$ac_mode in
15636 "Makefile":F) sed "$extrasub_build" Makefile |
15637 sed "$extrasub_host" |
15638 sed "$extrasub_target" > mf$$
15639 mv -f mf$$ Makefile ;;
15641 esac
15642 done # for ac_tag
15645 as_fn_exit 0
15646 _ACEOF
15647 ac_clean_files=$ac_clean_files_save
15649 test $ac_write_fail = 0 ||
15650 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15653 # configure is writing to config.log, and then calls config.status.
15654 # config.status does its own redirection, appending to config.log.
15655 # Unfortunately, on DOS this fails, as config.log is still kept open
15656 # by configure, so config.status won't be able to write to it; its
15657 # output is simply discarded. So we exec the FD to /dev/null,
15658 # effectively closing config.log, so it can be properly (re)opened and
15659 # appended to by config.status. When coming back to configure, we
15660 # need to make the FD available again.
15661 if test "$no_create" != yes; then
15662 ac_cs_success=:
15663 ac_config_status_args=
15664 test "$silent" = yes &&
15665 ac_config_status_args="$ac_config_status_args --quiet"
15666 exec 5>/dev/null
15667 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15668 exec 5>>config.log
15669 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15670 # would make configure fail if this is the last instruction.
15671 $ac_cs_success || as_fn_exit $?
15673 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15675 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}